Browse Source

8月24日消耗退款

lijianlin/feature-20250728171217-三期金豆消费相关
sunjiabei 1 month ago
parent
commit
54848e21ea
  1. 2
      src/main/java/com/example/demo/Mysql/MysqlServiceImpl.java
  2. 4
      src/main/resources/mapper/AuditMapper.xml

2
src/main/java/com/example/demo/Mysql/MysqlServiceImpl.java

@ -85,7 +85,7 @@ public class MysqlServiceImpl implements MysqlService {
"""; """;
// 插入 MySQL 数据的 SQL 语句 // 插入 MySQL 数据的 SQL 语句
String insertSql = "INSERT INTO user_gold_record (order_code, jwcode, sum_gold, permanent_gold, free_june, free_december, " +
String insertSql = "INSERT INTO user_gold_record_sun (order_code, jwcode, sum_gold, permanent_gold, free_june, free_december, " +
"task_gold, pay_platform, goods_name, refund_type, refund_model, remark, type, admin_id, " + "task_gold, pay_platform, goods_name, refund_type, refund_model, remark, type, admin_id, " +
"audit_status, create_time, flag, update_time, audit_time, is_refund) " + "audit_status, create_time, flag, update_time, audit_time, is_refund) " +
"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";

4
src/main/resources/mapper/AuditMapper.xml

@ -45,7 +45,7 @@
select * from user_gold_record select * from user_gold_record
where order_code = #{orderCode} and audit_status = 0 where order_code = #{orderCode} and audit_status = 0
and flag=1 and flag=1
ORDER BY create_time DESC
ORDER BY audit_time DESC
limit 1 limit 1
</select> </select>
<!--多条件查询充值审核订单--> <!--多条件查询充值审核订单-->
@ -175,7 +175,7 @@
<select id="selectAllOrderByOrderCode" resultType="com.example.demo.domain.entity.UserGoldRecord"> <select id="selectAllOrderByOrderCode" resultType="com.example.demo.domain.entity.UserGoldRecord">
select * from user_gold_record where order_code = #{orderCode} and flag=1 select * from user_gold_record where order_code = #{orderCode} and flag=1
ORDER BY create_time DESC
ORDER BY audit_time DESC
limit 1 limit 1
</select> </select>
<select id="getAdminMarket" resultType="java.lang.String"> <select id="getAdminMarket" resultType="java.lang.String">

Loading…
Cancel
Save