|
@@ -57,13 +57,16 @@ public class SnycBuild {
|
|
|
CustomProductEntity customProductEntity = null;
|
|
|
CustomComponentEntity componentEntity = null;
|
|
|
try {
|
|
|
- SnycBuild.log.info("更新模型库,syncmodel开始:" + json);
|
|
|
- String resultData = OkHttpUtils.httpPostJson(buildUrl + "syncmodel", json);
|
|
|
- JSONObject resultJson = JSONObject.parseObject(resultData);
|
|
|
- SnycBuild.log.info("更新模型库,syncmodel结束:" + resultData.toString());
|
|
|
- if ("error".equals(resultJson.getString("state"))) {
|
|
|
- SnycBuild.log.info("更新模型库,syncmodel接口失败:" + resultData);
|
|
|
- throw new RuntimeException(id + ":更新模型库,syncmodel接口失败");
|
|
|
+ //审批定制的时候,也审批组件,不
|
|
|
+ if (!json.equals("no")) {
|
|
|
+ SnycBuild.log.info("更新模型库,syncmodel开始:" + json);
|
|
|
+ String resultData = OkHttpUtils.httpPostJson(buildUrl + "syncmodel", json);
|
|
|
+ JSONObject resultJson = JSONObject.parseObject(resultData);
|
|
|
+ SnycBuild.log.info("更新模型库,syncmodel结束:" + resultData.toString());
|
|
|
+ if ("error".equals(resultJson.getString("state"))) {
|
|
|
+ SnycBuild.log.info("更新模型库,syncmodel接口失败:" + resultData);
|
|
|
+ throw new RuntimeException(id + ":更新模型库,syncmodel接口失败");
|
|
|
+ }
|
|
|
}
|
|
|
switch (type) {
|
|
|
case "1":
|