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
5cf598a3
Commit
5cf598a3
authored
Aug 20, 2025
by
刘林
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
ffbf9643
aa9192af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
3 deletions
+36
-3
JyjcInspectionResultMapper.java
...ot/module/jyjc/api/mapper/JyjcInspectionResultMapper.java
+1
-2
JyjcInspectionResultMapper.xml
.../src/main/resources/mapper/JyjcInspectionResultMapper.xml
+34
-0
JyjcInspectionResultServiceImpl.java
...yjc/biz/service/impl/JyjcInspectionResultServiceImpl.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/mapper/JyjcInspectionResultMapper.java
View file @
5cf598a3
...
...
@@ -7,7 +7,6 @@ import com.yeejoin.amos.boot.module.jg.api.vo.SortVo;
import
com.yeejoin.amos.boot.module.jyjc.api.dto.InspectionTimelinesDto
;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcInspectionResult
;
import
com.yeejoin.amos.boot.module.jyjc.api.model.JyjcInspectionResultModel
;
import
com.yeejoin.amos.boot.module.jyjc.api.vo.JyjcInspectionApplicationVo
;
import
com.yeejoin.amos.boot.module.jyjc.api.vo.JyjcInspectionResultVo
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -23,7 +22,7 @@ public interface JyjcInspectionResultMapper extends BaseMapper<JyjcInspectionRes
Page
<
JyjcInspectionResultModel
>
selectJyjcInspectionResultpPage
(
@Param
(
"page"
)
Page
<
JyjcInspectionResultModel
>
page
,
@Param
(
"jyjcInspectionResultModel"
)
JyjcInspectionResultModel
jyjcInspectionResultModel
);
Page
<
JyjcInspectionResultModel
>
selectForPage
(
@Param
(
"page"
)
Page
<
JyjcInspectionResultModel
>
page
,
@Param
(
"jyjcInspectionResultModel"
)
JyjcInspectionResultModel
jyjcInspectionResultModel
,
@Param
(
"identity"
)
String
identity
,
@Param
(
"sort"
)
SortVo
sortMap
);
Page
<
JyjcInspectionResultModel
>
selectForPage
(
@Param
(
"page"
)
Page
<
JyjcInspectionResultModel
>
page
,
@Param
(
"jyjcInspectionResultModel"
)
JyjcInspectionResultModel
jyjcInspectionResultModel
,
@Param
(
"identity"
)
String
identity
,
@Param
(
"sort"
)
SortVo
sortMap
,
@Param
(
"companyType"
)
String
companyType
);
List
<
InspectionTimelinesDto
>
queryInspectionTimelinessTopXX
(
@Param
(
"top"
)
String
top
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
);
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/resources/mapper/JyjcInspectionResultMapper.xml
View file @
5cf598a3
...
...
@@ -252,6 +252,23 @@
and 1 = 2
</otherwise>
</choose>
<choose>
<when
test=
"companyType == '使用单位'"
>
and res.biz_type in ('firstinspect','entrust', 'detection')
</when>
<when
test=
"companyType == '安装改造维修单位'"
>
and res.biz_type = 'supervise'
</when>
<when
test=
"companyType == '检验机构'"
>
and res.biz_type != 'detection'
</when>
<when
test=
"companyType == '检测机构'"
>
and res.biz_type = 'detection'
</when>
<otherwise>
and 1 = 1
</otherwise>
</choose>
</where>
union all
<include
refid=
"page-list3"
/>
...
...
@@ -298,6 +315,23 @@
and 1 = 2
</otherwise>
</choose>
<choose>
<when
test=
"companyType == '使用单位'"
>
and res.biz_type in ('firstinspect','entrust', 'detection')
</when>
<when
test=
"companyType == '安装改造维修单位'"
>
and res.biz_type = 'supervise'
</when>
<when
test=
"companyType == '检验机构'"
>
and res.biz_type != 'detection'
</when>
<when
test=
"companyType == '检测机构'"
>
and res.biz_type = 'detection'
</when>
<otherwise>
and 1 = 1
</otherwise>
</choose>
</where>
)
ORDER BY
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionResultServiceImpl.java
View file @
5cf598a3
...
...
@@ -204,7 +204,7 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
// 判断当前登录人身份(报检机构、接收机构、即时报检又是接收机构、都不是(不存在此情况))
String
identity
=
CommonServiceImpl
.
getCompanyIdentityByType
(
reginParams
.
getCompany
().
getCompanyType
());
model
.
setCompanyCode
(
CommonServiceImpl
.
getUnitCode
(
reginParams
.
getCompany
()));
Page
<
JyjcInspectionResultModel
>
resultPage
=
resultMapper
.
selectForPage
(
page
,
model
,
identity
,
sortMap
);
Page
<
JyjcInspectionResultModel
>
resultPage
=
resultMapper
.
selectForPage
(
page
,
model
,
identity
,
sortMap
,
reginParams
.
getCompany
().
getCompanyType
()
);
resultPage
.
getRecords
().
forEach
(
v
->
{
if
(
ResultStatusEnum
.
NO_RESULT
.
getCode
().
equals
(
v
.
getResultStatus
()))
{
v
.
setResultStatusName
(
ResultStatusEnum
.
NO_RESULT
.
getName
());
...
...
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