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 { int deleteByPrimaryKey(Integer id); int deleteByCodeAndId(@Param("id") Long id, @Param("code") String code); List 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 list); int updateBatchSelective(List list); List selectListByCode(@Param("code") String code); List selectListkey(FilterInvLinkDataRequest filterInvLinkDataRequest); List selectNotSelectUserid(@Param("userIds") List userIds); List 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 warehouseListByCode(FilterInvLinkDataRequest filterInvLinkDataRequest); }