|
@@ -14,6 +14,7 @@ import com.ydtech.modules.admin.service.TaskStatisticsService;
|
|
|
import com.ydtech.modules.admin.utils.KztGetDeptUtils;
|
|
import com.ydtech.modules.admin.utils.KztGetDeptUtils;
|
|
|
import io.swagger.annotations.*;
|
|
import io.swagger.annotations.*;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -399,17 +400,9 @@ public class TaskStatisticsController {
|
|
|
**/
|
|
**/
|
|
|
@PostMapping("getBusinessAgentData")
|
|
@PostMapping("getBusinessAgentData")
|
|
|
@ApiOperation(value = "控制台-业务数据-代理人")
|
|
@ApiOperation(value = "控制台-业务数据-代理人")
|
|
|
- public HttpResult<IPage<BusinessAgentData>> getBusinessAgentData(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) {
|
|
|
|
|
|
|
+ public HttpResult<IPage<BusinessAgentData>> getBusinessAgentData(@RequestBody TaskStatisticsVo taskStatisticsVo) {
|
|
|
try{
|
|
try{
|
|
|
- KztGetDeptUtils kztGetDeptUtils = new KztGetDeptUtils();
|
|
|
|
|
- KztGetDeptUtilsDto kztGetDeptUtilsDto = kztGetDeptUtils.KztGetDeptIds(httpServerRequest.getRequestURL().toString());
|
|
|
|
|
- if(ObjectUtils.isNotEmpty(kztGetDeptUtilsDto)){
|
|
|
|
|
- if("1".equals(kztGetDeptUtilsDto.getType())){
|
|
|
|
|
- taskStatisticsVo.setDeptIds(kztGetDeptUtilsDto.getIds());
|
|
|
|
|
- } else if ("2".equals(kztGetDeptUtilsDto.getType())) {
|
|
|
|
|
- taskStatisticsVo.setUserIds(kztGetDeptUtilsDto.getIds());
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
IPage<BusinessAgentData> result = taskStatisticsService.getBusinessAgentData(taskStatisticsVo);
|
|
IPage<BusinessAgentData> result = taskStatisticsService.getBusinessAgentData(taskStatisticsVo);
|
|
|
return HttpResult.ok("查询数据成功", result);
|
|
return HttpResult.ok("查询数据成功", result);
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
@@ -424,17 +417,8 @@ public class TaskStatisticsController {
|
|
|
**/
|
|
**/
|
|
|
@PostMapping("getBusinessAgentDataTotal")
|
|
@PostMapping("getBusinessAgentDataTotal")
|
|
|
@ApiOperation(value = "控制台-业务数据-代理人-合计")
|
|
@ApiOperation(value = "控制台-业务数据-代理人-合计")
|
|
|
- public HttpResult<BusinessAgentData> getBusinessAgentDataTotal(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) {
|
|
|
|
|
|
|
+ public HttpResult<BusinessAgentData> getBusinessAgentDataTotal(@RequestBody TaskStatisticsVo taskStatisticsVo) {
|
|
|
try{
|
|
try{
|
|
|
- KztGetDeptUtils kztGetDeptUtils = new KztGetDeptUtils();
|
|
|
|
|
- KztGetDeptUtilsDto kztGetDeptUtilsDto = kztGetDeptUtils.KztGetDeptIds(httpServerRequest.getRequestURL().toString());
|
|
|
|
|
- if(ObjectUtils.isNotEmpty(kztGetDeptUtilsDto)){
|
|
|
|
|
- if("1".equals(kztGetDeptUtilsDto.getType())){
|
|
|
|
|
- taskStatisticsVo.setDeptIds(kztGetDeptUtilsDto.getIds());
|
|
|
|
|
- } else if ("2".equals(kztGetDeptUtilsDto.getType())) {
|
|
|
|
|
- taskStatisticsVo.setUserIds(kztGetDeptUtilsDto.getIds());
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
BusinessAgentData result = taskStatisticsService.getBusinessAgentDataTotal(taskStatisticsVo);
|
|
BusinessAgentData result = taskStatisticsService.getBusinessAgentDataTotal(taskStatisticsVo);
|
|
|
return HttpResult.ok("查询数据成功", result);
|
|
return HttpResult.ok("查询数据成功", result);
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|