| | |
| | | |
| | | <!-- 查询用户的所属产线名称信息 --> |
| | | <select id="getProNamesByUserIds" resultType="org.jeecg.modules.system.vo.MdcUserProVo"> |
| | | SELECT p.production_name, up.user_id FROM mdc_user_production up, mdc_production p WHERE p.id = up.pro_id AND up.user_id IN |
| | | SELECT p.factory_name productionName, up.user_id FROM base_user_factory up, base_factory p WHERE p.id = up.factory_id AND up.user_id IN |
| | | <foreach collection="userIds" index="index" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | |
| | | #{name} |
| | | </foreach> |
| | | </select> |
| | | |
| | | <!-- 根据班组Id查询 --> |
| | | <select id="getUserByGroupId" resultType="org.jeecg.modules.system.entity.SysUser"> |
| | | select * from sys_user where del_flag = 0 and id in (select user_id from base_user_group where group_id=#{groupId}) |
| | | <if test="username!=null and username!=''"> |
| | | and username = #{username} |
| | | </if> |
| | | </select> |
| | | </mapper> |