瀏覽代碼

核销问题修改

guoweisong 2 年之前
父節點
當前提交
f86d7916ce
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/main/java/com/ydtech/modules/fnc/service/impl/InsPlySettleServiceImpl.java

+ 1 - 0
src/main/java/com/ydtech/modules/fnc/service/impl/InsPlySettleServiceImpl.java

@@ -152,6 +152,7 @@ public class InsPlySettleServiceImpl extends ServiceImpl<InsPlySettleMapper, Ins
         }
         //核销金额不能超总费用
         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){
             return HttpResult.error("核销金额已超过总费用,请修改");
         }