钱智封存权限

This commit is contained in:
钱涛 2025-12-01 16:34:02 +08:00
parent d0d2d7b70d
commit a92bc80b64
4 changed files with 27 additions and 3 deletions

View File

@ -1,3 +1,2 @@
# ?????
actualWorkplaceField=field64
actualWorkplaceField=field2
socialManagerRoleId=28

View File

@ -365,5 +365,8 @@ public interface SIAccountService {
XSSFWorkbook exportQZReport(QZInsuranceAccountBatchParam param);
String batFC(AccountBatParam batParam);
Boolean fcAuth();
}

View File

@ -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<Object> 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);

View File

@ -249,6 +249,15 @@ public class SIAccountController {
return new ResponseResult<AccountBatParam, String>(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<AccountBatParam, Boolean>(user).run(getService(user)::fcAuth);
}
@POST
@Path("/batFC")
@Produces(MediaType.APPLICATION_JSON)