|
|
|
@ -47,7 +47,7 @@ public class ExtInvoicePoolServiceImpl extends MpBaseServiceImpl<ExtInvoicePoolD |
|
|
|
|
private DictdetaServcice dictdetaServcice; |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private SysAuthDao sysDeptAuthDao; |
|
|
|
|
private SysAuthDao sysAuthDao; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String listAddTax(Map<String, Object> pramsMap, int curr, int size) { |
|
|
|
@ -518,8 +518,8 @@ public class ExtInvoicePoolServiceImpl extends MpBaseServiceImpl<ExtInvoicePoolD |
|
|
|
|
@Override |
|
|
|
|
public List<String> getGfshList(List<String> gfshList, List<String> companyCodes) { |
|
|
|
|
DynamicContextHolder.push(DbConstant.BASICS_READ); |
|
|
|
|
List<SysDeptEntity> taxnoList = sysDeptAuthDao.queryTaxnoList(); |
|
|
|
|
List<SysDeptEntity> parentIdList = sysDeptAuthDao.queryParentIdList(); |
|
|
|
|
List<SysDeptEntity> taxnoList = sysAuthDao.queryTaxnoList(); |
|
|
|
|
List<SysDeptEntity> parentIdList = sysAuthDao.queryParentIdList(); |
|
|
|
|
|
|
|
|
|
Map<String, String> taxnoMap = taxnoList.stream().collect(Collectors.toMap(SysDeptEntity::getDeptId, SysDeptEntity::getTaxno)); |
|
|
|
|
Map<String, String> parentIdMap = parentIdList.stream().collect(Collectors.toMap(SysDeptEntity::getDeptId, e -> e.getParentId() == null ? "" : e.getParentId())); |
|
|
|
@ -530,7 +530,7 @@ public class ExtInvoicePoolServiceImpl extends MpBaseServiceImpl<ExtInvoicePoolD |
|
|
|
|
for (String companyCode : companyCodes) { |
|
|
|
|
QueryWrapper<SysDeptEntity> wrapper = new QueryWrapper<>(); |
|
|
|
|
wrapper.eq("org_code", companyCode); |
|
|
|
|
List<SysDeptEntity> sysDeptEntityList = sysDeptAuthDao.selectList(wrapper); |
|
|
|
|
List<SysDeptEntity> sysDeptEntityList = sysAuthDao.selectList(wrapper); |
|
|
|
|
SysDeptEntity sysDeptEntity = sysDeptEntityList.get(0); |
|
|
|
|
if (sysDeptEntity != null) { |
|
|
|
|
String dId = sysDeptEntity.getDeptId(); |
|
|
|
|