Commit 150f1b0a authored by huyuchen's avatar huyuchen

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

parent 085848f7
...@@ -90,6 +90,10 @@ public class TInsuranceUnpurchaseApplyServiceImpl extends ServiceImpl<TInsurance ...@@ -90,6 +90,10 @@ public class TInsuranceUnpurchaseApplyServiceImpl extends ServiceImpl<TInsurance
public R deleteById(String id) { public R deleteById(String id) {
TInsuranceUnpurchaseApply apply = baseMapper.selectById(id); TInsuranceUnpurchaseApply apply = baseMapper.selectById(id);
if (Common.isNotNull(apply)) { if (Common.isNotNull(apply)) {
if (!CommonConstants.FOUR_STRING.equals(apply.getStatus()) &&
!CommonConstants.ZERO_STRING.equals(apply.getStatus())) {
return R.failed("数据状态发生改变,不能删除");
}
baseMapper.deleteById(apply); baseMapper.deleteById(apply);
personService.remove(Wrappers.<TInsuranceUnpurchasePerson>query().lambda().eq(TInsuranceUnpurchasePerson::getParnetId, id)); personService.remove(Wrappers.<TInsuranceUnpurchasePerson>query().lambda().eq(TInsuranceUnpurchasePerson::getParnetId, id));
return R.ok(); return R.ok();
......
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