10 changed files with 553 additions and 0 deletions
@ -0,0 +1,42 @@ |
|||||
|
package com.elink.esua.epdc.dto.item.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 大屏统计FormDTO |
||||
|
* @Author wgf |
||||
|
* @Date 2022-10-10 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ScreenTotalFormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -7871958578795227805L; |
||||
|
|
||||
|
/** |
||||
|
* 部门ID |
||||
|
*/ |
||||
|
private String deptId; |
||||
|
|
||||
|
/** |
||||
|
* 开始时间 |
||||
|
*/ |
||||
|
private String startTime; |
||||
|
|
||||
|
/** |
||||
|
* 结束时间 |
||||
|
*/ |
||||
|
private String endTime; |
||||
|
|
||||
|
/** |
||||
|
* 年月(满意度趋势使用) |
||||
|
*/ |
||||
|
private String yearMonth; |
||||
|
|
||||
|
/** |
||||
|
* 时间数组 |
||||
|
*/ |
||||
|
private List<String> timeArr; |
||||
|
} |
||||
@ -0,0 +1,32 @@ |
|||||
|
package com.elink.esua.epdc.dto.item.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 大屏-类别分析-返回值DTO |
||||
|
* @Author wgf |
||||
|
* @Date 2022-10-10 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class CategoryAnalysisPieResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -2494874960456321677L; |
||||
|
|
||||
|
/** |
||||
|
* 名称 |
||||
|
*/ |
||||
|
private String name; |
||||
|
|
||||
|
/** |
||||
|
* 值 |
||||
|
*/ |
||||
|
private String value; |
||||
|
|
||||
|
/** |
||||
|
* 占比 |
||||
|
*/ |
||||
|
private String proportion; |
||||
|
} |
||||
@ -0,0 +1,35 @@ |
|||||
|
package com.elink.esua.epdc.dto.item.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 大屏-满意度趋势-SQL返回值DTO |
||||
|
* @Author wgf |
||||
|
* @Date 2022-10-11 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class EvaluationTotalLineDetailResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -2494874960456321677L; |
||||
|
|
||||
|
/** |
||||
|
* 时间 |
||||
|
*/ |
||||
|
private String time; |
||||
|
|
||||
|
/** |
||||
|
* 非常满意 |
||||
|
*/ |
||||
|
private String fcmy; |
||||
|
|
||||
|
/** |
||||
|
* 基本满意 |
||||
|
*/ |
||||
|
private String jbmy; |
||||
|
|
||||
|
/** |
||||
|
* 不满意 |
||||
|
*/ |
||||
|
private String bmy; |
||||
|
} |
||||
@ -0,0 +1,36 @@ |
|||||
|
package com.elink.esua.epdc.dto.item.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 大屏-满意度趋势-返回值DTO |
||||
|
* @Author wgf |
||||
|
* @Date 2022-10-11 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class EvaluationTotalLineResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -2494874960456321677L; |
||||
|
|
||||
|
/** |
||||
|
* 横坐标 |
||||
|
*/ |
||||
|
private List<String> xValue; |
||||
|
|
||||
|
/** |
||||
|
* 非常满意 |
||||
|
*/ |
||||
|
private List<String> fcmyArr; |
||||
|
|
||||
|
/** |
||||
|
* 基本满意 |
||||
|
*/ |
||||
|
private List<String> jbmyArr; |
||||
|
|
||||
|
/** |
||||
|
* 不满意 |
||||
|
*/ |
||||
|
private List<String> bmyArr; |
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
package com.elink.esua.epdc.dto.item.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 大屏-满意度统计-返回值DTO |
||||
|
* @Author wgf |
||||
|
* @Date 2022-10-10 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class EvaluationTotalPieResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -2494874960456321677L; |
||||
|
|
||||
|
/** |
||||
|
* 名称 |
||||
|
*/ |
||||
|
private String name; |
||||
|
|
||||
|
/** |
||||
|
* 值 |
||||
|
*/ |
||||
|
private String value; |
||||
|
|
||||
|
/** |
||||
|
* 占比 |
||||
|
*/ |
||||
|
private String proportion; |
||||
|
} |
||||
@ -0,0 +1,121 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.elink.esua.epdc.modules.item.controller; |
||||
|
|
||||
|
import com.elink.esua.epdc.commons.tools.page.PageData; |
||||
|
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils; |
||||
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
||||
|
import com.elink.esua.epdc.commons.tools.validator.AssertUtils; |
||||
|
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils; |
||||
|
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup; |
||||
|
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup; |
||||
|
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup; |
||||
|
import com.elink.esua.epdc.dto.events.EpdcEventsCommentsDTO; |
||||
|
import com.elink.esua.epdc.dto.events.form.EventDeleteCommentsFormDTO; |
||||
|
import com.elink.esua.epdc.dto.form.KpiMetaDataOfEventsFormDTO; |
||||
|
import com.elink.esua.epdc.dto.item.ItemDTO; |
||||
|
import com.elink.esua.epdc.dto.item.ItemPendingHandleDTO; |
||||
|
import com.elink.esua.epdc.dto.item.form.*; |
||||
|
import com.elink.esua.epdc.dto.item.result.*; |
||||
|
import com.elink.esua.epdc.dto.result.KpiEvaluationAmountResultDTO; |
||||
|
import com.elink.esua.epdc.dto.result.KpiItemHandleAmountResultDTO; |
||||
|
import com.elink.esua.epdc.modules.item.excel.ItemExcel; |
||||
|
import com.elink.esua.epdc.modules.item.excel.ItemTimeoutNewExcel; |
||||
|
import com.elink.esua.epdc.modules.item.excel.StayItemExcel; |
||||
|
import com.elink.esua.epdc.modules.item.service.ItemService; |
||||
|
import com.elink.esua.epdc.modules.item.service.ItemTimeoutService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import javax.servlet.http.HttpServletResponse; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 大屏接口 |
||||
|
* |
||||
|
* @author wgf |
||||
|
* @since v1.0.0 2022-10-10 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("itemScreen") |
||||
|
public class ItemScreenCountController { |
||||
|
|
||||
|
@Autowired |
||||
|
private ItemService itemService; |
||||
|
|
||||
|
/** |
||||
|
* 大屏诉求列表 |
||||
|
* |
||||
|
* @Params: [params] |
||||
|
* @Return: com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.commons.tools.page.PageData < com.elink.esua.epdc.dto.item.ItemPendingHandleDTO>> |
||||
|
* @Author: wgf |
||||
|
* @Date: 2022-10-10 9:56 |
||||
|
*/ |
||||
|
@GetMapping("itemPageList") |
||||
|
public Result<PageData<ItemPendingHandleDTO>> itemPageList(@RequestParam Map<String, Object> params) { |
||||
|
PageData<ItemPendingHandleDTO> page = itemService.itemPageList(params); |
||||
|
return new Result<PageData<ItemPendingHandleDTO>>().ok(page); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 大屏-类别分析 |
||||
|
* |
||||
|
* @Params: [params] |
||||
|
* @Return: com.elink.esua.epdc.commons.tools.utils.Result<> |
||||
|
* @Author: wgf |
||||
|
* @Date: 2022-10-10 9:56 |
||||
|
*/ |
||||
|
@GetMapping("categoryAnalysis") |
||||
|
public Result<List<CategoryAnalysisPieResultDTO>> categoryAnalysis(@RequestBody ScreenTotalFormDTO formDTO) { |
||||
|
List<CategoryAnalysisPieResultDTO> list = itemService.categoryAnalysis(formDTO); |
||||
|
return new Result<List<CategoryAnalysisPieResultDTO>>().ok(list); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 大屏-满意度统计 |
||||
|
* |
||||
|
* @Params: [params] |
||||
|
* @Return: com.elink.esua.epdc.commons.tools.utils.Result<> |
||||
|
* @Author: wgf |
||||
|
* @Date: 2022-10-10 9:56 |
||||
|
*/ |
||||
|
@GetMapping("evaluationTotal") |
||||
|
public Result<List<EvaluationTotalPieResultDTO>> evaluationTotal(@RequestBody ScreenTotalFormDTO formDTO) { |
||||
|
List<EvaluationTotalPieResultDTO> list = itemService.evaluationTotal(formDTO); |
||||
|
return new Result<List<EvaluationTotalPieResultDTO>>().ok(list); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 大屏-满意度趋势 |
||||
|
* |
||||
|
* @Params: [params] |
||||
|
* @Return: com.elink.esua.epdc.commons.tools.utils.Result<> |
||||
|
* @Author: wgf |
||||
|
* @Date: 2022-10-11 9:56 |
||||
|
*/ |
||||
|
@GetMapping("evaluationTrend") |
||||
|
public Result<EvaluationTotalLineResultDTO> evaluationTrend(@RequestBody ScreenTotalFormDTO formDTO) { |
||||
|
EvaluationTotalLineResultDTO list = itemService.evaluationTrend(formDTO); |
||||
|
return new Result<EvaluationTotalLineResultDTO>().ok(list); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
|
|
||||
Loading…
Reference in new issue