This commit is contained in:
梁琦涛
2021-09-07 10:20:27 +08:00
parent 3944009ba5
commit c4dee48218
4 changed files with 811 additions and 771 deletions
+806 -767
View File
File diff suppressed because it is too large Load Diff
@@ -129,8 +129,8 @@ public class PayIncomeContractController extends JeroController<PayIncomeContrac
@ApiOperation(value="收入合同-添加", notes="收入合同-添加") @ApiOperation(value="收入合同-添加", notes="收入合同-添加")
@PostMapping(value = "/add") @PostMapping(value = "/add")
public Result<?> add(@RequestBody PayIncomeContractInput input) { public Result<?> add(@RequestBody PayIncomeContractInput input) {
payIncomeContractService.addPayIncomeContractInput(input); PayIncomeContract payIncomeContract = payIncomeContractService.addPayIncomeContractInput(input);
return Result.OK("添加成功!"); return Result.OK("添加成功!",payIncomeContract);
} }
/** /**
@@ -40,7 +40,7 @@ public interface IPayIncomeContractService extends IService<PayIncomeContract> {
* @Return * @Return
* @Exception * @Exception
*/ */
void addPayIncomeContractInput(PayIncomeContractInput input); PayIncomeContract addPayIncomeContractInput(PayIncomeContractInput input);
/** /**
* @Description 关联项目列表 * @Description 关联项目列表
* @Author lqt * @Author lqt
@@ -88,7 +88,7 @@ public class PayIncomeContractServiceImpl extends ServiceImpl<PayIncomeContractM
@Override @Override
@Transactional @Transactional
public void addPayIncomeContractInput(PayIncomeContractInput input) { public PayIncomeContract addPayIncomeContractInput(PayIncomeContractInput input) {
if(Objects.isNull(input)){ if(Objects.isNull(input)){
throw new JeroBootException("收入合同信息不能为空!"); throw new JeroBootException("收入合同信息不能为空!");
} }
@@ -145,6 +145,7 @@ public class PayIncomeContractServiceImpl extends ServiceImpl<PayIncomeContractM
throw new JeroBootException(msgPayIncomeContractInstallment.toString()); throw new JeroBootException(msgPayIncomeContractInstallment.toString());
} }
// todo 缺少发送消息 // todo 缺少发送消息
return payIncomeContract;
} }
@Override @Override