Commit 49aef17f authored by tangwei's avatar tangwei

修改接口参数

parent c161997a
...@@ -47,7 +47,6 @@ public interface MaintenanceMapper extends BaseMapper<Maintenance> { ...@@ -47,7 +47,6 @@ public interface MaintenanceMapper extends BaseMapper<Maintenance> {
List<MaintenanceDto> queryList( List<MaintenanceDto> queryList(
@Param("name")String name, //运维人员类型 @Param("name")String name, //运维人员类型
@Param("maintenanceTypeCode")String maintenanceTypeCode, //运维人员类型code @Param("maintenanceType")String maintenanceType //运维人员类型code
@Param("address")String address
); );
} }
...@@ -159,18 +159,17 @@ ...@@ -159,18 +159,17 @@
<where> <where>
ph.is_delete = 0 and ph.review_status='通过' and ph.training_status='已培训' and ph.is_sign_an_agreement=0 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="maintenanceTypeCode != null and maintenanceTypeCode != ''"> <if test="maintenanceType != null and maintenanceType != ''">
AND ph.maintenance_type_code = #{maintenanceTypeCode} AND ph.maintenance_type = #{maintenanceType}
</if> </if>
<if test="address != null and address != ''"> <if test="name != null and name != ''">
and ( ph.maintenance_area like CONCAT('%', #{address}, '%') and (
or ph.maintenance_area_address like CONCAT('%', #{address}, '%') std_user_biz.real_name LIKE CONCAT('%', #{name}, '%')
or ph.permanent_address_detail like CONCAT('%', #{address}, '%') or ph.maintenance_area like CONCAT('%', #{name}, '%')
or ph.permanent_address_name like CONCAT('%', #{address}, '%')) 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> </if>
</where> </where>
......
...@@ -151,14 +151,13 @@ public class MaintenanceController extends BaseController { ...@@ -151,14 +151,13 @@ public class MaintenanceController extends BaseController {
@GetMapping(value = "/list") @GetMapping(value = "/list")
public ResponseModel<List<MaintenanceDto>> selectForList( public ResponseModel<List<MaintenanceDto>> selectForList(
@RequestParam(required = false) String name, //运维人员类型 @RequestParam(required = false) String name, //运维人员类型
@RequestParam(required = false)String maintenanceTypeCode, //运维人员类型code @RequestParam(required = false)String maintenanceType //运维人员类型code
@RequestParam(required = false)String address
) { ) {
return ResponseHelper.buildResponse(maintenanceServiceImpl.queryList( return ResponseHelper.buildResponse(maintenanceServiceImpl.queryList(
name, //运维人员类型 name, //运维人员类型
maintenanceTypeCode, //运维人员类型code maintenanceType //运维人员类型code
address
)); ));
} }
......
...@@ -103,13 +103,11 @@ public class MaintenanceServiceImpl extends BaseService<MaintenanceDto,Maintenan ...@@ -103,13 +103,11 @@ public class MaintenanceServiceImpl extends BaseService<MaintenanceDto,Maintenan
*/ */
public List<MaintenanceDto> queryList( public List<MaintenanceDto> queryList(
String name, //运维人员类型 String name, //运维人员类型
String maintenanceTypeCode, //运维人员类型code String maintenanceType //运维人员类型code
String address
){ ){
List<MaintenanceDto> lisda= maintenanceMapper.queryList( List<MaintenanceDto> lisda= maintenanceMapper.queryList(
name, //运维人员类型 name, //运维人员类型
maintenanceTypeCode, //运维人员类型code maintenanceType //运维人员类型cod
address
); );
return lisda; return lisda;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment