实现 /api/sarStandProjectLibrary/save 接口
This commit is contained in:
+2
-3
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user