浏览代码

1.新增大中型提成审批待办列表orderId查询条件

GouGengquan 2 周之前
父节点
当前提交
946d5fa842
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      dao/src/main/resources/mapper/CommissionDeclareMapper.xml

+ 3 - 0
dao/src/main/resources/mapper/CommissionDeclareMapper.xml

@@ -525,6 +525,9 @@
             <if test="checkVO!=null and checkVO.businessCate!=null and checkVO.businessCate!='' ">
             <if test="checkVO!=null and checkVO.businessCate!=null and checkVO.businessCate!='' ">
                 and dd.NAME = #{checkVO.businessCate}
                 and dd.NAME = #{checkVO.businessCate}
             </if>
             </if>
+            <if test="checkVO!=null and checkVO.orderId != null">
+                AND (SELECT COUNT(major.id) FROM major WHERE major.id = t.majorId AND major.order_id = #{checkVO.orderId}) > 0
+            </if>
         </where>
         </where>
     </sql>
     </sql>