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
59a8dae138
@ -8,10 +8,9 @@ import lombok.Data;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* 菜单权限表
|
|
||||||
* </p>*发起考核考,核组人员对应关系表
|
* </p>*发起考核考,核组人员对应关系表
|
||||||
* @author quyixiao
|
* @author quyixiao
|
||||||
* @since 2020-10-13
|
* @since 2020-10-22
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@ -42,6 +41,9 @@ public class EvaluationStartStaff implements java.io.Serializable {
|
|||||||
//0考核人员,1管理人员
|
//0考核人员,1管理人员
|
||||||
@ApiModelProperty(value = "0考核人员,1管理人员", name = "type")
|
@ApiModelProperty(value = "0考核人员,1管理人员", name = "type")
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
//0: 未通知评分 1: 已通知评分
|
||||||
|
@ApiModelProperty(value = "0: 未通知评分 1: 已通知评分", name = "score")
|
||||||
|
private Integer score;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
@ -162,6 +164,21 @@ public class EvaluationStartStaff implements java.io.Serializable {
|
|||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 0: 未通知评分 1: 已通知评分
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Integer getScore() {
|
||||||
|
return score;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 0: 未通知评分 1: 已通知评分
|
||||||
|
* @param score
|
||||||
|
*/
|
||||||
|
public void setScore(Integer score) {
|
||||||
|
this.score = score;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "EvaluationStartStaff{" +
|
return "EvaluationStartStaff{" +
|
||||||
@ -173,6 +190,7 @@ public class EvaluationStartStaff implements java.io.Serializable {
|
|||||||
",startId=" + startId +
|
",startId=" + startId +
|
||||||
",staffId=" + staffId +
|
",staffId=" + staffId +
|
||||||
",type=" + type +
|
",type=" + type +
|
||||||
|
",score=" + score +
|
||||||
"}";
|
"}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3,21 +3,29 @@ package com.lz.modules.performance.controller;
|
|||||||
import com.lz.common.utils.PageUtils;
|
import com.lz.common.utils.PageUtils;
|
||||||
import com.lz.common.utils.R;
|
import com.lz.common.utils.R;
|
||||||
import com.lz.modules.flow.dao.FlowStartMapper;
|
import com.lz.modules.flow.dao.FlowStartMapper;
|
||||||
|
import com.lz.modules.flow.entity.EvaluationGroup;
|
||||||
import com.lz.modules.flow.entity.FlowStart;
|
import com.lz.modules.flow.entity.FlowStart;
|
||||||
|
import com.lz.modules.flow.service.EvaluationGroupService;
|
||||||
import com.lz.modules.performance.req.AssessListReq;
|
import com.lz.modules.performance.req.AssessListReq;
|
||||||
import com.lz.modules.performance.req.AssessDetailReq;
|
import com.lz.modules.performance.req.AssessDetailReq;
|
||||||
import com.lz.modules.performance.res.AssessManagerDetailRes;
|
import com.lz.modules.performance.res.AssessManagerDetailRes;
|
||||||
import com.lz.modules.performance.res.AssessManagerListRes;
|
import com.lz.modules.performance.res.AssessManagerListRes;
|
||||||
import com.lz.modules.performance.res.ChartStatisticalRes;
|
import com.lz.modules.performance.res.ChartStatisticalRes;
|
||||||
|
import io.swagger.annotations.ApiImplicitParam;
|
||||||
import org.apache.commons.collections.CollectionUtils;
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
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.RequestParam;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
|
import java.util.function.Function;
|
||||||
|
import java.util.function.ToLongFunction;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author: djc
|
* @Author: djc
|
||||||
@ -30,10 +38,12 @@ public class AssessManagerController {
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private FlowStartMapper flowStartMapper;
|
private FlowStartMapper flowStartMapper;
|
||||||
|
@Autowired
|
||||||
|
private EvaluationGroupService evaluationGroupService;
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping("assess/manager/list")
|
@RequestMapping("assess/manager/list")
|
||||||
public R groupList(@RequestBody AssessListReq req){
|
public R assessList(@RequestBody AssessListReq req){
|
||||||
List<AssessManagerListRes> data = new ArrayList<>();
|
List<AssessManagerListRes> data = new ArrayList<>();
|
||||||
PageUtils pageUtils = PageUtils.startPage(req.getCurrPage(),req.getPageSize()).doSelect(
|
PageUtils pageUtils = PageUtils.startPage(req.getCurrPage(),req.getPageSize()).doSelect(
|
||||||
page -> flowStartMapper.selectListByTime(page,req.getCycleType(),req.getName())
|
page -> flowStartMapper.selectListByTime(page,req.getCycleType(),req.getName())
|
||||||
@ -64,11 +74,28 @@ public class AssessManagerController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping("assess/manager/detail")
|
@RequestMapping("assess/manager/detail")
|
||||||
public R groupDetail(@RequestBody AssessDetailReq req){
|
public R assessDetail(@RequestBody AssessDetailReq req){
|
||||||
|
|
||||||
AssessManagerDetailRes res = new AssessManagerDetailRes();
|
AssessManagerDetailRes res = new AssessManagerDetailRes();
|
||||||
|
|
||||||
return R.ok();
|
return R.ok();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@RequestMapping("assess/manager/delete")
|
||||||
|
@ApiImplicitParam(name = "assessId",value = "发起考核id", required = true, dataType = "Long",paramType = "query")
|
||||||
|
public R assessDelete(@RequestParam Long assessId){
|
||||||
|
FlowStart flowStart = flowStartMapper.selectFlowStartById(assessId);
|
||||||
|
if(flowStart == null){
|
||||||
|
return R.error("没有此条记录");
|
||||||
|
}
|
||||||
|
String[] split = flowStart.getGroupIds().split(",");
|
||||||
|
List<Long> collect = Arrays.asList(split).stream().map(s -> Long.valueOf(s)).collect(Collectors.toList());
|
||||||
|
List<EvaluationGroup> evaluationGroups = evaluationGroupService.selectEvaluationGroupByIds(collect);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,12 +12,13 @@
|
|||||||
<result column="start_id" property="startId"/>
|
<result column="start_id" property="startId"/>
|
||||||
<result column="staff_id" property="staffId"/>
|
<result column="staff_id" property="staffId"/>
|
||||||
<result column="type" property="type"/>
|
<result column="type" property="type"/>
|
||||||
|
<result column="score" property="score"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
<!-- 通用查询结果列 -->
|
<!-- 通用查询结果列 -->
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, evaluation_id AS evaluationId, start_id AS startId, staff_id AS staffId, type AS type
|
id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, evaluation_id AS evaluationId, start_id AS startId, staff_id AS staffId, type AS type, score AS score
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
@ -30,35 +31,38 @@
|
|||||||
|
|
||||||
<insert id="insertEvaluationStartStaff" parameterType="EvaluationStartStaff" useGeneratedKeys="true" keyProperty="id" >
|
<insert id="insertEvaluationStartStaff" parameterType="EvaluationStartStaff" useGeneratedKeys="true" keyProperty="id" >
|
||||||
insert into lz_evaluation_start_staff(
|
insert into lz_evaluation_start_staff(
|
||||||
<if test="evaluationId != null">evaluation_id, </if>
|
<if test="evaluationId != null">evaluation_id, </if>
|
||||||
<if test="startId != null">start_id, </if>
|
<if test="startId != null">start_id, </if>
|
||||||
<if test="staffId != null">staff_id, </if>
|
<if test="staffId != null">staff_id, </if>
|
||||||
<if test="type != null">type, </if>
|
<if test="type != null">type, </if>
|
||||||
is_delete,
|
<if test="score != null">score, </if>
|
||||||
gmt_create,
|
is_delete,
|
||||||
gmt_modified
|
gmt_create,
|
||||||
|
gmt_modified
|
||||||
)values(
|
)values(
|
||||||
<if test="evaluationId != null">#{ evaluationId}, </if>
|
<if test="evaluationId != null">#{ evaluationId}, </if>
|
||||||
<if test="startId != null">#{ startId}, </if>
|
<if test="startId != null">#{ startId}, </if>
|
||||||
<if test="staffId != null">#{ staffId}, </if>
|
<if test="staffId != null">#{ staffId}, </if>
|
||||||
<if test="type != null">#{ type}, </if>
|
<if test="type != null">#{ type}, </if>
|
||||||
0,
|
<if test="score != null">#{ score}, </if>
|
||||||
now(),
|
0,
|
||||||
now()
|
now(),
|
||||||
|
now()
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
|
||||||
<update id="updateEvaluationStartStaffById" parameterType="EvaluationStartStaff" >
|
<update id="updateEvaluationStartStaffById" parameterType="EvaluationStartStaff" >
|
||||||
update
|
update
|
||||||
lz_evaluation_start_staff
|
lz_evaluation_start_staff
|
||||||
<trim prefix="set" suffixOverrides=",">
|
<trim prefix="set" suffixOverrides=",">
|
||||||
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
||||||
<if test="gmtCreate != null">gmt_create = #{gmtCreate},</if>
|
<if test="gmtCreate != null">gmt_create = #{gmtCreate},</if>
|
||||||
<if test="evaluationId != null">evaluation_id = #{evaluationId},</if>
|
<if test="evaluationId != null">evaluation_id = #{evaluationId},</if>
|
||||||
<if test="startId != null">start_id = #{startId},</if>
|
<if test="startId != null">start_id = #{startId},</if>
|
||||||
<if test="staffId != null">staff_id = #{staffId},</if>
|
<if test="staffId != null">staff_id = #{staffId},</if>
|
||||||
<if test="type != null">type = #{type}</if>
|
<if test="type != null">type = #{type},</if>
|
||||||
|
<if test="score != null">score = #{score}</if>
|
||||||
</trim>
|
</trim>
|
||||||
,gmt_modified = now()
|
,gmt_modified = now()
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
@ -67,19 +71,19 @@
|
|||||||
|
|
||||||
<update id="updateCoverEvaluationStartStaffById" parameterType="EvaluationStartStaff" >
|
<update id="updateCoverEvaluationStartStaffById" parameterType="EvaluationStartStaff" >
|
||||||
update
|
update
|
||||||
lz_evaluation_start_staff
|
lz_evaluation_start_staff
|
||||||
set
|
set
|
||||||
is_delete = #{isDelete},
|
is_delete = #{isDelete},
|
||||||
gmt_create = #{gmtCreate},
|
gmt_create = #{gmtCreate},
|
||||||
evaluation_id = #{evaluationId},
|
evaluation_id = #{evaluationId},
|
||||||
start_id = #{startId},
|
start_id = #{startId},
|
||||||
staff_id = #{staffId},
|
staff_id = #{staffId},
|
||||||
type = #{type}
|
type = #{type},
|
||||||
|
score = #{score}
|
||||||
,gmt_modified = now()
|
,gmt_modified = now()
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|
||||||
<update id="deleteEvaluationStartStaffById" parameterType="java.lang.Long">
|
<update id="deleteEvaluationStartStaffById" parameterType="java.lang.Long">
|
||||||
update lz_evaluation_start_staff set is_delete = 1 where id=#{id} limit 1
|
update lz_evaluation_start_staff set is_delete = 1 where id=#{id} limit 1
|
||||||
</update>
|
</update>
|
||||||
|
|||||||
@ -80,9 +80,9 @@ public class MysqlMain {
|
|||||||
//list.add(new TablesBean("lz_result_taget_lib"));
|
//list.add(new TablesBean("lz_result_taget_lib"));
|
||||||
|
|
||||||
//list.add(new TablesBean("lz_flow_chart_detail_record"));
|
//list.add(new TablesBean("lz_flow_chart_detail_record"));
|
||||||
list.add(new TablesBean("lz_flow_approval_role"));
|
//list.add(new TablesBean("lz_flow_approval_role"));
|
||||||
|
|
||||||
list.add(new TablesBean("lz_flow_start"));
|
list.add(new TablesBean("lz_evaluation_start_staff"));
|
||||||
|
|
||||||
List<TablesBean> list2 = new ArrayList<TablesBean>();
|
List<TablesBean> list2 = new ArrayList<TablesBean>();
|
||||||
Map<String, String> map = MysqlUtil2ShowCreateTable.getComments();
|
Map<String, String> map = MysqlUtil2ShowCreateTable.getComments();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user