1完成酸轧轧辊调整

2完成双机架工艺规格串联
3完成双机架计划串联
4完成双机架wip快捷录入检索
5完成双机架实绩串联
This commit is contained in:
2026-05-19 17:13:37 +08:00
parent 417783e64a
commit 53a180787b
46 changed files with 5592 additions and 231 deletions

View File

@@ -0,0 +1,21 @@
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);
}

View File

@@ -0,0 +1,14 @@
package com.klp.mapper;
import com.klp.domain.DrMillProcessRecipe;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface DrMillProcessRecipeMapper {
List<DrMillProcessRecipe> selectList(DrMillProcessRecipe query);
DrMillProcessRecipe selectById(Long recipeId);
int insert(DrMillProcessRecipe recipe);
int update(DrMillProcessRecipe recipe);
int deleteBatchByIds(Long[] ids);
}

View File

@@ -0,0 +1,24 @@
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);
}

View File

@@ -0,0 +1,21 @@
package com.klp.mapper;
import com.klp.domain.DrMillProductionPlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface DrMillProductionPlanMapper {
List<DrMillProductionPlan> selectList(DrMillProductionPlan query);
/** 分页查询(配合 PageHelper 或手动 LIMIT/OFFSET */
List<DrMillProductionPlan> selectPageList(DrMillProductionPlan query);
long countPageList(DrMillProductionPlan query);
DrMillProductionPlan selectById(Long planId);
DrMillProductionPlan selectByPlanNo(@Param("planNo") String planNo);
int insert(DrMillProductionPlan plan);
int update(DrMillProductionPlan plan);
int deleteById(Long planId);
int updateSortNo(@Param("planId") Long planId, @Param("sortNo") int sortNo);
int countByStatus(@Param("status") String status);
}