Kaynağa Gözat

解决查询库区仓容为0查不出来

lfy 2 hafta önce
ebeveyn
işleme
7ee0edd8e2

+ 3 - 3
delivery-module-core/delivery-module-core-biz/src/main/resources/mapper/dwxx/DwxxMapper.xml

@@ -81,7 +81,7 @@
81 81
                 and ck.xzqhdm like #{pageReqVO.areaCode}
82 82
             </if>
83 83
             <if test="pageReqVO.kqStart!=null and pageReqVO.kqEnd!=null ">
84
-                and t1.sjcrNum between #{pageReqVO.kqStart} and #{pageReqVO.kqEnd}
84
+                and IFNULL(t1.sjcrNum, 0)between #{pageReqVO.kqStart} and #{pageReqVO.kqEnd}
85 85
             </if>
86 86
             <if test="pageReqVO.kqStart!=null  and pageReqVO.kqEnd==null ">
87 87
                 and t1.sjcrNum <![CDATA[>=]]>  #{pageReqVO.kqStart}
@@ -162,7 +162,7 @@
162 162
                 </otherwise>
163 163
             </choose>
164 164
             <if test="pageReqVO.kqStart!=null  and pageReqVO.kqEnd!=null">
165
-                and t1.sjcrNum between #{pageReqVO.kqStart} and #{pageReqVO.kqEnd}
165
+                and IFNULL(t1.sjcrNum, 0) between #{pageReqVO.kqStart} and #{pageReqVO.kqEnd}
166 166
             </if>
167 167
             <if test="pageReqVO.kqStart!=null  and pageReqVO.kqEnd==null">
168 168
                 and t1.sjcrNum <![CDATA[>=]]>  #{pageReqVO.kqStart}
@@ -280,7 +280,7 @@
280 280
                 </otherwise>
281 281
             </choose>
282 282
             <if test="pageReqVO.kqStart!=null and pageReqVO.kqEnd!=null">
283
-                and t1.sjcrNum between #{pageReqVO.kqStart} and #{pageReqVO.kqEnd}
283
+                and IFNULL(t1.sjcrNum, 0) between #{pageReqVO.kqStart} and #{pageReqVO.kqEnd}
284 284
             </if>
285 285
             <if test="pageReqVO.kqStart!=null and pageReqVO.kqEnd==null ">
286 286
                 and t1.sjcrNum <![CDATA[>=]]>  #{pageReqVO.kqStart}