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
f2627d07
Commit
f2627d07
authored
Nov 03, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug 监察任务分析列表,应建/已建数据统计
parent
cfad4cb1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
IdxUjerMapper.java
...eejoin/amos/boot/module/tzs/api/mapper/IdxUjerMapper.java
+3
-0
IdxUjerMaper.xml
...module-tzs-api/src/main/resources/mapper/IdxUjerMaper.xml
+7
-3
InspectionServiceImpl.java
...ot/module/tzs/biz/service/impl/InspectionServiceImpl.java
+7
-2
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/mapper/IdxUjerMapper.java
View file @
f2627d07
...
...
@@ -6,9 +6,12 @@ import com.yeejoin.amos.boot.module.tzs.flc.api.dto.IdxUjerDto;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.IdxUjer
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
java.util.Map
;
public
interface
IdxUjerMapper
extends
BaseMapper
<
IdxUjer
>
{
IPage
<
IdxUjerDto
>
getPage
(
IPage
<
IdxUjerDto
>
page
,
@Param
(
"ids"
)
List
<
String
>
ids
,
@Param
(
"bizType"
)
String
bizType
);
List
<
Map
<
String
,
String
>>
getCompanyInfo
();
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/IdxUjerMaper.xml
View file @
f2627d07
...
...
@@ -20,12 +20,16 @@
#{item}
</foreach>
</if>
<if
test=
"bizType=='yingjian'"
>
AND b.SEQUENCE_NBR is null
</if
>
<!-- <if test="bizType=='yingjian'">--
>
<!-- AND b.SEQUENCE_NBR is null-->
<!-- </if>--
>
<if
test=
"bizType=='yijian'"
>
AND b.SEQUENCE_NBR is not null
</if>
</where>
</select>
<select
id=
"getCompanyInfo"
resultType=
"java.util.Map"
>
SELECT ID AS companyId, `NAME` AS companyName FROM privilege_company_qyszyfjs
</select>
</mapper>
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/InspectionServiceImpl.java
View file @
f2627d07
...
...
@@ -56,9 +56,14 @@ public class InspectionServiceImpl implements InspectionService {
String
bizType
,
int
current
,
int
size
)
{
List
<
String
>
companyIds
=
idxFeignService
.
getTreeChildIds
(
dimensionTableId
,
selectValue
).
getResult
();
Collection
<
CompanyModel
>
companyModels
=
Privilege
.
companyClient
.
companyTreeWithoutAuth
().
getResult
();
//
Collection<CompanyModel> companyModels = Privilege.companyClient.companyTreeWithoutAuth().getResult();
Map
<
String
,
String
>
companyMap
=
new
HashMap
<>();
convertCompanyTreeToMap
(
companyModels
,
null
,
companyMap
);
List
<
Map
<
String
,
String
>>
mapList
=
idxUjerMapper
.
getCompanyInfo
();
for
(
Map
<
String
,
String
>
map:
mapList
)
{
companyMap
.
put
(
map
.
get
(
"companyId"
),
map
.
get
(
"companyName"
));
}
// convertCompanyTreeToMap(companyModels, null, companyMap);
IPage
<
IdxUjerDto
>
idxUjerPage
=
new
Page
<>(
current
,
size
);
IPage
<
IdxUjerDto
>
page
=
idxUjerMapper
.
getPage
(
idxUjerPage
,
companyIds
,
bizType
);
List
<
IdxUjerDto
>
records
=
page
.
getRecords
();
...
...
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