Commit e360eb91 authored by tianbo's avatar tianbo

fix(statistics): 修复单位代码转换行政区划逻辑

- 针对特殊单位代码610000直接返回原值 - 避免查询不存在的行政区划序列号
parent f615c281
......@@ -595,6 +595,9 @@ public class StCommonServiceImpl {
* @return 单位所在行政区划
*/
public CharSequence castCompanyCode2RegionCode(String companyCode) {
if ("610000".equals(companyCode)) {
return companyCode;
}
String regionSeq = commonMapper.selectCompanyRegionSeq(companyCode);
RegionModel region = regionModels.stream()
.filter(r -> String.valueOf(r.getSequenceNbr()).equals(regionSeq))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment