guoyujia 5 ماه پیش
والد
کامیت
75ecaf56cf
1فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 7 0
      src/main/resources/mybatis/business/BizDayworkMapper.xml

+ 7 - 0
src/main/resources/mybatis/business/BizDayworkMapper.xml

@@ -457,6 +457,9 @@
         t1.*,
         t2.product_code,
         t2.description AS product_description,
+        t4.id as productionPlanDetailId,
+        t4.production_plan_no,
+        t4.line_number,
         t3.technology_version,
         (
         SELECT
@@ -470,6 +473,7 @@
         FROM biz_daywork t1
         LEFT JOIN biz_product t2 ON t1.product_id = t2.id
         LEFT JOIN biz_technological_process t3 ON t1.technological_process_id=t3.id
+        left join biz_production_plan_detail t4 on t1.production_plan_detail_id = t4.id
         <trim prefix=" WHERE" suffix="" suffixOverrides="AND">
             t1.deleted = 0
             <if test="tenantId != null and tenantId != 0">AND t1.tenant_id = #{tenantId}</if>
@@ -504,6 +508,8 @@
         t1.*,
         t2.product_code,
         t2.description AS product_description,
+        t4.production_plan_no,
+        t4.line_number,
         t3.technology_version,
         (
         SELECT
@@ -517,6 +523,7 @@
         FROM biz_daywork t1
         LEFT JOIN biz_product t2 ON t1.product_id = t2.id
         LEFT JOIN biz_technological_process t3 ON t1.technological_process_id=t3.id
+        left join biz_production_plan_detail t4 on t1.production_plan_detail_id = t4.id
         <trim prefix=" WHERE" suffix="" suffixOverrides="AND">
             t1.deleted = 0
             <if test="tenantId != null and tenantId != 0">AND t1.tenant_id = #{tenantId}</if>