客户信息
This commit is contained in:
parent
c6337044ba
commit
b0bf97fd3c
@ -82,8 +82,8 @@ public class PsCustomController extends BaseController {
|
||||
@Log(title = "新增客户基本信息", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody PsCustomInfoBo bo) {
|
||||
return toAjax(psCustomInfoService.insertByBo(bo));
|
||||
public R<Long> add(@Validated(AddGroup.class) @RequestBody PsCustomInfoBo bo) {
|
||||
return R.ok(psCustomInfoService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -55,7 +55,7 @@ public interface IPsCustomInfoService {
|
||||
* @param bo 客户基本信息
|
||||
* @return 是否新增成功
|
||||
*/
|
||||
Boolean insertByBo(PsCustomInfoBo bo);
|
||||
Long insertByBo(PsCustomInfoBo bo);
|
||||
|
||||
/**
|
||||
* 修改客户基本信息
|
||||
|
@ -239,7 +239,7 @@ public class PsCustomInfoServiceImpl implements IPsCustomInfoService {
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public Boolean insertByBo(PsCustomInfoBo bo) {
|
||||
public Long insertByBo(PsCustomInfoBo bo) {
|
||||
PsCustomInfo add = MapstructUtils.convert(bo, PsCustomInfo.class);
|
||||
validEntityBeforeSave(add);
|
||||
//客户经理就是登录用户
|
||||
@ -262,7 +262,7 @@ public class PsCustomInfoServiceImpl implements IPsCustomInfoService {
|
||||
update.setCompanyName(bo.getCompanyName());
|
||||
companyInfoService.saveBo(update);
|
||||
}
|
||||
return flag;
|
||||
return add.getId();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user