Merge branch 'release/2.19.1.2501.01' into feature/权限
This commit is contained in:
commit
bfeab498c8
|
|
@ -1,5 +1,5 @@
|
|||
log=false
|
||||
defaultCloseNonStandard149=true
|
||||
AESEncryptScrect=990EB004A1C862721C1513AE90038C9E
|
||||
version=2.18.1.2412.01
|
||||
version=2.19.1.2501.01
|
||||
openFormulaForcedEditing=false
|
||||
|
|
@ -813,7 +813,7 @@ public class SalaryStatisticsReportServiceImpl extends Service implements Salary
|
|||
data.getList().forEach(employee -> {
|
||||
if (employee.getSubcompanyId() != null && employee.getSubcompanyId() != null) {
|
||||
subComIdNameMap.put(employee.getSubcompanyId(), employee.getSubcompanyName());
|
||||
subComIds.add(employee.getDepartmentId());
|
||||
subComIds.add(employee.getSubcompanyId());
|
||||
empIdSubComMap.put(employee.getEmployeeId(), employee.getSubcompanyId());
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -311,12 +311,15 @@ public class SalaryAcctEmployeeServiceImpl extends Service implements SalaryAcct
|
|||
return Collections.emptyList();
|
||||
}
|
||||
Set<Long> lastMonthSalaryAcctRecordIds = SalaryEntityUtil.properties(salaryAcctRecordPOS, SalaryAcctRecordPO::getId);
|
||||
// 上个月的核算人员
|
||||
List<SalaryAcctEmployeePO> lastMonthSalaryAcctEmployeePOS = listBySalaryAcctRecordIds(lastMonthSalaryAcctRecordIds);
|
||||
Map<String, SalaryAcctEmployeePO> lastMonthSalaryAcctEmployeePOMap = SalaryEntityUtil.convert2Map(lastMonthSalaryAcctEmployeePOS, salaryAcctEmployeePO -> salaryAcctEmployeePO.getEmployeeId() + "-" + salaryAcctEmployeePO.getTaxAgentId());
|
||||
// 本月的核算人员
|
||||
List<SalaryAcctEmployeePO> salaryAcctEmployeePOS = listByParam(queryParam);
|
||||
List<SalaryAcctEmployeePO> salaryAcctEmployeePOS = listBySalaryAcctRecordId(queryParam.getSalaryAcctRecordId());
|
||||
Set<String> keySet = SalaryEntityUtil.properties(salaryAcctEmployeePOS, salaryAcctEmployeePO -> salaryAcctEmployeePO.getEmployeeId() + "-" + salaryAcctEmployeePO.getTaxAgentId());
|
||||
// 上个月的核算人员
|
||||
queryParam.setSalaryAcctRecordId(null);
|
||||
queryParam.setSalaryAcctRecordIds(lastMonthSalaryAcctRecordIds);
|
||||
List<SalaryAcctEmployeePO> lastMonthSalaryAcctEmployeePOS = listByParam(queryParam);
|
||||
Map<String, SalaryAcctEmployeePO> lastMonthSalaryAcctEmployeePOMap = SalaryEntityUtil.convert2Map(lastMonthSalaryAcctEmployeePOS, salaryAcctEmployeePO -> salaryAcctEmployeePO.getEmployeeId() + "-" + salaryAcctEmployeePO.getTaxAgentId());
|
||||
|
||||
List<SalaryAcctEmployeePO> resultList = Lists.newArrayList();
|
||||
if (CollectionUtils.isNotEmpty(keySet)) {
|
||||
lastMonthSalaryAcctEmployeePOMap.forEach((k, v) -> {
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ import com.engine.salary.mapper.archive.SalaryArchiveItemMapper;
|
|||
import com.engine.salary.mapper.salaryitem.SalaryItemMapper;
|
||||
import com.engine.salary.service.*;
|
||||
import com.engine.salary.sys.entity.vo.UploadConfigResponse;
|
||||
import com.engine.salary.util.SalaryDateUtil;
|
||||
import com.engine.salary.util.SalaryEntityUtil;
|
||||
import com.engine.salary.util.SalaryI18nUtil;
|
||||
import com.engine.salary.util.SalaryLoggerUtil;
|
||||
|
|
@ -41,6 +42,7 @@ import com.google.common.collect.Lists;
|
|||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.lang3.math.NumberUtils;
|
||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||
import weaver.hrm.User;
|
||||
|
||||
|
|
@ -706,7 +708,7 @@ public class SalaryArchiveItemServiceImpl extends Service implements SalaryArchi
|
|||
String userstatus = queryParam.getUserstatus();
|
||||
r.setUsername(employee.getUsername());
|
||||
r.setDepartmentName(employee.getDepartmentName());
|
||||
r.setEmployeeStatus(UserStatusEnum.getDefaultLabelByValue(Integer.parseInt(employee.getStatus())));
|
||||
r.setEmployeeStatus(UserStatusEnum.getDefaultLabelByValue(Integer.parseInt(NumberUtils.isCreatable(employee.getStatus()) ? employee.getStatus() : "-1")));
|
||||
r.setAdjustReason(SalaryArchiveItemAdjustReasonEnum.getDefaultLabelByValue(r.getAdjustReason()));
|
||||
return (StringUtils.isBlank(username) || employee.getUsername().contains(username))
|
||||
&& (CollectionUtils.isEmpty(departmentIds) || departmentIds.contains(employee.getDepartmentId()))
|
||||
|
|
@ -739,7 +741,7 @@ public class SalaryArchiveItemServiceImpl extends Service implements SalaryArchi
|
|||
row.add(dto.getAdjustBefore());
|
||||
row.add(dto.getAdjustAfter());
|
||||
row.add(dto.getAdjustReason());
|
||||
row.add(dto.getEffectiveTime() + "");
|
||||
row.add(SalaryDateUtil.getFormatDate(dto.getEffectiveTime()));
|
||||
row.add(dto.getOperator());
|
||||
row.add(format.format(dto.getOperateTime()));
|
||||
row.add(dto.getDescription());
|
||||
|
|
|
|||
|
|
@ -90,6 +90,9 @@ public class SalaryTokenUtil {
|
|||
return heads;
|
||||
}
|
||||
BaseBean baseBean = new BaseBean();
|
||||
// 获取是否是https
|
||||
String isHttps = baseBean.getPropValue("hrmSalaryBillToken", "is_https");
|
||||
String httpKey = (StringUtils.isNotBlank(isHttps) && isHttps.equals("true")) ? "https://" : "http://";
|
||||
RecordSet rs = new RecordSet();
|
||||
Map<String, String> resultMap = new HashMap<>();
|
||||
|
||||
|
|
@ -123,7 +126,7 @@ public class SalaryTokenUtil {
|
|||
heads.put("appid", appid);
|
||||
heads.put("cpk", cpk);
|
||||
// 调用ECOLOGY系统接口进行注册
|
||||
String data = post("http://" + ip + "/api/ec/dev/auth/regist", null, heads);
|
||||
String data = post(httpKey + ip + "/api/ec/dev/auth/regist", null, heads);
|
||||
Map<String, Object> datas = JSONObject.parseObject(data, new TypeReference<Map<String, Object>>() {});
|
||||
// ECOLOGY返回的系统公钥
|
||||
String spk = (String) (datas.get("spk"));
|
||||
|
|
@ -144,7 +147,7 @@ public class SalaryTokenUtil {
|
|||
heads.put("appid", appid);
|
||||
heads.put("secret", secret);
|
||||
//调用ECOLOGY系统接口进行注册
|
||||
String data2 = post("http://" + ip + "/api/ec/dev/auth/applytoken", null, heads);
|
||||
String data2 = post(httpKey + ip + "/api/ec/dev/auth/applytoken", null, heads);
|
||||
// 通过第一步注册许可时返回spk公钥对userid进行加密生成的密文
|
||||
sql= " SELECT conf_value FROM hrsa_salary_sys_conf t WHERE delete_type = 0 AND conf_key = 'SALARY_TOKEN_SPK'";
|
||||
rs.execute(sql);
|
||||
|
|
|
|||
Loading…
Reference in New Issue