|
@@ -75,9 +75,9 @@ public class ContractService extends ServiceImpl<ContractsMapper, Contracts> {
|
|
|
public RestResponse add(ContractRequest request) {
|
|
|
Contracts contracts = request.getContracts();
|
|
|
Long projectId = request.getProjectId();
|
|
|
- String contractType = request.getType();
|
|
|
+ Integer contractType = contracts.getType();
|
|
|
if (Objects.isNull(projectId)) {
|
|
|
- if ("5".equals(contractType)) {
|
|
|
+ if (5==contractType) {
|
|
|
//插入大修项目
|
|
|
CapitalRepair repair = new CapitalRepair();
|
|
|
repair.setProjectName(request.getProjectName());
|