Browse Source

[修改][审批流][修改合同状态]

release_toaliyun_real
luozukai 6 years ago
parent
commit
f3edcc6c67
2 changed files with 24 additions and 0 deletions
  1. +6
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java
  2. +18
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java

+ 6
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java View File

@@ -429,6 +429,12 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService
logger.info("id:{},启动审批流成功,是否补录:{}", record.getRentContractId().toString(), record.getMerchantId() != null);
}
}
}else{
//合同状态改为记租中
WxRentContract updateRentContract = new WxRentContract();
updateRentContract.setId(record.getRentContractId());
updateRentContract.setStatus(EnumRentContractStatus.RENT_PAID.getCode());
wxRentContractMapper.updateStatus(updateRentContract);
}

return new ResultData(Result.SUCCESS, message, record);


+ 18
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java View File

@@ -510,6 +510,12 @@ public class WxRentContractServiceImpl implements WxRentContractService {
wxRentContractMapper.updateStatus(updateRentContract);
logger.info("id:{},启动审批流成功, 是否补录:{}", record.getId().toString(), record.getMerchantId() != null);
}
}else{
//合同状态改为记租中
WxRentContract updateRentContract = new WxRentContract();
updateRentContract.setId(record.getId());
updateRentContract.setStatus(EnumRentContractStatus.RENT_PAID.getCode());
wxRentContractMapper.updateStatus(updateRentContract);
}

//生成预览账单(补录第二步,第三步走编辑)
@@ -567,6 +573,12 @@ public class WxRentContractServiceImpl implements WxRentContractService {
wxRentContractMapper.updateStatus(updateRentContract);
logger.info("id:{},启动审批流成功 ,是否补录:{}", record.getId().toString(), record.getMerchantId() != null);
}
}else{
//合同状态改为记租中
WxRentContract updateRentContract = new WxRentContract();
updateRentContract.setId(record.getId());
updateRentContract.setStatus(EnumRentContractStatus.RENT_PAID.getCode());
wxRentContractMapper.updateStatus(updateRentContract);
}

//保存调整金额(预账单调整)
@@ -1642,6 +1654,12 @@ public class WxRentContractServiceImpl implements WxRentContractService {
wxRentContractMapper.updateStatus(updateRentContract);
logger.info("id:{},启动审批流成功,是否补录:{}", record.getId().toString(), record.getMerchantId() != null);
}
}else{
//合同状态改为记租中
WxRentContract updateRentContract = new WxRentContract();
updateRentContract.setId(record.getId());
updateRentContract.setStatus(EnumRentContractStatus.RENT_PAID.getCode());
wxRentContractMapper.updateStatus(updateRentContract);
}

return resultData;


Loading…
Cancel
Save