从业人员用户select下拉选择

dev
wangpeng 2024-04-08 20:12:27 +08:00
parent 02c5294ae1
commit b37c6bea6b
5 changed files with 59 additions and 0 deletions

View File

@ -3015,4 +3015,27 @@ public class UsersController extends BaseController {
map.put("result", errInfo);
return map;
}
/**
* (select)
*
* @param
* @return
* @throws Exception
*/
@RequestMapping("/getPractitionerSelectList")
@ResponseBody
@LogAnno(menuType = "综合管理", menuServer = "特种设备", instructionsOperate = "设备管理", instructionsType = "用户列表")
public Object getPractitionerSelectList() throws Exception {
Map<String, Object> map = new HashMap<String, Object>();
String errInfo = "success";
PageData pd = new PageData();
pd = this.getPageData();
//page.setPd(pd);
List<PageData> userList = usersService.getPractitionerSelectList(pd);//列出用户列表
map.put("userList", userList);
map.put("pd", pd);
map.put("result", errInfo);
return map;
}
}

View File

@ -298,4 +298,5 @@ public interface UsersMapper {
PageData getUserByUserId(PageData pd);
List<PageData> getPractitionerSelectList(PageData pd);
}

View File

@ -371,4 +371,6 @@ public interface UsersService {
PageData getUserByUserId(PageData pd);
List<PageData> getPractitionerSelectList(PageData pd) throws Exception;
}

View File

@ -1340,5 +1340,10 @@ public class UsersServiceImpl implements UsersService {
return usersMapper.getUserByUserId(pd);
}
@Override
public List<PageData> getPractitionerSelectList(PageData pd) throws Exception {
return usersMapper.getPractitionerSelectList(pd);
}
}

View File

@ -522,6 +522,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND
u.CORPINFO_ID = #{pd.CORPINFO_ID}
</if>
<if test="pd.PERSONNEL_TYPE != null and pd.PERSONNEL_TYPE != ''"><!-- 关键词检索 -->
AND c.PERSONNEL_TYPE = #{pd.PERSONNEL_TYPE}
</if>
order by d.LEVEL asc ,d.DEP_ORDER,d.DEPARTMENT_ID asc, u.SORT asc,u.USER_ID
</select>
@ -1839,4 +1842,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
USER_ID = #{USER_ID}
</update>
<select id="getPractitionerSelectList" resultType="com.zcloud.entity.PageData">
select
u.USER_ID,
u.USERNAME,
u.PASSWORD,
u.LAST_LOGIN,
u.NAME,
u.SEX,
u.IP,
u.EMAIL,
u.NUMBER,
u.PHONE,
u.ISMAIN,
u.PUSH_CID,
r.PERSONNEL_TYPE
from <include refid="tableName"></include> u
left join sys_userinfo r on u.USER_ID = r.USER_ID
left join sys_dictionaries d on r.PERSONNEL_TYPE = d.DICTIONARIES_ID
<if test="PARENT_ID != null and PARENT_ID != ''"> <!-- 从业类别 -->
and d.PARENT_ID=#{PARENT_ID}
</if>
where u.ISDELETE = 0 and u.ISMAIN = '0'
and d.BIANMA LIKE CONCAT(CONCAT('%', #{BIANMA}),'%')
</select>
</mapper>