src/main/resources/mapper/LocDetlMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/resources/mapper/LocMastMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/resources/mapper/LocDetlMapper.xml
@@ -71,23 +71,23 @@ select * from ( select ROW_NUMBER() over (order by a."appe_time",a."matnr",a."loc_no") as row, ROW_NUMBER() over (order by a."appe_time",a."MATNR",a."LOC_NO") as ROW, a.* from "SOURCE"."asr_loc_detl" a left join "SOURCE"."asr_loc_mast" b on a."loc_no" = b."loc_no" left join "SOURCE"."asr_loc_mast" b on a."LOC_NO" = b."LOC_NO" where 1=1 and b."loc_sts" = 'F' and b."LOC_STS" = 'F' <include refid="stockOutCondition"></include> ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) ) t where t.ROW between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) </select> <select id="getStockOutPageCount" parameterType="java.util.Map" resultType="java.lang.Integer"> select count(1) from "SOURCE"."asr_loc_detl" a left join "SOURCE"."asr_loc_mast" b on a."loc_no" = b."loc_no" left join "SOURCE"."asr_loc_mast" b on a."LOC_NO" = b."LOC_NO" where 1=1 and b."loc_sts" = 'F' and b."LOC_STS" = 'F' <include refid="stockOutCondition"></include> </select> </mapper> src/main/resources/mapper/LocMastMapper.xml
@@ -45,31 +45,31 @@ <select id="queryFreeLocMast" resultMap="BaseResultMap"> select top 1 * from "SOURCE"."asr_loc_mast" where "row1"=#{row} and "loc_sts"='O' where "ROW1"=#{row} and "LOC_STS"='O' <if test="locType1 != null"> and "loc_type1" = #{locType1} and "LOC_TYPE1" = #{locType1} </if> order by NEWID(),"lev1" asc,"bay1" asc order by NEWID(),"LEV1" asc,"BAY1" asc </select> <select id="queryDemoSourceLoc" resultMap="BaseResultMap"> select top 1 * from "SOURCE"."asr_loc_mast" where "crn_no" = #{crnNo} and "loc_sts"='D' select top 1 * from "SOURCE"."asr_loc_mast" where "CRN_NO" = #{crnNo} and "LOC_STS"='D' ORDER BY NEWID() </select> <select id="queryDemoLoc" resultMap="BaseResultMap"> select top 1 * from "SOURCE"."asr_loc_mast" where "crn_no" = #{crnNo} and "loc_sts" = 'O' select top 1 * from "SOURCE"."asr_loc_mast" where "CRN_NO" = #{crnNo} and "LOC_STS" = 'O' ORDER BY NEWID() </select> <select id="selectByLocNo" resultMap="BaseResultMap"> select * from "SOURCE"."asr_loc_mast" where "loc_no" = #{locNo} where "LOC_NO" = #{locNo} </select> <select id="selectLocByLev" resultMap="BaseResultMap"> SELECT * FROM "SOURCE"."asr_loc_mast" WHERE "lev1" = #{lev} SELECT * FROM "SOURCE"."asr_loc_mast" WHERE "LEV1" = #{lev} </select> </mapper>