Commit 0db5b9b78895d14363749697afa47fc3c916f990
1 parent
95df3085
feature(*): 新增查询续保成交的数据
- 升级sdk参数
Showing
3 changed files
with
25 additions
and
5 deletions
fw-valhalla-dao/src/main/resources/mapper/ClueTaskMapper.xml
... | ... | @@ -205,7 +205,10 @@ |
205 | 205 | and t1.type = #{condition.type} |
206 | 206 | </if> |
207 | 207 | <if test="condition.shopId !=null"> |
208 | - and t1.follow_shop = #{condition.shopId} | |
208 | + and t1.follow_shop in | |
209 | + <foreach collection="condition.shopId" item="id" index="index" open="(" close=")" separator=","> | |
210 | + #{id} | |
211 | + </foreach> | |
209 | 212 | </if> |
210 | 213 | <if test="condition.userId !=null"> |
211 | 214 | and t1.follow_user = #{condition.userId} | ... | ... |
fw-valhalla-domain/src/main/java/cn/fw/valhalla/domain/query/BeCompletedQuery.java
... | ... | @@ -4,6 +4,8 @@ import lombok.AllArgsConstructor; |
4 | 4 | import lombok.Data; |
5 | 5 | import lombok.NoArgsConstructor; |
6 | 6 | |
7 | +import java.util.List; | |
8 | + | |
7 | 9 | |
8 | 10 | /** |
9 | 11 | * 应成交查询参数 |
... | ... | @@ -25,7 +27,7 @@ public class BeCompletedQuery { |
25 | 27 | /** |
26 | 28 | * 门店id |
27 | 29 | */ |
28 | - private Long shopId; | |
30 | + private List<Long> shopId; | |
29 | 31 | /** |
30 | 32 | * 跟进开始时间 |
31 | 33 | */ | ... | ... |
fw-valhalla-sdk/src/main/java/cn/fw/valhalla/sdk/param/ShouldBeCompletedQuery.java
... | ... | @@ -2,10 +2,13 @@ package cn.fw.valhalla.sdk.param; |
2 | 2 | |
3 | 3 | import lombok.Data; |
4 | 4 | |
5 | -import javax.validation.constraints.NotNull; | |
5 | +import javax.validation.constraints.NotEmpty; | |
6 | 6 | import java.time.YearMonth; |
7 | 7 | import java.time.ZoneId; |
8 | +import java.util.Arrays; | |
9 | +import java.util.List; | |
8 | 10 | import java.util.Objects; |
11 | +import java.util.stream.Collectors; | |
9 | 12 | |
10 | 13 | /** |
11 | 14 | * 应成交台数查询 |
... | ... | @@ -25,8 +28,8 @@ public class ShouldBeCompletedQuery { |
25 | 28 | /** |
26 | 29 | * 门店id |
27 | 30 | */ |
28 | - @NotNull(message = "门店不能为空") | |
29 | - private Long shopId; | |
31 | + @NotEmpty(message = "门店不能为空") | |
32 | + private Long[] shopId; | |
30 | 33 | /** |
31 | 34 | * 跟进开始时间 [时间戳 默认为本月月初] |
32 | 35 | */ |
... | ... | @@ -53,4 +56,16 @@ public class ShouldBeCompletedQuery { |
53 | 56 | String timeStr = String.valueOf(endTime); |
54 | 57 | return timeStr.length() >= 10 ? timeStr.substring(0, 10) : timeStr; |
55 | 58 | } |
59 | + | |
60 | + public List<Long> getShopId() { | |
61 | + return Arrays.stream(shopId).collect(Collectors.toList()); | |
62 | + } | |
63 | + | |
64 | + public void setShopId(final Long... shopId) { | |
65 | + this.shopId = shopId; | |
66 | + } | |
67 | + | |
68 | + public void setShopId(final List<Long> shopIdList) { | |
69 | + this.shopId = shopIdList.toArray(new Long[0]); | |
70 | + } | |
56 | 71 | } | ... | ... |