|
@@ -152,6 +152,7 @@ public class InsPlySettleServiceImpl extends ServiceImpl<InsPlySettleMapper, Ins
|
|
|
}
|
|
}
|
|
|
//核销金额不能超总费用
|
|
//核销金额不能超总费用
|
|
|
InsPlySettle insPlySettle=this.baseMapper.selectBySettleno(insPlySettleHx.getSettleno());
|
|
InsPlySettle insPlySettle=this.baseMapper.selectBySettleno(insPlySettleHx.getSettleno());
|
|
|
|
|
+ insPlySettle.setHxamount(insPlySettle.getHxamount() ==null ? BigDecimal.ZERO:insPlySettle.getHxamount());
|
|
|
if(insPlySettle.getHxamount().add(insPlySettleHx.getAmount()).compareTo(insPlySettle.getAllFeeValue())>0){
|
|
if(insPlySettle.getHxamount().add(insPlySettleHx.getAmount()).compareTo(insPlySettle.getAllFeeValue())>0){
|
|
|
return HttpResult.error("核销金额已超过总费用,请修改");
|
|
return HttpResult.error("核销金额已超过总费用,请修改");
|
|
|
}
|
|
}
|