| | |
| | | and status = 1 |
| | | order by update_time asc |
| | | </select> |
| | | |
| | | <select id="selectComplete1" resultMap="BaseResultMap"> |
| | | select top 5 * |
| | | from man_order |
| | | where 1=1 |
| | | and settle = 5 |
| | | and status = 1 |
| | | order by update_time asc |
| | | </select> |
| | | |
| | | <select id="selectComplete2" resultMap="BaseResultMap"> |
| | | select top 5 * |
| | | from man_order |
| | | where 1=1 |
| | | and settle = 6 |
| | | 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> |