You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.4 KiB
Java
64 lines
1.4 KiB
Java
package com.glxp.api.service.auth;
|
|
|
|
|
|
import com.glxp.api.entity.auth.AuthAdmin;
|
|
import com.glxp.api.entity.auth.WarehouseUserEntity;
|
|
import com.glxp.api.req.auth.FilterInvLinkDataRequest;
|
|
import com.glxp.api.req.auth.FilterInvUserRequest;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
|
|
public interface WarehouseUserService {
|
|
|
|
/**
|
|
* 查询仓库信息关联的用户数据
|
|
*
|
|
* @param id 仓位码
|
|
* @return
|
|
*/
|
|
|
|
WarehouseUserEntity selectById(Long id);
|
|
|
|
|
|
List<String> selectCodeByUser(String userId);
|
|
|
|
|
|
/**
|
|
* 新增仓库字典,用户关联数据
|
|
*
|
|
* @param code
|
|
* @param userList
|
|
*/
|
|
void saveWarehouseUser(String code, List<AuthAdmin> userList);
|
|
|
|
/**
|
|
* 移除关联用户
|
|
*
|
|
* @param id
|
|
*/
|
|
void deleteWarehouseUser(Long id);
|
|
|
|
void deleteByCodeAndId(Long id, String code);
|
|
|
|
void deleteByCode(String code);
|
|
|
|
/**
|
|
* 查询分仓关联的用户列表
|
|
*
|
|
* @param filterInvLinkDataRequest
|
|
* @return
|
|
*/
|
|
List<WarehouseUserEntity> getWarehouseUserList(FilterInvLinkDataRequest filterInvLinkDataRequest);
|
|
|
|
/**
|
|
* 根据分仓编码,统计用户数量
|
|
*
|
|
* @param subInvCode
|
|
* @return
|
|
*/
|
|
Integer countUserBySubInvCode(String subInvCode);
|
|
|
|
boolean insert(WarehouseUserEntity warehouseUserEntity);
|
|
}
|