Commit 93ec0159 by TongZuu

update command008 update json record

parent 73f5043b
......@@ -36,14 +36,13 @@ public class Command008 extends CommandNoResult<CommonModeParameter>{
db.setParentJsonField(rec);
db.setPreJsonFieldKey();
int saveStatus = db.save();
if(saveStatus==1){
this.sendMessage("Command006 : Save Json Record Success.", CommandState.success);
if(saveStatus==2){
this.sendMessage("Command008 : Update Json Record Success.", CommandState.success);
}else{
this.sendMessage("Command006 : Save Json Record Fail.", CommandState.fail);
this.sendMessage("Command008 : Update Json Record Fail.", CommandState.fail);
}
}else{
this.sendMessage("Command006 : Search Json Record is not Found. cannot save Json Record", CommandState.fail);
this.sendMessage("Command008 : Search Json Record is not Found. cannot save Json Record", CommandState.fail);
}
}catch(Exception e){
MyLog.error(this ,this.getUProfile() , e);
......
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