#
Junjie
2024-08-14 4e02590562894bf6614bc3066f6689f1b00ea2ce
zy-asrs-common/src/main/resources/mapper/wms/ViewWorkInMapper.xml
@@ -38,12 +38,53 @@
      </if>
</sql>
   <sql id="viewWorkInConditionMapSql">
      <if test="locNo!=null and locNo!='' ">
         and loc_no like '%' + #{locNo} + '%'
      </if>
      <if test="matnr!=null and matnr!='' ">
         and matnr like '%' + #{matnr} + '%'
      </if>
      <if test="maktx!=null and maktx!='' ">
         and (maktx like '%' + #{maktx} + '%'
         or matnr like '%' + #{maktx} + '%'
         or lgnum like '%' + #{maktx} + '%'
         or tbnum like '%' + #{maktx} + '%'
         or tbpos like '%' + #{maktx} + '%'
         or zmatid like '%' + #{maktx} + '%'
         or maktx like '%' + #{maktx} + '%'
         or werks like '%' + #{maktx} + '%'
         or anfme like '%' + #{maktx} + '%'
         or altme like '%' + #{maktx} + '%'
         or zpallet like '%' + #{maktx} + '%'
         or bname like '%' + #{maktx} + '%'
         )
      </if>
      <if test="beginDate!=null and beginDate!='' ">
         <![CDATA[
         and io_time >= #{beginDate}
         ]]>
      </if>
      <if test="endDate!=null and endDate!='' ">
         <![CDATA[
         and io_time <= #{endDate}
         ]]>
      </if>
   </sql>
<!-- 入库统计 -->
<!-- 分页查询所有信息 -->
<select id="queryViewWorkInList" parameterType="com.zy.asrs.common.wms.entity.ViewWorkInBean" resultType="com.zy.asrs.common.wms.entity.ViewWorkInBean">
   select * from asr_wrkin_view
   where 1=1
   <include refid="viewWorkInConditionSql"></include>
   </select>
   <!-- 不分页查询所有信息,用于excel导出 -->
   <select id="getViewWorkInAll" parameterType="map" resultType="com.zy.asrs.common.wms.entity.ViewWorkInBean">
      select * from asr_wrkin_view
      where 1=1
      <include refid="viewWorkInConditionMapSql"></include>
</select>
<!-- 出库统计 -->
@@ -55,4 +96,13 @@
   <include refid="viewWorkInConditionSql"></include>
</select>
   <!-- 不分页查询所有信息,用于excel导出 -->
   <select id="getViewWorkOutAll" parameterType="map" resultType="com.zy.asrs.common.wms.entity.ViewWorkInBean">
      select *
      from asr_wrkout_view a
      where 1=1
      <include refid="viewWorkInConditionMapSql"></include>
      Order by a.io_time desc
   </select>
</mapper>