guoyujia преди 9 месеца
родител
ревизия
4985d08a83
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/resources/mybatis/business/product/BizDayworkMapper.xml

+ 1 - 1
src/main/resources/mybatis/business/product/BizDayworkMapper.xml

@@ -159,7 +159,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         select sum(lot_number) from biz_production_plan_detail_sub_detail where deleted = 0 and production_plan_detail_id=#{productionPlanDetailId}
     </select>
     <select id="getdayworkNum" resultType = "java.lang.Integer">
-        select sum(1) from biz_daywork t1 left join biz_lot t2 on t1.lot_id = t2.id where t1.deleted = 0 and t1.production_plan_detail_id=#{productionPlanDetailId} and t1.is_waste_recycling = 0 and t2.from_id = 0
+        select sum(1) from biz_daywork t1 left join biz_lot t2 on t1.lot_id = t2.id where t1.deleted = 0 and t1.production_plan_detail_id=#{productionPlanDetailId} and t1.is_waste_recycling = 0 and t2.from_id = 0 and t2.is_superaddition = 0
     </select>
     <select id="getPrevProcess" resultMap="BizProcessResult">
         select * from biz_process where deleted = 0 and id =(select process_id from biz_daywork_item where deleted = 0 and daywork_id = #{dayworkId} and status > 4 order by biz_daywork_item.create_time DESC limit 0,1)