Commit 4b47687c1ad6b2a7c0d97f96991c432a971200bf
1 parent
5b98ee57
feature(*): 人员质量评测实体类
人员质量评测实体类
Showing
16 changed files
with
512 additions
and
0 deletions
fw-morax-dao/src/main/java/cn/fw/morax/dao/kpi/KpiAssessDao.java
0 → 100644
1 | +package cn.fw.morax.dao.kpi; | ||
2 | + | ||
3 | + | ||
4 | +import cn.fw.morax.domain.db.kpi.KpiAssess; | ||
5 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
6 | + | ||
7 | +/** | ||
8 | + * <p> | ||
9 | + * 人员质量考核配置 Mapper 接口 | ||
10 | + * </p> | ||
11 | + * | ||
12 | + * @author jiangchao | ||
13 | + * @since 2023-03-17 | ||
14 | + */ | ||
15 | +public interface KpiAssessDao extends BaseMapper<KpiAssess> { | ||
16 | + | ||
17 | +} |
fw-morax-dao/src/main/java/cn/fw/morax/dao/kpi/KpiAssessDetailDao.java
0 → 100644
1 | +package cn.fw.morax.dao.kpi; | ||
2 | + | ||
3 | + | ||
4 | +import cn.fw.morax.domain.db.kpi.KpiAssessDetail; | ||
5 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
6 | + | ||
7 | +/** | ||
8 | + * <p> | ||
9 | + * 人员质量考核配置 Mapper 接口 | ||
10 | + * </p> | ||
11 | + * | ||
12 | + * @author jiangchao | ||
13 | + * @since 2023-03-17 | ||
14 | + */ | ||
15 | +public interface KpiAssessDetailDao extends BaseMapper<KpiAssessDetail> { | ||
16 | + | ||
17 | +} |
fw-morax-dao/src/main/java/cn/fw/morax/dao/kpi/KpiAssessPenaltyDao.java
0 → 100644
1 | +package cn.fw.morax.dao.kpi; | ||
2 | + | ||
3 | + | ||
4 | +import cn.fw.morax.domain.db.kpi.KpiAssessPenalty; | ||
5 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
6 | + | ||
7 | +/** | ||
8 | + * <p> | ||
9 | + * 人员质量考核奖惩 Mapper 接口 | ||
10 | + * </p> | ||
11 | + * | ||
12 | + * @author jiangchao | ||
13 | + * @since 2023-03-17 | ||
14 | + */ | ||
15 | +public interface KpiAssessPenaltyDao extends BaseMapper<KpiAssessPenalty> { | ||
16 | + | ||
17 | +} |
fw-morax-dao/src/main/resources/mapper/kpi/KpiAssesPenaltyDao.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | +<mapper namespace="cn.fw.morax.dao.kpi.KpiAssessPenaltyDao"> | ||
4 | + | ||
5 | + <!-- 通用查询映射结果 --> | ||
6 | + <resultMap id="BaseResultMap" type="cn.fw.morax.domain.db.kpi.KpiAssessPenalty"> | ||
7 | + <result column="id" property="id"/> | ||
8 | + <result column="kpi_pool_id" property="kpiPoolId"/> | ||
9 | + <result column="user_name" property="userName"/> | ||
10 | + <result column="user_id" property="userId"/> | ||
11 | + <result column="assess_user_id" property="assessUserId"/> | ||
12 | + <result column="assess_user_name" property="assessUserName"/> | ||
13 | + <result column="assess_kpi_pool_id" property="assessKpiPoolId"/> | ||
14 | + <result column="rank" property="rank"/> | ||
15 | + <result column="target_rank" property="targetRank"/> | ||
16 | + <result column="score" property="score"/> | ||
17 | + <result column="award" property="award"/> | ||
18 | + <result column="status" property="status"/> | ||
19 | + <result column="monthly" property="monthly"/> | ||
20 | + <result column="group_id" property="groupId"/> | ||
21 | + <result column="yn" property="yn"/> | ||
22 | + <result column="create_time" property="createTime"/> | ||
23 | + <result column="update_time" property="updateTime"/> | ||
24 | + </resultMap> | ||
25 | + | ||
26 | + | ||
27 | +</mapper> | ||
0 | \ No newline at end of file | 28 | \ No newline at end of file |
fw-morax-dao/src/main/resources/mapper/kpi/KpiAssessDao.xml
0 → 100644
fw-morax-dao/src/main/resources/mapper/kpi/KpiAssessDetailDao.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | +<mapper namespace="cn.fw.morax.dao.kpi.KpiAssessDetailDao"> | ||
4 | + | ||
5 | + <!-- 通用查询映射结果 --> | ||
6 | + <resultMap id="BaseResultMap" type="cn.fw.morax.domain.db.kpi.KpiAssessDetail"> | ||
7 | + <result column="id" property="id"/> | ||
8 | + <result column="kpi_assess_id" property="kpiAssessId"/> | ||
9 | + <result column="role_codes" property="roleCodes"/> | ||
10 | + <result column="role_names" property="roleNames"/> | ||
11 | + <result column="penalty_score" property="penaltyScore"/> | ||
12 | + <result column="cap_person_penalty_score" property="capPersonPenaltyScore"/> | ||
13 | + <result column="cap_penalty_score" property="capPenaltyScore"/> | ||
14 | + <result column="penalty_money" property="penaltyMoney"/> | ||
15 | + <result column="cap_person_penalty_money" property="capPersonPenaltyMoney"/> | ||
16 | + <result column="cap_penalty_money" property="capPenaltyMoney"/> | ||
17 | + <result column="award_score" property="awardScore"/> | ||
18 | + <result column="cap_person_award_score" property="capPersonAwardScore"/> | ||
19 | + <result column="cap_award_score" property="capAwardScore"/> | ||
20 | + <result column="award_money" property="awardMoney"/> | ||
21 | + <result column="cap_person_award_money" property="capPersonAwardMoney"/> | ||
22 | + <result column="cap_award_money" property="capAwardMoney"/> | ||
23 | + <result column="group_id" property="groupId"/> | ||
24 | + <result column="yn" property="yn"/> | ||
25 | + <result column="create_time" property="createTime"/> | ||
26 | + <result column="update_time" property="updateTime"/> | ||
27 | + </resultMap> | ||
28 | + | ||
29 | + | ||
30 | +</mapper> | ||
0 | \ No newline at end of file | 31 | \ No newline at end of file |
fw-morax-domain/src/main/java/cn/fw/morax/domain/db/kpi/KpiAssess.java
0 → 100644
1 | +package cn.fw.morax.domain.db.kpi; | ||
2 | + | ||
3 | +import cn.fw.common.data.entity.BaseAuditableEntity; | ||
4 | +import cn.fw.common.data.entity.BaseAuditableTimeEntity; | ||
5 | +import cn.fw.common.data.mybatis.handler.LongListTypeHandler; | ||
6 | +import cn.fw.common.data.mybatis.handler.StringListTypeHandler; | ||
7 | +import com.baomidou.mybatisplus.annotation.TableField; | ||
8 | +import lombok.Data; | ||
9 | +import lombok.EqualsAndHashCode; | ||
10 | +import lombok.experimental.Accessors; | ||
11 | + | ||
12 | +import java.math.BigDecimal; | ||
13 | +import java.time.LocalDateTime; | ||
14 | +import java.util.List; | ||
15 | + | ||
16 | +/** | ||
17 | + * <p> | ||
18 | + * 人员质量考核配置 | ||
19 | + * </p> | ||
20 | + * | ||
21 | + * @author jiangchao | ||
22 | + * @since 2023-03-17 | ||
23 | + */ | ||
24 | +@Data | ||
25 | +@EqualsAndHashCode(callSuper = false) | ||
26 | +@Accessors(chain = true) | ||
27 | +public class KpiAssess extends BaseAuditableEntity<KpiAssess, Long> { | ||
28 | + | ||
29 | + private static final long serialVersionUID = 1L; | ||
30 | + | ||
31 | + /** | ||
32 | + * 岗位id | ||
33 | + */ | ||
34 | + private Long postId; | ||
35 | + /** | ||
36 | + * 岗位名称 | ||
37 | + */ | ||
38 | + private String postName; | ||
39 | + /** | ||
40 | + * 适用门店ids | ||
41 | + */ | ||
42 | + @TableField(typeHandler = LongListTypeHandler.class) | ||
43 | + private List<Long> shopIds; | ||
44 | + /** | ||
45 | + * 适用门店名称 | ||
46 | + */ | ||
47 | + @TableField(typeHandler = StringListTypeHandler.class) | ||
48 | + private List<String> shopNames; | ||
49 | + | ||
50 | + /** | ||
51 | + * 排名 | ||
52 | + */ | ||
53 | + private Integer rank; | ||
54 | + | ||
55 | + /** | ||
56 | + * 集团id | ||
57 | + */ | ||
58 | + private Long groupId; | ||
59 | + | ||
60 | + /** | ||
61 | + * 逻辑删除 | ||
62 | + */ | ||
63 | + private Boolean yn; | ||
64 | + | ||
65 | +} |
fw-morax-domain/src/main/java/cn/fw/morax/domain/db/kpi/KpiAssessDetail.java
0 → 100644
1 | +package cn.fw.morax.domain.db.kpi; | ||
2 | + | ||
3 | +import cn.fw.common.data.entity.BaseAuditableEntity; | ||
4 | +import cn.fw.common.data.entity.BaseAuditableTimeEntity; | ||
5 | +import lombok.Data; | ||
6 | +import lombok.EqualsAndHashCode; | ||
7 | +import lombok.experimental.Accessors; | ||
8 | + | ||
9 | +import java.io.Serializable; | ||
10 | +import java.math.BigDecimal; | ||
11 | +import java.time.LocalDateTime; | ||
12 | + | ||
13 | +/** | ||
14 | + * <p> | ||
15 | + * 人员质量考核配置 | ||
16 | + * </p> | ||
17 | + * | ||
18 | + * @author jiangchao | ||
19 | + * @since 2023-03-17 | ||
20 | + */ | ||
21 | +@Data | ||
22 | +@EqualsAndHashCode(callSuper = false) | ||
23 | +@Accessors(chain = true) | ||
24 | +public class KpiAssessDetail extends BaseAuditableTimeEntity<KpiAssessDetail, Long> { | ||
25 | + | ||
26 | + private static final long serialVersionUID = 1L; | ||
27 | + | ||
28 | + /** | ||
29 | + * 人员质量考核id | ||
30 | + */ | ||
31 | + private Long kpiAssessId; | ||
32 | + | ||
33 | + /** | ||
34 | + * 考核角色编码 | ||
35 | + */ | ||
36 | + private String roleCodes; | ||
37 | + | ||
38 | + /** | ||
39 | + * 考核角色名称 | ||
40 | + */ | ||
41 | + private String roleNames; | ||
42 | + | ||
43 | + /** | ||
44 | + * 惩罚分 | ||
45 | + */ | ||
46 | + private BigDecimal penaltyScore; | ||
47 | + | ||
48 | + /** | ||
49 | + * 封顶单人惩罚分 | ||
50 | + */ | ||
51 | + private BigDecimal capPersonPenaltyScore; | ||
52 | + | ||
53 | + /** | ||
54 | + * 封顶惩罚分 | ||
55 | + */ | ||
56 | + private BigDecimal capPenaltyScore; | ||
57 | + | ||
58 | + /** | ||
59 | + * 惩罚奖励 | ||
60 | + */ | ||
61 | + private BigDecimal penaltyMoney; | ||
62 | + | ||
63 | + /** | ||
64 | + * 封顶单人惩罚奖励 | ||
65 | + */ | ||
66 | + private BigDecimal capPersonPenaltyMoney; | ||
67 | + | ||
68 | + /** | ||
69 | + * 封顶惩罚奖励 | ||
70 | + */ | ||
71 | + private BigDecimal capPenaltyMoney; | ||
72 | + | ||
73 | + /** | ||
74 | + * 奖励分数 | ||
75 | + */ | ||
76 | + private BigDecimal awardScore; | ||
77 | + | ||
78 | + /** | ||
79 | + * 封顶单人奖励分数 | ||
80 | + */ | ||
81 | + private BigDecimal capPersonAwardScore; | ||
82 | + | ||
83 | + /** | ||
84 | + * 封顶奖励分数 | ||
85 | + */ | ||
86 | + private BigDecimal capAwardScore; | ||
87 | + | ||
88 | + /** | ||
89 | + * 奖励金额 | ||
90 | + */ | ||
91 | + private BigDecimal awardMoney; | ||
92 | + | ||
93 | + /** | ||
94 | + * 封顶单人奖励金额 | ||
95 | + */ | ||
96 | + private BigDecimal capPersonAwardMoney; | ||
97 | + | ||
98 | + /** | ||
99 | + * 封顶奖励金额 | ||
100 | + */ | ||
101 | + private BigDecimal capAwardMoney; | ||
102 | + | ||
103 | + /** | ||
104 | + * 集团id | ||
105 | + */ | ||
106 | + private Long groupId; | ||
107 | + | ||
108 | + /** | ||
109 | + * 逻辑删除 | ||
110 | + */ | ||
111 | + private Boolean yn; | ||
112 | + | ||
113 | + | ||
114 | +} |
fw-morax-domain/src/main/java/cn/fw/morax/domain/db/kpi/KpiAssessPenalty.java
0 → 100644
1 | +package cn.fw.morax.domain.db.kpi; | ||
2 | + | ||
3 | +import cn.fw.common.data.entity.BaseAuditableTimeEntity; | ||
4 | +import lombok.Data; | ||
5 | +import lombok.EqualsAndHashCode; | ||
6 | +import lombok.experimental.Accessors; | ||
7 | + | ||
8 | +import java.math.BigDecimal; | ||
9 | +import java.time.LocalDateTime; | ||
10 | + | ||
11 | +/** | ||
12 | + * <p> | ||
13 | + * 人员质量考核奖惩 | ||
14 | + * </p> | ||
15 | + * | ||
16 | + * @author jiangchao | ||
17 | + * @since 2023-03-17 | ||
18 | + */ | ||
19 | +@Data | ||
20 | +@EqualsAndHashCode(callSuper = false) | ||
21 | +@Accessors(chain = true) | ||
22 | +public class KpiAssessPenalty extends BaseAuditableTimeEntity<KpiAssessPenalty, Long> { | ||
23 | + | ||
24 | + private static final long serialVersionUID = 1L; | ||
25 | + | ||
26 | + /** | ||
27 | + * 绩效池id | ||
28 | + */ | ||
29 | + private Long kpiPoolId; | ||
30 | + | ||
31 | + /** | ||
32 | + * 用户名 | ||
33 | + */ | ||
34 | + private String userName; | ||
35 | + | ||
36 | + /** | ||
37 | + * 用户id | ||
38 | + */ | ||
39 | + private Long userId; | ||
40 | + | ||
41 | + /** | ||
42 | + * 评测用户id | ||
43 | + */ | ||
44 | + private Long assessUserId; | ||
45 | + | ||
46 | + /** | ||
47 | + * 评测用户名 | ||
48 | + */ | ||
49 | + private String assessUserName; | ||
50 | + | ||
51 | + /** | ||
52 | + * 评测绩效池id | ||
53 | + */ | ||
54 | + private Long assessKpiPoolId; | ||
55 | + | ||
56 | + /** | ||
57 | + * 排名 | ||
58 | + */ | ||
59 | + private Integer rank; | ||
60 | + | ||
61 | + /** | ||
62 | + * 目标排名 | ||
63 | + */ | ||
64 | + private Integer targetRank; | ||
65 | + | ||
66 | + /** | ||
67 | + * 奖惩绩效分 | ||
68 | + */ | ||
69 | + private BigDecimal score; | ||
70 | + | ||
71 | + /** | ||
72 | + * 奖惩金额 | ||
73 | + */ | ||
74 | + private BigDecimal award; | ||
75 | + | ||
76 | + /** | ||
77 | + * 状态 1. 待推送 2.已推送 | ||
78 | + */ | ||
79 | + private Integer status; | ||
80 | + | ||
81 | + /** | ||
82 | + * 月度 | ||
83 | + */ | ||
84 | + private String monthly; | ||
85 | + | ||
86 | + /** | ||
87 | + * 集团id | ||
88 | + */ | ||
89 | + private Long groupId; | ||
90 | + | ||
91 | + /** | ||
92 | + * 逻辑删除 | ||
93 | + */ | ||
94 | + private Boolean yn; | ||
95 | + | ||
96 | + /** | ||
97 | + * 创建时间 | ||
98 | + */ | ||
99 | + private LocalDateTime createTime; | ||
100 | + | ||
101 | + /** | ||
102 | + * 更新时间 | ||
103 | + */ | ||
104 | + private LocalDateTime updateTime; | ||
105 | + | ||
106 | + | ||
107 | +} |
fw-morax-server/src/main/java/cn/fw/morax/server/controller/erp/KpiAssessController.java
0 → 100644
1 | +package cn.fw.morax.server.controller.erp; | ||
2 | + | ||
3 | +import cn.fw.security.auth.client.annotation.Authorization; | ||
4 | +import cn.fw.security.auth.client.annotation.IgnoreAuth; | ||
5 | +import cn.fw.security.auth.client.enums.AuthType; | ||
6 | +import lombok.RequiredArgsConstructor; | ||
7 | +import lombok.extern.slf4j.Slf4j; | ||
8 | +import org.springframework.validation.annotation.Validated; | ||
9 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
10 | +import org.springframework.web.bind.annotation.RestController; | ||
11 | + | ||
12 | +/** | ||
13 | + * @author jiangchao | ||
14 | + * @des: 人员质量评测 | ||
15 | + * @date 2023/3/17 15:32 | ||
16 | + */ | ||
17 | +@Slf4j | ||
18 | +@RequiredArgsConstructor | ||
19 | +@Authorization(AuthType.ERP) | ||
20 | +@Validated | ||
21 | +@IgnoreAuth | ||
22 | +@RestController | ||
23 | +@RequestMapping("/kpi/assess") | ||
24 | +public class KpiAssessController { | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | +} |
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/KpiAssessDetailService.java
0 → 100644
1 | +package cn.fw.morax.service.data.kpi; | ||
2 | + | ||
3 | +import cn.fw.morax.domain.db.kpi.KpiAssessDetail; | ||
4 | +import cn.fw.morax.domain.db.kpi.KpiStarSpecialRule; | ||
5 | +import com.baomidou.mybatisplus.extension.service.IService; | ||
6 | + | ||
7 | +public interface KpiAssessDetailService extends IService<KpiAssessDetail> { | ||
8 | + | ||
9 | +} |
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/KpiAssessPenaltyService.java
0 → 100644
1 | +package cn.fw.morax.service.data.kpi; | ||
2 | + | ||
3 | +import cn.fw.morax.domain.db.kpi.KpiAssessPenalty; | ||
4 | +import cn.fw.morax.domain.db.kpi.KpiStarSpecialRule; | ||
5 | +import com.baomidou.mybatisplus.extension.service.IService; | ||
6 | + | ||
7 | +public interface KpiAssessPenaltyService extends IService<KpiAssessPenalty> { | ||
8 | + | ||
9 | +} |
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/KpiAssessService.java
0 → 100644
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/impl/KpiAssessDetailServiceImpl.java
0 → 100644
1 | +package cn.fw.morax.service.data.kpi.impl; | ||
2 | + | ||
3 | +import cn.fw.morax.dao.kpi.KpiAssessDetailDao; | ||
4 | +import cn.fw.morax.dao.kpi.KpiStarRuleDao; | ||
5 | +import cn.fw.morax.domain.db.kpi.KpiAssessDetail; | ||
6 | +import cn.fw.morax.domain.db.kpi.KpiStarRule; | ||
7 | +import cn.fw.morax.service.data.kpi.KpiAssessDetailService; | ||
8 | +import cn.fw.morax.service.data.kpi.KpiStarRuleService; | ||
9 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
10 | +import lombok.AllArgsConstructor; | ||
11 | +import lombok.extern.slf4j.Slf4j; | ||
12 | +import org.springframework.stereotype.Service; | ||
13 | + | ||
14 | +@Service | ||
15 | +@Slf4j | ||
16 | +@AllArgsConstructor | ||
17 | +public class KpiAssessDetailServiceImpl extends ServiceImpl<KpiAssessDetailDao, KpiAssessDetail> implements KpiAssessDetailService { | ||
18 | + | ||
19 | +} |
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/impl/KpiAssessPenaltyServiceImpl.java
0 → 100644
1 | +package cn.fw.morax.service.data.kpi.impl; | ||
2 | + | ||
3 | +import cn.fw.morax.dao.kpi.KpiAssessPenaltyDao; | ||
4 | +import cn.fw.morax.dao.kpi.KpiStarRuleDao; | ||
5 | +import cn.fw.morax.domain.db.kpi.KpiAssessPenalty; | ||
6 | +import cn.fw.morax.domain.db.kpi.KpiStarRule; | ||
7 | +import cn.fw.morax.service.data.kpi.KpiAssessPenaltyService; | ||
8 | +import cn.fw.morax.service.data.kpi.KpiStarRuleService; | ||
9 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
10 | +import lombok.AllArgsConstructor; | ||
11 | +import lombok.extern.slf4j.Slf4j; | ||
12 | +import org.springframework.stereotype.Service; | ||
13 | + | ||
14 | +@Service | ||
15 | +@Slf4j | ||
16 | +@AllArgsConstructor | ||
17 | +public class KpiAssessPenaltyServiceImpl extends ServiceImpl<KpiAssessPenaltyDao, KpiAssessPenalty> implements KpiAssessPenaltyService { | ||
18 | + | ||
19 | +} |
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/impl/KpiAssessServiceImpl.java
0 → 100644
1 | +package cn.fw.morax.service.data.kpi.impl; | ||
2 | + | ||
3 | +import cn.fw.morax.dao.kpi.KpiAssessDao; | ||
4 | +import cn.fw.morax.dao.kpi.KpiStarRuleDao; | ||
5 | +import cn.fw.morax.domain.db.kpi.KpiAssess; | ||
6 | +import cn.fw.morax.domain.db.kpi.KpiStarRule; | ||
7 | +import cn.fw.morax.service.data.kpi.KpiAssessService; | ||
8 | +import cn.fw.morax.service.data.kpi.KpiStarRuleService; | ||
9 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
10 | +import lombok.AllArgsConstructor; | ||
11 | +import lombok.extern.slf4j.Slf4j; | ||
12 | +import org.springframework.stereotype.Service; | ||
13 | + | ||
14 | +@Service | ||
15 | +@Slf4j | ||
16 | +@AllArgsConstructor | ||
17 | +public class KpiAssessServiceImpl extends ServiceImpl<KpiAssessDao, KpiAssess> implements KpiAssessService { | ||
18 | + | ||
19 | +} |