钱智封存权限
This commit is contained in:
parent
d0d2d7b70d
commit
a92bc80b64
|
|
@ -1,3 +1,2 @@
|
|||
# ?????
|
||||
actualWorkplaceField=field64
|
||||
|
||||
actualWorkplaceField=field2
|
||||
socialManagerRoleId=28
|
||||
|
|
|
|||
|
|
@ -365,5 +365,8 @@ public interface SIAccountService {
|
|||
XSSFWorkbook exportQZReport(QZInsuranceAccountBatchParam param);
|
||||
|
||||
String batFC(AccountBatParam batParam);
|
||||
|
||||
Boolean fcAuth();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue