db修改
This commit is contained in:
+806
-767
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+1
-1
@@ -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
|
||||||
|
|||||||
+2
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user