|
|
|
|
@ -16,6 +16,9 @@ import org.dromara.mes.domain.bo.ProdRecipeWeightBo;
|
|
|
|
|
import org.dromara.mes.domain.bo.ProdRecipeMixingBo;
|
|
|
|
|
import org.dromara.mes.domain.bo.RecipeDetailSaveBo;
|
|
|
|
|
import org.dromara.mes.domain.vo.ProdRecipeInfoVo;
|
|
|
|
|
import org.dromara.mes.domain.vo.ProdRecipeWeightVo;
|
|
|
|
|
import org.dromara.mes.domain.vo.ProdRecipeMixingVo;
|
|
|
|
|
import org.dromara.mes.domain.vo.RecipeDetailVo;
|
|
|
|
|
import org.dromara.mes.domain.ProdRecipeInfo;
|
|
|
|
|
import org.dromara.mes.mapper.ProdRecipeInfoMapper;
|
|
|
|
|
import org.dromara.mes.service.IProdRecipeInfoService;
|
|
|
|
|
@ -291,4 +294,21 @@ public class ProdRecipeInfoServiceImpl implements IProdRecipeInfoService {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public RecipeDetailVo queryDetailByRecipeId(Long recipeId) {
|
|
|
|
|
ProdRecipeInfoVo recipeInfo = queryById(recipeId);
|
|
|
|
|
if (recipeInfo == null) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
RecipeDetailVo detail = new RecipeDetailVo();
|
|
|
|
|
detail.setRecipeInfo(recipeInfo);
|
|
|
|
|
ProdRecipeWeightBo weightQuery = new ProdRecipeWeightBo();
|
|
|
|
|
weightQuery.setRecipeId(recipeId);
|
|
|
|
|
detail.setWeightList(prodRecipeWeightService.queryList(weightQuery));
|
|
|
|
|
ProdRecipeMixingBo mixingQuery = new ProdRecipeMixingBo();
|
|
|
|
|
mixingQuery.setRecipeId(recipeId);
|
|
|
|
|
detail.setMixingList(prodRecipeMixingService.queryList(mixingQuery));
|
|
|
|
|
return detail;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|