Helius
2021-05-21 53eb8720b96e1ce038a887695d5a6542c1c2e7fe
src/main/resources/mapper/otc/OtcOrderDao.xml
@@ -14,6 +14,7 @@
            a.order_no orderNo,
            a.unit_price unitPrice,
            a.coin_amount amount,
            a.status status,
            a.total_amount totalAmount,
            a.create_time creatTime,
            a.order_type orderType,
@@ -37,4 +38,18 @@
            </if>
        </where>
    </select>
    <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>