| | |
| | |
|
| | | SELECT * FROM coins_order a where a.order_no= #{orderNo}
|
| | | </select>
|
| | | |
| | |
|
| | |
|
| | | <select id="selectAllEntrustingCoinOrderList" resultType="com.xcong.excoin.modules.coin.entity.OrderCoinsEntity">
|
| | | select *
|
| | | from coins_order
|
| | | where order_status=1
|
| | | <if test="list != null">
|
| | | and symbol not in
|
| | | <foreach collection="list" separator="," item="item" open="(" close=")">
|
| | | #{item}
|
| | | </foreach>
|
| | | </if>
|
| | | </select>
|
| | |
|
| | | <select id="selectCoinOrderOnTrade" resultType="com.xcong.excoin.modules.coin.entity.OrderCoinsEntity">
|
| | | select *
|
| | | from coins_order
|
| | | where order_status=1
|
| | | <if test="list != null">
|
| | | and symbol in
|
| | | <foreach collection="list" separator="," item="item" open="(" close=")">
|
| | | #{item}
|
| | | </foreach>
|
| | | </if>
|
| | | </select>
|
| | |
|
| | | <update id="updateDeal" parameterType="map">
|
| | | update coins_order
|
| | | <set>
|
| | | <if test="dealCnt!=null">
|
| | | deal_cnt = deal_cnt+#{dealCnt},
|
| | | </if>
|
| | | <if test="dealAmount!=null">
|
| | | deal_amount = deal_amount+#{dealAmount},
|
| | | </if>
|
| | | </set>
|
| | | where id = #{id}
|
| | | </update>
|
| | | </mapper>
|