自动化立体仓库 - WMS系统
pang.jiabao
2025-10-23 0916bb4ea987c0599b6af6bb8dd251a071770e05
src/main/resources/mapper/ViewInOutMapper.xml
@@ -24,7 +24,7 @@
<select id="queryViewInOutList" parameterType="com.zy.asrs.entity.ViewInOutBean" resultType="com.zy.asrs.entity.ViewInOutBean">
select * from ( 
select *,ROW_NUMBER() OVER(Order by ymd desc) as rowid
 from asr_sta_inout_view
 from man_loc_InOut_view
<where>
   1=1
    <include refid="viewInOutConditionSql"></include>
@@ -39,7 +39,7 @@
</select>
<select id="getViewInOutCount" parameterType="com.zy.asrs.entity.ViewInOutBean"   resultType="Integer">
select count(1) from asr_sta_inout_view a
select count(1) from man_loc_InOut_view a
<where>
<![CDATA[
   1=1
@@ -61,5 +61,23 @@
   ]]>
</where>
</select>
    <select id="selectWorkCountInSum" resultType="java.lang.Integer">
      SELECT SUM(anfme) FROM asr_wrkin_count_view WHERE 1=1 AND
      (oneday > #{start}
      AND
      oneday &lt; #{end})
      <if test="matnr != null and matnr !=''">
         and matnr = #{matnr}
      </if>
   </select>
   <select id="selectWorkCountOutSum" resultType="java.lang.Integer">
      SELECT SUM(anfme) FROM asr_wrkout_count_view WHERE 1=1 AND
      (oneday > #{start}
      AND
      oneday &lt; #{end})
      <if test="matnr != null and matnr !=''">
         and matnr = #{matnr}
      </if>
   </select>
</mapper>