自动化立体仓库 - WMS系统
#
zjj
2024-09-23 539d9ffc477d28a23a923b41fdeabc8c37c99ce6
src/main/resources/mapper/ManPakOutMapper.xml
@@ -6,6 +6,9 @@
        <if test="docnum != null and docnum != '' ">
            and doc_num like '%' + #{docnum} + '%'
        </if>
        <if test="custName != null and custName != ''">
            and cust_name like '%' + #{custName} + '%'
        </if>
        <if test="stime != null">
            and create_time >= #{stime}
        </if>
@@ -20,11 +23,11 @@
    <select id="selectPakOut" resultType="com.zy.asrs.entity.param.PakOutDTO">
        select * from (
          SELECT status, doc_num,MAX(create_time) as create_time, cust_name as custName FROM man_pakout
          SELECT status, doc_num,MAX(create_time) as create_time,MAX(update_time) as update_time, cust_name as custName FROM man_pakout
           where 1=1
            <include refid="selectPakOutSql"></include>
          GROUP BY doc_num,cust_name,status
      ) t ORDER BY status
      ) t ORDER BY status,update_time DESC
        OFFSET ((#{curr}-1)*#{limit}) ROWS
        FETCH NEXT #{limit} ROWS ONLY;