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
5b690cd8
Commit
5b690cd8
authored
Dec 04, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):登记证查询
1.登记证管理查询慢
parent
db7d8284
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
99 additions
and
2 deletions
+99
-2
JgUseRegistrationManageMapper.java
...t/module/jg/api/mapper/JgUseRegistrationManageMapper.java
+4
-0
JgUseRegistrationManageMapper.xml
...c/main/resources/mapper/JgUseRegistrationManageMapper.xml
+79
-0
JgUseRegistrationManageController.java
.../jg/biz/controller/JgUseRegistrationManageController.java
+2
-2
JgUseRegistrationManageServiceImpl.java
.../biz/service/impl/JgUseRegistrationManageServiceImpl.java
+14
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/JgUseRegistrationManageMapper.java
View file @
5b690cd8
...
...
@@ -28,6 +28,10 @@ public interface JgUseRegistrationManageMapper extends BaseMapper<JgUseRegistrat
@Param
(
"dto"
)
JgUseRegistrationManageDto
dto
,
@Param
(
"sort"
)
SortVo
sortMap
);
Page
<
JgUseRegistrationManageDto
>
queryForUnitChangePage
(
@Param
(
"page"
)
Page
<
JgUseRegistrationManageDto
>
page
,
@Param
(
"dto"
)
JgUseRegistrationManageDto
dto
,
@Param
(
"sort"
)
SortVo
sortMap
);
Page
<
JgUseRegistrationManageDto
>
queryForPageForJG
(
@Param
(
"page"
)
Page
<
JgUseRegistrationManageDto
>
page
,
@Param
(
"dto"
)
JgUseRegistrationManageDto
dto
,
@Param
(
"sort"
)
SortVo
sortMap
,
@Param
(
"orgCode"
)
String
orgCode
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationManageMapper.xml
View file @
5b690cd8
...
...
@@ -82,6 +82,85 @@
</select>
<select
id=
"queryForPage"
resultType=
"com.yeejoin.amos.boot.module.jg.api.dto.JgUseRegistrationManageDto"
>
<include
refid=
"page_list"
/>
FROM tzs_jg_use_registration_manage tjurm
<where>
tjurm.is_delete = 0
<if
test=
"dto.equList != null and dto.equList != ''"
>
and tjurm.equ_list = #{dto.equList}
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and tjurm.equ_list_code = #{dto.equListCode}
</if>
<if
test=
"dto.equCategory != null and dto.equCategory != ''"
>
and tjurm.equ_category = #{dto.equCategory}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and tjurm.equ_category_code = #{dto.equCategoryCode}
</if>
<if
test=
"dto.equDefine != null and dto.equDefine != ''"
>
and tjurm.equ_define = #{dto.equDefine}
</if>
<if
test=
"dto.equDefineCode != null and dto.equDefineCode != ''"
>
and tjurm.equ_define_code = #{dto.equDefineCode}
</if>
<if
test=
"dto.useRegistrationCode != null and dto.useRegistrationCode != ''"
>
and tjurm.use_registration_code like concat('%',#{dto.useRegistrationCode},'%')
</if>
<if
test=
"dto.applyNo != null and dto.applyNo != ''"
>
and tjurm.apply_no like concat('%',#{dto.applyNo},'%')
</if>
<if
test=
"dto.certificateNo != null and dto.certificateNo != ''"
>
and tjurm.certificate_no = #{dto.certificateNo}
</if>
<if
test=
"dto.auditPassDate != null and dto.auditPassDate != ''"
>
and tjurm.audit_pass_date like concat('%',DATE_FORMAT(#{dto.auditPassDate},'%Y-%m-%d'),'%')
</if>
<if
test=
"dto.certificateStatus != null and dto.certificateStatus != ''"
>
and tjurm.certificate_status = #{dto.certificateStatus}
</if>
<if
test=
"dto.useUnitCreditCodeForSearch != null and dto.useUnitCreditCodeForSearch != ''"
>
and tjurm.use_unit_credit_code = #{dto.useUnitCreditCodeForSearch}
</if>
<if
test=
"dto.useUnitCreditNameForSearch != null and dto.useUnitCreditNameForSearch != ''"
>
and tjurm.use_unit_name like concat ('%',#{dto.useUnitCreditNameForSearch},'%')
</if>
<if
test=
"dto.receiveCompanyCode != null and dto.receiveCompanyCode != ''"
>
and (tjurm.receive_company_code = #{dto.receiveCompanyCode}
or tjurm.receive_company_code is null or tjurm.receive_company_code = '')
</if>
<if
test=
"dto.dataType == 'company' "
>
AND tjurm.use_unit_credit_code = #{dto.useUnitCreditCode}
</if>
<if
test=
"dto.dataType == 'supervision' "
>
AND tjurm.receive_company_code = #{dto.receiveCompanyCode}
</if>
<if
test=
"dto.whetherVehicleCylinder != null and dto.whetherVehicleCylinder == 1 "
>
AND tjurm.reg_type = '车用气瓶登记'
</if>
<if
test=
"dto.isScrap != null and dto.isScrap != ''"
>
and tjurm.is_scrap = #{dto.isScrap}
</if>
<if
test=
"dto.isDoBusiness != null and dto.isDoBusiness != ''"
>
and tjurm.is_do_business = #{dto.isDoBusiness}
</if>
<if
test=
"dto.cityName != null and dto.cityName != ''"
>
and tjurm.equ_use_address LIKE CONCAT('%', #{dto.cityName}, '%')
</if>
<if
test=
"dto.carNumber != null and dto.carNumber != ''"
>
and tjurm.car_number LIKE CONCAT('%', #{dto.carNumber}, '%')
</if>
<if
test=
"dto.certInBusinessFlag != null and dto.certInBusinessFlag != '' and dto.certInBusinessFlag == 'false'"
>
and NOT EXISTS (
<include
refid=
"useRegCertInBusiness"
/>
)
</if>
ORDER BY
<if
test=
"sort != null"
>
tjurm.${sort.field} ${sort.sortType},
</if>
tjurm.create_date DESC
</where>
</select>
<select
id=
"queryForUnitChangePage"
resultType=
"com.yeejoin.amos.boot.module.jg.api.dto.JgUseRegistrationManageDto"
>
<include
refid=
"page_list"
/>
,estate.sequence_nbr AS estateUnitName
FROM tzs_jg_use_registration_manage tjurm
LEFT JOIN (
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgUseRegistrationManageController.java
View file @
5b690cd8
...
...
@@ -341,7 +341,7 @@ public class JgUseRegistrationManageController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/unitChange/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"单位变更分页查询
"
,
notes
=
"单位变更分页查询
"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"单位变更分页查询
-带产权单位"
,
notes
=
"单位变更分页查询-带产权单位
"
)
@FieldMapping
({
@FieldMapping
.
FieldMap
(
sourceField
=
"useUnitSeq"
,
targetField
=
"originalUseUnitCreditCode"
,
serviceClass
=
CommonServiceImpl
.
class
,
queryMethod
=
"queryUnitCreditInfoBySeq"
)})
public
ResponseModel
<
Page
<
JgUseRegistrationManageDto
>>
queryForUnitChangePage
(
JgUseRegistrationManageDto
dto
,
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
,
...
...
@@ -361,7 +361,7 @@ public class JgUseRegistrationManageController extends BaseController {
return
ResponseHelper
.
buildResponse
(
page
);
}
dto
.
setIsDoBusiness
(
"1"
);
return
ResponseHelper
.
buildResponse
(
jgUseRegistrationManageServiceImpl
.
queryFor
JgUseRegistrationMana
gePage
(
page
,
dto
,
sort
));
return
ResponseHelper
.
buildResponse
(
jgUseRegistrationManageServiceImpl
.
queryFor
UnitChan
gePage
(
page
,
dto
,
sort
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgUseRegistrationManageServiceImpl.java
View file @
5b690cd8
...
...
@@ -335,6 +335,20 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
}
/**
* 单位变更证-查询
*/
public
Page
<
JgUseRegistrationManageDto
>
queryForUnitChangePage
(
Page
<
JgUseRegistrationManageDto
>
page
,
JgUseRegistrationManageDto
dto
,
String
sort
)
{
SortVo
sortMap
=
commonServiceImpl
.
sortFieldConversion
(
sort
);
if
(
ApplicationFormTypeEnum
.
BF
.
getBusinessCode
().
equals
(
dto
.
getApplyType
())
&&
(!
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
dto
.
getEquCategoryCode
())
||
dto
.
getRegType
().
equals
(
BusinessTypeEnum
.
JG_VEHICLE_GAS_APPLICATION
.
getName
()))){
dto
.
setCertificateStatus
(
null
);
dto
.
setIsScrap
(
"0"
);
}
return
jgUseRegistrationManageMapper
.
queryForUnitChangePage
(
page
,
dto
,
sortMap
);
}
/**
* 分页查询证管理表-选择证使用,添加产权单位id
*/
public
Page
<
JgUseRegistrationManageDto
>
queryUseRegistrationManagePage
(
Page
<
JgUseRegistrationManageDto
>
page
,
...
...
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