gaodd 1 год назад
Родитель
Сommit
25e8ec1f77

+ 7 - 0
src/main/java/com/chinaitop/depot/business/mapper/BusinessDrugPurchaseMapper.xml

@@ -405,6 +405,13 @@
405 405
       audit_state != 0
406 406
       AND a.apply_number=b.task_type_name
407 407
       AND b.task_type = 'drugPurchase'
408
+      AND b.id in (
409
+      select max(id) as id from business_approval where 1=1
410
+      <if test="operator != null">
411
+        AND b.operator = #{operator}
412
+      </if>
413
+      GROUP BY task_type_name
414
+      )
408 415
       <if test="operator != null">
409 416
         AND b.operator = #{operator}
410 417
       </if>