业务线权限bug修复
This commit is contained in:
parent
83297993cd
commit
4dcb8f2275
|
|
@ -193,7 +193,11 @@ public class AddUpDeductionServiceImpl extends Service implements AddUpDeduction
|
||||||
String imageId = Util.null2String(importParam.getImageId());
|
String imageId = Util.null2String(importParam.getImageId());
|
||||||
Validate.notBlank(imageId, "imageId为空");
|
Validate.notBlank(imageId, "imageId为空");
|
||||||
// 获取所有个税扣缴义务人
|
// 获取所有个税扣缴义务人
|
||||||
Collection<TaxAgentManageRangeEmployeeDTO> taxAgentList = getTaxAgentService(user).listTaxAgentAndEmployeeTree(currentEmployeeId);
|
// 获取所有个税扣缴义务人
|
||||||
|
TaxAgentQueryParam param = TaxAgentQueryParam.builder().build();
|
||||||
|
param.setFilterType(AuthFilterTypeEnum.ADMIN_DATA);
|
||||||
|
Collection<TaxAgentPO> taxAgentList = getTaxAgentService(user).listAuth(param);
|
||||||
|
// Collection<TaxAgentManageRangeEmployeeDTO> taxAgentList = getTaxAgentService(user).listTaxAgentAndEmployeeTree(currentEmployeeId);
|
||||||
//个税扣缴义务人
|
//个税扣缴义务人
|
||||||
String taxAgentId = Util.null2String(importParam.getTaxAgentId());
|
String taxAgentId = Util.null2String(importParam.getTaxAgentId());
|
||||||
// 获取租户下所有的人员
|
// 获取租户下所有的人员
|
||||||
|
|
@ -295,17 +299,17 @@ public class AddUpDeductionServiceImpl extends Service implements AddUpDeduction
|
||||||
errorData.add(errorMessageMap);
|
errorData.add(errorMessageMap);
|
||||||
errorSum += 1;
|
errorSum += 1;
|
||||||
} else {
|
} else {
|
||||||
Optional<TaxAgentManageRangeEmployeeDTO> optionalTemp = taxAgentList.stream().filter(m -> m.getTaxAgentName().equals(taxAgentName)).findFirst();
|
Optional<TaxAgentPO> optionalTemp = taxAgentList.stream().filter(m -> m.getName().equals(taxAgentName)).findFirst();
|
||||||
if (optionalTemp.isPresent()) {
|
if (optionalTemp.isPresent()) {
|
||||||
if (StringUtils.isNotEmpty(taxAgentId) && !optionalTemp.get().getTaxAgentId().equals(Long.valueOf(taxAgentId))) {
|
if (StringUtils.isNotEmpty(taxAgentId) && !optionalTemp.get().getId().equals(Long.valueOf(taxAgentId))) {
|
||||||
//个税扣缴义务人与导入时选择的不一致
|
//个税扣缴义务人与导入时选择的不一致
|
||||||
Map<String, String> errorMessageMap = Maps.newHashMap();
|
Map<String, String> errorMessageMap = Maps.newHashMap();
|
||||||
errorMessageMap.put("message", rowIndex + "个税扣缴义务人与导入时选择的不一致");
|
errorMessageMap.put("message", rowIndex + "个税扣缴义务人与导入时选择的不一致");
|
||||||
errorData.add(errorMessageMap);
|
errorData.add(errorMessageMap);
|
||||||
errorSum += 1;
|
errorSum += 1;
|
||||||
} else {
|
} else {
|
||||||
addUpDeduction.setTaxAgentId(optionalTemp.get().getTaxAgentId());
|
addUpDeduction.setTaxAgentId(optionalTemp.get().getId());
|
||||||
taxAgentEmployees = optionalTemp.get().getEmployeeList();
|
// taxAgentEmployees = optionalTemp.get().getEmployeeList();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//个税扣缴义务人不存在
|
//个税扣缴义务人不存在
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue