java110 лет назад: 3
Родитель
Сommit
0628b63b5b

+ 9 - 0
java110-bean/src/main/java/com/java110/dto/user/UserDto.java

@@ -59,6 +59,7 @@ public class UserDto extends PageDto implements Serializable {
     private String staffId;
 
     private String openId;
+    private String unionId;
 
     private String statusCd = "0";
 
@@ -337,4 +338,12 @@ public class UserDto extends PageDto implements Serializable {
     public void setUserIds(String[] userIds) {
         this.userIds = userIds;
     }
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
 }

+ 27 - 0
java110-db/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml

@@ -569,6 +569,9 @@
         <if test="key != null and key !=''">
             ,u_user_attr ub
         </if>
+        <if test="unionId != null and unionId !=''">
+            ,u_user_attr ua
+        </if>
         where 1= 1
         <if test="openId != null and openId != ''">
             and u.user_id = ua.user_id
@@ -576,6 +579,12 @@
             and ua.value = #{openId}
             and ua.status_cd = '0'
         </if>
+        <if test="unionId != null and unionId != ''">
+            and u.user_id = ua.user_id
+            and ua.spec_cd = '100201911002'
+            and ua.value = #{unionId}
+            and ua.status_cd = '0'
+        </if>
         <if test="key != null and key != ''">
             and u.user_id = ub.user_id
             and ub.spec_cd = '100202061602'
@@ -646,6 +655,9 @@
         <if test="openId != null and openId !=''">
             ,u_user_attr ua
         </if>
+        <if test="unionId != null and unionId !=''">
+            ,u_user_attr ua
+        </if>
         where 1= 1
         <if test="openId != null and openId != ''">
             and u.user_id = ua.user_id
@@ -653,6 +665,12 @@
             and ua.value = #{openId}
             and ua.status_cd = '0'
         </if>
+        <if test="unionId != null and unionId != ''">
+            and u.user_id = ua.user_id
+            and ua.spec_cd = '100201911002'
+            and ua.value = #{unionId}
+            and ua.status_cd = '0'
+        </if>
         <if test="bId != null and bId !=''">
             and u.b_id = #{bId}
         </if>
@@ -680,6 +698,9 @@
         <if test="openId != null and openId !=''">
             ,u_user_attr ua
         </if>
+        <if test="unionId != null and unionId !=''">
+            ,u_user_attr ua
+        </if>
         where 1= 1
         <if test="openId != null and openId != ''">
             and u.user_id = ua.user_id
@@ -687,6 +708,12 @@
             and ua.value = #{openId}
             and ua.status_cd = '0'
         </if>
+        <if test="unionId != null and unionId != ''">
+            and u.user_id = ua.user_id
+            and ua.spec_cd = '100201911002'
+            and ua.value = #{unionId}
+            and ua.status_cd = '0'
+        </if>
         <if test="bId != null and bId !=''">
             and u.b_id = #{bId}
         </if>