22 lines
854 B
Java
22 lines
854 B
Java
|
|
package com.klp.mapper;
|
|||
|
|
|
|||
|
|
import com.klp.domain.DrMillProcessPass;
|
|||
|
|
import org.apache.ibatis.annotations.Mapper;
|
|||
|
|
import org.apache.ibatis.annotations.Param;
|
|||
|
|
|
|||
|
|
import java.util.List;
|
|||
|
|
|
|||
|
|
@Mapper
|
|||
|
|
public interface DrMillProcessPassMapper {
|
|||
|
|
List<DrMillProcessPass> selectByVersionId(Long versionId);
|
|||
|
|
List<DrMillProcessPass> selectByRecipeId(Long recipeId);
|
|||
|
|
int insertBatch(List<DrMillProcessPass> list);
|
|||
|
|
int deleteByVersionId(Long versionId);
|
|||
|
|
int deleteByRecipeId(Long recipeId);
|
|||
|
|
/** 查出所有 version_id 为空的道次所属 recipe_id(去重) */
|
|||
|
|
List<Long> selectDistinctRecipeIdsWithOrphanPasses();
|
|||
|
|
/** 将指定方案下所有 version_id 为空的道次批量设置 version_id */
|
|||
|
|
int updateVersionIdForOrphans(@Param("recipeId") Long recipeId,
|
|||
|
|
@Param("versionId") Long versionId);
|
|||
|
|
}
|