|
|
|
|
@ -3,45 +3,50 @@ |
|
|
|
|
<mapper namespace="org.springblade.erpdata.mapper.ErpDataLogisticsMapper"> |
|
|
|
|
<!-- 查询调拨单列表 --> |
|
|
|
|
<select id="queryAllocationMess" resultType="org.springblade.desk.logistics.pojo.vo.AllocationMessVO"> |
|
|
|
|
select ROWNUM no,a.* from dba_mgr.v_mes_rb_pkpqry a |
|
|
|
|
SELECT * FROM ( |
|
|
|
|
SELECT t1.*, ROWNUM no FROM ( |
|
|
|
|
SELECT a.* |
|
|
|
|
FROM dba_mgr.v_mes_rb_pkpqry a |
|
|
|
|
<where> |
|
|
|
|
<if test="dto.pkno != null and dto.pkno != ''"> |
|
|
|
|
AND pkno LIKE CONCAT('%', #{dto.pkno}, '%') |
|
|
|
|
AND a.pkno LIKE '%' || #{dto.pkno} || '%' |
|
|
|
|
</if> |
|
|
|
|
<if test="dto.prntno != null and dto.prntno != ''"> |
|
|
|
|
AND prntno LIKE CONCAT('%', #{dto.prntno}, '%') |
|
|
|
|
AND a.prntno LIKE '%' || #{dto.prntno} || '%' |
|
|
|
|
</if> |
|
|
|
|
<if test="dto.mtltmrk != null and dto.mtltmrk != ''"> |
|
|
|
|
AND mtltmrk = #{dto.mtltmrk} |
|
|
|
|
AND a.mtltmrk = #{dto.mtltmrk} |
|
|
|
|
</if> |
|
|
|
|
<if test="dto.prtlotno != null and dto.prtlotno != ''"> |
|
|
|
|
AND prtlotno = #{dto.prtlotno} |
|
|
|
|
AND a.prtlotno = #{dto.prtlotno} |
|
|
|
|
</if> |
|
|
|
|
<if test="dto.mono != null and dto.mono != ''"> |
|
|
|
|
AND mono = #{dto.mono} |
|
|
|
|
AND a.mono = #{dto.mono} |
|
|
|
|
</if> |
|
|
|
|
<if test="dto.schemer != null and dto.schemer != ''"> |
|
|
|
|
AND schemer = #{dto.schemer} |
|
|
|
|
AND a.schemer = #{dto.schemer} |
|
|
|
|
</if> |
|
|
|
|
<if test="dto.planner1 != null and dto.planner1 != ''"> |
|
|
|
|
AND planner1 = #{dto.planner1} |
|
|
|
|
AND a.planner1 = #{dto.planner1} |
|
|
|
|
</if> |
|
|
|
|
<if test="dto.warctlr != null and dto.warctlr != ''"> |
|
|
|
|
AND warctlr = #{dto.warctlr} |
|
|
|
|
AND a.warctlr = #{dto.warctlr} |
|
|
|
|
</if> |
|
|
|
|
<if test="dto.plandept != null and dto.plandept != ''"> |
|
|
|
|
AND plandept = #{dto.plandept} |
|
|
|
|
AND a.plandept = #{dto.plandept} |
|
|
|
|
</if> |
|
|
|
|
<if test="dto.prtclass != null and dto.prtclass != ''"> |
|
|
|
|
AND prtclass = #{dto.prtclass} |
|
|
|
|
AND a.prtclass = #{dto.prtclass} |
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
ORDER BY subpkdate DESC |
|
|
|
|
<if test="dto.pageNum != null"> |
|
|
|
|
WHERE no BETWEEN (#{dto.pageNum}-1)*#{dto.getPageSize} +1 AND #{dto.pageNum} * #{dto.getPageSize}; |
|
|
|
|
</if> |
|
|
|
|
ORDER BY a.subpkdate DESC |
|
|
|
|
) t1 |
|
|
|
|
WHERE ROWNUM <= #{dto.current} * #{dto.size} |
|
|
|
|
) |
|
|
|
|
WHERE no >= (#{dto.current} - 1) * #{dto.size} + 1 |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 查询调拨单数量 --> |
|
|
|
|
<select id="queryAllocationMessNum" resultType="java.lang.Integer"> |
|
|
|
|
SELECT COUNT(1) FROM dba_mgr.v_mes_rb_pkpqry |
|
|
|
|
|