소스 검색

Merge branch 'v3.5' of http://git.ycjcjy.com/zhiyuxing/estateagents into v3.5

魏熙美 5 년 전
부모
커밋
43888884d1
2개의 변경된 파일20개의 추가작업 그리고 9개의 파일을 삭제
  1. 3
    0
      src/main/java/com/huiju/estateagents/controller/TaPersonController.java
  2. 17
    9
      src/main/resources/mapper/HelpInitiateRecordMapper.xml

+ 3
- 0
src/main/java/com/huiju/estateagents/controller/TaPersonController.java 파일 보기

166
             QueryWrapper<TaChannel> queryWrapper = new QueryWrapper();
166
             QueryWrapper<TaChannel> queryWrapper = new QueryWrapper();
167
             queryWrapper.eq("channel_code",channelCode);
167
             queryWrapper.eq("channel_code",channelCode);
168
             TaChannel channel = taChannelService.getOne(queryWrapper);
168
             TaChannel channel = taChannelService.getOne(queryWrapper);
169
+            if (null == channel){
170
+                return ResponseBean.error("渠道码不存在",ResponseBean.ERROR_UNAVAILABLE);
171
+            }
169
             QueryWrapper<TaChannelPerson>taChannelPersonQueryWrapper = new QueryWrapper<>();
172
             QueryWrapper<TaChannelPerson>taChannelPersonQueryWrapper = new QueryWrapper<>();
170
             taChannelPersonQueryWrapper.eq("person_id",person.getPersonId());
173
             taChannelPersonQueryWrapper.eq("person_id",person.getPersonId());
171
             taChannelPersonQueryWrapper.eq("channel_id",channel.getChannelId());
174
             taChannelPersonQueryWrapper.eq("channel_id",channel.getChannelId());

+ 17
- 9
src/main/resources/mapper/HelpInitiateRecordMapper.xml 파일 보기

73
     b.phone as phone
73
     b.phone as phone
74
     from ta_help_initiate_record b
74
     from ta_help_initiate_record b
75
     where b.help_activity_id =  #{helpActivityId}
75
     where b.help_activity_id =  #{helpActivityId}
76
-    <if test="condition == 'helpSucceed'">
77
-        and b.status = 1
78
-    </if>
79
-    <if test="condition == 'helpUnfinished'">
80
-        and b.status = 2
81
-    </if>
82
-    <if test="tel != null and tel != ''">
83
-        and  b.phone like concat('%',#{tel},'%')
84
-    </if>
76
+        <if test="condition == 'helpSucceed'">
77
+            AND b.verification !='null'
78
+            AND b.verification !=''
79
+        </if>
80
+        <if test="condition == 'helpUnderway'">
81
+            and (b.verification is null OR b.verification = '')
82
+            AND b.`status` = 1
83
+        </if>
84
+
85
+        <if test="condition == 'helpUnfinished'">
86
+            and (b.verification is null
87
+            OR b.verification = '')
88
+            AND b.`status` =  2
89
+        </if>
90
+        <if test="tel != null and tel != ''">
91
+            and  b.phone like concat('%',#{tel},'%')
92
+        </if>
85
      order by b.create_date desc
93
      order by b.create_date desc
86
      limit #{pageCode}, #{pageSize}
94
      limit #{pageCode}, #{pageSize}
87
     </select>
95
     </select>