Merge branch 'version_performance_2.0' of http://gitlab.ldxinyong.com/enterpriseManagement/lz_management into version_performance_2.0
This commit is contained in:
commit
fbfb9a4ade
@ -37,13 +37,13 @@ public class EvaluationGroup implements java.io.Serializable {
|
|||||||
private Long managerIds;
|
private Long managerIds;
|
||||||
//参与部门id,逗号隔开
|
//参与部门id,逗号隔开
|
||||||
@ApiModelProperty(value = "参与部门id,逗号隔开", name = "depIds")
|
@ApiModelProperty(value = "参与部门id,逗号隔开", name = "depIds")
|
||||||
private Long depIds;
|
private String depIds;
|
||||||
//参与考核员工staff_id,逗号隔开
|
//参与考核员工staff_id,逗号隔开
|
||||||
@ApiModelProperty(value = "参与考核员工staff_id,逗号隔开", name = "staffIds")
|
@ApiModelProperty(value = "参与考核员工staff_id,逗号隔开", name = "staffIds")
|
||||||
private Long staffIds;
|
private String staffIds;
|
||||||
//排除人员ids,逗号隔开
|
//排除人员ids,逗号隔开
|
||||||
@ApiModelProperty(value = "排除人员ids,逗号隔开", name = "outIds")
|
@ApiModelProperty(value = "排除人员ids,逗号隔开", name = "outIds")
|
||||||
private Long outIds;
|
private String outIds;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
@ -138,14 +138,14 @@ public class EvaluationGroup implements java.io.Serializable {
|
|||||||
* 参与部门id,逗号隔开
|
* 参与部门id,逗号隔开
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Long getDepIds() {
|
public String getDepIds() {
|
||||||
return depIds;
|
return depIds;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 参与部门id,逗号隔开
|
* 参与部门id,逗号隔开
|
||||||
* @param depIds
|
* @param depIds
|
||||||
*/
|
*/
|
||||||
public void setDepIds(Long depIds) {
|
public void setDepIds(String depIds) {
|
||||||
this.depIds = depIds;
|
this.depIds = depIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -153,14 +153,14 @@ public class EvaluationGroup implements java.io.Serializable {
|
|||||||
* 参与考核员工staff_id,逗号隔开
|
* 参与考核员工staff_id,逗号隔开
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Long getStaffIds() {
|
public String getStaffIds() {
|
||||||
return staffIds;
|
return staffIds;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 参与考核员工staff_id,逗号隔开
|
* 参与考核员工staff_id,逗号隔开
|
||||||
* @param staffIds
|
* @param staffIds
|
||||||
*/
|
*/
|
||||||
public void setStaffIds(Long staffIds) {
|
public void setStaffIds(String staffIds) {
|
||||||
this.staffIds = staffIds;
|
this.staffIds = staffIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,14 +169,14 @@ public class EvaluationGroup implements java.io.Serializable {
|
|||||||
* 排除人员ids,逗号隔开
|
* 排除人员ids,逗号隔开
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Long getOutIds() {
|
public String getOutIds() {
|
||||||
return outIds;
|
return outIds;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 排除人员ids,逗号隔开
|
* 排除人员ids,逗号隔开
|
||||||
* @param outIds
|
* @param outIds
|
||||||
*/
|
*/
|
||||||
public void setOutIds(Long outIds) {
|
public void setOutIds(String outIds) {
|
||||||
this.outIds = outIds;
|
this.outIds = outIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,16 +1,23 @@
|
|||||||
package com.lz.modules.performance.controller;
|
package com.lz.modules.performance.controller;
|
||||||
|
|
||||||
import com.lz.common.utils.R;
|
import com.lz.common.utils.R;
|
||||||
|
import com.lz.modules.flow.entity.EvaluationGroup;
|
||||||
|
import com.lz.modules.flow.service.EvaluationGroupService;
|
||||||
import com.lz.modules.performance.req.ChartResultReq;
|
import com.lz.modules.performance.req.ChartResultReq;
|
||||||
import com.lz.modules.performance.res.ChartStatisticalRes;
|
import com.lz.modules.performance.res.ChartStatisticalRes;
|
||||||
import com.lz.modules.performance.res.TaskListRes;
|
import com.lz.modules.performance.res.TaskListRes;
|
||||||
|
import com.lz.modules.performance.service.ChartResultService;
|
||||||
import com.lz.modules.sys.controller.AbstractController;
|
import com.lz.modules.sys.controller.AbstractController;
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
|
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;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author: djc
|
* @Author: djc
|
||||||
* @Desc:
|
* @Desc:
|
||||||
@ -20,12 +27,21 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
@RequestMapping("/performance")
|
@RequestMapping("/performance")
|
||||||
@Api(value="报表接口", tags={"报表统计"})
|
@Api(value="报表接口", tags={"报表统计"})
|
||||||
public class ChartController extends AbstractController{
|
public class ChartController extends AbstractController{
|
||||||
|
@Autowired
|
||||||
|
private ChartResultService chartResultService;
|
||||||
|
@Autowired
|
||||||
|
private EvaluationGroupService evaluationGroupService;
|
||||||
|
|
||||||
@PostMapping("chart/result")
|
@PostMapping("chart/result")
|
||||||
@ApiOperation("获取绩效报表统计")
|
@ApiOperation("获取绩效报表统计")
|
||||||
@ApiResponses({@ApiResponse(code = 200,message = "成功",response = ChartStatisticalRes.class)})
|
@ApiResponses({@ApiResponse(code = 200,message = "成功",response = ChartStatisticalRes.class)})
|
||||||
public R chartResult(@RequestBody @ApiParam(name = "body",value = "body请求体",required = true) ChartResultReq req){
|
public R chartResult(@RequestBody @ApiParam(name = "body",value = "body请求体",required = true) ChartResultReq req){
|
||||||
|
List<ChartStatisticalRes> data = new ArrayList<>();
|
||||||
|
chartResultService.chartReport(req);
|
||||||
|
EvaluationGroup evaluationGroup = evaluationGroupService.selectEvaluationGroupById(1L);
|
||||||
|
String depIds = evaluationGroup.getDepIds();
|
||||||
|
String staffIds = evaluationGroup.getStaffIds();
|
||||||
|
String outIds = evaluationGroup.getOutIds();
|
||||||
return R.ok();
|
return R.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -33,7 +33,7 @@ public class UserTaskController extends AbstractController{
|
|||||||
@ApiResponses({@ApiResponse(code = 200,message = "成功",response = TaskListRes.class)})
|
@ApiResponses({@ApiResponse(code = 200,message = "成功",response = TaskListRes.class)})
|
||||||
public R list(@RequestBody @ApiParam(name = "body",value = "body请求体",required = true) AssessTaskReq req){
|
public R list(@RequestBody @ApiParam(name = "body",value = "body请求体",required = true) AssessTaskReq req){
|
||||||
PageUtils pageUtils = assessTaskService.assessTaskList(req, getUserId());
|
PageUtils pageUtils = assessTaskService.assessTaskList(req, getUserId());
|
||||||
return R.ok().put("page",pageUtils);
|
return R.ok().put("data",pageUtils);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
package com.lz.modules.performance.req;
|
package com.lz.modules.performance.req;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@ -10,14 +12,19 @@ import java.io.Serializable;
|
|||||||
* @Date: 2020/10/14 16:50
|
* @Date: 2020/10/14 16:50
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@ApiModel(value = "绩效报表请求实体")
|
||||||
public class ChartResultReq {
|
public class ChartResultReq {
|
||||||
//考核类型 月度 季度
|
//考核类型 月度 季度
|
||||||
|
@ApiModelProperty(value = "考核类型 月度,自定义",name = "type")
|
||||||
private int type;
|
private int type;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "如果为月度不为空",name = "month")
|
||||||
private String month;
|
private String month;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "自定义起始时间",name = "startTime")
|
||||||
private String startTime;
|
private String startTime;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "自定义结束时间",name = "endTime")
|
||||||
private String endTime;
|
private String endTime;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,5 +8,5 @@ import com.lz.modules.performance.req.ChartResultReq;
|
|||||||
* @Date: 2020/10/14 16:52
|
* @Date: 2020/10/14 16:52
|
||||||
*/
|
*/
|
||||||
public interface ChartResultService {
|
public interface ChartResultService {
|
||||||
void ChartReport(ChartResultReq req);
|
void chartReport(ChartResultReq req);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,7 +21,7 @@ public class ChartResultServiceImpl implements ChartResultService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private ResultRecordService resultRecordService;
|
private ResultRecordService resultRecordService;
|
||||||
@Override
|
@Override
|
||||||
public void ChartReport(ChartResultReq req) {
|
public void chartReport(ChartResultReq req) {
|
||||||
AssessListReq query = new AssessListReq();
|
AssessListReq query = new AssessListReq();
|
||||||
BeanUtils.copyProperties(req,query);
|
BeanUtils.copyProperties(req,query);
|
||||||
List<ChartStatisticalRes> chartStatisticalRes = resultRecordService.countNumByFlowProcess(query);
|
List<ChartStatisticalRes> chartStatisticalRes = resultRecordService.countNumByFlowProcess(query);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user