Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -1397,22 +1397,13 @@ public class PythonService {
|
|||||||
// 设置印花的位置、大小、旋转角度
|
// 设置印花的位置、大小、旋转角度
|
||||||
List<DesignSinglePrint> prints = printObject.getPrints();
|
List<DesignSinglePrint> prints = printObject.getPrints();
|
||||||
prints.forEach(p -> {
|
prints.forEach(p -> {
|
||||||
if (printObject.getIfSingle().equals(Boolean.FALSE)){
|
p.getLocation().set(0,p.getLocation().get(0));
|
||||||
p.getLocation().set(0,p.getLocation().get(0));
|
p.getLocation().set(1,p.getLocation().get(1));
|
||||||
p.getLocation().set(1,p.getLocation().get(1));
|
Integer priority = p.getPriority();
|
||||||
scale.add(p.getScale());
|
location.add(priority - 1, p.getLocation());
|
||||||
paths.add(p.getMinIOPath());
|
scale.add(priority - 1,p.getScale());
|
||||||
location.add(p.getLocation());
|
angle.add(priority - 1,p.getAngle());
|
||||||
angle.add(p.getAngle());
|
paths.add(priority - 1,p.getMinIOPath());
|
||||||
}else {
|
|
||||||
p.getLocation().set(0,p.getLocation().get(0));
|
|
||||||
p.getLocation().set(1,p.getLocation().get(1));
|
|
||||||
Integer priority = p.getPriority();
|
|
||||||
location.add(priority - 1, p.getLocation());
|
|
||||||
scale.add(priority - 1,p.getScale());
|
|
||||||
angle.add(priority - 1,p.getAngle());
|
|
||||||
paths.add(priority - 1,p.getMinIOPath());
|
|
||||||
}
|
|
||||||
// log.info("本次print打点locations###{}###fileVO{}", p.getLocation(), JSON.toJSONString(fileVO));
|
// log.info("本次print打点locations###{}###fileVO{}", p.getLocation(), JSON.toJSONString(fileVO));
|
||||||
});
|
});
|
||||||
print.setLocation(location);
|
print.setLocation(location);
|
||||||
|
|||||||
@@ -569,16 +569,14 @@ public class DesignItemServiceImpl extends ServiceImpl<DesignItemMapper, DesignI
|
|||||||
}
|
}
|
||||||
DesignItemDetailPrint designItemDetailPrint = new DesignItemDetailPrint();
|
DesignItemDetailPrint designItemDetailPrint = new DesignItemDetailPrint();
|
||||||
designItemDetailPrint.setDesignItemDetailId(designItemDetailTypeIdMap.get(designSingleItem.getType()));
|
designItemDetailPrint.setDesignItemDetailId(designItemDetailTypeIdMap.get(designSingleItem.getType()));
|
||||||
designItemDetailPrint.setPath(print.getPath());
|
designItemDetailPrint.setPath(print.getMinIOPath());
|
||||||
designItemDetailPrint.setScale(print.getScale());
|
designItemDetailPrint.setScale(print.getScale());
|
||||||
designItemDetailPrint.setSingleOrOverall(printObject.getIfSingle() ? "single" : "overall");
|
designItemDetailPrint.setSingleOrOverall(printObject.getIfSingle() ? "single" : "overall");
|
||||||
designItemDetailPrint.setCreateDate(LocalDateTime.now(ZoneId.of(timeZone)));
|
designItemDetailPrint.setCreateDate(LocalDateTime.now(ZoneId.of(timeZone)));
|
||||||
// single模式下才有position、angle和priority
|
// single、overall模式下都有position、angle和priority
|
||||||
if (designItemDetailPrint.getSingleOrOverall().equals("single")){
|
designItemDetailPrint.setPosition(print.getLocation().toString());
|
||||||
designItemDetailPrint.setPosition(print.getLocation().toString());
|
designItemDetailPrint.setAngle(print.getAngle());
|
||||||
designItemDetailPrint.setAngle(print.getAngle());
|
designItemDetailPrint.setPriority(print.getPriority());
|
||||||
designItemDetailPrint.setPriority(print.getPriority());
|
|
||||||
}
|
|
||||||
designItemDetailPrints.add(designItemDetailPrint);
|
designItemDetailPrints.add(designItemDetailPrint);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user