Procházet zdrojové kódy

首页当前作业修改

fanxw před 2 roky
rodič
revize
890e2b1613

+ 1 - 2
src/main/java/com/chinaitop/depot/supervise/controller/depotStyleController.java

@@ -76,8 +76,7 @@ public class depotStyleController {
76 76
 //            list = Service.selectWorkingForHouse(map);
77 77
             //list = Service.selectCLTask(map);
78 78
         }else if(ParameterUtil.isequal(type,"3.2")){//作业-里面的熏蒸,这个也没用了,现在熏蒸没有状态了
79
-//            list = Service.selectWorkingForHouse(map);
80
-            //list = Service.selectCLXZ(map);
79
+            list = Service.selectCLXZ(map);
81 80
         }else if(ParameterUtil.isequal(type,"3.3")){//入库
82 81
             map.put("billType",1);
83 82
             list = Service.selectRK(map);

+ 15 - 32
src/main/java/com/chinaitop/depot/supervise/mapper/DepotStyleMapper.xml

@@ -528,42 +528,25 @@
528 528
     AND task.task_end_time IS null
529 529
   </select>
530 530
   <select id="selectCLXZ" parameterType="java.util.Map" resultType="java.util.HashMap">
531
-    SELECT
532
-        fum.id,
533
-        fum.house_id,
534
-        styleS.styles,
535
-        styleS.imgdata,
536
-        storehouse.storehouse_name
537
-    FROM
538
-        t_fumigation_plan fum
539
-    LEFT JOIN depot_style styleS ON styleS.indexid = fum.house_id
540
-    LEFT JOIN basic_storehouse storehouse ON storehouse.storehouse_id = fum.house_id
541
-    WHERE styleS.type = #{type}
542
-    AND fum.state = '5'
531
+    select
532
+      b.storehouse_name storehouse_name
533
+    from t_fumigation_forrecord a 
534
+    left join basic_storehouse b on b.storehouse_id=a.house_id
535
+    where nvl(a.state,'')!='' and a.state!='10' and a.org_id=#{orgId}
543 536
   </select>
544 537
   <select id="selectRK" parameterType="java.util.Map" resultType="java.util.HashMap">
545
-    SELECT
546
-        store.storehouse_id house_id,
547
-        styleS.styles,
548
-        styleS.imgdata,
549
-        store.storehouse_name
550
-    FROM
551
-        basic_storehouse store
552
-    LEFT JOIN basic_warehouse ware ON ware.storehouse_id = store.storehouse_id
553
-    LEFT JOIN depot_style styleS ON styleS.indexid = store.storehouse_id
554
-    WHERE ware.crk_status = '2' AND styleS.type = #{type} and store.org_id=#{orgId}
538
+    select 
539
+      b.storehouse_name||a.warehouse_name storehouse_name
540
+    from basic_warehouse a 
541
+    left join basic_storehouse b on a.storehouse_id=a.storehouse_id
542
+    where a.crk_status='2' and a.org_id=#{orgId}
555 543
   </select>
556 544
     <select id="selectCK" parameterType="java.util.Map" resultType="java.util.HashMap">
557
-        SELECT
558
-        store.storehouse_id house_id,
559
-        styleS.styles,
560
-        styleS.imgdata,
561
-        store.storehouse_name
562
-    FROM
563
-        basic_storehouse store
564
-    LEFT JOIN basic_warehouse ware ON ware.storehouse_id = store.storehouse_id
565
-    LEFT JOIN depot_style styleS ON styleS.indexid = store.storehouse_id
566
-    WHERE ware.crk_status = '4' AND styleS.type = #{type} and store.org_id=#{orgId}
545
+        SELECT 
546
+          store.storehouse_name||ware.warehouse_name storehouse_name
547
+        FROM basic_warehouse ware
548
+        LEFT JOIN basic_storehouse store ON ware.storehouse_id = store.storehouse_id
549
+        WHERE ware.crk_status = '4' and store.org_id=#{orgId}
567 550
     </select>
568 551
     <select id="selectHouseState" parameterType="java.util.Map" resultType="java.util.HashMap">
569 552
         select * from (