| | |
| | | mo.create_time asc |
| | | </select> |
| | | |
| | | <select id="selectComplete2" resultMap="BaseResultMap"> |
| | | select |
| | | top 5 mo.* |
| | | from |
| | | man_order mo |
| | | inner join man_doc_type mt on |
| | | mo.doc_type = mt.doc_id |
| | | where |
| | | mt.pakout = 1 |
| | | and mo.settle = 5 |
| | | and mo.status = 1 |
| | | and mo.doc_type = 26 |
| | | order by |
| | | mo.create_time asc |
| | | </select> |
| | | |
| | | <insert id="addToLogTable"> |
| | | INSERT INTO man_order_log SELECT * FROM man_order WHERE id = #{id} |
| | | </insert> |
| | |
| | | where |
| | | mo.doc_type = 21 |
| | | and mo.settle in(1, 2) |
| | | <if test="orderNo != ''"> |
| | | and mo.order_no = #{orderNo} |
| | | </if> |
| | | GROUP BY |
| | | mo.order_no |
| | | </select> |
| | | <select id="selectOrderByOrderNo" resultMap="BaseResultMap"> |
| | | select * |
| | | from man_order |
| | | where order_no = #{orderNo} |
| | | </select> |
| | | <select id="getOrderNosByDocType" resultType="String"> |
| | | select order_no |
| | | from man_order |
| | | where doc_type =#{docType} |
| | | and status = 0 |
| | | </select> |
| | | |
| | | </mapper> |