| | |
| | | and order_no = #{orderNo} |
| | | and settle != #{status} |
| | | </update> |
| | | <update id="updateStatusByOrderNo"> |
| | | update man_order set account_day = #{status},update_time = getdate(),update_by = #{userId} where order_no = #{orderNo} |
| | | </update> |
| | | |
| | | <select id="selectComplete" resultMap="BaseResultMap"> |
| | | select |
| | |
| | | and order_no = #{orderNo} |
| | | </if> |
| | | </select> |
| | | <select id="selectStockUpOrderDetl" resultType="java.lang.String"> |
| | | select |
| | | DISTINCT md.brand |
| | | from |
| | | man_order mo |
| | | left join man_order_detl md on |
| | | mo.order_no = md.order_no |
| | | where |
| | | mo.doc_type = 21 |
| | | and mo.account_day = 1 |
| | | and md.inspect = 0 |
| | | and mo.settle = 1 |
| | | </select> |
| | | |
| | | </mapper> |