添加验证项目是否关联合同接口
This commit is contained in:
+18
@@ -270,6 +270,24 @@ public class PayIncomeContractController extends JeroController<PayIncomeContrac
|
|||||||
return Result.OK(list);
|
return Result.OK(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 验证项目是否关联合同
|
||||||
|
*
|
||||||
|
* @param projectId 项目id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="收入合同-验证项目是否关联合同", notes="收入合同-验证项目是否关联合同")
|
||||||
|
@GetMapping(value = "/getAssociatedProject")
|
||||||
|
public Result<?> getAssociatedProject(@RequestParam("projectId") String projectId) {
|
||||||
|
LambdaQueryWrapper<PayIncomeContractAssociated> queryPayIncomeContractAssociated = new LambdaQueryWrapper<>();
|
||||||
|
queryPayIncomeContractAssociated.eq(PayIncomeContractAssociated::getProjectId,projectId);
|
||||||
|
List<PayIncomeContractAssociated> list = payIncomeContractAssociatedService.list(queryPayIncomeContractAssociated);
|
||||||
|
if(!CollectionUtils.isEmpty(list)){
|
||||||
|
return Result.error("已关联合同企业不可更改");
|
||||||
|
}
|
||||||
|
return Result.OK("企业可更改");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关联
|
* 关联
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user