|
|
|
@ -9,7 +9,7 @@ import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
|
|
|
|
|
import com.dxhy.base.dao.SysDeptDao; |
|
|
|
|
import com.dxhy.base.dao.SysDeptAuthDao; |
|
|
|
|
import com.dxhy.base.entity.SysDeptEntity; |
|
|
|
|
import com.dxhy.common.constant.DictConstant; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
@ -56,7 +56,7 @@ public class BaseInvoiceManualCheckServiceImpl extends MpBaseServiceImpl<BaseTDx |
|
|
|
|
@Resource |
|
|
|
|
private BaseTDxRecordInvoiceDao baseTDxRecordInvoiceDao; |
|
|
|
|
@Resource |
|
|
|
|
private SysDeptDao sysDeptDao; |
|
|
|
|
private SysDeptAuthDao sysDeptAuthDao; |
|
|
|
|
@Resource |
|
|
|
|
private DictdetaServcice dictdetaServcice; |
|
|
|
|
@Resource |
|
|
|
@ -588,17 +588,19 @@ public class BaseInvoiceManualCheckServiceImpl extends MpBaseServiceImpl<BaseTDx |
|
|
|
|
@Override |
|
|
|
|
public List<String> getGfshList(List<String> gfshList, List<String> companyCodes) { |
|
|
|
|
DynamicContextHolder.push(DbConstant.BASICS_READ); |
|
|
|
|
List<SysDeptEntity> taxnoList = sysDeptDao.queryTaxnoList(); |
|
|
|
|
List<SysDeptEntity> parentIdList = sysDeptDao.queryParentIdList(); |
|
|
|
|
List<SysDeptEntity> taxnoList = sysDeptAuthDao.queryTaxnoList(); |
|
|
|
|
List<SysDeptEntity> parentIdList = sysDeptAuthDao.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, SysDeptEntity::getParentId)); |
|
|
|
|
|
|
|
|
|
log.info("taxnoMap={},parentIdMap={}",taxnoMap,parentIdMap); |
|
|
|
|
|
|
|
|
|
String gfsh = ""; |
|
|
|
|
for(String companyCode : companyCodes){ |
|
|
|
|
QueryWrapper<SysDeptEntity> wrapper = new QueryWrapper<>(); |
|
|
|
|
wrapper.eq("org_code",companyCode); |
|
|
|
|
SysDeptEntity sysDeptEntity = sysDeptDao.selectOne(wrapper); |
|
|
|
|
SysDeptEntity sysDeptEntity = sysDeptAuthDao.selectOne(wrapper); |
|
|
|
|
String dId = sysDeptEntity.getDeptId(); |
|
|
|
|
|
|
|
|
|
gfsh = getGfsh(dId,taxnoMap,parentIdMap); |
|
|
|
|