| | |
| | | |
| | | <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; |
| | | |