| | |
| | | <result column="memo" property="memo" /> |
| | | </resultMap> |
| | | |
| | | <resultMap id="CheckResultMap" type="com.zy.asrs.entity.CheckDetl"> |
| | | <result column="anfme" property="anfme" /> |
| | | <result column="matnr" property="matnr" /> |
| | | <result column="maktx" property="maktx" /> |
| | | <result column="specs" property="specs" /> |
| | | <result column="batch" property="batch" /> |
| | | </resultMap> |
| | | |
| | | <sql id="batchSeq"> |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="getStockCheck" resultMap="CheckResultMap"> |
| | | select * from ( |
| | | select |
| | | ROW_NUMBER() over (order by a.create_time desc) as row, |
| | | a.anfme, |
| | | a.matnr, |
| | | a.maktx, |
| | | a.specs, |
| | | a.batch |
| | | from asr_check_detl a |
| | | <include refid="stockOutCondition" /> |
| | | ) t |
| | | where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) |
| | | </select> |
| | | |
| | | |
| | | <select id="getStockCheckCount" parameterType="java.util.Map" resultType="java.lang.Integer"> |
| | | select count(1) |
| | | from asr_check_detl a |
| | | <include refid="stockOutCondition" /> |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | <select id="getStockStatisCount" parameterType="java.util.Map" resultType="java.lang.Integer"> |