zhouzh 3 lat temu
rodzic
commit
211a3ab019

+ 27 - 75
src/main/resources/com/steerinfo/dil/mapper/WmspInboundResultMapper.xml

@@ -816,105 +816,57 @@
         ORDER BY wir.inbound_time DESC
         )
         <where>
-            <if test="INBOUND_NUMBER != null">
-                and "INBOUND_NUMBER" in
-                <foreach collection="INBOUND_NUMBER" item="item" open="(" separator="," close=")">
-                    #{item}
-                </foreach>
-            </if>
-            <if test="WAREHOUSE_NAME != null">
-                and "WAREHOUSE_NAME" in
-                <foreach collection="WAREHOUSE_NAME" item="item" open="(" separator="," close=")">
-                    #{item}
-                </foreach>
-            </if>
-            <if test="STACKING_NO != null">
-                and "STACKING_NO" in
-                <foreach collection="STACKING_NO" item="item" open="(" separator="," close=")">
-                    #{item}
-                </foreach>
-            </if>
-            <if test="GRID_GRADATION_NUMBER != null">
-                and "GRID_GRADATION_NUMBER" in
-                <foreach collection="GRID_GRADATION_NUMBER" item="item" open="(" separator="," close=")">
-                    #{item}
-                </foreach>
-            </if>
-            <if test="FURNACE_NUMBER != null">
-                and "FURNACE_NUMBER" in
-                <foreach collection="FURNACE_NUMBER" item="item" open="(" separator="," close=")">
-                    #{item}
-                </foreach>
-            </if>
-            <if test="MATERIAL_CODE != null">
-                and "MATERIAL_CODE" in
-                <foreach collection="MATERIAL_CODE" item="item" open="(" separator="," close=")">
-                    #{item}
-                </foreach>
-            </if>
-            <if test="MATERIAL_NAME != null">
-                and "MATERIAL_NAME" in
-                <foreach collection="MATERIAL_NAME" item="item" open="(" separator="," close=")">
-                    #{item}
-                </foreach>
-            </if>
-            <if test="THEORETICAL_WEIGHT != null">
-                and "THEORETICAL_WEIGHT" in
-                <foreach collection="THEORETICAL_WEIGHT" item="item" open="(" separator="," close=")">
+            <if test="inboundId != null">
+                and "inboundId" in
+                <foreach collection="inboundId" item="item" open="(" separator="," close=")">
                     #{item}
                 </foreach>
             </if>
-            <if test="BUNDLE_WEIGHT != null">
-                and "BUNDLE_WEIGHT" in
-                <foreach collection="BUNDLE_WEIGHT" item="item" open="(" separator="," close=")">
+            <if test="materialName != null">
+                and "materialName" in
+                <foreach collection="materialName" item="item" open="(" separator="," close=")">
                     #{item}
                 </foreach>
             </if>
-            <if test="MEASURE_NAME != null">
-                and "MEASURE_NAME" in
-                <foreach collection="MEASURE_NAME" item="item" open="(" separator="," close=")">
+            <if test="inboundTime != null">
+                and "inboundTime" in
+                <foreach collection="inboundTime" item="item" open="(" separator="," close=")">
                     #{item}
                 </foreach>
             </if>
-            <if test="PRODUCTION_DATE != null">
-                and "PRODUCTION_DATE" in
-                <foreach collection="PRODUCTION_DATE" item="item" open="(" separator="," close=")">
-                    to_date('${item}','yyyy-mm-dd hh24:mi:ss')
-                </foreach>
-            </if>
-            <if test="APERSONNEL_NAME != null">
-                and "APERSONNEL_NAME" in
-                <foreach collection="APERSONNEL_NAME" item="item" open="(" separator="," close=")">
+            <if test="isComplete != null">
+                and "isComplete" in
+                <foreach collection="isComplete" item="item" open="(" separator="," close=")">
                     #{item}
                 </foreach>
             </if>
-            <if test="BPERSONNEL_NAME != null">
-                and "BPERSONNEL_NAME" in
-                <foreach collection="BPERSONNEL_NAME" item="item" open="(" separator="," close=")">
+            <if test="warehouseName != null">
+                and "warehouseName" in
+                <foreach collection="warehouseName" item="item" open="(" separator="," close=")">
                     #{item}
                 </foreach>
             </if>
-            <if test="DPERSONNEL_NAME != null">
-                and "DPERSONNEL_NAME" in
-                <foreach collection="DPERSONNEL_NAME" item="item" open="(" separator="," close=")">
+            <if test="stackingNo != null">
+                and "stackingNo" in
+                <foreach collection="stackingNo" item="item" open="(" separator="," close=")">
                     #{item}
                 </foreach>
             </if>
-            <if test="SHIPPER_BRANCH_FACTORY != null">
-                and "SHIPPER_BRANCH_FACTORY" in
-                <foreach collection="SHIPPER_BRANCH_FACTORY" item="item" open="(" separator="," close=")">
+            <if test="gridGradationNumber != null">
+                and "gridGradationNumber" in
+                <foreach collection="gridGradationNumber" item="item" open="(" separator="," close=")">
                     #{item}
                 </foreach>
             </if>
-            <if test="PERSONNEL_WORKSHOP != null">
-                and "PERSONNEL_WORKSHOP" in
-                <foreach collection="PERSONNEL_WORKSHOP" item="item" open="(" separator="," close=")">
+            <if test="furnaceNumber != null">
+                and "furnaceNumber" in
+                <foreach collection="furnaceNumber" item="item" open="(" separator="," close=")">
                     #{item}
                 </foreach>
             </if>
-            <if test="INBOUND_TIME != null">
-                and "INBOUND_TIME" in
-                <foreach collection="INBOUND_TIME" item="item" open="(" separator="," close=")">
+            <if test="theoreticalWeight != null">
+                and "theoreticalWeight" in
+                <foreach collection="theoreticalWeight" item="item" open="(" separator="," close=")">
                     #{item}
                 </foreach>
             </if>