Commit 49aef17f authored by tangwei's avatar tangwei

修改接口参数

parent c161997a
......@@ -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
);
}
......@@ -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="maintenanceTypeCode != null and maintenanceTypeCode != ''">
AND ph.maintenance_type_code = #{maintenanceTypeCode}
<if test="maintenanceType != null and maintenanceType != ''">
AND ph.maintenance_type = #{maintenanceType}
</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>
......
......@@ -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
));
}
......
......@@ -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;
}
......
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