| | |
| | | </if> |
| | | |
| | | </select> |
| | | <select id="getUserByIdsCounty" resultType="java.util.Map"> |
| | | select u.id ,u.real_name ,d.full_name as deptName from ywxt.blade_user u inner join ywxt.blade_dept d on FIND_IN_SET(u.dept_id, d.id) > 0 where 1 = 1 |
| | | <if test="ids != null and ids.size>0"> |
| | | AND u.id in |
| | | <foreach collection="ids" item="item" index="index" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | |
| | | </select> |
| | | <select id="selectProframId" resultType="java.lang.Long"> |
| | | select program_id from ywxt.sg_device where id = #{deviceId} |
| | | </select> |