维修员列表查询
This commit is contained in:
parent
36e9f75af2
commit
c04a3b4738
|
|
@ -45,10 +45,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</select>
|
||||
|
||||
<select id="getMaUserList" resultType="com.bonus.sgzb.base.domain.MaintenanceGang">
|
||||
SELECT su.user_id as userId, su.nick_name as userName FROM `sys_user` su
|
||||
SELECT DISTINCT
|
||||
su.user_id AS userId,
|
||||
su.nick_name AS userName
|
||||
FROM
|
||||
`sys_user` su
|
||||
LEFT JOIN sys_user_role sur ON su.user_id = sur.user_id
|
||||
LEFT JOIN sys_role sr ON sr.role_id = sur.role_id
|
||||
WHERE sr.role_id = '102' AND su.del_flag = '0'
|
||||
WHERE
|
||||
sr.role_id in (133,134)
|
||||
AND su.del_flag = '0'
|
||||
<if test="userName != null and userName != ''">
|
||||
AND su.nick_name like concat('%', #{userName}, '%')
|
||||
</if>
|
||||
|
|
|
|||
|
|
@ -148,7 +148,6 @@ public class MaWholeSetServiceImpl implements MaWholeSetService {
|
|||
maWhole.setWholeTypeName(dto.getWholeTypeName());
|
||||
maWhole.setParentId(dto.getParentId());
|
||||
}
|
||||
}
|
||||
int res = 0;
|
||||
try {
|
||||
deleteMaWhole(dto);
|
||||
|
|
@ -166,6 +165,9 @@ public class MaWholeSetServiceImpl implements MaWholeSetService {
|
|||
return AjaxResult.error(ExceptionEnum.UPDATE_TO_DATABASE.getCode(), ExceptionEnum.UPDATE_TO_DATABASE.getMsg());
|
||||
}
|
||||
return AjaxResult.success("修改成功", res);
|
||||
} else {
|
||||
return AjaxResult.error("请选择主/配套设备");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue