Commit 2c562227 authored by fangxinjiang's avatar fangxinjiang

Merge remote-tracking branch 'origin/develop' into develop

parents e2373ce7 d34abece
...@@ -57,6 +57,12 @@ public class TSalaryStandardExportVo implements Serializable { ...@@ -57,6 +57,12 @@ public class TSalaryStandardExportVo implements Serializable {
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("项目编码") @ExcelProperty("项目编码")
private String deptNo; private String deptNo;
@ExcelAttribute(name = "申请编码", maxLength = 32)
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("申请编码")
private String applyNo;
/** /**
* 项目金额 * 项目金额
*/ */
......
...@@ -575,7 +575,7 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe ...@@ -575,7 +575,7 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
error.setType(CommonConstants.ONE_STRING); error.setType(CommonConstants.ONE_STRING);
error.setCreateUserName(s.getCreateName()); error.setCreateUserName(s.getCreateName());
error.setLinkId(account.getId()); error.setLinkId(account.getId());
error.setTitle(sendBack); error.setTitle(sendBack == null ? SalaryConstants.EKP_NO_RETURN : sendBack);
error.setNums(CommonConstants.ONE_INT); error.setNums(CommonConstants.ONE_INT);
HttpDaprUtil.invokeMethodPost(socialProperties.getAppUrl(), socialProperties.getAppId() HttpDaprUtil.invokeMethodPost(socialProperties.getAppUrl(), socialProperties.getAppId()
, "/tsendekperror/inner/saveError", error, Boolean.class, SecurityConstants.FROM_IN); , "/tsendekperror/inner/saveError", error, Boolean.class, SecurityConstants.FROM_IN);
...@@ -594,9 +594,15 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe ...@@ -594,9 +594,15 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
standardParam.setFd_3b3d3ec85bfeb0(s.getSalaryMonth().substring(0,4) standardParam.setFd_3b3d3ec85bfeb0(s.getSalaryMonth().substring(0,4)
+ CommonConstants.CENTER_SPLIT_LINE_STRING + s.getSalaryMonth().substring(4,6)); + CommonConstants.CENTER_SPLIT_LINE_STRING + s.getSalaryMonth().substring(4,6));
// 推送主表信息 // 推送主表信息
sendBack = ekpSalaryUtil.sendStandardToEKP(s.getCreateName(), standardParam); String loginName;
if (user != null) {
loginName = user.getUsername();
} else {
loginName = s.getCreateName();
}
sendBack = ekpSalaryUtil.sendStandardToEKP(loginName, standardParam);
if (Common.isEmpty(sendBack) || sendBack.length() != 32) { if (Common.isEmpty(sendBack) || sendBack.length() != 32) {
sendBack = ekpSalaryUtil.sendStandardToEKP(s.getCreateName(), standardParam); sendBack = ekpSalaryUtil.sendStandardToEKP(loginName, standardParam);
} }
s.setSendTime(new Date()); s.setSendTime(new Date());
s.setSendMonth(nowMonth); s.setSendMonth(nowMonth);
...@@ -789,7 +795,7 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe ...@@ -789,7 +795,7 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
error.setType(CommonConstants.ZERO_STRING); error.setType(CommonConstants.ZERO_STRING);
error.setCreateUserName(s.getCreateName()); error.setCreateUserName(s.getCreateName());
error.setLinkId(account.getFd_3b10af838eab5c()); error.setLinkId(account.getFd_3b10af838eab5c());
error.setTitle(sendBack); error.setTitle(sendBack == null ? SalaryConstants.EKP_NO_RETURN : sendBack);
error.setNums(CommonConstants.ONE_INT); error.setNums(CommonConstants.ONE_INT);
HttpDaprUtil.invokeMethodPost(socialProperties.getAppUrl(), socialProperties.getAppId() HttpDaprUtil.invokeMethodPost(socialProperties.getAppUrl(), socialProperties.getAppId()
, "/tsendekperror/inner/saveError", error, Boolean.class, SecurityConstants.FROM_IN); , "/tsendekperror/inner/saveError", error, Boolean.class, SecurityConstants.FROM_IN);
...@@ -877,7 +883,7 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe ...@@ -877,7 +883,7 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
error.setType(CommonConstants.ZERO_STRING); error.setType(CommonConstants.ZERO_STRING);
error.setCreateUserName(s.getCreateName()); error.setCreateUserName(s.getCreateName());
error.setLinkId(account.getFd_3b10af838eab5c()); error.setLinkId(account.getFd_3b10af838eab5c());
error.setTitle(sendBack); error.setTitle(sendBack == null ? SalaryConstants.EKP_NO_RETURN : sendBack);
error.setNums(CommonConstants.ONE_INT); error.setNums(CommonConstants.ONE_INT);
HttpDaprUtil.invokeMethodPost(socialProperties.getAppUrl(), socialProperties.getAppId() HttpDaprUtil.invokeMethodPost(socialProperties.getAppUrl(), socialProperties.getAppId()
, "/tsendekperror/inner/saveError", error, Boolean.class, SecurityConstants.FROM_IN); , "/tsendekperror/inner/saveError", error, Boolean.class, SecurityConstants.FROM_IN);
...@@ -901,9 +907,16 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe ...@@ -901,9 +907,16 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
param.setFd_3b3c293745e7b4(ss.getDeptName()); param.setFd_3b3c293745e7b4(ss.getDeptName());
param.setFd_3b3c2935c13056(ss.getDeptNo()); param.setFd_3b3c2935c13056(ss.getDeptNo());
param.setFd_3b3c293811c0ee(ss.getApplyNo()); param.setFd_3b3c293811c0ee(ss.getApplyNo());
String sendBack = ekpSalaryUtil.backStandardToEKP(ss.getCreateName(), param); YifuUser user = SecurityUtils.getUser();
String loginName;
if (user != null) {
loginName = user.getUsername();
} else {
loginName = ss.getCreateName();
}
String sendBack = ekpSalaryUtil.backStandardToEKP(loginName, param);
if (Common.isEmpty(sendBack) || sendBack.length() != 32) { if (Common.isEmpty(sendBack) || sendBack.length() != 32) {
sendBack = ekpSalaryUtil.backStandardToEKP(ss.getCreateName(), param); sendBack = ekpSalaryUtil.backStandardToEKP(loginName, param);
} }
if (Common.isNotNull(sendBack) && sendBack.length() == 32) { if (Common.isNotNull(sendBack) && sendBack.length() == 32) {
// 更新薪资为确认不通过 // 更新薪资为确认不通过
...@@ -921,6 +934,10 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe ...@@ -921,6 +934,10 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
HttpDaprUtil.invokeMethodPost(socialProperties.getAppUrl(), socialProperties.getAppId() HttpDaprUtil.invokeMethodPost(socialProperties.getAppUrl(), socialProperties.getAppId()
, "/tincome/inner/deleteIncomeAndDetailByApplyNo", income , "/tincome/inner/deleteIncomeAndDetailByApplyNo", income
, Object.class, SecurityConstants.FROM_IN); , Object.class, SecurityConstants.FROM_IN);
// 添加流程进展明细
if (user != null) {
this.saveRecordLog(ss, user, CommonConstants.ZERO_STRING, "从EKP退表");
}
return R.ok(); return R.ok();
} else { } else {
TSendEkpError error = new TSendEkpError(); TSendEkpError error = new TSendEkpError();
...@@ -929,7 +946,7 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe ...@@ -929,7 +946,7 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
error.setType(CommonConstants.SEVEN_STRING); error.setType(CommonConstants.SEVEN_STRING);
error.setCreateUserName(ss.getCreateName()); error.setCreateUserName(ss.getCreateName());
error.setLinkId(ss.getId()); error.setLinkId(ss.getId());
error.setTitle(sendBack); error.setTitle(sendBack == null ? SalaryConstants.EKP_NO_RETURN : sendBack);
error.setNums(CommonConstants.ONE_INT); error.setNums(CommonConstants.ONE_INT);
HttpDaprUtil.invokeMethodPost(socialProperties.getAppUrl(), socialProperties.getAppId() HttpDaprUtil.invokeMethodPost(socialProperties.getAppUrl(), socialProperties.getAppId()
, "/tsendekperror/inner/saveError", error, Boolean.class, SecurityConstants.FROM_IN); , "/tsendekperror/inner/saveError", error, Boolean.class, SecurityConstants.FROM_IN);
......
...@@ -174,4 +174,5 @@ public class SalaryConstants { ...@@ -174,4 +174,5 @@ public class SalaryConstants {
public static final String PROVINCE_ERROR = "开户行省错误!"; public static final String PROVINCE_ERROR = "开户行省错误!";
public static final String CITY_ERROR = "开户行市错误!"; public static final String CITY_ERROR = "开户行市错误!";
public static final String CUR_TAX_INFO = "当前项目薪酬人员已维护计税月份,计税月份沿用系统原值,其他字段已更新!"; public static final String CUR_TAX_INFO = "当前项目薪酬人员已维护计税月份,计税月份沿用系统原值,其他字段已更新!";
public static final String EKP_NO_RETURN = "推送EKP无结果返回";
} }
...@@ -388,12 +388,14 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa ...@@ -388,12 +388,14 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
} }
} }
if (Common.isNotNull(socialCreateMonth)) { if (Common.isNotNull(socialCreateMonth)) {
wrapper.eq(TPaymentInfo::getSocialCreateMonth, socialCreateMonth).or() wrapper.and(wrapper2 -> wrapper2.eq(TPaymentInfo::getSocialCreateMonth, socialCreateMonth)
.eq(TPaymentInfo::getProvidentCreateMonth, socialCreateMonth); .or(wrapper1 -> wrapper1.eq(TPaymentInfo::getProvidentCreateMonth, socialCreateMonth)
));
} }
if (Common.isNotNull(socialPayMonth)) { if (Common.isNotNull(socialPayMonth)) {
wrapper.eq(TPaymentInfo::getSocialPayMonth, socialPayMonth).or() wrapper.and(wrapper2 -> wrapper2.eq(TPaymentInfo::getSocialPayMonth, socialPayMonth)
.eq(TPaymentInfo::getProvidentPayMonth, socialPayMonth); .or(wrapper1 -> wrapper1.eq(TPaymentInfo::getProvidentPayMonth, socialPayMonth)
));
} }
return wrapper; return wrapper;
} }
......
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