数据同步
This commit is contained in:
@@ -21,7 +21,7 @@ public class SyncUserService {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
SyncUserService syncUserService=new SyncUserService();
|
||||
syncUserService.syncFotonOrg();
|
||||
syncUserService.syncFotonUser();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -50,7 +50,7 @@ public class SyncUserService {
|
||||
json.add(rs);
|
||||
|
||||
JSONObject responseStr = JSON.parseObject(rs);
|
||||
|
||||
System.out.println(rs);
|
||||
if (responseStr.containsKey("cookie")) {
|
||||
try {
|
||||
JSONArray entries = responseStr.getJSONArray("cookie");
|
||||
|
||||
@@ -162,4 +162,6 @@ public interface OrgEODao extends BaseMapper<OrgEO> {
|
||||
public OrgEO getOrgParentInfoOrgId(OrgEO orgEO);
|
||||
|
||||
public List<OrgEO> getOrgRootTree();
|
||||
|
||||
int clearData();
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
@@ -13,6 +14,7 @@ import java.util.List;
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@TableName(value = "ts_org")
|
||||
public class OrgEO extends BaseEntity implements Serializable {
|
||||
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
|
||||
Reference in New Issue
Block a user