Files
klp-oa/klp-wms/src/main/java/com/klp/mapper/DrMillProcessPassMapper.java
wangyu 53a180787b 1完成酸轧轧辊调整
2完成双机架工艺规格串联
3完成双机架计划串联
4完成双机架wip快捷录入检索
5完成双机架实绩串联
2026-05-19 17:13:37 +08:00

22 lines
854 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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);
}