zhangherong
2025-06-30 a69d8c1959d9b5c2d363fd8522bd4f0a99ec48ed
src/main/java/org/jeecg/modules/system/mapper/xml/SysUserMapper.xml
@@ -228,4 +228,20 @@
         #{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>
   <!-- 根据产线Id查询 -->
   <select id="getUserByFactoryId" resultType="org.jeecg.modules.system.entity.SysUser">
      select * from sys_user where del_flag = 0 and id in (select user_id from base_user_factory where factory_id=#{factoryId})
      <if test="username!=null and username!=''">
         and username = #{username}
      </if>
   </select>
</mapper>