Procházet zdrojové kódy

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

魏熙美 před 5 roky
rodič
revize
43888884d1

+ 3
- 0
src/main/java/com/huiju/estateagents/controller/TaPersonController.java Zobrazit soubor

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

+ 17
- 9
src/main/resources/mapper/HelpInitiateRecordMapper.xml Zobrazit soubor

@@ -73,15 +73,23 @@
73 73
     b.phone as phone
74 74
     from ta_help_initiate_record b
75 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 93
      order by b.create_date desc
86 94
      limit #{pageCode}, #{pageSize}
87 95
     </select>