|
|
@@ -14,6 +14,7 @@ import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.List;
|
|
|
import java.util.Optional;
|
|
|
|
|
|
@@ -39,6 +40,8 @@ public class SysCorpFollowController {
|
|
|
|
|
|
private final CorpUserFollowRelationMapper corpUserFollowRelationMapper;
|
|
|
|
|
|
+ private final HttpServletRequest request;
|
|
|
+
|
|
|
/**
|
|
|
* 新增客服
|
|
|
*/
|
|
|
@@ -71,7 +74,7 @@ public class SysCorpFollowController {
|
|
|
*/
|
|
|
@GetMapping("/get")
|
|
|
public Result<List<SysCorpFollowView>> get() {
|
|
|
- List<SysCorpFollowView> sysCorpFollowViews = beanSearcher.searchAll(SysCorpFollowView.class, MapUtils.builder().build());
|
|
|
+ List<SysCorpFollowView> sysCorpFollowViews = beanSearcher.searchAll(SysCorpFollowView.class, MapUtils.flatBuilder(request.getParameterMap()).build());
|
|
|
sysCorpFollowViews.forEach(e->{
|
|
|
Integer num = corpUserFollowRelationMapper.selectNumOfCorpuserByFollowId(e.getFollowId());
|
|
|
e.setNumOfCorpUser(num);
|