| | |
| | | select |
| | | a.id, |
| | | b.id mbId |
| | | ,b.nikename nickname |
| | | ,c.name nickname |
| | | ,a.unit_price unitPrice |
| | | ,a.remain_coin_amount amount |
| | | ,a.limit_min_amount min |
| | |
| | | ,b.total_order_cnt orderCnt |
| | | ,b.finish_ratio finishRatio |
| | | from otc_entrust_order a |
| | | left join otc_market_bussiness b on a.mb_id=b.id |
| | | left join otc_market_bussiness b on a.member_id=b.member_id |
| | | left join member c on a.member_id=c.id |
| | | <where> |
| | | a.status=1 |
| | | <if test="record != null"> |
| | |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <update id="updateRemainAmount"> |
| | | update otc_entrust_order |
| | | set remain_coin_amount = remain_coin_amount + ${amount} |
| | | where id=#{id} |
| | | </update> |
| | | </mapper> |