| | |
| | | <result column="update_by" property="updateBy" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="memo" property="memo" /> |
| | | <result column="move_status" property="moveStatus" /> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | where 1=1 |
| | | and id = #{orderId} |
| | | </update> |
| | | <update id="batchUpdateSettleByOrderNos"> |
| | | update man_order |
| | | set settle = 6 |
| | | where order_no in |
| | | <foreach collection="list" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <select id="selectComplete" resultMap="BaseResultMap"> |
| | | select top 5 * |
| | | select top 100 * |
| | | from man_order |
| | | where 1=1 |
| | | and settle = 4 |
| | |
| | | order by create_time asc |
| | | </select> |
| | | |
| | | <select id="selectComplete8" resultMap="BaseResultMap"> |
| | | select top 5 * |
| | | from man_order |
| | | where 1=1 |
| | | and settle = 8 |
| | | and status = 1 |
| | | order by create_time asc |
| | | </select> |
| | | |
| | | <insert id="addToLogTable"> |
| | | INSERT INTO man_order_log SELECT * FROM man_order WHERE id = #{id} |
| | | </insert> |
| | | |
| | | <select id="selectorderNoL" resultMap="BaseResultMap"> |
| | | select top 10 * |
| | | from man_order |
| | | where 1=1 |
| | | <if test="orderNo != null"> |
| | | and order_no = #{orderNo} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectOrderMoveStatus" resultMap="BaseResultMap"> |
| | | select top 1 * |
| | | from man_order |
| | | where 1=1 |
| | | and move_status = 2 |
| | | </select> |
| | | |
| | | <select id="selectOrderMoveStatusInitial" resultMap="BaseResultMap"> |
| | | select top 1 * |
| | | from man_order |
| | | where 1=1 |
| | | and move_status = 1 |
| | | order by update_time |
| | | </select> |
| | | |
| | | </mapper> |