guoyujia 5 місяців тому
батько
коміт
9eee0eadab

+ 3 - 3
src/main/resources/mybatis/business/BizDayworkMapper.xml

@@ -549,7 +549,7 @@
         (select
         lot_code from biz_lot
         where from_id = id) as
-        fromName,t1.is_waste_recycling,t1.is_superaddition,t3.is_waste,t1.is_amend,t1.production_plan_detail_id,t2.company_alias,t2.production_plan_no,t2.product_description ,t2.line_number,t3.create_time,t4.dept_name,t4.dept_id,(select lot_code from biz_lot where t3.from_id =biz_lot.id ) as fromCode  from biz_daywork t1
+        fromName,t1.is_waste_recycling,t1.is_superaddition,t3.is_waste,t1.is_amend,t1.production_plan_detail_id,t2.company_alias,t2.production_plan_no,t2.product_description ,t2.line_number,t1.create_time,t4.dept_name,t4.dept_id,(select lot_code from biz_lot where t3.from_id =biz_lot.id ) as fromCode  from biz_daywork t1
         left join biz_production_plan_detail t2 on t1.production_plan_detail_id = t2.id
         left join biz_lot t3 on t1.lot_id = t3.id
         left join sys_dept t4 on t1.dept_id = t4.dept_id
@@ -578,8 +578,8 @@
                     <!--                    t1.is_waste_recycling = #{flag} OR t1.is_waste = #{flag} OR t1.is_amend = #{flag}-->
                 </foreach>
             </if>
-            <if test="startTime != null ">AND t3.create_time &gt; #{startTime}</if>
-            <if test="endTime != null ">AND t3.create_time &lt; #{endTime}</if>
+            <if test="startTime != null ">AND t1.create_time &gt; #{startTime}</if>
+            <if test="endTime != null ">AND t1.create_time &lt; #{endTime}</if>
         </trim>
         order by t1.lot_code asc
     </select>