Browse Source

no message

ly 1 year ago
parent
commit
bcba04b3b5

+ 3 - 0
src/main/java/cn/ezhizao/project/business/reconciliation/priceList/controller/BizEntrustPriceController.java

@@ -123,6 +123,9 @@ public class BizEntrustPriceController extends BaseController {
         } else if (list.size() == 1) {
             //如果存在一条数据且id一致
             if (list.get(0).getId().equals(bizEntrustPrice.getId())) {
+                if (bizEntrustPrice.getIsZero() == 1) {
+                    bizEntrustPrice.setAnnualIncome(null);
+                }
                 return toAjax(bizEntrustPriceService.updateById(bizEntrustPrice));
             } else {
                 return AjaxResult.error("该价目已存在");

+ 1 - 0
src/main/java/cn/ezhizao/project/business/reconciliation/priceList/domain/BizEntrustPrice.java

@@ -123,6 +123,7 @@ public class BizEntrustPrice extends BaseEntity
     @TableField(exist = false)
     protected Long tenantId;
 
+    private Integer isZero;
 
 
 }

+ 1 - 0
src/main/resources/mybatis/business/BizEntrustPriceMapper.xml

@@ -49,6 +49,7 @@
             <if test="fromTenantId != null ">AND e.from_tenant_id = #{fromTenantId}</if>
             <if test="taskTypeId != null ">AND e.task_type_id = #{taskTypeId}</if>
             <if test="isChanged != null ">AND e.is_changed = #{isChanged}</if>
+            <if test="isZero != null and isZero!=''">AND e.is_zero = #{isZero}</if>
             <if test="fromAccountName != null  and fromAccountName!=''">
                 AND exists (select t.id from biz_tenant t
                 where t.deleted = 0