|
|
|
@ -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()); |
|
|
|
|