Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
2b46c876
Commit
2b46c876
authored
Apr 25, 2025
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ymt管辖所查询增加条件
parent
dd05842b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
18 deletions
+18
-18
JGDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
+9
-7
IRegUnitInfoService.java
.../boot/module/ymt/flc/api/service/IRegUnitInfoService.java
+1
-1
RegUnitInfoController.java
.../module/ymt/flc/biz/controller/RegUnitInfoController.java
+3
-3
RegUnitInfoServiceImpl.java
...dule/ymt/flc/biz/service/impl/RegUnitInfoServiceImpl.java
+5
-7
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
View file @
2b46c876
...
...
@@ -21,8 +21,8 @@ import com.yeejoin.amos.boot.module.common.api.dto.DPFilterParamDto;
import
com.yeejoin.amos.boot.module.common.api.dto.DPFilterParamForDetailDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.FormValue
;
import
com.yeejoin.amos.boot.module.common.api.dto.LegendDataDto
;
import
com.yeejoin.amos.boot.module.common.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.*
;
import
com.yeejoin.amos.boot.module.common.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.dto.EquipBizCountDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.FourColorCountDataDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgUseRegistrationManageDto
;
...
...
@@ -3982,12 +3982,14 @@ public class JGDPStatisticsServiceImpl {
Map
<
String
,
Object
>
parentModel
=
getSuperviseTreeByLoginUnitCode
(
orgCodeP
).
get
(
0
);
List
<
Map
<
String
,
Object
>>
childrenRegionModelList
=
(
List
<
Map
<
String
,
Object
>>)
parentModel
.
get
(
"children"
);
List
<
RegionModel
>
regionModels
=
Lists
.
newArrayList
();
childrenRegionModelList
.
forEach
(
r
->
{
RegionModel
regionModel
=
new
RegionModel
();
regionModel
.
setRegionCode
(
Integer
.
parseInt
(
r
.
get
(
"companyCode"
).
toString
()));
regionModel
.
setRegionName
((
String
)
r
.
get
(
"companyName"
));
regionModels
.
add
(
regionModel
);
});
if
(
childrenRegionModelList
!=
null
)
{
childrenRegionModelList
.
forEach
(
r
->
{
RegionModel
regionModel
=
new
RegionModel
();
regionModel
.
setRegionCode
(
Integer
.
parseInt
(
r
.
get
(
"companyCode"
).
toString
()));
regionModel
.
setRegionName
((
String
)
r
.
get
(
"companyName"
));
regionModels
.
add
(
regionModel
);
});
}
// 如果是省局、地市局、区县局查看,则把各对应省局、地市局、区县局数据单独添加到列表中
if
(!
ValidationUtil
.
isEmpty
(
RegulatoryUnitLevelEnum
.
getEnumByCode
((
String
)
parentModel
.
get
(
"level"
))))
{
RegionModel
regionModel
=
new
RegionModel
();
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/flc/api/service/IRegUnitInfoService.java
View file @
2b46c876
...
...
@@ -43,7 +43,7 @@ public interface IRegUnitInfoService {
* 获取管辖机构树
* @return 组织架构中单位级别为:省级、地市级、区县级的单位
*/
Collection
getManagementUnitTree
(
String
orgCode
);
Collection
getManagementUnitTree
(
String
orgCode
,
String
cityCode
);
/**
* 单位注销
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/flc/biz/controller/RegUnitInfoController.java
View file @
2b46c876
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ymt
.
flc
.
biz
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
...
...
@@ -148,8 +147,9 @@ public class RegUnitInfoController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/management-unit/tree"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"管辖机构树"
,
notes
=
"管辖机构树"
)
public
ResponseModel
<
Collection
>
managementUnitTree
(
@RequestParam
(
required
=
false
)
String
orgCode
)
{
Collection
result
=
iRegUnitInfoService
.
getManagementUnitTree
(
orgCode
);
public
ResponseModel
<
Collection
>
managementUnitTree
(
@RequestParam
(
required
=
false
)
String
orgCode
,
@RequestParam
(
required
=
false
)
String
cityCode
)
{
Collection
result
=
iRegUnitInfoService
.
getManagementUnitTree
(
orgCode
,
cityCode
);
return
ResponseHelper
.
buildResponse
(
result
);
}
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/flc/biz/service/impl/RegUnitInfoServiceImpl.java
View file @
2b46c876
...
...
@@ -14,17 +14,12 @@ import com.yeejoin.amos.boot.biz.common.workflow.feign.WorkflowFeignService;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.ymt.api.common.BizCommonConstant
;
import
com.yeejoin.amos.boot.module.ymt.api.common.CommonException
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.BaseUnitLicenceDto
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.BaseUnitLicence
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.TzBaseEnterpriseInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.CompanyLevelEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.TzBaseEnterpriseInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.biz.service.impl.BaseUnitLicenceServiceImpl
;
import
com.yeejoin.amos.boot.module.ymt.biz.service.impl.EquipmentCategoryServiceImpl
;
import
com.yeejoin.amos.boot.module.ymt.biz.service.impl.StartPlatformTokenService
;
import
com.yeejoin.amos.boot.module.ymt.biz.service.impl.TzBaseEnterpriseInfoServiceImpl
;
import
com.yeejoin.amos.boot.module.ymt.biz.service.impl.TzsAuthServiceImpl
;
import
com.yeejoin.amos.boot.module.ymt.biz.service.impl.*
;
import
com.yeejoin.amos.boot.module.ymt.biz.utils.RedisUtil
;
import
com.yeejoin.amos.boot.module.ymt.flc.api.dto.RegUnitIcDto
;
import
com.yeejoin.amos.boot.module.ymt.flc.api.dto.RegUnitInfoDto
;
...
...
@@ -439,7 +434,7 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
}
@Override
public
Collection
getManagementUnitTree
(
String
orgCode
)
{
public
Collection
getManagementUnitTree
(
String
orgCode
,
String
cityCode
)
{
List
<
LinkedHashMap
>
companyModels
=
(
List
<
LinkedHashMap
>)
redisUtil
.
get
(
BizCommonConstant
.
COMPANY_TREE_REDIS_KEY
);
if
(
ValidationUtil
.
isEmpty
(
companyModels
))
{
tzsAuthServiceImpl
.
setRequestContext
();
...
...
@@ -449,6 +444,9 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
companyModels
=
findNodesByCondition
(
companyModels
,
"orgCode"
,
orgCode
,
"children"
);
companyModels
=
(
List
<
LinkedHashMap
>)
companyModels
.
get
(
0
).
get
(
"children"
);
}
if
(!
ValidationUtil
.
isEmpty
(
cityCode
))
{
companyModels
=
findNodesByCondition
(
companyModels
,
"companyCode"
,
cityCode
,
"children"
);
}
return
companyModels
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment