#
mrzhssss
2022-04-26 d17c089f1d7ff3be848b05161917346e7f664a1d
src/main/resources/mapper/OrderMapper.xml
@@ -44,14 +44,30 @@
    </resultMap>
    <update id="updateSettle">
        update man_receive set settle = #{settle} where 1=1 and order_no = #{orderNo} and host_id = #{hostId}
        update man_order set settle = #{settle} where 1=1 and order_no = #{orderNo} and host_id = #{hostId}
    </update>
    <update id="updateStatus">
        UPDATE man_order set settle = 2, wave_no = null WHERE order_no = #{orderNo}
        UPDATE man_order set settle = 1 , wave_no = null WHERE order_no = #{orderNo}
    </update>
    <update id="changeSettleTo12">
        UPDATE man_order set settle = 12 Where 1 = 1 and order_no = #{orderNo}
    </update>
    <update id="updateWrkSts">
        update man_order
        set wrk_sts = #{wrkSts}
        , update_by = #{userId}
        , update_time = getdate()
        where 1=1
        <if test="hostId != null and hostId != ''">
            and host_id = #{hostId}
        </if>
        <if test="wrkNo != null and wrkNo != ''">
            and wrk_no = #{wrkNo}
        </if>
        <if test="docNum != null and docNum != ''">
            and order_no = #{docNum}
        </if>
    </update>
    <select id="getPage" resultMap="BaseResultMap">
        select * from