客户信息

This commit is contained in:
1073413548 2024-09-10 17:09:22 +08:00
parent c6337044ba
commit b0bf97fd3c
3 changed files with 5 additions and 5 deletions

View File

@ -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));
}
/**

View File

@ -55,7 +55,7 @@ public interface IPsCustomInfoService {
* @param bo 客户基本信息
* @return 是否新增成功
*/
Boolean insertByBo(PsCustomInfoBo bo);
Long insertByBo(PsCustomInfoBo bo);
/**
* 修改客户基本信息

View File

@ -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();
}
/**