Min 11 månader sedan
förälder
incheckning
03011e119b

+ 1 - 1
fhKeeper/formulahousekeeper/management-workshop/src/main/resources/mapper/ReportMapper.xml

@@ -255,7 +255,7 @@
         LEFT JOIN prod_procedure pp ON ppt.prod_procedure_id=pp.id
         LEFT JOIN product p ON p.id=plan.product_id
         WHERE ppt2.company_id=#{companyId}
-        AND r.sumReport < ppt2.work_time AND ppt.total_progress < 100
+        AND IFNULL(r.sumReport,0) < ppt2.work_time AND ppt.total_progress < 100
         <if test="date!=null and date!=''">
             and ppt2.distribute_date=#{date}
         </if>