han\hanst 4 weeks ago
parent
commit
60f05773c0
  1. 7
      src/main/java/com/xujie/sys/modules/longchuang/service/impl/ProductionPlanServiceImpl.java

7
src/main/java/com/xujie/sys/modules/longchuang/service/impl/ProductionPlanServiceImpl.java

@ -1085,7 +1085,7 @@ public class ProductionPlanServiceImpl implements ProductionPlanService {
if (node == null) { if (node == null) {
throw new I18nException("lc.production.report.node.not.exists"); throw new I18nException("lc.production.report.node.not.exists");
} }
String mediaStep = resolveMediaStep(data, node);
String mediaStep = resolveMediaStep(data, node, orderType);
String rootPath = StringUtils.hasText(workReportMediaRootPath) ? workReportMediaRootPath : "D:\\longchuang"; String rootPath = StringUtils.hasText(workReportMediaRootPath) ? workReportMediaRootPath : "D:\\longchuang";
File rootDir = new File(rootPath); File rootDir = new File(rootPath);
if (!rootDir.exists() && !rootDir.mkdirs()) { if (!rootDir.exists() && !rootDir.mkdirs()) {
@ -1191,7 +1191,7 @@ public class ProductionPlanServiceImpl implements ProductionPlanService {
} }
} }
private String resolveMediaStep(ProductionPlanNodeReportData data, ProductionPlanOrderNodeData node) {
private String resolveMediaStep(ProductionPlanNodeReportData data, ProductionPlanOrderNodeData node, String orderType) {
if (node == null) { if (node == null) {
return ""; return "";
} }
@ -1201,6 +1201,9 @@ public class ProductionPlanServiceImpl implements ProductionPlanService {
if (!packNode) { if (!packNode) {
return ""; return "";
} }
if (ORDER_TYPE_RENOVATION.equals(orderType)) {
return "";
}
String mediaStep = data == null ? "" : data.getMediaStep(); String mediaStep = data == null ? "" : data.getMediaStep();
if (!StringUtils.hasText(mediaStep)) { if (!StringUtils.hasText(mediaStep)) {
throw new XJException("请先选择打包步骤"); throw new XJException("请先选择打包步骤");

Loading…
Cancel
Save