From a92bc80b64e75a78ee3f805d4aac14227fbd0f94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=B1=E6=B6=9B?= <15850646081@163.com> Date: Mon, 1 Dec 2025 16:34:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=B1=E6=99=BA=E5=B0=81=E5=AD=98=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/customization/salary/hrmSalaryQZ.properties | 5 ++--- src/com/engine/salary/service/SIAccountService.java | 3 +++ .../salary/service/impl/SIAccountServiceImpl.java | 13 +++++++++++++ src/com/engine/salary/web/SIAccountController.java | 9 +++++++++ 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/resource/wiki/代码样例/拦截工资单相关接口/com/customization/salary/hrmSalaryQZ.properties b/resource/wiki/代码样例/拦截工资单相关接口/com/customization/salary/hrmSalaryQZ.properties index 98908b874..e54b05bd6 100644 --- a/resource/wiki/代码样例/拦截工资单相关接口/com/customization/salary/hrmSalaryQZ.properties +++ b/resource/wiki/代码样例/拦截工资单相关接口/com/customization/salary/hrmSalaryQZ.properties @@ -1,3 +1,2 @@ -# ????? -actualWorkplaceField=field64 - +actualWorkplaceField=field2 +socialManagerRoleId=28 diff --git a/src/com/engine/salary/service/SIAccountService.java b/src/com/engine/salary/service/SIAccountService.java index 55a262586..f16d329c6 100644 --- a/src/com/engine/salary/service/SIAccountService.java +++ b/src/com/engine/salary/service/SIAccountService.java @@ -365,5 +365,8 @@ public interface SIAccountService { XSSFWorkbook exportQZReport(QZInsuranceAccountBatchParam param); String batFC(AccountBatParam batParam); + + Boolean fcAuth(); + } diff --git a/src/com/engine/salary/service/impl/SIAccountServiceImpl.java b/src/com/engine/salary/service/impl/SIAccountServiceImpl.java index aff4aa957..77d3f96e5 100644 --- a/src/com/engine/salary/service/impl/SIAccountServiceImpl.java +++ b/src/com/engine/salary/service/impl/SIAccountServiceImpl.java @@ -10,6 +10,8 @@ import com.api.formmode.mybatis.util.SqlProxyHandle; import com.cloudstore.dev.api.util.Util_DataCache; import com.cloudstore.eccom.pc.table.*; import com.cloudstore.eccom.result.WeaResultMsg; +import com.engine.common.service.HrmCommonService; +import com.engine.common.service.impl.HrmCommonServiceImpl; import com.engine.common.util.ServiceUtil; import com.engine.core.impl.Service; import com.engine.hrmelog.entity.dto.LoggerContext; @@ -87,6 +89,7 @@ import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.util.IOUtils; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import weaver.file.ImageFileManager; +import weaver.general.BaseBean; import weaver.general.Util; import weaver.hrm.User; @@ -7329,6 +7332,16 @@ public class SIAccountServiceImpl extends Service implements SIAccountService { return String.format("成功:" + success + "个,失败:" + fail + "个%s", fail == 0 ? "" : ",失败原因:" + msg); } + @Override + public Boolean fcAuth() { + BaseBean bb = new BaseBean(); + String socialManagerRoleId = bb.getPropValue("hrmSalaryQZ", "socialManagerRoleId"); + HrmCommonService hrmCommonService = new HrmCommonServiceImpl(); + List ids = hrmCommonService.getRoleMembers(socialManagerRoleId, "2"); + + return ids.contains(Util.null2String(user.getUID())); + } + public void fc(String billMonth, Long paymentOrganization, FCEnum fc) { InsuranceAccountBatchPO insuranceAccountBatchPO = getInsuranceAccountBatchMapper().getByBillMonth(billMonth, paymentOrganization); diff --git a/src/com/engine/salary/web/SIAccountController.java b/src/com/engine/salary/web/SIAccountController.java index c8edfbe61..73bf41f3f 100644 --- a/src/com/engine/salary/web/SIAccountController.java +++ b/src/com/engine/salary/web/SIAccountController.java @@ -249,6 +249,15 @@ public class SIAccountController { return new ResponseResult(user).run(getService(user)::batSocialSecurityBenefitsRecalculate,batParam); } + @POST + @Path("/fcAuth") + @Produces(MediaType.APPLICATION_JSON) + public String fcAuth(@Context HttpServletRequest request, @Context HttpServletResponse response) { + User user = HrmUserVarify.getUser(request, response); + return new ResponseResult(user).run(getService(user)::fcAuth); + } + + @POST @Path("/batFC") @Produces(MediaType.APPLICATION_JSON)