|
@@ -151,18 +151,6 @@ public class CustomProductServiceImpl extends BaseServiceImpl<ICustomProductMapp
|
|
|
customProductEntity.setExamineTime(new Date());
|
|
|
boolean updateFlag = updateById(customProductEntity);
|
|
|
JSONArray syncDataArray = new JSONArray();
|
|
|
- if (updateFlag&¶m.getExamine().intValue()==1){
|
|
|
- ModelUploadEntity uploadEntity = modelUploadService.findByPartsDetailId(customProductEntity.getId());
|
|
|
- if (ObjectUtil.isNotNull(uploadEntity)) {
|
|
|
- //入库前先提交模型到模型库,失败返回提示
|
|
|
- JSONObject object = new JSONObject();
|
|
|
- object.put("Name", uploadEntity.getFileId());
|
|
|
- object.put("UserID", uploadEntity.getUserId());
|
|
|
- object.put("Postfix", "datasmith");
|
|
|
- object.put("ObjAliPath", "domain/eHome/furniture/simpleObj-Mtl/" + uploadEntity.getFileId());
|
|
|
- syncDataArray.add(object);
|
|
|
- }
|
|
|
- }
|
|
|
if (updateFlag && ObjectUtil.isNotNull(customProductEntity.getComponentTypeIds())) {
|
|
|
JSONArray components = JSONArray.parseArray(customProductEntity.getComponentTypeIds());
|
|
|
//获取每个配件加入集合
|