Commit e6127c44 authored by fangxinjiang's avatar fangxinjiang

工资兼容订单接口

parent 8707c12b
...@@ -110,7 +110,7 @@ public class FileUploadController { ...@@ -110,7 +110,7 @@ public class FileUploadController {
} }
for (TAttaInfo atta:attas){ for (TAttaInfo atta:attas){
URL url = ossUtil.getObjectUrl(null, atta.getAttaSrc()); URL url = ossUtil.getObjectUrl(null, atta.getAttaSrc());
atta.setAttaUrl(url.toString()); atta.setAttaUrl(url.toString().replace("http","https"));
} }
return new R<>(attas); return new R<>(attas);
} }
......
...@@ -117,7 +117,7 @@ public class TSalaryAttaController { ...@@ -117,7 +117,7 @@ public class TSalaryAttaController {
return R.failed("无对应附件信息"); return R.failed("无对应附件信息");
} }
URL url = ossUtil.getObjectUrl(null, salaryAtta.getAttaSrc()); URL url = ossUtil.getObjectUrl(null, salaryAtta.getAttaSrc());
salaryAtta.setAttaUrl(url.toString()); salaryAtta.setAttaUrl(url.toString().replace("http","https"));
return new R<>(salaryAtta); return new R<>(salaryAtta);
} }
......
...@@ -150,14 +150,6 @@ public class THaveSalaryNosocialServiceImpl extends ServiceImpl<THaveSalaryNosoc ...@@ -150,14 +150,6 @@ public class THaveSalaryNosocialServiceImpl extends ServiceImpl<THaveSalaryNosoc
for (TSettleDomainSelectVo selectVo : domainListVoR.getData().getListSelectVO()) { for (TSettleDomainSelectVo selectVo : domainListVoR.getData().getListSelectVO()) {
settleDomainSelectVoMap.put(selectVo.getId(),selectVo); settleDomainSelectVoMap.put(selectVo.getId(),selectVo);
} }
//其获取所有用户
R<AllUserNaVo> allUserVoR = upmsDaprUtils.getAllUserName();
Map<String,String> allUserDTOMap=Maps.newHashMap();
if (Common.isNotNull(allUserVoR)
&& Common.isNotNull(allUserVoR.getData())
&& Common.isNotNull(allUserVoR.getData().getUserNames())){
allUserDTOMap = allUserVoR.getData().getUserNames();
}
for (THaveSalaryNosocial haveSalaryNosocial : haveSalaryNosocialList) { for (THaveSalaryNosocial haveSalaryNosocial : haveSalaryNosocialList) {
// 有工资无社保 薪酬人员查询 表单类型为薪资的 连续3个月有发薪记录 但是这三个月都没有社保缴费记录 // 有工资无社保 薪酬人员查询 表单类型为薪资的 连续3个月有发薪记录 但是这三个月都没有社保缴费记录
if (empPaymentInfoMap.get(haveSalaryNosocial.getEmployeeIdCard()) != null) { if (empPaymentInfoMap.get(haveSalaryNosocial.getEmployeeIdCard()) != null) {
...@@ -168,10 +160,6 @@ public class THaveSalaryNosocialServiceImpl extends ServiceImpl<THaveSalaryNosoc ...@@ -168,10 +160,6 @@ public class THaveSalaryNosocialServiceImpl extends ServiceImpl<THaveSalaryNosoc
TSettleDomainSelectVo selectVo = settleDomainSelectVoMap.get(haveSalaryNosocial.getSettleDomainId()); TSettleDomainSelectVo selectVo = settleDomainSelectVoMap.get(haveSalaryNosocial.getSettleDomainId());
haveSalaryNosocial.setCustomerId(selectVo!=null?selectVo.getCustomerId():null); haveSalaryNosocial.setCustomerId(selectVo!=null?selectVo.getCustomerId():null);
haveSalaryNosocial.setCustomerName(selectVo!=null?selectVo.getCustomerName():null); haveSalaryNosocial.setCustomerName(selectVo!=null?selectVo.getCustomerName():null);
//塞创建人数据
if(haveSalaryNosocial.getCreateBy()!=null) {
haveSalaryNosocial.setCreateBy(allUserDTOMap.get(haveSalaryNosocial.getCreateBy()));
}
haveSalaryNosocial.setCreateTime(LocalDateTime.now()); haveSalaryNosocial.setCreateTime(LocalDateTime.now());
haveSalaryNosocial.setCreateMonth(salaryMonth); haveSalaryNosocial.setCreateMonth(salaryMonth);
this.save(haveSalaryNosocial); this.save(haveSalaryNosocial);
......
...@@ -119,6 +119,9 @@ public class TSpecialDeducationSumServiceImpl extends ServiceImpl<TSpecialDeduca ...@@ -119,6 +119,9 @@ public class TSpecialDeducationSumServiceImpl extends ServiceImpl<TSpecialDeduca
.replace("/","") .replace("/","")
.replace("-","")); .replace("-",""));
if (Common.isNotNull(yearMonth)) { if (Common.isNotNull(yearMonth)) {
if (!Common.isNumber(yearMonth) || yearMonth.length() != CommonConstants.SIX_INT){
return R.failed("日期格式有误:" + yearMonth + ",不允许导入");
}
if (!yearMonth.equals(nowYearMonth)) { if (!yearMonth.equals(nowYearMonth)) {
return R.failed("所得期间-不是当前年月:" + nowYearMonth + ",不允许导入"); return R.failed("所得期间-不是当前年月:" + nowYearMonth + ",不允许导入");
} }
......
...@@ -95,6 +95,7 @@ ...@@ -95,6 +95,7 @@
a.month, a.month,
a.relay_salary, a.relay_salary,
a.CREATE_NAME, a.CREATE_NAME,
a.CREATE_BY,
a.feed_back,a.reason_type a.feed_back,a.reason_type
FROM t_have_salary_nosocial a FROM t_have_salary_nosocial a
<include refid="querPage"/> <include refid="querPage"/>
......
...@@ -532,12 +532,12 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -532,12 +532,12 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
// 插入社保信息并封装社保公积金查询信息 // 插入社保信息并封装社保公积金查询信息
if (Common.isNotNull(socialsMap)){ if (Common.isNotNull(socialsMap)){
social = socialsMap.get(excel.getEmpIdcard()); social = socialsMap.get(excel.getEmpIdcard());
insertSocial(emp, social); insertSocial(emp, social,project);
} }
// 插入公积金信息并封装社保公积金查询信息 // 插入公积金信息并封装社保公积金查询信息
if (Common.isNotNull(fundsMap)){ if (Common.isNotNull(fundsMap)){
fund = fundsMap.get(excel.getEmpIdcard()); fund = fundsMap.get(excel.getEmpIdcard());
insertFund(emp, fund); insertFund(emp, fund,project);
} }
// 插入派单信息 // 插入派单信息
if (Common.isNotNull(dispatchMap)){ if (Common.isNotNull(dispatchMap)){
...@@ -615,22 +615,26 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -615,22 +615,26 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
} }
} }
private void insertSocial(EmpAddDispatchVo emp, TSocialInfo social) { private void insertSocial(EmpAddDispatchVo emp, TSocialInfo social, EmpProjectDispatchVo project) {
if (Common.isNotNull(social) && Common.isEmpty(social.getId())){ if (Common.isNotNull(social) && Common.isEmpty(social.getId())){
if (Common.isNotNull(emp)){ if (Common.isNotNull(emp)){
social.setEmpNo(emp.getEmpCode());
social.setEmpId(emp.getId()); social.setEmpId(emp.getId());
} }
if (Common.isNotNull(project)){
social.setEmpNo(project.getEmpNo());
}
socialMapper.insert(social); socialMapper.insert(social);
} }
} }
private void insertFund(EmpAddDispatchVo emp, TProvidentFund fund) { private void insertFund(EmpAddDispatchVo emp, TProvidentFund fund, EmpProjectDispatchVo project) {
if (Common.isNotNull(fund) && Common.isEmpty(fund.getId())){ if (Common.isNotNull(fund) && Common.isEmpty(fund.getId())){
if (Common.isNotNull(emp)){ if (Common.isNotNull(emp)){
fund.setEmpNo(emp.getEmpCode());
fund.setEmpId(emp.getId()); fund.setEmpId(emp.getId());
} }
if (Common.isNotNull(project)){
fund.setEmpNo(project.getEmpNo());
}
fundMapper.insert(fund); fundMapper.insert(fund);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment