Commit 03295d35 authored by 廖旭伟's avatar 廖旭伟

修改审核结果判断条件

parent f451572f
...@@ -89,22 +89,17 @@ public class CustomerWebSocketClient extends WebSocketClient { ...@@ -89,22 +89,17 @@ public class CustomerWebSocketClient extends WebSocketClient {
JSONObject result = JSONObject.parseObject(jsonObject.getString("result")); JSONObject result = JSONObject.parseObject(jsonObject.getString("result"));
MatterApplyDatumEntity update = new MatterApplyDatumEntity(); MatterApplyDatumEntity update = new MatterApplyDatumEntity();
update.setId(datumEntity.getId()); update.setId(datumEntity.getId());
if(result.getBooleanValue("Consistency")) {
update.setReviewStatus(1);
}else {
update.setReviewStatus(2); update.setReviewStatus(2);
mandatoryFields = result.getString("AdditionalComments"); mandatoryFields = result.getString("AdditionalComments");
apply = false; apply = false;
}
update.setUpdateTime(new Date()); update.setUpdateTime(new Date());
matterApplyDatumService.update(update); matterApplyDatumService.update(update);
}else { }else if(jsonObject.getIntValue("code")==1){
MatterApplyDatumEntity update = new MatterApplyDatumEntity(); MatterApplyDatumEntity update = new MatterApplyDatumEntity();
update.setId(datumEntity.getId()); update.setId(datumEntity.getId());
update.setReviewStatus(2); update.setReviewStatus(1);
update.setUpdateTime(new Date()); update.setUpdateTime(new Date());
matterApplyDatumService.update(update); matterApplyDatumService.update(update);
apply = false;
} }
if(apply){ if(apply){
MatterApplyEntity applyEntity = matterApplyService.get(datumEntity.getApplyId()); MatterApplyEntity applyEntity = matterApplyService.get(datumEntity.getApplyId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment