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
49aef17f
Commit
49aef17f
authored
Mar 14, 2024
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口参数
parent
c161997a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
20 deletions
+15
-20
MaintenanceMapper.java
...n/amos/boot/module/hygf/api/mapper/MaintenanceMapper.java
+1
-2
MaintenanceMapper.xml
...api/src/main/resources/mapper/mysql/MaintenanceMapper.xml
+9
-10
MaintenanceController.java
...oot/module/hygf/biz/controller/MaintenanceController.java
+3
-4
MaintenanceServiceImpl.java
.../module/hygf/biz/service/impl/MaintenanceServiceImpl.java
+2
-4
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/MaintenanceMapper.java
View file @
49aef17f
...
...
@@ -47,7 +47,6 @@ public interface MaintenanceMapper extends BaseMapper<Maintenance> {
List
<
MaintenanceDto
>
queryList
(
@Param
(
"name"
)
String
name
,
//运维人员类型
@Param
(
"maintenanceTypeCode"
)
String
maintenanceTypeCode
,
//运维人员类型code
@Param
(
"address"
)
String
address
@Param
(
"maintenanceType"
)
String
maintenanceType
//运维人员类型code
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/MaintenanceMapper.xml
View file @
49aef17f
...
...
@@ -159,18 +159,17 @@
<where>
ph.is_delete = 0 and ph.review_status='通过' and ph.training_status='已培训' and ph.is_sign_an_agreement=0
<if
test=
"name != null and name != ''"
>
AND std_user_biz.real_name LIKE CONCAT('%', #{name}, '%')
</if>
<if
test=
"maintenanceType
Code != null and maintenanceTypeCod
e != ''"
>
AND ph.maintenance_type
_code = #{maintenanceTypeCod
e}
<if
test=
"maintenanceType
!= null and maintenanceTyp
e != ''"
>
AND ph.maintenance_type
= #{maintenanceTyp
e}
</if>
<if
test=
"address != null and address != ''"
>
and ( ph.maintenance_area like CONCAT('%', #{address}, '%')
or ph.maintenance_area_address like CONCAT('%', #{address}, '%')
or ph.permanent_address_detail like CONCAT('%', #{address}, '%')
or ph.permanent_address_name like CONCAT('%', #{address}, '%'))
<if
test=
"name != null and name != ''"
>
and (
std_user_biz.real_name LIKE CONCAT('%', #{name}, '%')
or ph.maintenance_area like CONCAT('%', #{name}, '%')
or ph.maintenance_area_address like CONCAT('%', #{name}, '%')
or ph.permanent_address_detail like CONCAT('%', #{name}, '%')
or ph.permanent_address_name like CONCAT('%', #{name}, '%'))
</if>
</where>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/MaintenanceController.java
View file @
49aef17f
...
...
@@ -151,14 +151,13 @@ public class MaintenanceController extends BaseController {
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
MaintenanceDto
>>
selectForList
(
@RequestParam
(
required
=
false
)
String
name
,
//运维人员类型
@RequestParam
(
required
=
false
)
String
maintenanceTypeCode
,
//运维人员类型code
@RequestParam
(
required
=
false
)
String
address
@RequestParam
(
required
=
false
)
String
maintenanceType
//运维人员类型code
)
{
return
ResponseHelper
.
buildResponse
(
maintenanceServiceImpl
.
queryList
(
name
,
//运维人员类型
maintenanceTypeCode
,
//运维人员类型code
address
maintenanceType
//运维人员类型code
));
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/MaintenanceServiceImpl.java
View file @
49aef17f
...
...
@@ -103,13 +103,11 @@ public class MaintenanceServiceImpl extends BaseService<MaintenanceDto,Maintenan
*/
public
List
<
MaintenanceDto
>
queryList
(
String
name
,
//运维人员类型
String
maintenanceTypeCode
,
//运维人员类型code
String
address
String
maintenanceType
//运维人员类型code
){
List
<
MaintenanceDto
>
lisda
=
maintenanceMapper
.
queryList
(
name
,
//运维人员类型
maintenanceTypeCode
,
//运维人员类型code
address
maintenanceType
//运维人员类型cod
);
return
lisda
;
}
...
...
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