社保台账操作按钮
This commit is contained in:
parent
78c8d06200
commit
0d7cdeddb0
|
|
@ -67,6 +67,7 @@ public class InsuranceAccountBO {
|
|||
.paymentOrganization(e.getPaymentOrganization() != null ? MapperProxyFactory.getProxy(TaxAgentMapper.class).getById(e.getPaymentOrganization()).getName() : "")
|
||||
.paymentOrganizationId(e.getPaymentOrganization())
|
||||
.creator(e.getCreator())
|
||||
.opts(e.getOpts())
|
||||
.build()
|
||||
).collect(Collectors.toList());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ package com.engine.salary.entity.siaccount.dto;
|
|||
|
||||
import com.cloudstore.eccom.pc.table.WeaTableType;
|
||||
import com.engine.salary.annotation.SalaryTable;
|
||||
import com.engine.salary.annotation.SalaryTableColumn;
|
||||
import com.engine.salary.annotation.SalaryTableOperate;
|
||||
import com.engine.salary.annotation.TableTitle;
|
||||
import lombok.AllArgsConstructor;
|
||||
|
|
@ -10,6 +9,8 @@ import lombok.Builder;
|
|||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @Author weaver_cl
|
||||
* @Description: 福利台账列表
|
||||
|
|
@ -111,6 +112,8 @@ public class InsuranceAccountBatchListDTO {
|
|||
@TableTitle(title = "备注", dataIndex = "remarks", key = "remarks")
|
||||
private String remarks;
|
||||
|
||||
private Set<String> opts;
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
package com.engine.salary.entity.siarchives.po;
|
||||
|
||||
import com.engine.hrmelog.annotation.ElogTransform;
|
||||
import com.engine.salary.annotation.Auth;
|
||||
import com.engine.salary.enums.auth.AuthCheckTypeEnum;
|
||||
import com.engine.salary.enums.datacollection.DataCollectionEmployeeTypeEnum;
|
||||
import com.engine.salary.enums.siaccount.EmployeeStatusEnum;
|
||||
import lombok.AllArgsConstructor;
|
||||
|
|
@ -10,6 +12,7 @@ import lombok.NoArgsConstructor;
|
|||
|
||||
import java.util.Collection;
|
||||
import java.util.Date;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @Author: sy
|
||||
|
|
@ -22,6 +25,7 @@ import java.util.Date;
|
|||
@AllArgsConstructor
|
||||
//hrsa_insurance_base_info
|
||||
@ElogTransform(name = "福利档案主表")
|
||||
@Auth(page = "siArchive", checkType = AuthCheckTypeEnum.TAX_EMP, employeeIdField = "employeeId", taxAgentIdField = "paymentOrganization")
|
||||
public class InsuranceArchivesBaseInfoPO {
|
||||
/**
|
||||
* 主键id
|
||||
|
|
@ -107,4 +111,7 @@ public class InsuranceArchivesBaseInfoPO {
|
|||
//---------条件-------
|
||||
private Collection<Long> ids;
|
||||
private Collection<Long> employeeIds;
|
||||
|
||||
|
||||
private Set<String> opts;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -270,27 +270,6 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
|
|||
|
||||
table.setColumns(weaTableColumn);
|
||||
|
||||
//table.getColumns().get(0).setFixed("left");
|
||||
// for (int i = 0; i < insuranceAccountBatchListDTOS.size(); i++) {
|
||||
// InsuranceAccountBatchListDTO insuranceAccountBatchListDTO = insuranceAccountBatchListDTOS.get(i);
|
||||
// if (Objects.equals(insuranceAccountBatchListDTO.getBillStatus(), BillStatusEnum.ARCHIVED.getDefaultLabel())) {
|
||||
// table.getOperates().getOperate().get(i).getIndex();
|
||||
//
|
||||
// resultTable.getOperatesPermission().get(i).get(0).setVisible(false);
|
||||
// resultTable.getOperatesPermission().get(i).get(1).setVisible(false);
|
||||
// resultTable.getOperatesPermission().get(i).get(2).setVisible(false);
|
||||
// resultTable.getOperatesPermission().get(i).get(3).setVisible(false);
|
||||
// resultTable.getOperates().get(4).setOuter(true);
|
||||
// }
|
||||
// if (Objects.equals(insuranceAccountBatchListDTO.getBillStatus(), BillStatusEnum.NOT_ARCHIVED.getDefaultLabel())) {
|
||||
// resultTable.getOperatesPermission().get(i).get(4).setVisible(false);
|
||||
// List<InsuranceAccountInspectPO> insuranceAccountInspectPOS = siAccountInspectService.listByBillMonth(insuranceAccountBatchListDTO.getBillMonth(), tenantKey);
|
||||
// if (CollectionUtils.isEmpty(insuranceAccountInspectPOS)) {
|
||||
// resultTable.getOperatesPermission().get(i).get(2).setVisible(false);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
WeaResultMsg result = new WeaResultMsg(false);
|
||||
result.putAll(table.makeDataResult());
|
||||
result.success();
|
||||
|
|
@ -299,20 +278,6 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
|
|||
datas.put("operatesPermission", operatesPermission);
|
||||
datas.put("dataKey", result.getResultMap());
|
||||
return datas;
|
||||
|
||||
// WeaTable<InsuranceAccountBatchListDTO> resultTable = FormatManager.<InsuranceAccountBatchListDTO>getInstance()
|
||||
// .genTable(InsuranceAccountBatchListDTO.class, insuranceAccountBatchListDTOPage);
|
||||
//
|
||||
// resultTable.getOperates().forEach(e -> {
|
||||
// if (e.getIndex() == 0) {
|
||||
// e.setOuter(true);
|
||||
// }
|
||||
// });
|
||||
|
||||
// resultTable.setModule("hrmsalary");
|
||||
// resultTable.getColumns().get(0).setFixed("left");
|
||||
// return WeaResult.success(resultTable);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ import com.engine.salary.entity.sicategory.po.ICategoryPO;
|
|||
import com.engine.salary.entity.sischeme.po.InsuranceSchemeDetailPO;
|
||||
import com.engine.salary.entity.sischeme.po.InsuranceSchemePO;
|
||||
import com.engine.salary.entity.taxagent.dto.TaxAgentEmployeeDTO;
|
||||
import com.engine.salary.entity.taxagent.dto.TaxAgentManageRangeEmployeeDTO;
|
||||
import com.engine.salary.entity.taxagent.param.TaxAgentQueryParam;
|
||||
import com.engine.salary.entity.taxagent.po.TaxAgentEmpChangePO;
|
||||
import com.engine.salary.entity.taxagent.po.TaxAgentPO;
|
||||
|
|
@ -272,16 +271,6 @@ public class SIArchivesServiceImpl extends Service implements SIArchivesService
|
|||
OrderRuleVO orderRule = getSalarySysConfService(user).orderRule();
|
||||
param.setOrderRule(orderRule);
|
||||
|
||||
Boolean needAuth = getTaxAgentService(user).isNeedAuth(currentEmployeeId);
|
||||
param.setNeedAuth(needAuth);
|
||||
if (needAuth) {
|
||||
List<TaxAgentEmployeeDTO> taxAgentEmployeeDTOS = getTaxAgentService(user).listTaxAgentAndEmployee(currentEmployeeId);
|
||||
Set<Long> employeeIds = SalaryEntityUtil.properties(taxAgentEmployeeDTOS, TaxAgentEmployeeDTO::getEmployeeId);
|
||||
Set<Long> taxAgentIds = SalaryEntityUtil.properties(taxAgentEmployeeDTOS, TaxAgentEmployeeDTO::getTaxAgentId);
|
||||
param.setTaxAgentEmployeeIds(employeeIds);
|
||||
param.setTaxAgentIds(taxAgentIds);
|
||||
}
|
||||
|
||||
Map<String, Object> apidatas = new HashMap<>(16);
|
||||
// apidatas = siArchivesBiz.listPage(param, (long) user.getUID());
|
||||
apidatas = listPage(param, (long) user.getUID());
|
||||
|
|
@ -824,29 +813,11 @@ public class SIArchivesServiceImpl extends Service implements SIArchivesService
|
|||
*/
|
||||
@Override
|
||||
public Map<String, Long> queryInsuranceTabTotal() {
|
||||
long currentEmployeeId = user.getUID();
|
||||
// tab页签数量
|
||||
Map<String, Long> result = new HashMap<>();
|
||||
Boolean needAuth = getTaxAgentService(user).isNeedAuth(currentEmployeeId);
|
||||
//获取管理的人员范围
|
||||
List<TaxAgentManageRangeEmployeeDTO> taxAgentEmployeeDTOS = getTaxAgentService(user).listTaxAgentAndEmployeeTree(currentEmployeeId);
|
||||
Map<Long, List<TaxAgentManageRangeEmployeeDTO.TaxAgentEmployee>> taxAgentEmployeesMap = SalaryEntityUtil.convert2Map(taxAgentEmployeeDTOS, TaxAgentManageRangeEmployeeDTO::getTaxAgentId, TaxAgentManageRangeEmployeeDTO::getEmployeeList);
|
||||
List<InsuranceArchivesBaseInfoPO> list = null;
|
||||
if (needAuth) {
|
||||
// 获取作为管理员的所有个税扣缴义务人列表
|
||||
Collection<TaxAgentPO> taxAgentPOS = getTaxAgentService(user).listAllTaxAgentsAsAdmin(currentEmployeeId);
|
||||
Set<Long> taxAgentIds = SalaryEntityUtil.properties(taxAgentPOS, TaxAgentPO::getId);
|
||||
//获取所有福利档案基础信息
|
||||
List<InsuranceArchivesBaseInfoPO> archiveListDTOS = getInsuranceBaseInfoMapper().listAll();
|
||||
list = archiveListDTOS.stream().filter(dto -> taxAgentIds.contains(dto.getPaymentOrganization())).collect(Collectors.toList());
|
||||
Boolean adminEnable = getTaxAgentService(user).isAdminEnable(currentEmployeeId);
|
||||
//不是管理员看不到数据,返回空
|
||||
if (!adminEnable) {
|
||||
list = new ArrayList<>();
|
||||
}
|
||||
} else {
|
||||
list = getInsuranceBaseInfoMapper().listAll();
|
||||
}
|
||||
|
||||
List<InsuranceArchivesBaseInfoPO> list = getInsuranceBaseInfoMapper().listAll();
|
||||
list = getAuthService(user).auth(list, AuthFilterTypeEnum.QUERY_DATA, InsuranceArchivesBaseInfoPO.class);
|
||||
|
||||
long stayAddTotal = 0L;
|
||||
long payTotal = 0L;
|
||||
|
|
@ -1716,8 +1687,9 @@ public class SIArchivesServiceImpl extends Service implements SIArchivesService
|
|||
map.put("fundSchemeId", item.getFundSchemeId());
|
||||
map.put("otherSchemeId", item.getOtherSchemeId());
|
||||
map.put("status", item.getUserStatus() != null ? UserStatusEnum.getDefaultLabelByValue(item.getUserStatus()) : "");
|
||||
map.put("baseInfo", item.getBaseInfoId());
|
||||
map.put("baseInfoId", item.getBaseInfoId());
|
||||
map.put("paymentOrganization", item.getPaymentOrganization());
|
||||
map.put("opts", item.getOpts());
|
||||
if (socialItem != null) {
|
||||
map.put("socialName", getInsuranceSchemeMapper().querySchemeName(socialItem.getSocialSchemeId()));
|
||||
Map<String, Object> socialJson = JSON.parseObject(socialItem.getSocialPaymentBaseString(), new TypeReference<Map<String, Object>>() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue