| | |
| | | order by update_time asc |
| | | </select> |
| | | |
| | | <select id="selectComplete1" resultMap="BaseResultMap"> |
| | | <select id="selectCompleteSave" resultMap="BaseResultMap"> |
| | | select top 5 * |
| | | from man_order |
| | | where 1=1 |
| | | and settle = 5 |
| | | and status = 1 |
| | | and settle = 5 |
| | | and status = 1 |
| | | order by update_time asc |
| | | </select> |
| | | |
| | | <select id="selectComplete2" resultMap="BaseResultMap"> |
| | | <select id="selectComplete1" resultMap="BaseResultMap"> |
| | | select top 5 * |
| | | from man_order |
| | | where 1=1 |
| | |
| | | order by update_time asc |
| | | </select> |
| | | |
| | | <select id="selectComplete2" resultMap="BaseResultMap"> |
| | | select top 5 * |
| | | from man_order |
| | | where 1=1 |
| | | and settle = 7 |
| | | and status = 1 |
| | | order by update_time asc |
| | | </select> |
| | | |
| | | <select id="selectCompleteMome0" resultMap="BaseResultMap"> |
| | | select top 5 * |
| | | from man_order |
| | | where 1=1 |
| | | and memo = '0' |
| | | and status = 1 |
| | | order by update_time asc |
| | | </select> |
| | | |
| | | <select id="selectCompleteMome1" resultMap="BaseResultMap"> |
| | | select top 5 * |
| | | from man_order |
| | | where 1=1 |
| | | and memo = '1' |
| | | and status = 1 |
| | | order by update_time asc |
| | | </select> |
| | | |
| | | <select id="selectCompleteMome2" resultMap="BaseResultMap"> |
| | | select top 5 * |
| | | from man_order |
| | | where 1=1 |
| | | and memo = '2' |
| | | and status = 1 |
| | | order by update_time asc |
| | | </select> |
| | | |
| | | <select id="selectCompleteMome3" resultMap="BaseResultMap"> |
| | | select top 5 * |
| | | from man_order |
| | | where 1=1 |
| | | and memo = '3' |
| | | and status = 1 |
| | | order by update_time asc |
| | | </select> |
| | | <select id="selectInOrOutOrders" resultMap="BaseResultMap"> |
| | | SELECT * FROM man_order o left join man_doc_type d on o.doc_type = d.doc_id WHERE d.pakin = #{flag} and o.settle in (1,2) |
| | | </select> |