lyh
2025-02-17 1dcf43467f34eb70002be3c2f3cd7605ceb5dcdd
lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/mapper/MdcUserProductionMapper.java
@@ -3,6 +3,7 @@
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.system.entity.MdcUserProduction;
import org.jeecg.modules.system.entity.SysUser;
import java.util.List;
@@ -18,4 +19,33 @@
     * 根据指定用户id查询产线id集合
     */
    List<String> queryProductionIdsByUserId(@Param("userId") String userId);
    /**
     * 获取已分配的用户列表
     * @param proId
     * @return
     */
    List<SysUser> getUserPermsByGroupId(@Param("proId") String proId);
    /**
     * 获取未分配的用户列表
     * @param proId
     * @return
     */
    List<SysUser> getUserNonPermsByGroupId(@Param("proId") String proId);
    /**
     * 获取设备未分配的用户
     * @param proId
     * @return
     */
    List<SysUser> getUserNonPermsByDeviceId(String proId);
    /**
     * 获取设备已分配的用户
     * @param deviceId
     * @return
     */
    List<SysUser> getUserPermsByDeviceId(String deviceId);
}