Browse Source

处理前端数据问题

anderx 3 years ago
parent
commit
69ddd16974

+ 2 - 2
src/main/java/com/goafanti/common/mapper/UserMidMapper.xml

@@ -464,7 +464,7 @@
     b.`member` ,b.chargeback ,b.big_customer bigCustomer,b.follow_aname followAname
     from user a left join user_mid b on a.id=b.uid  left join admin c on a.aid=c.id
     left join department d on c.department_id =d.id
-    where 1=1
+    where a.share_type =2
       <if test="userName != null">
         and a.nickname like concat('%',#{userName},'%')
       </if>
@@ -511,7 +511,7 @@
   <select id="selectSignSummaryCount" resultType="integer">
     select count(*)
     from user a left join user_mid b on a.id=b.uid  left join admin c on a.aid=c.id
-    where 1=1
+    where a.share_type = 2
     <if test="userName != null">
       and a.nickname like concat('%',#{userName},'%')
     </if>

+ 5 - 5
src/main/resources/props/config_local.properties

@@ -1,12 +1,12 @@
 dev.name=local
 jdbc.driverClassName=com.mysql.jdbc.Driver
-#jdbc.url=jdbc\:mysql://localhost:3306/aft20220318?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
+jdbc.url=jdbc\:mysql://localhost:3306/aft20220318?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
 #jdbc.url=jdbc\:mysql://localhost:3306/aft?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
-#jdbc.username=root
-#jdbc.password=123456
-jdbc.url=jdbc:mysql://101.37.32.31:3306/aft?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
 jdbc.username=root
-jdbc.password=aftdev
+jdbc.password=123456
+#jdbc.url=jdbc:mysql://101.37.32.31:3306/aft?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
+#jdbc.username=root
+#jdbc.password=aftdev
 jdbc.validationQuery=SELECT 'x'
 jdbc.initialSize=3
 jdbc.maxActive=20