Commit db5ee4d8 authored by huyuchen's avatar huyuchen

huych-含风险项目商险不购买申请提交

parent 1026cca4
......@@ -181,6 +181,13 @@ public class TInsuranceUnpurchaseApplyServiceImpl extends ServiceImpl<TInsurance
}
try {
if (Common.isNotNull(requestId)) {
if (Common.isNotNull(tInsuranceUnpurchaseApply.getId())) {
TInsuranceUnpurchaseApply apply = baseMapper.selectById(tInsuranceUnpurchaseApply.getId());
if (Common.isNotNull(apply) && !CommonConstants.ZERO_STRING.equals(tInsuranceUnpurchaseApply.getStatus()) &&
!CommonConstants.ONE_STRING.equals(tInsuranceUnpurchaseApply.getStatus())) {
return R.failed("当前数据已被提交!");
}
}
//字段长度校验
if (Common.isNotNull(tInsuranceUnpurchaseApply.getReasonInfo()) && tInsuranceUnpurchaseApply.getReasonInfo().length() > 200) {
return R.failed("原因说明不能超过两百个字符");
......@@ -220,7 +227,8 @@ public class TInsuranceUnpurchaseApplyServiceImpl extends ServiceImpl<TInsurance
} else if (CommonConstants.TWO_STRING.equals(tInsuranceUnpurchaseApply.getSaveFlag())) {
TInsuranceUnpurchaseApply apply = baseMapper.selectById(tInsuranceUnpurchaseApply.getId());
if (Common.isNotNull(apply) && (CommonConstants.TWO_STRING.equals(tInsuranceUnpurchaseApply.getStatus()) ||
CommonConstants.THREE_STRING.equals(tInsuranceUnpurchaseApply.getStatus()))) {
CommonConstants.THREE_STRING.equals(tInsuranceUnpurchaseApply.getStatus())) ||
CommonConstants.FOUR_STRING.equals(tInsuranceUnpurchaseApply.getStatus())) {
return R.failed("当前数据已被提交!");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment