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.
udi-wms-java/src/main/java/com/glxp/api/dao/auth/WarehouseUserDao.java

69 lines
1.9 KiB
Java

package com.glxp.api.dao.auth;
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.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface WarehouseUserDao {
int deleteByPrimaryKey(Integer id);
int deleteByCodeAndId(@Param("id") Long id, @Param("code") String code);
List<WarehouseUserEntity> filterList(FilterInvUserRequest filterInvUserRequest);
int insert(WarehouseUserEntity record);
int insertOrUpdate(WarehouseUserEntity record);
int insertOrUpdateSelective(WarehouseUserEntity record);
int insertSelective(WarehouseUserEntity record);
WarehouseUserEntity selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(WarehouseUserEntity record);
int updateByPrimaryKey(WarehouseUserEntity record);
int updateBatch(List<WarehouseUserEntity> list);
int updateBatchSelective(List<WarehouseUserEntity> list);
int batchInsert(@Param("list") List<WarehouseUserEntity> list);
List<WarehouseUserEntity> selectListByCode(@Param("code") String code);
List<WarehouseUserEntity> selectListkey(FilterInvLinkDataRequest filterInvLinkDataRequest);
List<WarehouseUserEntity> selectCodeByUser(@Param("userId") String userId);
void deleteByCode(@Param("code") String code);
/**
* 更新此仓库下的主管状态
*
* @param code
* @param isDirector
*/
void updateDirector(@Param("code") String code, @Param("isDirector") int isDirector);
/**
* 根据id更新主管状态
*
* @param id
* @param isDirector
*/
void updateDirectorById(@Param("id") Integer id, @Param("isDirector") int isDirector);
/**
* 根据分仓编码统计绑定的用户数
*
* @param code
* @return
*/
Integer countByCode(@Param("code") String code);
}