BUGFIX:模特;
This commit is contained in:
@@ -184,13 +184,15 @@ public class PythonService {
|
||||
* @param singleOverall
|
||||
* @param switchCategory
|
||||
* @param elementVO
|
||||
* @param processId
|
||||
* @return
|
||||
*/
|
||||
public DesignPythonObjects covertDesignParam(BigDecimal systemScale, String singleOverall,
|
||||
String switchCategory, ValidateElementVO elementVO) {
|
||||
String switchCategory, ValidateElementVO elementVO, String processId) {
|
||||
DesignPythonObjects designPythonObjects = new DesignPythonObjects();
|
||||
List<DesignPythonObject> objects = Lists.newArrayList();
|
||||
designPythonObjects.setObjects(objects);
|
||||
designPythonObjects.setProcess_id(processId);
|
||||
long pinPrintNum = calculateDesignPinPrintNum(elementVO.getPrintBoardElements());
|
||||
long noPinPrintNum = calculateDesignNoPinPrintNum(elementVO.getPrintBoardElements());
|
||||
//没有print的
|
||||
|
||||
@@ -35,7 +35,6 @@ import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.math.BigDecimal;
|
||||
@@ -254,7 +253,7 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
|
||||
calculateLibraryAndSysFile(designDTO, elementVO, userInfo);
|
||||
//组装design入参
|
||||
DesignPythonObjects pythonObjects = pythonService.covertDesignParam(designDTO.getSystemScale(),
|
||||
designDTO.getSingleOverall(), designDTO.getSwitchCategory(), elementVO);
|
||||
designDTO.getSingleOverall(), designDTO.getSwitchCategory(), elementVO, designDTO.getProcessId());
|
||||
//缓存保存的文件 方便后面处理进度问题
|
||||
setDesignProcess(userInfo.getId(), pythonObjects);
|
||||
//design
|
||||
@@ -299,8 +298,8 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
|
||||
calculateLibraryAndSysFile(designDTO, elementVO, userInfo);
|
||||
//组装design入参
|
||||
DesignPythonObjects pythonObjects = pythonService.covertDesignParam(designDTO.getSystemScale(),
|
||||
designDTO.getSingleOverall(), designDTO.getSwitchCategory(), elementVO);
|
||||
pythonObjects.setProcess_id(designDTO.getProcessId());
|
||||
designDTO.getSingleOverall(), designDTO.getSwitchCategory(), elementVO, designDTO.getProcessId());
|
||||
// pythonObjects.setProcess_id(designDTO.getProcessId());
|
||||
//缓存保存的文件 方便后面处理进度问题
|
||||
setDesignProcess(userInfo.getId(), pythonObjects);
|
||||
// pythonObjects增加image_id关联
|
||||
|
||||
Reference in New Issue
Block a user