src/main/java/org/jeecg/modules/system/mapper/xml/SysUserMapper.xml
@@ -236,4 +236,12 @@ 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>