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
87fa4dca
Commit
87fa4dca
authored
Jul 28, 2022
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特种设备列表筛选
parent
c4052756
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
103 additions
and
23 deletions
+103
-23
TzsJgBasicInfoDto.java
...ejoin/amos/boot/module/tzs/api/dto/TzsJgBasicInfoDto.java
+4
-1
TzsJgMapper.xml
...-module-tzs-api/src/main/resources/mapper/TzsJgMapper.xml
+99
-22
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/TzsJgBasicInfoDto.java
View file @
87fa4dca
...
...
@@ -62,9 +62,12 @@ public class TzsJgBasicInfoDto extends BaseDto {
@ApiModelProperty
(
value
=
"设备详细使用地址"
)
private
String
address
;
@ApiModelProperty
(
value
=
"管辖分局组织机构代码"
)
private
String
orgBranchCode
;
@ApiModelProperty
(
value
=
"监督管理信息"
)
private
TzsJgSuperviseInfo
superviseInfo
;
@ApiModelProperty
(
value
=
"设计信息"
)
private
TzsJgDesignInfo
designInfo
;
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/TzsJgMapper.xml
View file @
87fa4dca
...
...
@@ -5,27 +5,104 @@
<select
id=
"page"
resultType=
"com.yeejoin.amos.boot.module.tzs.api.dto.TzsJgBasicInfoDto"
>
SELECT
supervise.sequence_code,
supervise.supervise_code,
supervise.org_branch_name,
use1.use_unit_name,
maintenance.me_unit_name,
use1.estate_unit_name,
registration.equ_code,
registration.equ_category,
registration.equ_define,
other.code96333,
registration.use_org_code,
produce.factory_num,
CONCAT(use1.province,'/',use1.city,'/',use1.county )AS area,
use1.address
FROM tzs_jg_supervise_info supervise
LEFT JOIN tzs_jg_use_info use1 ON use1.sequence_code = supervise.sequence_code
LEFT JOIN tzs_jg_maintenance_info maintenance ON maintenance.sequence_code = supervise.sequence_code
LEFT JOIN tzs_jg_registration_info registration ON registration.sequence_code = supervise.sequence_code
LEFT JOIN tzs_jg_other_info other ON other.sequence_code = supervise.sequence_code
LEFT JOIN tzs_jg_produce_info produce ON produce.sequence_code = supervise.sequence_code
SELECT
supervise.sequence_code,
supervise.supervise_code,
supervise.org_branch_name,
use1.use_unit_name,
maintenance.me_unit_name,
use1.estate_unit_name,
registration.equ_code,
registration.equ_category,
registration.equ_define,
other.code96333,
registration.use_org_code,
produce.factory_num,
CONCAT(use1.province,'/',use1.city,'/',use1.county)AS area,
use1.address
FROM tzs_jg_supervise_info supervise
LEFT JOIN
tzs_jg_use_info use1 ON use1.sequence_code =
supervise.sequence_code
LEFT JOIN tzs_jg_maintenance_info maintenance ON
maintenance.sequence_code
= supervise.sequence_code
LEFT JOIN
tzs_jg_registration_info registration ON
registration.sequence_code =
supervise.sequence_code
LEFT JOIN tzs_jg_other_info other ON
other.sequence_code =
supervise.sequence_code
LEFT JOIN
tzs_jg_produce_info produce ON produce.sequence_code =
supervise.sequence_code
<where>
<if
test=
"tzsJgBasicInfoDto.orgBranchName!=null and tzsJgBasicInfoDto.orgBranchName!='' "
>
AND supervise.org_branch_name LIKE
CONCAT('%',#{tzsJgBasicInfoDto.orgBranchName},'%')
</if>
<if
test=
"tzsJgBasicInfoDto.useUnitName!=null and tzsJgBasicInfoDto.useUnitName!='' "
>
AND use1.use_unit_name LIKE
CONCAT('%',#{tzsJgBasicInfoDto.useUnitName},'%')
</if>
<if
test=
"tzsJgBasicInfoDto.meUnitName!=null and tzsJgBasicInfoDto.meUnitName!='' "
>
AND maintenance.me_unit_name LIKE
CONCAT('%',#{tzsJgBasicInfoDto.meUnitName},'%')
</if>
<if
test=
"tzsJgBasicInfoDto.estateUnitName!=null and tzsJgBasicInfoDto.estateUnitName!='' "
>
AND supervise.estate_unit_name LIKE
CONCAT('%',#{tzsJgBasicInfoDto.estateUnitName},'%')
</if>
<if
test=
"tzsJgBasicInfoDto.equCode!=null and tzsJgBasicInfoDto.equCode!='' "
>
AND registration.equ_code LIKE
CONCAT('%',#{tzsJgBasicInfoDto.equCode},'%')
</if>
<if
test=
"tzsJgBasicInfoDto.equCategory!=null and tzsJgBasicInfoDto.equCategory!='' "
>
AND registration.equ_category LIKE
CONCAT('%',#{tzsJgBasicInfoDto.equCategory},'%')
</if>
<if
test=
"tzsJgBasicInfoDto.equDefine!=null and tzsJgBasicInfoDto.equDefine!='' "
>
AND supervise.equ_define LIKE
CONCAT('%',#{tzsJgBasicInfoDto.equDefine},'%')
</if>
<if
test=
"tzsJgBasicInfoDto.code96333!=null and tzsJgBasicInfoDto.code96333!='' "
>
AND other.code96333 LIKE
CONCAT('%',#{tzsJgBasicInfoDto.code96333},'%')
</if>
<if
test=
"tzsJgBasicInfoDto.useOrgCode!=null and tzsJgBasicInfoDto.useOrgCode!='' "
>
AND registration.use_org_code LIKE
CONCAT('%',#{tzsJgBasicInfoDto.useOrgCode},'%')
</if>
<if
test=
"tzsJgBasicInfoDto.factoryNum!=null and tzsJgBasicInfoDto.factoryNum!='' "
>
AND produce.factory_num LIKE
CONCAT('%',#{tzsJgBasicInfoDto.factoryNum},'%')
</if>
<if
test=
"tzsJgBasicInfoDto.area!=null and tzsJgBasicInfoDto.area!='' "
>
AND CONCAT(use1.province,'/',use1.city,'/',use1.county) LIKE
CONCAT('%',#{tzsJgBasicInfoDto.area},'%')
</if>
<if
test=
"tzsJgBasicInfoDto.address!=null and tzsJgBasicInfoDto.address!='' "
>
AND use1.address LIKE
CONCAT('%',#{tzsJgBasicInfoDto.address},'%')
</if>
<if
test=
"tzsJgBasicInfoDto.orgBranchCode!=null and tzsJgBasicInfoDto.orgBranchCode!='' "
>
AND supervise.org_branch_code LIKE
CONCAT('%',#{tzsJgBasicInfoDto.orgBranchCode},'%')
</if>
</where>
</select>
</mapper>
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