Helius
2021-05-20 ab4f788aaba47910e3edf0fe1b001e56cdea26db
src/main/resources/mapper/otc/OtcOrderDao.xml
@@ -41,6 +41,14 @@
    <update id="updateOrderStatusByOrderNo">
        update otc_order
        set status=#{status}
        <if test="payName != null and payName != ''">
            , pay_name = #{payName}
        </if>
        where order_no=#{orderNo}
    </update>
    <select id="selectOrderByOrderNoAndType" resultType="com.xcong.excoin.modules.otc.entity.OtcOrder">
        select * from otc_order
        where order_no=#{orderNo} and order_type=#{orderType}
    </select>
</mapper>