实现 /api/sarStandProjectLibrary/save 接口

This commit is contained in:
yanyizhou
2021-09-02 22:55:43 +08:00
parent 42491993a6
commit 0b97292bca
2 changed files with 78 additions and 6 deletions
@@ -35,7 +35,7 @@ public class SarStandProjectTeamServiceImpl extends ServiceImpl<SarStandProjectT
JsonObject jsonObject = (JsonObject) new JsonParser().parse(jsonStr);
JsonObject jsonHead = (JsonObject) jsonObject.get("HEAD");
responseHead.setBIZTRANSACTIONID(jsonHead.get("BIZTRANSACTIONID").getAsString());
responseHead.setCOMMENTS(jsonHead.get("CONSUMER").getAsString());
JsonArray LIST = (JsonArray) jsonObject.get("LIST");
for (int i = 0; i < LIST.size(); i++) {
@@ -73,9 +73,8 @@ public class SarStandProjectTeamServiceImpl extends ServiceImpl<SarStandProjectT
}
}catch (Exception e){
System.out.println(e);
responseHead.setERRORCODE("2");
responseHead.setCOMMENTS("业务失败需要重做");
responseHead.setRESULT("业务失败需要重做");
return responseHead;
}
responseHead.setERRORCODE("0")