自动化立体仓库 - WMS系统
pang.jiabao
7 天以前 6797af492e55d2e63a95ed8f6d86e274f85a09c3
src/main/resources/mapper/ViewInOutMapper.xml
@@ -19,9 +19,22 @@
         ]]>         
      </if>
</sql>
   <resultMap id="ViewInOutMap" type="com.zy.asrs.entity.ViewInOutBean">
      <result column="ymd" property="ymd"/>
      <result column="source_sta_no" property="source_sta_no"/>
      <result column="sto_qty" property="sto_qty"/>
      <result column="ret_qty" property="ret_qty"/>
      <result column="total_qty" property="total_qty"/>
      <!-- 查询条件字段(一般不从 SQL 返回,也写上不影响) -->
      <result column="begin_date" property="begin_date"/>
      <result column="end_date" property="end_date"/>
   </resultMap>
<!-- 分页查询所有信息 -->
<select id="queryViewInOutList" parameterType="com.zy.asrs.entity.ViewInOutBean" resultType="com.zy.asrs.entity.ViewInOutBean">
<select id="queryViewInOutList" parameterType="com.zy.asrs.entity.ViewInOutBean" resultMap="ViewInOutMap">
select * from ( 
select *,ROW_NUMBER() OVER(Order by ymd desc) as rowid
 from asr_sta_inout_view
@@ -61,5 +74,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>