Commit 08ef9699678fd602d61ba1d032d905e1d0b392b4
1 parent
718f8378
feature(*): 重新处理上报的业务绩效
- 重新处理上报的业务绩效 - 删除不需要的类 - 持久话上报的数据 - 升级pom版本号
Showing
41 changed files
with
293 additions
and
352 deletions
fw-morax-common/pom.xml
fw-morax-dao/pom.xml
fw-morax-dao/src/main/java/cn/fw/morax/dao/kpi/KpiGroupIndicatorHitLogDao.java
fw-morax-dao/src/main/java/cn/fw/morax/dao/kpi/KpiGroupIndicatorPreconditionHitLogDao.java
... | ... | @@ -8,7 +8,7 @@ import org.springframework.stereotype.Repository; |
8 | 8 | * 绩效组指标前置条件命中记录 |
9 | 9 | * |
10 | 10 | * @author : kurisu |
11 | - * @version : 1.0 | |
11 | + * @version : 2.0 | |
12 | 12 | * @className : KpiGroupIndicatorPreconditionHitLogDao |
13 | 13 | * @description : 绩效组指标前置条件命中记录 |
14 | 14 | * @date : 2022-12-13 17:58 | ... | ... |
fw-morax-dao/src/main/java/cn/fw/morax/dao/kpi/KpiGroupIndicatorScoreLogDao.java
fw-morax-dao/src/main/java/cn/fw/morax/dao/kpi/KpiGroupIndicatorTargetHitLogDao.java
fw-morax-dao/src/main/java/cn/fw/morax/dao/kpi/KpiMqLogDao.java renamed to fw-morax-dao/src/main/java/cn/fw/morax/dao/kpi/KpiIndicatorUserValueDao.java
1 | 1 | package cn.fw.morax.dao.kpi; |
2 | 2 | |
3 | -import cn.fw.morax.domain.db.kpi.KpiMqLog; | |
3 | +import cn.fw.morax.domain.db.kpi.KpiIndicatorUserValue; | |
4 | 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
5 | 5 | import org.springframework.stereotype.Repository; |
6 | 6 | |
7 | 7 | /** |
8 | + * 用户指标上报数据 | |
9 | + * | |
8 | 10 | * @author : kurisu |
9 | - * @version : 1.0 | |
10 | - * @className : KpiMqLogDao | |
11 | - * @description : 绩效mq发送记录 | |
12 | - * @date : 2022-04-12 18:19 | |
11 | + * @version : 2.0 | |
12 | + * @className : KpiIndicatorUserValueDao | |
13 | + * @description : 用户指标上报数据 | |
14 | + * @date : 2022-12-15 11:22 | |
13 | 15 | */ |
14 | 16 | @Repository |
15 | -public interface KpiMqLogDao extends BaseMapper<KpiMqLog> { | |
17 | +public interface KpiIndicatorUserValueDao extends BaseMapper<KpiIndicatorUserValue> { | |
16 | 18 | } | ... | ... |
fw-morax-dao/src/main/resources/mapper/kpi/KpiMqLogMapper.xml renamed to fw-morax-dao/src/main/resources/mapper/kpi/KpiIndicatorUserValueMapper.xml
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 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.KpiMqLogDao"> | |
3 | +<mapper namespace="cn.fw.morax.dao.kpi.KpiIndicatorUserValueDao"> | |
4 | 4 | |
5 | 5 | </mapper> | ... | ... |
fw-morax-domain/pom.xml
fw-morax-domain/src/main/java/cn/fw/morax/domain/bo/kpi/UserIndicatorBO.java
... | ... | @@ -7,7 +7,7 @@ import java.util.Date; |
7 | 7 | |
8 | 8 | /** |
9 | 9 | * @author : kurisu |
10 | - * @version : 1.0 | |
10 | + * @version : 2.0 | |
11 | 11 | * @className : UserIndicatorBO |
12 | 12 | * @description : 人员绩效值 |
13 | 13 | * @date : 2022-04-13 17:21 |
... | ... | @@ -19,10 +19,6 @@ public class UserIndicatorBO { |
19 | 19 | */ |
20 | 20 | private String indicatorCode; |
21 | 21 | /** |
22 | - * 岗位id | |
23 | - */ | |
24 | - private Long postId; | |
25 | - /** | |
26 | 22 | * 人员id |
27 | 23 | */ |
28 | 24 | private Long userId; |
... | ... | @@ -31,15 +27,11 @@ public class UserIndicatorBO { |
31 | 27 | */ |
32 | 28 | private BigDecimal value; |
33 | 29 | /** |
34 | - * 门店id | |
35 | - */ | |
36 | - private Long shopId; | |
37 | - /** | |
38 | 30 | * 数据日期 |
39 | 31 | */ |
40 | 32 | private Date dataDate; |
41 | 33 | /** |
42 | - * 唯一标识 | |
34 | + * 集团id | |
43 | 35 | */ |
44 | - private Long uid; | |
36 | + private Long groupId; | |
45 | 37 | } | ... | ... |
fw-morax-domain/src/main/java/cn/fw/morax/domain/db/kpi/KpiGroupIndicatorHitLog.java
fw-morax-domain/src/main/java/cn/fw/morax/domain/db/kpi/KpiGroupIndicatorPreconditionHitLog.java
fw-morax-domain/src/main/java/cn/fw/morax/domain/db/kpi/KpiGroupIndicatorScoreLog.java
fw-morax-domain/src/main/java/cn/fw/morax/domain/db/kpi/KpiGroupIndicatorTargetHitLog.java
fw-morax-sdk/src/main/java/cn/fw/morax/sdk/dto/kpi/KpiReportNoticeMQ.java renamed to fw-morax-domain/src/main/java/cn/fw/morax/domain/db/kpi/KpiIndicatorUserValue.java
1 | -package cn.fw.morax.sdk.dto.kpi; | |
1 | +package cn.fw.morax.domain.db.kpi; | |
2 | 2 | |
3 | -import lombok.AllArgsConstructor; | |
4 | -import lombok.Builder; | |
3 | +import cn.fw.common.data.entity.BaseAuditableTimeEntity; | |
5 | 4 | import lombok.Data; |
6 | -import lombok.NoArgsConstructor; | |
5 | +import lombok.EqualsAndHashCode; | |
7 | 6 | |
8 | 7 | import java.math.BigDecimal; |
9 | -import java.util.Date; | |
8 | +import java.time.LocalDate; | |
10 | 9 | |
11 | 10 | /** |
11 | + * 用户绩效指标上报数据类 | |
12 | + * | |
12 | 13 | * @author : kurisu |
13 | - * @className : KpiIndicator | |
14 | - * @description : | |
15 | - * @date : 2022-04-07 15:29 | |
14 | + * @version : 2.0 | |
15 | + * @className : KpiIndicatorUserValue | |
16 | + * @description : 用户绩效指标上报数据类 | |
17 | + * @date : 2022-12-15 11:19 | |
16 | 18 | */ |
17 | 19 | @Data |
18 | -@AllArgsConstructor | |
19 | -@NoArgsConstructor | |
20 | -@Builder | |
21 | -public class KpiReportNoticeMQ { | |
20 | +@EqualsAndHashCode(callSuper = true) | |
21 | +public class KpiIndicatorUserValue extends BaseAuditableTimeEntity<KpiIndicatorUserValue, Long> { | |
22 | + | |
22 | 23 | /** |
23 | - * topic | |
24 | + * 人员id | |
24 | 25 | */ |
25 | - public final static String TOPIC = "kpi_report"; | |
26 | + private Long userId; | |
26 | 27 | /** |
27 | 28 | * 指标编码 |
28 | 29 | */ |
... | ... | @@ -32,23 +33,19 @@ public class KpiReportNoticeMQ { |
32 | 33 | */ |
33 | 34 | private String indicatorName; |
34 | 35 | /** |
35 | - * 岗位id | |
36 | - */ | |
37 | - private Long postId; | |
38 | - /** | |
39 | - * 岗位名称 | |
36 | + * 指标业务值 | |
40 | 37 | */ |
41 | - private String postName; | |
38 | + private BigDecimal indicatorValue; | |
42 | 39 | /** |
43 | - * 需要上报日期 | |
40 | + * 数据日期 | |
44 | 41 | */ |
45 | - private Date uploadDate; | |
42 | + private LocalDate dataDate; | |
46 | 43 | /** |
47 | 44 | * 集团id |
48 | 45 | */ |
49 | 46 | private Long groupId; |
50 | 47 | /** |
51 | - * 唯一标识 | |
48 | + * 逻辑删除 | |
52 | 49 | */ |
53 | - private Long uid; | |
50 | + private Boolean yn; | |
54 | 51 | } | ... | ... |
fw-morax-domain/src/main/java/cn/fw/morax/domain/db/kpi/KpiMqLog.java deleted
1 | -package cn.fw.morax.domain.db.kpi; | |
2 | - | |
3 | -import com.baomidou.mybatisplus.annotation.*; | |
4 | -import com.baomidou.mybatisplus.extension.activerecord.Model; | |
5 | -import lombok.Data; | |
6 | -import lombok.EqualsAndHashCode; | |
7 | -import lombok.ToString; | |
8 | - | |
9 | -import java.time.LocalDate; | |
10 | -import java.util.Date; | |
11 | - | |
12 | -/** | |
13 | - * @author : kurisu | |
14 | - * @version : 1.0 | |
15 | - * @className : KpiMqLog | |
16 | - * @description : 绩效上报mq发送记录 | |
17 | - * @date : 2022-04-12 18:10 | |
18 | - */ | |
19 | -@Data | |
20 | -@EqualsAndHashCode(callSuper = true) | |
21 | -@ToString(callSuper = true) | |
22 | -@TableName(autoResultMap = true) | |
23 | -public class KpiMqLog extends Model<KpiMqLog> { | |
24 | - @TableId(type = IdType.ASSIGN_ID) | |
25 | - private Long id; | |
26 | - /** | |
27 | - * 指标编号 | |
28 | - */ | |
29 | - private String indicatorCode; | |
30 | - /** | |
31 | - * 岗位id | |
32 | - */ | |
33 | - private Long postId; | |
34 | - /** | |
35 | - * 发送时间 | |
36 | - * 可能为过去时间 | |
37 | - */ | |
38 | - private LocalDate sendDate; | |
39 | - /** | |
40 | - * 集团id | |
41 | - */ | |
42 | - private Long groupId; | |
43 | - /** | |
44 | - * 创建时间 | |
45 | - */ | |
46 | - @TableField(insertStrategy = FieldStrategy.NOT_NULL, fill = FieldFill.INSERT) | |
47 | - private Date createTime; | |
48 | -} |
fw-morax-domain/src/main/java/cn/fw/morax/domain/db/kpi/KpiPoolIndicatorValue.java
fw-morax-rpc/pom.xml
fw-morax-sdk/pom.xml
... | ... | @@ -5,7 +5,7 @@ |
5 | 5 | <parent> |
6 | 6 | <artifactId>fw-morax</artifactId> |
7 | 7 | <groupId>cn.fw</groupId> |
8 | - <version>1.0.0</version> | |
8 | + <version>2.0.0</version> | |
9 | 9 | <relativePath>../pom.xml</relativePath> |
10 | 10 | </parent> |
11 | 11 | <modelVersion>4.0.0</modelVersion> |
... | ... | @@ -13,7 +13,7 @@ |
13 | 13 | <artifactId>fw-morax-sdk</artifactId> |
14 | 14 | <packaging>jar</packaging> |
15 | 15 | <name>fw-morax-sdk</name> |
16 | - <version>1.0.0</version> | |
16 | + <version>2.0.0</version> | |
17 | 17 | |
18 | 18 | <properties> |
19 | 19 | <hibernate.validator>5.3.6.Final</hibernate.validator> | ... | ... |
fw-morax-sdk/src/main/java/cn/fw/morax/sdk/api/IKpiReportService.java
... | ... | @@ -21,24 +21,27 @@ import java.util.List; |
21 | 21 | * @className : KpiReportApi |
22 | 22 | * @description : 绩效处理接口 |
23 | 23 | * @date: 2022-04-07 15:35 |
24 | + * @version : 2.0 | |
24 | 25 | */ |
25 | 26 | @FeignClient(value = "fw-morax", path = "/api/morax/kpi") |
26 | 27 | public interface IKpiReportService { |
27 | 28 | /** |
28 | 29 | * 查询绩效组人员 |
29 | - * | |
30 | + * @Deprecated 已过时 此方法不在维护,将在2.1.0移除 | |
30 | 31 | * @param kpiGroupUserQuery 查询参数 |
31 | 32 | * @return 分组人员 |
32 | 33 | */ |
34 | + @Deprecated | |
33 | 35 | @GetMapping("/query/user") |
34 | 36 | Message<List<KpiGroupUserResult>> queryKpiGroupUser(@Validated({KpiGroupUserQuery.Query.class}) @SpringQueryMap KpiGroupUserQuery kpiGroupUserQuery); |
35 | 37 | |
36 | 38 | /** |
37 | 39 | * 实时查询绩效组人员 |
38 | - * | |
40 | + * @Deprecated 已过时 此方法不在维护,将在2.1.0移除 | |
39 | 41 | * @param kpiGroupUserQuery 查询参数 |
40 | 42 | * @return 分组人员 |
41 | 43 | */ |
44 | + @Deprecated | |
42 | 45 | @GetMapping("/real-time/query/user") |
43 | 46 | Message<List<KpiGroupUserResult>> realTimeQueryKpiGroupUser(@Validated({KpiGroupUserQuery.RealTimeQuery.class}) @SpringQueryMap KpiGroupUserQuery kpiGroupUserQuery); |
44 | 47 | ... | ... |
fw-morax-sdk/src/main/java/cn/fw/morax/sdk/dto/kpi/UserIndicatorReq.java
... | ... | @@ -2,13 +2,16 @@ package cn.fw.morax.sdk.dto.kpi; |
2 | 2 | |
3 | 3 | import lombok.*; |
4 | 4 | |
5 | -import javax.validation.constraints.*; | |
5 | +import javax.validation.constraints.DecimalMin; | |
6 | +import javax.validation.constraints.NotBlank; | |
7 | +import javax.validation.constraints.NotNull; | |
8 | +import javax.validation.constraints.Past; | |
6 | 9 | import java.math.BigDecimal; |
7 | 10 | import java.util.Date; |
8 | 11 | |
9 | 12 | /** |
10 | 13 | * @author : kurisu |
11 | - * @version : 1.0 | |
14 | + * @version : 2.0 | |
12 | 15 | * @className : UserIndicatorReq |
13 | 16 | * @description : 人员绩效指标上报 |
14 | 17 | * @date : 2022-04-13 16:45 |
... | ... | @@ -26,11 +29,6 @@ public class UserIndicatorReq { |
26 | 29 | @NotBlank(message = "指标编码不能为空") |
27 | 30 | private String indicatorCode; |
28 | 31 | /** |
29 | - * 岗位id | |
30 | - */ | |
31 | - @NotNull(message = "岗位ID不能为空") | |
32 | - private Long postId; | |
33 | - /** | |
34 | 32 | * 人员id |
35 | 33 | */ |
36 | 34 | @NotNull(message = "人员id不能为空") |
... | ... | @@ -43,21 +41,15 @@ public class UserIndicatorReq { |
43 | 41 | @DecimalMin(value = "0", message = "指标值必须大于等于0") |
44 | 42 | private BigDecimal value; |
45 | 43 | /** |
46 | - * 门店id | |
47 | - */ | |
48 | - @NotNull(message = "门店id不能为空") | |
49 | - private Long shopId; | |
50 | - /** | |
51 | 44 | * 数据日期 |
52 | 45 | */ |
53 | 46 | @NotNull(message = "数据日期不能为空") |
54 | 47 | @Past(message = "数据日期必须为过去的时间") |
55 | 48 | private Date dataDate; |
56 | 49 | /** |
57 | - * 唯一标识 | |
50 | + * 集团id | |
58 | 51 | */ |
59 | - @NotNull(message = "标识码不能为空") | |
60 | - @Min(value = 1, message = "标识码不合法") | |
61 | - private Long uid; | |
52 | + @NotNull(message = "集团id不能为空") | |
53 | + private Long groupId; | |
62 | 54 | } |
63 | 55 | ... | ... |
fw-morax-server/pom.xml
fw-morax-server/src/main/java/cn/fw/morax/server/controller/api/KpiReportServiceImpl.java
... | ... | @@ -27,7 +27,7 @@ import static cn.fw.morax.common.utils.MessageFormatUtil.MessageFormatTransfer; |
27 | 27 | * 绩效上报api |
28 | 28 | * |
29 | 29 | * @author : kurisu |
30 | - * @version : 1.0 | |
30 | + * @version : 2.0 | |
31 | 31 | * @className : KpiReportServiceImpl |
32 | 32 | * @description : 绩效上报api |
33 | 33 | * @date : 2022-04-11 17:21 |
... | ... | @@ -44,12 +44,7 @@ public class KpiReportServiceImpl implements IKpiReportService { |
44 | 44 | private final int maxSize = 1000; |
45 | 45 | private final KpiReportService kpiReportService; |
46 | 46 | |
47 | - /** | |
48 | - * 查询绩效组人员 | |
49 | - * | |
50 | - * @param kpiGroupUserQuery 查询参数 | |
51 | - * @return 分组人员 | |
52 | - */ | |
47 | + @Deprecated | |
53 | 48 | @GetMapping("/query/user") |
54 | 49 | @Override |
55 | 50 | @ControllerMethod("查询绩效组人员") |
... | ... | @@ -57,12 +52,7 @@ public class KpiReportServiceImpl implements IKpiReportService { |
57 | 52 | return success(kpiReportService.getIndicatorUser(kpiGroupUserQuery)); |
58 | 53 | } |
59 | 54 | |
60 | - /** | |
61 | - * 实时查询绩效组人员 | |
62 | - * | |
63 | - * @param kpiGroupUserQuery 查询参数 | |
64 | - * @return 分组人员 | |
65 | - */ | |
55 | + @Deprecated | |
66 | 56 | @GetMapping("/real-time/query/user") |
67 | 57 | @Override |
68 | 58 | @ControllerMethod("实时查询绩效组人员") | ... | ... |
fw-morax-server/src/main/java/cn/fw/morax/server/controller/erp/KpiDebugController.java
... | ... | @@ -7,13 +7,8 @@ import cn.fw.morax.common.utils.EventBusUtil; |
7 | 7 | import cn.fw.morax.common.utils.PublicUtil; |
8 | 8 | import cn.fw.morax.domain.bo.kpi.KpiGroupCalculableBO; |
9 | 9 | import cn.fw.morax.domain.db.kpi.KpiGroupUser; |
10 | -import cn.fw.morax.domain.db.kpi.KpiIndicatorHitLog; | |
11 | 10 | import cn.fw.morax.domain.db.kpi.KpiPool; |
12 | -import cn.fw.morax.domain.db.kpi.KpiPoolIndicatorValue; | |
13 | 11 | import cn.fw.morax.domain.enums.KpiIgnoreCauseEnum; |
14 | -import cn.fw.morax.domain.enums.StarLevelEnum; | |
15 | -import cn.fw.morax.domain.vo.kpi.KpiGroupIndicatorVO; | |
16 | -import cn.fw.morax.domain.vo.kpi.KpiGroupVO; | |
17 | 12 | import cn.fw.morax.rpc.ehr.EhrRpcService; |
18 | 13 | import cn.fw.morax.rpc.ehr.dto.StaffBaseInfoDTO; |
19 | 14 | import cn.fw.morax.service.biz.CommonService; |
... | ... | @@ -22,7 +17,6 @@ import cn.fw.morax.service.data.kpi.*; |
22 | 17 | import cn.fw.security.auth.client.annotation.Authorization; |
23 | 18 | import cn.fw.security.auth.client.enums.AuthType; |
24 | 19 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
25 | -import com.google.common.collect.Lists; | |
26 | 20 | import lombok.RequiredArgsConstructor; |
27 | 21 | import lombok.extern.slf4j.Slf4j; |
28 | 22 | import org.springframework.validation.annotation.Validated; |
... | ... | @@ -31,10 +25,8 @@ import org.springframework.web.bind.annotation.RequestMapping; |
31 | 25 | import org.springframework.web.bind.annotation.RequestParam; |
32 | 26 | import org.springframework.web.bind.annotation.RestController; |
33 | 27 | |
34 | -import java.math.BigDecimal; | |
35 | 28 | import java.time.LocalDate; |
36 | 29 | import java.time.YearMonth; |
37 | -import java.util.Date; | |
38 | 30 | import java.util.List; |
39 | 31 | import java.util.Set; |
40 | 32 | import java.util.stream.Collectors; |
... | ... | @@ -80,23 +72,6 @@ public class KpiDebugController { |
80 | 72 | return success(); |
81 | 73 | } |
82 | 74 | |
83 | - @GetMapping("/indicator/report") | |
84 | - @ControllerMethod("发送指标上报mq") | |
85 | - public Message<Void> sendReportIndicator(@RequestParam("indicatorCode") String indicatorCode, | |
86 | - @RequestParam("postId") Long postId, | |
87 | - @RequestParam("postName") String postName, | |
88 | - @RequestParam("groupId") Long groupId, | |
89 | - @RequestParam("reportDate") LocalDate reportDate) { | |
90 | - kpiReportService.sendNotice(indicatorCode, postId, postName, groupId, reportDate); | |
91 | - return success(); | |
92 | - } | |
93 | - | |
94 | - @GetMapping("/indicator/report-task") | |
95 | - @ControllerMethod("发送指标上报mq") | |
96 | - public Message<Void> sendReportIndicator() { | |
97 | - kpiReportService.sendNotice(); | |
98 | - return success(); | |
99 | - } | |
100 | 75 | |
101 | 76 | @GetMapping("/indicator/calc/score") |
102 | 77 | @ControllerMethod("计算绩效得分") |
... | ... | @@ -144,6 +119,7 @@ public class KpiDebugController { |
144 | 119 | } |
145 | 120 | |
146 | 121 | private final EhrRpcService ehrRpcService; |
122 | + | |
147 | 123 | @GetMapping("/manage-staff1") |
148 | 124 | @ControllerMethod("查询管理员工") |
149 | 125 | public Message<List<StaffBaseInfoDTO>> initKgc1(Long userId) { |
... | ... | @@ -161,7 +137,7 @@ public class KpiDebugController { |
161 | 137 | .eq(KpiGroupUser::getIgnoreCause, KpiIgnoreCauseEnum.PROBATION) |
162 | 138 | .eq(KpiGroupUser::getYn, Boolean.TRUE) |
163 | 139 | ); |
164 | - if (PublicUtil.isEmpty(userList)){ | |
140 | + if (PublicUtil.isEmpty(userList)) { | |
165 | 141 | return success(); |
166 | 142 | } |
167 | 143 | ... | ... |
fw-morax-server/src/main/java/cn/fw/morax/server/task/KpiCalcTask.java
... | ... | @@ -40,7 +40,7 @@ public class KpiCalcTask { |
40 | 40 | /** |
41 | 41 | * 持久化业务系统上报的数据 |
42 | 42 | */ |
43 | - @Scheduled(initialDelay = 1000 * 10, fixedRate = 1000 * 60) | |
43 | + @Scheduled(initialDelay = 1000 * 10, fixedRate = 1000 * 15) | |
44 | 44 | public void persistence() { |
45 | 45 | kpiReportService.persistenceUserKpiData(); |
46 | 46 | } | ... | ... |
fw-morax-service/pom.xml
fw-morax-service/src/main/java/cn/fw/morax/service/biz/kpi/KpiReportService.java
1 | 1 | package cn.fw.morax.service.biz.kpi; |
2 | 2 | |
3 | -import cn.fw.common.exception.BusinessException; | |
4 | 3 | import cn.fw.morax.common.utils.DateUtil; |
5 | 4 | import cn.fw.morax.common.utils.PublicUtil; |
6 | 5 | import cn.fw.morax.common.utils.ThreadPoolUtil; |
7 | -import cn.fw.morax.domain.bo.kpi.KpiIndicatorBO; | |
8 | 6 | import cn.fw.morax.domain.bo.kpi.UserIndicatorBO; |
9 | 7 | import cn.fw.morax.domain.db.kpi.*; |
10 | -import cn.fw.morax.domain.enums.KpiTargetTypeEnum; | |
11 | 8 | import cn.fw.morax.sdk.dto.CustomList; |
12 | -import cn.fw.morax.sdk.dto.kpi.*; | |
13 | -import cn.fw.morax.service.component.KpiIndicatorReportProducer; | |
9 | +import cn.fw.morax.sdk.dto.kpi.KpiGroupUserQuery; | |
10 | +import cn.fw.morax.sdk.dto.kpi.KpiGroupUserResult; | |
11 | +import cn.fw.morax.sdk.dto.kpi.KpiPointRewardReq; | |
12 | +import cn.fw.morax.sdk.dto.kpi.UserIndicatorReq; | |
14 | 13 | import cn.fw.morax.service.data.kpi.*; |
15 | -import com.alibaba.fastjson.JSON; | |
16 | 14 | import com.alibaba.fastjson.JSONObject; |
17 | 15 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
18 | 16 | import lombok.Getter; |
... | ... | @@ -54,88 +52,20 @@ public class KpiReportService { |
54 | 52 | private final KpiGroupService kpiGroupService; |
55 | 53 | private final KpiGroupIndicatorService kpiGroupIndicatorService; |
56 | 54 | private final KpiGroupUserService kpiGroupUserService; |
57 | - private final KpiMqLogService kpiMqLogService; | |
58 | - private final KpiIndicatorReportProducer kpiIndicatorReportProducer; | |
59 | 55 | private final KpiPoolIndicatorValueService kpiPoolIndicatorValueService; |
56 | + private final KpiIndicatorUserValueService kpiIndicatorUserValueService; | |
60 | 57 | private final KpiPoolService kpiPoolService; |
61 | 58 | private final KpiRewardPointService kpiRewardPointService; |
62 | 59 | private final StringRedisTemplate stringRedisTemplate; |
63 | 60 | private final KpiGroupUserBizService kpiGroupUserBizService; |
64 | 61 | private final KpiPoolCommonService kpiPoolCommonService; |
62 | + /** | |
63 | + * 绩效指标数据上报redis-key | |
64 | + */ | |
65 | 65 | @Value("${spring.cache.custom.global-prefix}:indicator-value") |
66 | 66 | @Getter |
67 | 67 | private String indicatorKeyPref; |
68 | 68 | |
69 | - /** | |
70 | - * 通知业务系统上报数据 | |
71 | - * 有一天的延迟 | |
72 | - */ | |
73 | - public void sendNotice() { | |
74 | - final Set<KpiIndicatorBO> set = kpiGroupIndicatorService.allIndicators(DateUtil.localDate2Date(LocalDate.now().minusDays(1L))); | |
75 | - if (CollectionUtils.isEmpty(set)) { | |
76 | - return; | |
77 | - } | |
78 | - for (KpiIndicatorBO bo : set) { | |
79 | - try { | |
80 | - sendNotice(bo, LocalDate.now().minusDays(1L)); | |
81 | - } catch (Exception e) { | |
82 | - log.error("发送绩效上报mq失败: [{}]", JSON.toJSONString(bo), e); | |
83 | - } | |
84 | - } | |
85 | - } | |
86 | - | |
87 | - /** | |
88 | - * 手动 发送绩效数据上报mq | |
89 | - * | |
90 | - * @param indicatorCode | |
91 | - * @param postId | |
92 | - * @param groupId | |
93 | - * @param localDate | |
94 | - */ | |
95 | - public void sendNotice(final String indicatorCode, final Long postId, final String postName, final Long groupId, final LocalDate localDate) { | |
96 | -// List<KpiGroupIndicator> kpiGroupIndicators = kpiGroupIndicatorService.list(Wrappers.<KpiGroupIndicator>lambdaQuery() | |
97 | -// .eq(KpiGroupIndicator::getIndicatorCode, indicatorCode) | |
98 | -// .eq(KpiGroupIndicator::getYn, Boolean.TRUE) | |
99 | -// ); | |
100 | -// if (PublicUtil.isEmpty(kpiGroupIndicators)) { | |
101 | -// throw new BusinessException("指标不存在"); | |
102 | -// } | |
103 | -// KpiIndicatorBO bo = KpiIndicatorBO.builder() | |
104 | -// .indicatorCode(indicatorCode) | |
105 | -// .indicatorName(kpiGroupIndicators.get(0).getIndicatorName()) | |
106 | -// .postId(postId) | |
107 | -// .postName(postName) | |
108 | -// .groupId(groupId) | |
109 | -// .build(); | |
110 | -// sendNotice(bo, localDate); | |
111 | - } | |
112 | - | |
113 | - /** | |
114 | - * 发送绩效数据上报mq | |
115 | - * | |
116 | - * @param indicatorBO | |
117 | - * @param localDate | |
118 | - */ | |
119 | - @Transactional(rollbackFor = Exception.class) | |
120 | - public void sendNotice(KpiIndicatorBO indicatorBO, final LocalDate localDate) { | |
121 | - KpiMqLog mqlog = new KpiMqLog(); | |
122 | - mqlog.setIndicatorCode(indicatorBO.getIndicatorCode()); | |
123 | - mqlog.setPostId(indicatorBO.getPostId()); | |
124 | - mqlog.setSendDate(localDate); | |
125 | - mqlog.setGroupId(indicatorBO.getGroupId()); | |
126 | - kpiMqLogService.save(mqlog); | |
127 | - | |
128 | - kpiIndicatorReportProducer.send(KpiReportNoticeMQ.builder() | |
129 | - .indicatorCode(indicatorBO.getIndicatorCode()) | |
130 | - .indicatorName(indicatorBO.getIndicatorName()) | |
131 | - .postId(indicatorBO.getPostId()) | |
132 | - .postName(indicatorBO.getPostName()) | |
133 | - .groupId(indicatorBO.getGroupId()) | |
134 | - .uploadDate(DateUtil.localDate2Date(localDate)) | |
135 | - .uid(mqlog.getId()) | |
136 | - .build()); | |
137 | - | |
138 | - } | |
139 | 69 | |
140 | 70 | @Transactional(rollbackFor = Exception.class) |
141 | 71 | public void reportKpiReward(KpiPointRewardReq req) { |
... | ... | @@ -172,7 +102,7 @@ public class KpiReportService { |
172 | 102 | public void persistenceUserKpiData() { |
173 | 103 | ThreadPoolExecutor threadPool = ThreadPoolUtil.getInstance().getThreadPool(); |
174 | 104 | ListOperations<String, String> opsForList = stringRedisTemplate.opsForList(); |
175 | - List<String> overflowsList = new ArrayList<>(); | |
105 | + List<String> overflowsOrFailList = new ArrayList<>(); | |
176 | 106 | String jsonStr; |
177 | 107 | while ((jsonStr = opsForList.leftPop(getIndicatorKeyPref())) != null) { |
178 | 108 | final UserIndicatorBO bo = JSONObject.parseObject(jsonStr, UserIndicatorBO.class); |
... | ... | @@ -181,21 +111,21 @@ public class KpiReportService { |
181 | 111 | } |
182 | 112 | try { |
183 | 113 | //保存业务系统绩效指标值 |
184 | - String finalJsonStr = jsonStr; | |
114 | + final String finalJsonStr = jsonStr; | |
185 | 115 | threadPool.execute(() -> { |
186 | 116 | try { |
187 | 117 | saveUserIndicator(bo); |
188 | 118 | } catch (Exception e) { |
189 | 119 | log.error("保存业务系统绩效指标值失败:{}", bo, e); |
190 | - opsForList.rightPushAll(getIndicatorKeyPref(), finalJsonStr); | |
120 | + overflowsOrFailList.add(finalJsonStr); | |
191 | 121 | } |
192 | 122 | }); |
193 | 123 | } catch (RejectedExecutionException re) { |
194 | - overflowsList.add(jsonStr); | |
124 | + overflowsOrFailList.add(jsonStr); | |
195 | 125 | } |
196 | 126 | } |
197 | - if (!CollectionUtils.isEmpty(overflowsList)) { | |
198 | - opsForList.rightPushAll(getIndicatorKeyPref(), overflowsList); | |
127 | + if (!CollectionUtils.isEmpty(overflowsOrFailList)) { | |
128 | + opsForList.rightPushAll(getIndicatorKeyPref(), overflowsOrFailList); | |
199 | 129 | } |
200 | 130 | } |
201 | 131 | |
... | ... | @@ -323,7 +253,7 @@ public class KpiReportService { |
323 | 253 | return; |
324 | 254 | } |
325 | 255 | Set<Long> userIds = userList.stream().map(KpiGroupUser::getUserId).collect(Collectors.toSet()); |
326 | - List<KpiGroupUser> notExistUser = groupUsers.stream().filter(user -> (! userIds.contains(user.getUserId()))).collect(Collectors.toList()); | |
256 | + List<KpiGroupUser> notExistUser = groupUsers.stream().filter(user -> (!userIds.contains(user.getUserId()))).collect(Collectors.toList()); | |
327 | 257 | userList.addAll(notExistUser); |
328 | 258 | } |
329 | 259 | |
... | ... | @@ -331,51 +261,29 @@ public class KpiReportService { |
331 | 261 | * 持久化业务系统上报的指标数据 |
332 | 262 | * |
333 | 263 | * @param bo |
334 | - * @throws cn.fw.common.exception.BusinessException 校验数据异常 | |
335 | 264 | */ |
336 | 265 | @Transactional(rollbackFor = Exception.class) |
337 | - protected void saveUserIndicator(UserIndicatorBO bo) { | |
338 | - LocalDate dataDate = DateUtil.date2LocalDate(bo.getDataDate()); | |
339 | - //先通过绩效组获取绩效池,绩效池不存在就创建,绩效池存在检查绩效池在职门店与员工在职门店是否一致 | |
340 | - KpiGroup kpiGroup = kpiGroupService.getEffectGroup(bo.getShopId(), bo.getPostId(), bo.getDataDate()); | |
341 | - if (PublicUtil.isEmpty(kpiGroup)) { | |
342 | - log.error("上报门店、岗位不存在绩效组,上报数据:{}", JSON.toJSONString(bo)); | |
343 | - throw new BusinessException("绩效数据上报,绩效组不存在"); | |
344 | - } | |
345 | - | |
346 | - KpiGroupUser groupUser = kpiGroupUserService.getOne(Wrappers.<KpiGroupUser>lambdaQuery() | |
347 | - .eq(KpiGroupUser::getShopId, bo.getShopId()) | |
348 | - .eq(KpiGroupUser::getPostId, bo.getPostId()) | |
349 | - .eq(KpiGroupUser::getUserId, bo.getUserId()) | |
350 | - .eq(KpiGroupUser::getDataDate, dataDate) | |
351 | - .eq(KpiGroupUser::getYn, Boolean.TRUE) | |
352 | - ); | |
353 | - | |
354 | - KpiPool kpiPool = kpiPoolCommonService.inspectionPool(groupUser); | |
355 | - BV.notNull(kpiPool, () -> "用户绩效池不存在"); | |
356 | - | |
357 | - if (PublicUtil.isEmpty(groupUser)) { | |
358 | - log.error("上报门店、岗位不存在绩效人员,上报数据:{}", JSON.toJSONString(bo)); | |
359 | - throw new BusinessException("绩效数据上报,绩效人员不存在"); | |
266 | + public void saveUserIndicator(UserIndicatorBO bo) { | |
267 | + final LocalDate dataDate = DateUtil.date2LocalDate(bo.getDataDate()); | |
268 | + Indicators indicator = indicatorsService.queryByCode(bo.getIndicatorCode(), Boolean.FALSE); | |
269 | + if (Objects.isNull(indicator)) { | |
270 | + return; | |
360 | 271 | } |
361 | - | |
362 | - kpiPoolIndicatorValueService.update(Wrappers.<KpiPoolIndicatorValue>lambdaUpdate() | |
363 | - .set(KpiPoolIndicatorValue::getYn, Boolean.FALSE) | |
364 | - .eq(KpiPoolIndicatorValue::getUserId, bo.getUserId()) | |
365 | - .eq(KpiPoolIndicatorValue::getDataDate, DateUtil.date2LocalDate(bo.getDataDate())) | |
366 | - .eq(KpiPoolIndicatorValue::getIndicatorCode, bo.getIndicatorCode()) | |
272 | + KpiIndicatorUserValue value = new KpiIndicatorUserValue(); | |
273 | + value.setUserId(bo.getUserId()); | |
274 | + value.setIndicatorCode(indicator.getIndicatorCode()); | |
275 | + value.setIndicatorName(indicator.getIndicatorName()); | |
276 | + value.setIndicatorValue(bo.getValue()); | |
277 | + value.setDataDate(dataDate); | |
278 | + value.setGroupId(bo.getGroupId()); | |
279 | + value.setYn(Boolean.TRUE); | |
280 | + kpiIndicatorUserValueService.remove(Wrappers.<KpiIndicatorUserValue>lambdaQuery() | |
281 | + .eq(KpiIndicatorUserValue::getUserId, value.getUserId()) | |
282 | + .eq(KpiIndicatorUserValue::getIndicatorCode, value.getIndicatorCode()) | |
283 | + .eq(KpiIndicatorUserValue::getDataDate, dataDate) | |
284 | + .eq(KpiIndicatorUserValue::getGroupId, value.getGroupId()) | |
367 | 285 | ); |
368 | - KpiPoolIndicatorValue kpiValue = new KpiPoolIndicatorValue(); | |
369 | - kpiValue.setKpiPoolId(kpiPool.getId()); | |
370 | - kpiValue.setUserId(bo.getUserId()); | |
371 | - kpiValue.setIndicatorCode(bo.getIndicatorCode()); | |
372 | - kpiValue.setIndicatorValue(bo.getValue()); | |
373 | - kpiValue.setDataDate(dataDate); | |
374 | - kpiValue.setMqLogId(bo.getUid()); | |
375 | - kpiValue.setGroupId(kpiPool.getGroupId()); | |
376 | - kpiValue.setYn(Boolean.TRUE); | |
377 | - kpiValue.setIndicatorScore(BigDecimal.ZERO); | |
378 | - kpiPoolIndicatorValueService.save(kpiValue); | |
286 | + kpiIndicatorUserValueService.save(value); | |
379 | 287 | } |
380 | 288 | |
381 | 289 | /** | ... | ... |
fw-morax-service/src/main/java/cn/fw/morax/service/component/KpiIndicatorReportProducer.java deleted
1 | -package cn.fw.morax.service.component; | |
2 | - | |
3 | -import cn.fw.morax.sdk.dto.kpi.KpiReportNoticeMQ; | |
4 | -import lombok.extern.slf4j.Slf4j; | |
5 | -import org.apache.rocketmq.spring.core.RocketMQTemplate; | |
6 | -import org.springframework.beans.factory.annotation.Autowired; | |
7 | -import org.springframework.stereotype.Component; | |
8 | -import org.springframework.web.bind.annotation.RequestMapping; | |
9 | - | |
10 | -/** | |
11 | - * @author kurisu | |
12 | - */ | |
13 | -@Slf4j | |
14 | -@Component | |
15 | -public class KpiIndicatorReportProducer { | |
16 | - @Autowired | |
17 | - private RocketMQTemplate rocketMQTemplate; | |
18 | - | |
19 | - @RequestMapping(value = "send") | |
20 | - public void send(KpiReportNoticeMQ dto) { | |
21 | - log.info("指标业务数据上报通知mq: body:[{}]", dto); | |
22 | - rocketMQTemplate.syncSend(KpiReportNoticeMQ.TOPIC + ":*", dto); | |
23 | - } | |
24 | -} | |
25 | 0 | \ No newline at end of file |
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/KpiGroupIndicatorHitLogService.java
0 → 100644
1 | +package cn.fw.morax.service.data.kpi; | |
2 | + | |
3 | +import cn.fw.morax.domain.db.kpi.KpiGroupIndicatorHitLog; | |
4 | +import com.baomidou.mybatisplus.extension.service.IService; | |
5 | + | |
6 | +/** | |
7 | + * 指标配置命中记录 | |
8 | + * | |
9 | + * @author : kurisu | |
10 | + * @version : 2.0 | |
11 | + * @className : KpiGroupIndicatorHitLogService | |
12 | + * @description : 指标配置命中记录 | |
13 | + * @date : 2022-12-15 10:07 | |
14 | + */ | |
15 | +public interface KpiGroupIndicatorHitLogService extends IService<KpiGroupIndicatorHitLog> { | |
16 | +} | ... | ... |
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/KpiGroupIndicatorPreconditionHitLogService.java
0 → 100644
1 | +package cn.fw.morax.service.data.kpi; | |
2 | + | |
3 | +import cn.fw.morax.domain.db.kpi.KpiGroupIndicatorPreconditionHitLog; | |
4 | +import com.baomidou.mybatisplus.extension.service.IService; | |
5 | + | |
6 | +/** | |
7 | + * 前置条件命中记录 | |
8 | + * | |
9 | + * @author : kurisu | |
10 | + * @version : 2.0 | |
11 | + * @className : KpiGroupIndicatorPreconditionHitLogService | |
12 | + * @description : 前置条件命中记录 | |
13 | + * @date : 2022-12-15 10:18 | |
14 | + */ | |
15 | +public interface KpiGroupIndicatorPreconditionHitLogService extends IService<KpiGroupIndicatorPreconditionHitLog> { | |
16 | +} | ... | ... |
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/KpiGroupIndicatorScoreLogService.java
0 → 100644
1 | +package cn.fw.morax.service.data.kpi; | |
2 | + | |
3 | +import cn.fw.morax.domain.db.kpi.KpiGroupIndicatorScoreLog; | |
4 | +import com.baomidou.mybatisplus.extension.service.IService; | |
5 | + | |
6 | +/** | |
7 | + * 得分记录 | |
8 | + * | |
9 | + * @author : kurisu | |
10 | + * @version : 2.0 | |
11 | + * @className : KpiGroupIndicatorScoreLogService | |
12 | + * @description : 得分记录 | |
13 | + * @date : 2022-12-15 10:22 | |
14 | + */ | |
15 | +public interface KpiGroupIndicatorScoreLogService extends IService<KpiGroupIndicatorScoreLog> { | |
16 | +} | ... | ... |
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/KpiGroupIndicatorTargetHitLogService.java
0 → 100644
1 | +package cn.fw.morax.service.data.kpi; | |
2 | + | |
3 | +import cn.fw.morax.domain.db.kpi.KpiGroupIndicatorTargetHitLog; | |
4 | +import com.baomidou.mybatisplus.extension.service.IService; | |
5 | + | |
6 | +/** | |
7 | + * @author : kurisu | |
8 | + * @version : 2.0 | |
9 | + * @className : KpiGroupIndicatorTargetHitLogService | |
10 | + * @description : 目标命中记录 | |
11 | + * @date : 2022-12-15 10:21 | |
12 | + */ | |
13 | +public interface KpiGroupIndicatorTargetHitLogService extends IService<KpiGroupIndicatorTargetHitLog> { | |
14 | +} | ... | ... |
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/KpiIndicatorUserValueService.java
0 → 100644
1 | +package cn.fw.morax.service.data.kpi; | |
2 | + | |
3 | +import cn.fw.morax.domain.db.kpi.KpiIndicatorUserValue; | |
4 | +import com.baomidou.mybatisplus.extension.service.IService; | |
5 | + | |
6 | +/** | |
7 | + * 用户上报的绩效数据 | |
8 | + * | |
9 | + * @author : kurisu | |
10 | + * @version : 2.0 | |
11 | + * @className : KpiIndicatorUserValueService | |
12 | + * @description : 用户上报的绩效数据 | |
13 | + * @date : 2022-12-15 11:24 | |
14 | + */ | |
15 | +public interface KpiIndicatorUserValueService extends IService<KpiIndicatorUserValue> { | |
16 | +} | ... | ... |
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/KpiMqLogService.java deleted
1 | -package cn.fw.morax.service.data.kpi; | |
2 | - | |
3 | -import cn.fw.morax.domain.db.kpi.KpiMqLog; | |
4 | -import com.baomidou.mybatisplus.extension.service.IService; | |
5 | - | |
6 | -/** | |
7 | - * @author : kurisu | |
8 | - * @version : 1.0 | |
9 | - * @className : KpiMqLogService | |
10 | - * @description : 绩效mq发送记录 | |
11 | - * @date : 2022-04-12 18:22 | |
12 | - */ | |
13 | -public interface KpiMqLogService extends IService<KpiMqLog> { | |
14 | -} |
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/impl/KpiGroupIndicatorHitLogServiceImpl.java
0 → 100644
1 | +package cn.fw.morax.service.data.kpi.impl; | |
2 | + | |
3 | +import cn.fw.morax.dao.kpi.KpiGroupIndicatorHitLogDao; | |
4 | +import cn.fw.morax.domain.db.kpi.KpiGroupIndicatorHitLog; | |
5 | +import cn.fw.morax.service.data.kpi.KpiGroupIndicatorHitLogService; | |
6 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
7 | +import lombok.extern.slf4j.Slf4j; | |
8 | +import org.springframework.stereotype.Service; | |
9 | + | |
10 | +/** | |
11 | + * 指标命中记录 | |
12 | + * | |
13 | + * @author : kurisu | |
14 | + * @version : 2.0 | |
15 | + * @className : KpiGroupIndicatorHitLogServiceImpl | |
16 | + * @description : 指标命中记录 | |
17 | + * @date : 2022-12-15 10:24 | |
18 | + */ | |
19 | +@Service | |
20 | +@Slf4j | |
21 | +public class KpiGroupIndicatorHitLogServiceImpl extends ServiceImpl<KpiGroupIndicatorHitLogDao, KpiGroupIndicatorHitLog> implements KpiGroupIndicatorHitLogService { | |
22 | +} | ... | ... |
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/impl/KpiGroupIndicatorPreconditionHitLogServiceImpl.java
0 → 100644
1 | +package cn.fw.morax.service.data.kpi.impl; | |
2 | + | |
3 | +import cn.fw.morax.dao.kpi.KpiGroupIndicatorPreconditionHitLogDao; | |
4 | +import cn.fw.morax.domain.db.kpi.KpiGroupIndicatorPreconditionHitLog; | |
5 | +import cn.fw.morax.service.data.kpi.KpiGroupIndicatorPreconditionHitLogService; | |
6 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
7 | +import lombok.extern.slf4j.Slf4j; | |
8 | +import org.springframework.stereotype.Service; | |
9 | + | |
10 | +/** | |
11 | + * 前置条件命中记录 | |
12 | + * | |
13 | + * @author : kurisu | |
14 | + * @version : 2.0 | |
15 | + * @className : KpiGroupIndicatorPreconditionHitLogServiceImpl | |
16 | + * @description : 前置条件命中记录 | |
17 | + * @date : 2022-12-15 10:25 | |
18 | + */ | |
19 | +@Service | |
20 | +@Slf4j | |
21 | +public class KpiGroupIndicatorPreconditionHitLogServiceImpl extends ServiceImpl<KpiGroupIndicatorPreconditionHitLogDao, KpiGroupIndicatorPreconditionHitLog> implements KpiGroupIndicatorPreconditionHitLogService { | |
22 | +} | ... | ... |
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/impl/KpiGroupIndicatorScoreLogServiceImpl.java
0 → 100644
1 | +package cn.fw.morax.service.data.kpi.impl; | |
2 | + | |
3 | +import cn.fw.morax.dao.kpi.KpiGroupIndicatorScoreLogDao; | |
4 | +import cn.fw.morax.domain.db.kpi.KpiGroupIndicatorScoreLog; | |
5 | +import cn.fw.morax.service.data.kpi.KpiGroupIndicatorScoreLogService; | |
6 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
7 | +import lombok.extern.slf4j.Slf4j; | |
8 | +import org.springframework.stereotype.Service; | |
9 | + | |
10 | +/** | |
11 | + * 得分命中记录 | |
12 | + * | |
13 | + * @author : kurisu | |
14 | + * @version : 2.0 | |
15 | + * @className : KpiGroupIndicatorScoreLogServiceImpl | |
16 | + * @description : 得分命中记录 | |
17 | + * @date : 2022-12-15 10:25 | |
18 | + */ | |
19 | +@Service | |
20 | +@Slf4j | |
21 | +public class KpiGroupIndicatorScoreLogServiceImpl extends ServiceImpl<KpiGroupIndicatorScoreLogDao, KpiGroupIndicatorScoreLog> implements KpiGroupIndicatorScoreLogService { | |
22 | +} | ... | ... |
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/impl/KpiGroupIndicatorTargetHitLogServiceImpl.java
0 → 100644
1 | +package cn.fw.morax.service.data.kpi.impl; | |
2 | + | |
3 | +import cn.fw.morax.dao.kpi.KpiGroupIndicatorTargetHitLogDao; | |
4 | +import cn.fw.morax.domain.db.kpi.KpiGroupIndicatorTargetHitLog; | |
5 | +import cn.fw.morax.service.data.kpi.KpiGroupIndicatorTargetHitLogService; | |
6 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
7 | +import lombok.extern.slf4j.Slf4j; | |
8 | +import org.springframework.stereotype.Service; | |
9 | + | |
10 | +/** | |
11 | + * 目标命中记录 | |
12 | + * | |
13 | + * @author : kurisu | |
14 | + * @version : 2.0 | |
15 | + * @className : KpiGroupIndicatorTargetHitLogServiceImpl | |
16 | + * @description : 目标命中记录 | |
17 | + * @date : 2022-12-15 10:26 | |
18 | + */ | |
19 | +@Service | |
20 | +@Slf4j | |
21 | +public class KpiGroupIndicatorTargetHitLogServiceImpl extends ServiceImpl<KpiGroupIndicatorTargetHitLogDao, KpiGroupIndicatorTargetHitLog> implements KpiGroupIndicatorTargetHitLogService { | |
22 | +} | ... | ... |
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/impl/KpiIndicatorUserValueServiceImpl.java
0 → 100644
1 | +package cn.fw.morax.service.data.kpi.impl; | |
2 | + | |
3 | +import cn.fw.morax.dao.kpi.KpiIndicatorUserValueDao; | |
4 | +import cn.fw.morax.domain.db.kpi.KpiIndicatorUserValue; | |
5 | +import cn.fw.morax.service.data.kpi.KpiIndicatorUserValueService; | |
6 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
7 | +import lombok.extern.slf4j.Slf4j; | |
8 | +import org.springframework.stereotype.Service; | |
9 | + | |
10 | +/** | |
11 | + * 绩效上报的数据 | |
12 | + * | |
13 | + * @author : kurisu | |
14 | + * @version : 2.0 | |
15 | + * @className : KpiIndicatorUserValueServiceImpl | |
16 | + * @description : 绩效上报的数据 | |
17 | + * @date : 2022-12-15 11:25 | |
18 | + */ | |
19 | +@Service | |
20 | +@Slf4j | |
21 | +public class KpiIndicatorUserValueServiceImpl extends ServiceImpl<KpiIndicatorUserValueDao, KpiIndicatorUserValue> implements KpiIndicatorUserValueService { | |
22 | +} | ... | ... |
fw-morax-service/src/main/java/cn/fw/morax/service/data/kpi/impl/KpiMqLogServiceImpl.java deleted
1 | -package cn.fw.morax.service.data.kpi.impl; | |
2 | - | |
3 | -import cn.fw.morax.dao.kpi.KpiMqLogDao; | |
4 | -import cn.fw.morax.domain.db.kpi.KpiMqLog; | |
5 | -import cn.fw.morax.service.data.kpi.KpiMqLogService; | |
6 | -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
7 | -import org.springframework.stereotype.Service; | |
8 | - | |
9 | -/** | |
10 | - * @author : kurisu | |
11 | - * @version : 1.0 | |
12 | - * @className : KpiMqLogServiceImpl | |
13 | - * @description : 绩效mq发送记录 | |
14 | - * @date : 2022-04-12 18:23 | |
15 | - */ | |
16 | -@Service | |
17 | -public class KpiMqLogServiceImpl extends ServiceImpl<KpiMqLogDao, KpiMqLog> implements KpiMqLogService { | |
18 | -} |
pom.xml
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
5 | 5 | <modelVersion>4.0.0</modelVersion> |
6 | 6 | <artifactId>fw-morax</artifactId> |
7 | - <version>1.0.0</version> | |
7 | + <version>2.0.0</version> | |
8 | 8 | <packaging>pom</packaging> |
9 | 9 | <name>fw-morax</name> |
10 | 10 | <description>绩效薪酬系统</description> |
... | ... | @@ -32,7 +32,7 @@ |
32 | 32 | <mysql-connector-java.version>5.1.47</mysql-connector-java.version> |
33 | 33 | <HikariCP.version>3.3.1</HikariCP.version> |
34 | 34 | <!-- fw --> |
35 | - <fw.morax.sdk.version>1.0.0</fw.morax.sdk.version> | |
35 | + <fw.morax.sdk.version>2.0.0</fw.morax.sdk.version> | |
36 | 36 | <rocketmq-spring-boot-starter.version>2.1.0</rocketmq-spring-boot-starter.version> |
37 | 37 | <redis.spring.boot.starter>2.0</redis.spring.boot.starter> |
38 | 38 | <fw-approval-sdk.version>1.0.0</fw-approval-sdk.version> | ... | ... |