Browse Source

2024-01-02

master
fengyuan_yang 1 year ago
parent
commit
d58b3b12f3
  1. 3
      src/main/java/com/spring/modules/part/service/impl/RecipeManagementServiceImpl.java

3
src/main/java/com/spring/modules/part/service/impl/RecipeManagementServiceImpl.java

@ -959,10 +959,9 @@ public class RecipeManagementServiceImpl extends ServiceImpl<RecipeManagementMap
if (partInformationEntity == null) {
throw new RuntimeException("物料不存在!");
}
if ("Purchased (raw)".equals(partInformationEntity.getPartType())) {
if (!"Manufactured Recipe".equals(partInformationEntity.getPartType())) {
throw new RuntimeException("该物料类型不支持创建Recipe!");
}
//
// 1创建recipeHeader
RecipeHeaderEntity header = recipeManagementMapper.queryRecipeHeader(data.getPreviousVersion());
data.setNoteText(header.getNoteText());

Loading…
Cancel
Save