forked from integrated_whb/integrated_whb
从业人员用户select下拉选择
parent
02c5294ae1
commit
b37c6bea6b
|
@ -3015,4 +3015,27 @@ public class UsersController extends BaseController {
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
return map;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -298,4 +298,5 @@ public interface UsersMapper {
|
||||||
|
|
||||||
PageData getUserByUserId(PageData pd);
|
PageData getUserByUserId(PageData pd);
|
||||||
|
|
||||||
|
List<PageData> getPractitionerSelectList(PageData pd);
|
||||||
}
|
}
|
||||||
|
|
|
@ -371,4 +371,6 @@ public interface UsersService {
|
||||||
|
|
||||||
PageData getUserByUserId(PageData pd);
|
PageData getUserByUserId(PageData pd);
|
||||||
|
|
||||||
|
List<PageData> getPractitionerSelectList(PageData pd) throws Exception;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1340,5 +1340,10 @@ public class UsersServiceImpl implements UsersService {
|
||||||
return usersMapper.getUserByUserId(pd);
|
return usersMapper.getUserByUserId(pd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<PageData> getPractitionerSelectList(PageData pd) throws Exception {
|
||||||
|
return usersMapper.getPractitionerSelectList(pd);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -522,6 +522,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
AND
|
AND
|
||||||
u.CORPINFO_ID = #{pd.CORPINFO_ID}
|
u.CORPINFO_ID = #{pd.CORPINFO_ID}
|
||||||
</if>
|
</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
|
order by d.LEVEL asc ,d.DEP_ORDER,d.DEPARTMENT_ID asc, u.SORT asc,u.USER_ID
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
@ -1839,4 +1842,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
USER_ID = #{USER_ID}
|
USER_ID = #{USER_ID}
|
||||||
</update>
|
</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>
|
</mapper>
|
||||||
|
|
Loading…
Reference in New Issue