|
|
@ -187,4 +187,24 @@ |
|
|
<update id="updateFirstRecharge"> |
|
|
<update id="updateFirstRecharge"> |
|
|
update user set first_recharge = now() where jwcode = #{jwcode} and first_recharge is null |
|
|
update user set first_recharge = now() where jwcode = #{jwcode} and first_recharge is null |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
|
|
|
|
|
|
<!--根据订单号查订单--> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectAllOrderByOrderCode" resultType="com.example.demo.domain.entity.UserGoldRecord"> |
|
|
|
|
|
select * from user_gold_record where order_code = #{orderCode} and flag=1 |
|
|
|
|
|
ORDER BY create_time DESC |
|
|
|
|
|
limit 1 |
|
|
|
|
|
</select> |
|
|
|
|
|
<select id="getAdminMarket" resultType="java.lang.String"> |
|
|
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
<!--根据订单号查未审核订单--> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectOrderByOrderCode" resultType="com.example.demo.domain.entity.UserGoldRecord"> |
|
|
|
|
|
select * from user_gold_record |
|
|
|
|
|
where order_code = #{orderCode} and audit_status = 0 |
|
|
|
|
|
and flag=1 |
|
|
|
|
|
ORDER BY create_time DESC |
|
|
|
|
|
limit 1 |
|
|
|
|
|
</select> |
|
|
</mapper> |
|
|
</mapper> |