Files
klp-oa/klp-wms/src/main/java/com/klp/mapper/DrMillProcessRecipeVersionMapper.java

25 lines
1.1 KiB
Java
Raw Normal View History

package com.klp.mapper;
import com.klp.domain.DrMillProcessRecipeVersion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface DrMillProcessRecipeVersionMapper {
List<DrMillProcessRecipeVersion> selectByRecipeId(Long recipeId);
/** 查询指定方案已有的 V1.0 版本(用于迁移幂等判断) */
DrMillProcessRecipeVersion selectV1ByRecipeId(@Param("recipeId") Long recipeId);
/** 查询指定方案当前激活版本 */
DrMillProcessRecipeVersion selectActiveByRecipeId(@Param("recipeId") Long recipeId);
DrMillProcessRecipeVersion selectById(Long versionId);
int insert(DrMillProcessRecipeVersion version);
int update(DrMillProcessRecipeVersion version);
int deleteById(Long versionId);
int deleteByRecipeIds(@Param("ids") Long[] ids);
/** 将同方案其他版本置为未激活 */
int deactivateOthers(@Param("recipeId") Long recipeId, @Param("versionId") Long versionId);
/** 激活指定版本 */
int activate(Long versionId);
}