瀏覽代碼

修改syncmodel接口调用逻辑

xiewenjie 4 年之前
父節點
當前提交
d34643456d

+ 0 - 12
sxz-core/src/main/java/com/fdkk/sxz/webApi/service/custom/impl/CustomProductServiceImpl.java

@@ -151,18 +151,6 @@ public class CustomProductServiceImpl extends BaseServiceImpl<ICustomProductMapp
         customProductEntity.setExamineTime(new Date());
         boolean updateFlag = updateById(customProductEntity);
         JSONArray syncDataArray = new JSONArray();
-        if (updateFlag&&param.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());
             //获取每个配件加入集合