Browse Source

8.9修改地区问题

huangqizheng/feature-20250809184038-研发部校验
huangqizhen 1 week ago
parent
commit
31ce4cbed3
  1. 9
      src/main/java/com/example/demo/Mysql/MysqlServiceImpl.java
  2. 7
      src/main/resources/mapper/ConsumeMapper.xml
  3. 2
      src/main/resources/mapper/GoldDetailMapper.xml
  4. 7
      src/main/resources/mapper/RechargeMapper.xml
  5. 7
      src/main/resources/mapper/RefundMapper.xml

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

@ -143,15 +143,16 @@ public class MysqlServiceImpl implements MysqlService {
if (operation_platform.equals("1")){ if (operation_platform.equals("1")){
mysqlStmt.setString(8, "ERP"); mysqlStmt.setString(8, "ERP");
} }
if (operation_platform.equals("2")){
else if (operation_platform.equals("2")){
mysqlStmt.setString(8, "HomilyLink"); mysqlStmt.setString(8, "HomilyLink");
} }
if(operation_platform.equals("3")){
else if(operation_platform.equals("3")){
mysqlStmt.setString(8, "HomilyChart"); mysqlStmt.setString(8, "HomilyChart");
} }
if(operation_platform.equals("4")){
else if(operation_platform.equals("4")){
continue; continue;
}if(operation_platform.equals("0")){
}
else if(operation_platform.equals("0")){
mysqlStmt.setString(8, "初始化金币"); mysqlStmt.setString(8, "初始化金币");
} }
else { else {

7
src/main/resources/mapper/ConsumeMapper.xml

@ -96,11 +96,10 @@
<where> <where>
ugr.type = 1 AND ugr.flag = 1 ugr.type = 1 AND ugr.flag = 1
<if test="markets != null and markets.size() > 0 and '9999' not in markets and '9' not in markets"> <if test="markets != null and markets.size() > 0 and '9999' not in markets and '9' not in markets">
AND (
<foreach collection="markets" item="market" open="" close="" separator=" OR ">
u.market = #{market}
AND u.market IN
<foreach collection="markets" item="market" open="(" separator="," close=")">
#{market}
</foreach> </foreach>
)
</if> </if>
<if test="jwcode != null and jwcode != ''"> <if test="jwcode != null and jwcode != ''">
AND ugr.jwcode = #{jwcode} AND ugr.jwcode = #{jwcode}

2
src/main/resources/mapper/GoldDetailMapper.xml

@ -62,7 +62,7 @@
</if> </if>
<if test="markets!= null and markets.size > 0"> <if test="markets!= null and markets.size > 0">
AND user.market IN AND user.market IN
<foreach collection="markets" item="markets" open="(" separator="," close=")">
<foreach collection="markets" item="market" open="(" separator="," close=")">
#{market} #{market}
</foreach> </foreach>
</if> </if>

7
src/main/resources/mapper/RechargeMapper.xml

@ -100,11 +100,10 @@
AND ugr.flag = 1 AND ugr.flag = 1
<!-- 判断 market 是否不为总部且 markets 不为空 --> <!-- 判断 market 是否不为总部且 markets 不为空 -->
<if test="markets != null and markets.size() > 0 and '9999' not in markets and '9' not in markets"> <if test="markets != null and markets.size() > 0 and '9999' not in markets and '9' not in markets">
AND (
<foreach collection="markets" item="market" open="" close="" separator=" OR ">
u.market = #{market}
AND u.market IN
<foreach collection="markets" item="market" open="(" separator="," close=")">
#{market}
</foreach> </foreach>
)
</if> </if>
<if test="jwcode != null and jwcode != ''"> <if test="jwcode != null and jwcode != ''">
AND ugr.jwcode = #{jwcode} AND ugr.jwcode = #{jwcode}

7
src/main/resources/mapper/RefundMapper.xml

@ -98,11 +98,10 @@
<where> <where>
ugr.type = 2 AND ugr.audit_status IN (1,3) AND ugr.flag = 1 ugr.type = 2 AND ugr.audit_status IN (1,3) AND ugr.flag = 1
<if test="markets != null and markets.size() > 0 and '9999' not in markets and '9' not in markets"> <if test="markets != null and markets.size() > 0 and '9999' not in markets and '9' not in markets">
AND (
<foreach collection="markets" item="market" open="" close="" separator=" OR ">
u.market = #{market}
AND u.market IN
<foreach collection="markets" item="market" open="(" separator="," close=")">
#{market}
</foreach> </foreach>
)
</if> </if>
<if test="jwcode != null and jwcode != ''"> <if test="jwcode != null and jwcode != ''">
AND ugr.jwcode = #{jwcode} AND ugr.jwcode = #{jwcode}

Loading…
Cancel
Save