亨通,无账号人员工资单

This commit is contained in:
钱涛 2025-12-05 16:36:09 +08:00
parent 01617ca39e
commit 8531fec598
3 changed files with 21 additions and 1 deletions

View File

@ -371,7 +371,8 @@ public class SalaryBillBO {
}
}
}
content = content.replace("%salaryInfoId%", Util.null2String(e.get("id")));
String salaryInfoCode = AESEncryptUtil.encrypt4SalaryBill(Util.null2String(e.get("id")));
content = content.replace("%salaryInfoCode%", salaryInfoCode);
try {
if (e.get("mobile") != null) {

View File

@ -702,6 +702,15 @@ public class SalaryBillController {
return new ResponseResult<Long, Map<String, Object>>(user).run(getSalarySendWrapper(user)::mySalaryBill, salaryInfoId);
}
@GET
@Path("/outSalaryBill")
@Produces(MediaType.APPLICATION_JSON)
public String outSalaryBill(@Context HttpServletRequest request, @Context HttpServletResponse response, @QueryParam(value = "salaryInfoCode") String salaryInfoCode) {
User user = null;
user = HrmUserVarify.getUser(request, response);
return new ResponseResult<String, Map<String, Object>>(user).run(getSalarySendWrapper(user)::outSalaryBill, salaryInfoCode);
}
/**
* 确认工资单
*

View File

@ -15,6 +15,7 @@ import com.cloudstore.eccom.result.WeaResultMsg;
import com.engine.common.util.ServiceUtil;
import com.engine.core.impl.Service;
import com.engine.salary.constant.SalaryItemConstant;
import com.engine.salary.encrypt.AESEncryptUtil;
import com.engine.salary.entity.salaryBill.dto.*;
import com.engine.salary.entity.salaryBill.param.*;
import com.engine.salary.entity.salaryBill.po.SalarySendInfoPO;
@ -672,6 +673,15 @@ public class SalarySendWrapper extends Service implements SalarySendWrapperProxy
* @return
*/
public Map<String, Object> mySalaryBill(Long salaryInfoId) {
if (user == null) {
throw new SalaryRunTimeException("获取人员信息失败!");
}
return getSalarySendService(user).mySalaryBill(salaryInfoId, (long) user.getUID());
}
public Map<String, Object> outSalaryBill(String salaryInfoCode) {
salaryInfoCode = AESEncryptUtil.decrypt4SalaryBill(salaryInfoCode);
long salaryInfoId = Long.parseLong(salaryInfoCode);
SalarySendInfoPO salarySendInfo = getSalarySendInfoMapper().getById(salaryInfoId);
if (salarySendInfo == null) {
throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(100511, "工资单信息不存在"));