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

67 lines
1.8 KiB
Java

3 years ago
package com.glxp.api.dao.auth;
import com.glxp.api.entity.auth.WarehouseUserEntity;
import com.glxp.api.req.auth.FilterInvUserRequest;
3 years ago
import org.apache.ibatis.annotations.Mapper;
3 years ago
import org.apache.ibatis.annotations.Param;
import java.util.List;
3 years ago
@Mapper
3 years ago
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> 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);
}