Commit 20162665 authored by mcb's avatar mcb

commit

parent 7c6a44ac
...@@ -629,15 +629,15 @@ public class OfflineSynchServiceImpl implements OfflineSynchService { ...@@ -629,15 +629,15 @@ public class OfflineSynchServiceImpl implements OfflineSynchService {
task.setIsSubmit("0"); //是否已提交 task.setIsSubmit("0"); //是否已提交
task.setTreeId(treeId); task.setTreeId(treeId);
task.setDataStatus("1"); task.setDataStatus("1");
String script = JsonMapper.toJsonString(body); /* String script = JsonMapper.toJsonString(body);
byte[] data = null; byte[] data = null;
try { try {
data = script.getBytes("utf-8"); data = script.getBytes("utf-8");
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
e.printStackTrace(); e.printStackTrace();
} }
task.setData(data); //json 数据 task.setData(data); //json 数据*/
//task.setScript(body.toString()); task.setScript(JSONObject.toJSONString(body));
task.setTargetDbName(targetDb); task.setTargetDbName(targetDb);
task.setTargetTableName(targetTable); task.setTargetTableName(targetTable);
task.setSourceTableName(sourceTableName); task.setSourceTableName(sourceTableName);
......
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