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

76 lines
2.2 KiB
Java

package com.glxp.api.dao.auth;
import com.glxp.api.dao.BaseMapperPlus;
import com.glxp.api.entity.auth.WarehouseUserEntity;
import com.glxp.api.entity.system.CompanyEntity;
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 extends BaseMapperPlus<WarehouseUserDao, WarehouseUserEntity, WarehouseUserEntity> {
int deleteByPrimaryKey(Integer id);
int deleteByCodeAndId(@Param("id") Long id, @Param("code") String code);
List<WarehouseUserEntity> filterList(FilterInvUserRequest filterInvUserRequest);
int insertEntity(WarehouseUserEntity record);
int insertOrUpdateEntity(WarehouseUserEntity record);
int insertOrUpdateSelective(WarehouseUserEntity record);
int insertSelective(WarehouseUserEntity record);
WarehouseUserEntity selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(WarehouseUserEntity record);
int updateByPrimaryKey(WarehouseUserEntity record);
int updateBatch(List<WarehouseUserEntity> list);
int updateBatchSelective(List<WarehouseUserEntity> list);
List<WarehouseUserEntity> selectListByCode(@Param("code") String code);
List<WarehouseUserEntity> selectListkey(FilterInvLinkDataRequest filterInvLinkDataRequest);
List<WarehouseUserEntity> selectNotSelectUserid(@Param("userIds") List<Long> userIds);
List<String> 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") Long id, @Param("isDirector") int isDirector);
/**
* 根据分仓编码统计绑定的用户数
*
* @param code
* @return
*/
Integer countByCode(@Param("code") String code);
List<CompanyEntity> warehouseListByCode(FilterInvLinkDataRequest filterInvLinkDataRequest);
}