Commit f853c79a by 张富康

refactor(perfSalary): 替换北森员工信息数据类型并清理依赖

- 将BeiSenEmployeeInfo替换为StaffBeisenBaseInfo以统一数据模型
- 修改代码中相应的变量类型和方法调用以适配新模型字段
- 删除pom.xml中未使用的platform-merchants-api依赖项
- 精简依赖配置,减少项目冗余依赖提高构建速度
1 parent 3feb77f1
......@@ -50,13 +50,6 @@
</dependency>
<dependency>
<groupId>cn.com.glsx.merchants</groupId>
<artifactId>platform-merchants-api</artifactId>
<!-- todz 待修改-->
<version>5.5.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.oreframework.boot</groupId>
<artifactId>ore-boot-starter-elasticjob</artifactId>
</dependency>
......
package cn.com.glsx.dj.staff.service.perfSalary;
import cn.com.glsx.dj.staff.dto.perfSalary.BeiSenEmployeeInfo;
import cn.com.glsx.dj.staff.model.StaffBeisenBaseInfo;
import cn.com.glsx.framework.core.exception.RpcServiceException;
import lombok.extern.slf4j.Slf4j;
import org.oreframework.boot.env.OrePropertyConfigurer;
......@@ -22,11 +22,11 @@ public class AttendanceDataCleansingService {
public void attendanceDataCleansing() {
// 查询北森全量数据
List<BeiSenEmployeeInfo> beiSenEmployeeInfos = new ArrayList<>();
beiSenEmployeeInfos.add(new BeiSenEmployeeInfo());
beiSenEmployeeInfos.add(new BeiSenEmployeeInfo());
List<StaffBeisenBaseInfo> beiSenEmployeeInfos = new ArrayList<>();
beiSenEmployeeInfos.add(new StaffBeisenBaseInfo());
beiSenEmployeeInfos.add(new StaffBeisenBaseInfo());
// 对员工分批查询上月考勤信息
List<List<BeiSenEmployeeInfo>> beiSenEmployeeInfoBatches = new ArrayList<>();
List<List<StaffBeisenBaseInfo>> beiSenEmployeeInfoBatches = new ArrayList<>();
for (int i = 0; i < beiSenEmployeeInfos.size(); i += EMPLOYEE_BATCH_SIZE) {
beiSenEmployeeInfoBatches.add(new ArrayList<>(beiSenEmployeeInfos.subList(
i,
......@@ -34,8 +34,8 @@ public class AttendanceDataCleansingService {
)));
}
// 通过手机号查询当月考勤数据处理
for (List<BeiSenEmployeeInfo> itemList : beiSenEmployeeInfoBatches) {
List<String> mobilePhones = itemList.stream().map(BeiSenEmployeeInfo::getMobilePhone).collect(Collectors.toList());
for (List<StaffBeisenBaseInfo> itemList : beiSenEmployeeInfoBatches) {
List<String> mobilePhones = itemList.stream().map(StaffBeisenBaseInfo::getStaffPhone).collect(Collectors.toList());
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!