|
@@ -100,13 +100,14 @@ public class GetWechatData extends BaseClass implements Runnable {
|
|
|
paoRemote.setValue("wechat_parendeptid", jsonObject.getIntValue("parentid"), 11L);
|
|
paoRemote.setValue("wechat_parendeptid", jsonObject.getIntValue("parentid"), 11L);
|
|
|
paoRemote.setValue("wechat_depname", jsonObject.getString("name"), 11L);
|
|
paoRemote.setValue("wechat_depname", jsonObject.getString("name"), 11L);
|
|
|
paoSetRemote.save();
|
|
paoSetRemote.save();
|
|
|
- } else {
|
|
|
|
|
- PaoRemote paoRemote = paoSetRemote.getPao(0);
|
|
|
|
|
- paoRemote.setValue("wechat_depid", id, 11L);
|
|
|
|
|
- paoRemote.setValue("wechat_parendeptid", jsonObject.getIntValue("parentid"), 11L);
|
|
|
|
|
- paoRemote.setValue("wechat_depname", jsonObject.getString("name"), 11L);
|
|
|
|
|
- paoSetRemote.save();
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+// else {
|
|
|
|
|
+// PaoRemote paoRemote = paoSetRemote.getPao(0);
|
|
|
|
|
+// paoRemote.setValue("wechat_depid", id, 11L);
|
|
|
|
|
+// paoRemote.setValue("wechat_parendeptid", jsonObject.getIntValue("parentid"), 11L);
|
|
|
|
|
+// paoRemote.setValue("wechat_depname", jsonObject.getString("name"), 11L);
|
|
|
|
|
+// paoSetRemote.save();
|
|
|
|
|
+// }
|
|
|
}
|
|
}
|
|
|
// SQLFactory sqlFactory = new SQLFactory(this, "ɾ³ý΢ÐŲ¿ÃÅ");
|
|
// SQLFactory sqlFactory = new SQLFactory(this, "ɾ³ý΢ÐŲ¿ÃÅ");
|
|
|
// sqlFactory.addParameter_in("ids", ids);
|
|
// sqlFactory.addParameter_in("ids", ids);
|
|
@@ -155,18 +156,19 @@ public class GetWechatData extends BaseClass implements Runnable {
|
|
|
paoRemote.setValue("wechat_depid", wechat_depid, 11L);
|
|
paoRemote.setValue("wechat_depid", wechat_depid, 11L);
|
|
|
paoRemote.setValue("fusertype", fusertype, 11L);
|
|
paoRemote.setValue("fusertype", fusertype, 11L);
|
|
|
paoSetRemote.save();
|
|
paoSetRemote.save();
|
|
|
- } else {
|
|
|
|
|
- PaoRemote paoRemote = paoSetRemote.getPao(0);
|
|
|
|
|
- paoRemote.setValue("siteid", parameter.defaultsiteid, 11L);
|
|
|
|
|
- paoRemote.setValue("wechat_userid", wechat_userid, 11L);
|
|
|
|
|
- paoRemote.setValue("WECHAT_NAME", WECHAT_NAME, 11L);
|
|
|
|
|
- paoRemote.setValue("wechat_open_userid", wechat_open_userid, 11L);
|
|
|
|
|
- paoRemote.setValue("wechat_mobile", wechat_mobile, 11L);
|
|
|
|
|
- paoRemote.setValue("wechat_position", wechat_position, 11L);
|
|
|
|
|
- paoRemote.setValue("wechat_depid", wechat_depid, 11L);
|
|
|
|
|
- paoRemote.setValue("fusertype", fusertype, 11L);
|
|
|
|
|
- paoSetRemote.save();
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+// else {
|
|
|
|
|
+// PaoRemote paoRemote = paoSetRemote.getPao(0);
|
|
|
|
|
+// paoRemote.setValue("siteid", parameter.defaultsiteid, 11L);
|
|
|
|
|
+// paoRemote.setValue("wechat_userid", wechat_userid, 11L);
|
|
|
|
|
+// paoRemote.setValue("WECHAT_NAME", WECHAT_NAME, 11L);
|
|
|
|
|
+// paoRemote.setValue("wechat_open_userid", wechat_open_userid, 11L);
|
|
|
|
|
+// paoRemote.setValue("wechat_mobile", wechat_mobile, 11L);
|
|
|
|
|
+// paoRemote.setValue("wechat_position", wechat_position, 11L);
|
|
|
|
|
+// paoRemote.setValue("wechat_depid", wechat_depid, 11L);
|
|
|
|
|
+// paoRemote.setValue("fusertype", fusertype, 11L);
|
|
|
|
|
+// paoSetRemote.save();
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -213,15 +215,16 @@ public class GetWechatData extends BaseClass implements Runnable {
|
|
|
paoRemote.setValue("fphonenumber", fphonenumber, 11L);
|
|
paoRemote.setValue("fphonenumber", fphonenumber, 11L);
|
|
|
paoRemote.setValue("faddress", faddress, 11L);
|
|
paoRemote.setValue("faddress", faddress, 11L);
|
|
|
paoSetRemote.save();
|
|
paoSetRemote.save();
|
|
|
- } else {
|
|
|
|
|
- PaoRemote paoRemote = paoSetRemote.getPao(0);
|
|
|
|
|
- paoRemote.setValue("wechat_depid", wechat_depid, 11L);
|
|
|
|
|
- paoRemote.setValue("fagentname", jsonObject.getString("name"), 11L);
|
|
|
|
|
- paoRemote.setValue("fcontact", fcontact, 11L);
|
|
|
|
|
- paoRemote.setValue("fphonenumber", fphonenumber, 11L);
|
|
|
|
|
- paoRemote.setValue("faddress", faddress, 11L);
|
|
|
|
|
- paoSetRemote.save();
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+// else {
|
|
|
|
|
+// PaoRemote paoRemote = paoSetRemote.getPao(0);
|
|
|
|
|
+// paoRemote.setValue("wechat_depid", wechat_depid, 11L);
|
|
|
|
|
+// paoRemote.setValue("fagentname", jsonObject.getString("name"), 11L);
|
|
|
|
|
+// paoRemote.setValue("fcontact", fcontact, 11L);
|
|
|
|
|
+// paoRemote.setValue("fphonenumber", fphonenumber, 11L);
|
|
|
|
|
+// paoRemote.setValue("faddress", faddress, 11L);
|
|
|
|
|
+// paoSetRemote.save();
|
|
|
|
|
+// }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|