| | |
| | | |
| | | <select id="selectInPage" resultType="com.xcong.excoin.modules.coin.entity.GbzOrderEntity"> |
| | | select * from gbz_order |
| | | <where> |
| | | <if test="record != null" > |
| | | <if test="record.memberId != null"> |
| | | member_id=#{record.memberId} |
| | | </if> |
| | | </if> |
| | | </where> |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | <select id="selectOrderTotalAmount" resultType="java.math.BigDecimal"> |
| | | select sum(cnt) |
| | | from gbz_order |
| | | where member_id=#{memberId} and status=1 |
| | | </select> |
| | | |
| | | <update id="updateStatus"> |
| | | update gbz_order |
| | | set status = 2 |
| | | where member_id=#{memberId} |
| | | </update> |
| | | </mapper> |