diff --git a/projects/fangjia-script/pom.xml b/projects/fangjia-script/pom.xml index 1a14ef3ee..0d5adfa99 100644 --- a/projects/fangjia-script/pom.xml +++ b/projects/fangjia-script/pom.xml @@ -481,11 +481,11 @@ easyexcel 2.2.8 + + org.projectlombok + lombok + 1.18.20 + provided + - - - elastic.co - https://artifacts.elastic.co/maven - - diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/statistics/DingTalkUtils.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/statistics/DingTalkUtils.groovy new file mode 100644 index 000000000..f49025b41 --- /dev/null +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/statistics/DingTalkUtils.groovy @@ -0,0 +1,14 @@ +/** + * 钉钉接口调用工具类 + * + * @author shenjian + * @since 2021/5/8 + */ +class DingTalkUtils { + + final String key = "ding0243a5c51f1f4aa8"; + + static void main(String[] args) { + + } +} \ No newline at end of file diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/statistics/Export.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/statistics/Export.groovy new file mode 100644 index 000000000..7f53ec256 --- /dev/null +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/statistics/Export.groovy @@ -0,0 +1,51 @@ +import com.fangjia.script.statistics.ApiUtil +import com.fangjia.script.statistics.Project +import com.fangjia.script.statistics.ProjectLabel + +/** + * 绩效相关信息导出 + * + * @author shenjian + * @since 2021/5/8 + */ +class Export { + + static void main(String[] args) { + def result = [] + result << ['统计时间', '2021年4月1日-2021年4月30日'] + result << ['项目类别', '项目名称', '项目负责人', '总工时(天)'] + + List projects = ApiUtil.listProject(); + for (Project project : projects) { + def ret = [] + List labels = ApiUtil.listProjectLabel(project.getId()) + ret[1] = project.getName() + for (ProjectLabel label : labels) { + if ("商务负责人" == label.getGroups().getName()) { + if (ret[2] == null) { + ret[2] = label.getName() + } else { + ret[2] = ret[2] + "、" + label.getName() + } + } else if ("项目类别" == label.getGroups().getName()) { + ret[0] = label.getName() + } + } + result << ret + } + + com.fangjia.script.util.ExcelUtils.write("F:\\数据\\绩效\\统计.xlsx", result, "项目统计"); + } +} + + + + + + + + + + + + diff --git a/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/ApiUtil.java b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/ApiUtil.java new file mode 100644 index 000000000..1c2836659 --- /dev/null +++ b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/ApiUtil.java @@ -0,0 +1,305 @@ +package com.fangjia.script.statistics; + +import java.io.BufferedReader; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Date; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import javax.crypto.Mac; +import javax.crypto.spec.SecretKeySpec; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import org.apache.commons.codec.binary.Base64; +import org.apache.http.HttpResponse; +import org.apache.http.HttpStatus; +import org.apache.http.client.HttpClient; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.entity.StringEntity; +import org.apache.http.impl.client.DefaultHttpClient; + +import com.alibaba.fastjson.JSONObject; + +/** + * 铓傝殎鍒嗗伐寮�鏀惧钩鍙板伐鍏风被 + * 鐢变簬groovy璋冪敤浼氳鎶ョ鍚嶉敊璇棶棰橈紝鏁呯敤java鏂瑰紡 + */ +public class ApiUtil { + + private static final String secretKey = "HtRc7R5jI0plOOAukES4pM6yxWJbU9GyyM1xi4kH"; + private static final String corpId = "ding0243a5c51f1f4aa8"; + + public static String getApiSingnature(String body, Long timeStamp, String secretKey) throws Exception { + JSONObject bodyObj = JSONObject.parseObject(body); + return getApiSingnature(bodyObj, timeStamp, secretKey); + } + + /** + * 鑾峰彇绛惧悕 + */ + public static String getApiSingnature(JSONObject body, Long timeStamp, String secretKey) throws Exception { + String signature = ""; + try { + //鍙傛暟鎺掑簭锛屼繚璇佺鍚嶄竴鑷� + List fileds = new ArrayList<>(); + Set> set = body.entrySet(); + for (Entry entry : set) { + fileds.add(entry.getKey()); + } + //鍙傛暟鎵ц鎺掑簭 + Collections.sort(fileds); + Map params = new LinkedHashMap(); + for (String key : fileds) { + Object obj = body.get(key); + if(obj != null){ + params.put(key, obj); + } + } + String stringToSign = "timestamp="+timeStamp+"&body="+ params.toString(); + Mac mac = Mac.getInstance("HmacSHA256"); + mac.init(new SecretKeySpec(secretKey.getBytes("UTF-8"), "HmacSHA256")); + byte[] signatureBytes = mac.doFinal(stringToSign.getBytes("UTF-8")); + signature = new String(Base64.encodeBase64(signatureBytes)); + return signature; + } catch (Exception e) { + e.printStackTrace(); + throw new Exception("璁$畻绛惧悕閿欒"); + } + } + + public static JSONObject post(String url, JSONObject json) throws Exception { + return (JSONObject) post(url, json, new JSONObject()); + } + + + private static Object post(String url, JSONObject json, Object t) throws Exception { + HttpClient client = new DefaultHttpClient(); + HttpPost post = new HttpPost(url); + + post.setHeader("Content-Type", "application/json"); + String result = ""; + try { + StringEntity s = new StringEntity(json.toJSONString(), "utf-8"); + post.setEntity(s); + + // 鍙戦�佽姹� + HttpResponse httpResponse = client.execute(post); + + // 鑾峰彇鍝嶅簲杈撳叆娴� + InputStream inStream = httpResponse.getEntity().getContent(); + BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "utf-8")); + StringBuilder strber = new StringBuilder(); + String line = null; + while ((line = reader.readLine()) != null){ + strber.append(line + "\n"); + } + inStream.close(); + result = strber.toString(); + if (httpResponse.getStatusLine().getStatusCode() == HttpStatus.SC_OK) { + return JSONObject.parseObject(result, t.getClass()); + } else { + return null; + } + } catch (Exception e) { + e.printStackTrace(); + throw new RuntimeException("璇锋眰寮傚父"); + } + } + + /** + * 鑾峰彇椤圭洰鏍囩 + * + * @return + */ + public static List listProjectLabel(String projectId) { + List labels = null; + try { + JSONObject body = new JSONObject(); + body.put("id", projectId); + + long timeStamp = new Date().getTime(); + + String signature = ApiUtil.getApiSingnature(body.toJSONString(), timeStamp, secretKey); + JSONObject param = new JSONObject(); + param.put("signature", signature); + param.put("timeStamp", timeStamp); + param.put("corpid", corpId); + param.put("body", body); + JSONObject result = ApiUtil.post("https://api.antbim.net/ant_api/project/getProjectLabel", param); + if ((Integer)result.get("code") == 0) { + JSONArray jsonArray = result.getJSONArray("data"); + labels = jsonArray.toJavaList(ProjectLabel.class); + } + } catch (Exception e) { + e.printStackTrace(); + } + return labels; + } + + /** + * 鑾峰彇椤圭洰鍒楄〃 + * @return + */ + public static List listProject() { + List project = null; + try { + JSONObject body = new JSONObject(); + body.put("limitStart", "0"); + body.put("limitNum", "50"); + + long timeStamp = new Date().getTime(); + + String signature = ApiUtil.getApiSingnature(body.toJSONString(), timeStamp, secretKey); + JSONObject param = new JSONObject(); + param.put("signature", signature); + param.put("timeStamp", timeStamp); + param.put("corpid", corpId); + param.put("body", body); + JSONObject result = ApiUtil.post("http://api.antbim.net/ant_api/project/getProjectList", param); + if ((Integer)result.get("code") == 0) { + if ((Integer)JSONObject.parseObject(String.valueOf(result.get("data"))).get("count") > 0) { + JSONArray jsonArray = JSONObject.parseObject(String.valueOf(result.get("data"))).getJSONArray("list"); + project = jsonArray.toJavaList(Project.class); + } + } + } catch (Exception e) { + e.printStackTrace(); + } + return project; + } + + /** + * 鑾峰彇椤圭洰涓嬩换鍔℃竻鍗曞垪琛� + * + * @return + */ + public static JSONObject listInventory(String projectId) { + JSONObject result = new JSONObject(); + try { + JSONObject body = new JSONObject(); + body.put("limitStart", "0"); + body.put("limitNum", "50"); + body.put("projectId", projectId); + + long timeStamp = new Date().getTime(); + + String signature = ApiUtil.getApiSingnature(body.toJSONString(), timeStamp, secretKey); + JSONObject param = new JSONObject(); + param.put("signature", signature); + param.put("timeStamp", timeStamp); + param.put("corpid", corpId); + param.put("body", body); + result = ApiUtil.post("https://api.antbim.net/ant_api/project/inventory/getInventoryList", param); + } catch (Exception e) { + e.printStackTrace(); + } + return result; + } + + + /** + * 鑾峰彇椤圭洰涓嬩换鍔$被鍨嬪垪琛� + * @return + */ + public static JSONObject listTaskType(String projectId) { + JSONObject result = new JSONObject(); + try { + JSONObject body = new JSONObject(); + body.put("limitStart", "0"); + body.put("limitNum", "50"); + body.put("projectId", projectId); + + long timeStamp = new Date().getTime(); + + String signature = ApiUtil.getApiSingnature(body.toJSONString(), timeStamp, secretKey); + JSONObject param = new JSONObject(); + param.put("signature", signature); + param.put("timeStamp", timeStamp); + param.put("corpid", corpId); + param.put("body", body); + result = ApiUtil.post("https://api.antbim.net/ant_api/project/tasktype/getTasktypeList", param); + } catch (Exception e) { + e.printStackTrace(); + } + return result; + } + + /** + * 鑾峰彇椤圭洰鍐呬换鍔″垪琛� + * + * @return + */ + public static List listTaskByProject(String projectId, String startTime, String endTime) { + List tasks = null; + try { + JSONObject body = new JSONObject(); + body.put("limitStart", "0"); + body.put("limitNum", "50"); + body.put("projectId", projectId); + body.put("createtimeStart", startTime); + body.put("createtimeEnd", endTime); + + long timeStamp = new Date().getTime(); + + String signature = ApiUtil.getApiSingnature(body.toJSONString(), timeStamp, secretKey); + JSONObject param = new JSONObject(); + param.put("signature", signature); + param.put("timeStamp", timeStamp); + param.put("corpid", corpId); + param.put("body", body); + JSONObject result = ApiUtil.post("https://api.antbim.net/ant_api/task/getTaskListByProject", param); + if ((Integer)result.get("code") == 0) { + if ((Integer)JSONObject.parseObject(String.valueOf(result.get("data"))).get("count") > 0) { + JSONArray jsonArray = JSONObject.parseObject(String.valueOf(result.get("data"))).getJSONArray("list"); + tasks = jsonArray.toJavaList(Task.class); + } + } + } catch (Exception e) { + e.printStackTrace(); + } + return tasks; + } + + /** + * 鑾峰彇浠诲姟璇︽儏 + * + * @return + */ + public static TaskDetail getTaskDetail(String taskId) { + TaskDetail detail = null; + try { + JSONObject body = new JSONObject(); + body.put("id", taskId); + + long timeStamp = new Date().getTime(); + + String signature = ApiUtil.getApiSingnature(body.toJSONString(), timeStamp, secretKey); + JSONObject param = new JSONObject(); + param.put("signature", signature); + param.put("timeStamp", timeStamp); + param.put("corpid", corpId); + param.put("body", body); + JSONObject result = ApiUtil.post("https://api.antbim.net/ant_api/task/getTaskDetail", param); + if ((Integer)result.get("code") == 0) { + JSONObject obj = JSONObject.parseObject(String.valueOf(result.get("data"))); + detail = obj.toJavaObject(TaskDetail.class); + } + } catch (Exception e) { + e.printStackTrace(); + } + return detail; + } + + public static void main(String[] args) { + //List projects = ApiUtil.listProject(); + //System.out.println(ApiUtil.listTaskByProject("ecd77309ab1c4b83b54ee87b8ddd4f98", "2021-04-01", "2021-04-30")); + System.out.println(ApiUtil.getTaskDetail("3bbb043ad0b44ea2a1213e725274e3ad")); + } +} diff --git a/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/Project.java b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/Project.java new file mode 100644 index 000000000..e5ea5b6a9 --- /dev/null +++ b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/Project.java @@ -0,0 +1,92 @@ +package com.fangjia.script.statistics; + +/** + * @author shenjian + * @since 2021/5/8 + */ +public class Project { + private Integer taskCount; + private Integer taskendCount; + private String name; + private CreateUser createUser; + private String id; + private String state; + private String createDate; + + public Integer getTaskCount() { + return taskCount; + } + + public void setTaskCount(Integer taskCount) { + this.taskCount = taskCount; + } + + public Integer getTaskendCount() { + return taskendCount; + } + + public void setTaskendCount(Integer taskendCount) { + this.taskendCount = taskendCount; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateUser getCreateUser() { + return createUser; + } + + public void setCreateUser(CreateUser createUser) { + this.createUser = createUser; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public String getCreateDate() { + return createDate; + } + + public void setCreateDate(String createDate) { + this.createDate = createDate; + } +} + +class CreateUser { + private String name; + private String userid; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getUserid() { + return userid; + } + + public void setUserid(String userid) { + this.userid = userid; + } +} diff --git a/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/ProjectLabel.java b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/ProjectLabel.java new file mode 100644 index 000000000..bb5864998 --- /dev/null +++ b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/ProjectLabel.java @@ -0,0 +1,57 @@ +package com.fangjia.script.statistics; + +/** + * @author shenjian + * @since 2021/5/8 + */ +public class ProjectLabel { + + private String color; + private String name; + private Groups groups; + private String id; + + public String getColor() { + return color; + } + + public void setColor(String color) { + this.color = color; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Groups getGroups() { + return groups; + } + + public void setGroups(Groups groups) { + this.groups = groups; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } +} + +class Groups { + private String name; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} \ No newline at end of file diff --git a/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/Task.java b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/Task.java new file mode 100644 index 000000000..9a0c728c4 --- /dev/null +++ b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/Task.java @@ -0,0 +1,64 @@ +package com.fangjia.script.statistics; + +import com.alibaba.fastjson.annotation.JSONField; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author shenjian + * @since 2021/5/8 + */ +@NoArgsConstructor +@Data +public class Task { + + @JSONField(name = "code") + private String code; + @JSONField(name = "response") + private ResponseDTO response; + @JSONField(name = "planBeginTime") + private String planBeginTime; + @JSONField(name = "name") + private String name; + @JSONField(name = "planEndTime") + private String planEndTime; + @JSONField(name = "id") + private String id; + @JSONField(name = "state") + private String state; + @JSONField(name = "inventory") + private InventoryDTO inventory; + @JSONField(name = "flow") + private FlowDTO flow; + @JSONField(name = "createDate") + private String createDate; + + @NoArgsConstructor + @Data + public static class ResponseDTO { + @JSONField(name = "name") + private String name; + @JSONField(name = "userid") + private String userid; + } + + @NoArgsConstructor + @Data + public static class InventoryDTO { + @JSONField(name = "name") + private String name; + @JSONField(name = "id") + private String id; + @JSONField(name = "abbrev") + private String abbrev; + } + + @NoArgsConstructor + @Data + public static class FlowDTO { + @JSONField(name = "name") + private String name; + @JSONField(name = "userid") + private String userid; + } +} diff --git a/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/TaskDetail.java b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/TaskDetail.java new file mode 100644 index 000000000..3d0d4acfe --- /dev/null +++ b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/TaskDetail.java @@ -0,0 +1,67 @@ +package com.fangjia.script.statistics; + +import com.alibaba.fastjson.annotation.JSONField; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author shenjian + * @since 2021/5/8 + */ +@NoArgsConstructor +@Data +public class TaskDetail { + + @JSONField(name = "code") + private String code; + @JSONField(name = "realityBeginDate") + private String realityBeginDate; + @JSONField(name = "assignDate") + private String assignDate; + @JSONField(name = "flowConten") + private String flowConten; + @JSONField(name = "description") + private String description; + @JSONField(name = "realityEndDate") + private String realityEndDate; + @JSONField(name = "workTime") + private String workTime; + @JSONField(name = "confirmDate") + private String confirmDate; + @JSONField(name = "response") + private ResponseDTO response; + @JSONField(name = "name") + private String name; + @JSONField(name = "inventoryId") + private String inventoryId; + @JSONField(name = "state") + private String state; + @JSONField(name = "id") + private String id; + @JSONField(name = "planEndDate") + private String planEndDate; + @JSONField(name = "planBeginDate") + private String planBeginDate; + @JSONField(name = "flow") + private FlowDTO flow; + @JSONField(name = "createDate") + private String createDate; + + @NoArgsConstructor + @Data + public static class ResponseDTO { + @JSONField(name = "name") + private String name; + @JSONField(name = "userid") + private String userid; + } + + @NoArgsConstructor + @Data + public static class FlowDTO { + @JSONField(name = "name") + private String name; + @JSONField(name = "userid") + private String userid; + } +} diff --git a/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/json/label.json b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/json/label.json new file mode 100644 index 000000000..10af777c0 --- /dev/null +++ b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/json/label.json @@ -0,0 +1,38 @@ +{ + "code": 0, + "data": [ + { + "color": "74CBFF", + "name": "建行项目", + "groups": { + "name": "项目类别" + }, + "id": "3538604d04b1495585a45c23379b65f5" + }, + { + "color": "75ccff", + "name": "丁世菁", + "groups": { + "name": "商务负责人" + }, + "id": "c9055e8370464537a2eefc3aa925097b" + }, + { + "color": "88C896", + "name": "准备中", + "groups": { + "name": "项目进展" + }, + "id": "6138228645e347b3a1f6ed52ece457c5" + }, + { + "color": "75ccff", + "name": "董彦均", + "groups": { + "name": "商务负责人" + }, + "id": "8100d58e9a3e4c8cb9be9406147ee93b" + } + ], + "message": "成功" +} diff --git a/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/json/project.json b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/json/project.json new file mode 100644 index 000000000..f3e658cca --- /dev/null +++ b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/json/project.json @@ -0,0 +1,225 @@ +{ + "code": 0, + "data": { + "count": 18, + "list": [ + { + "taskCount": 2, + "taskendCount": 2, + "name": "建行配套数据采购项目", + "createUser": { + "name": "王文艳", + "userid": "02245922356399" + }, + "id": "77478f60337840ccaf5ebb294ac1c987", + "state": "进行中", + "createDate": "2021-04-12 17:51:21" + }, + { + "taskCount": 3, + "taskendCount": 3, + "name": "房金部房产估值模型", + "createUser": { + "name": "穆良书", + "userid": "055551305431136413" + }, + "id": "e7caf92da7be4c529c8733cbb196173e", + "state": "进行中", + "createDate": "2021-04-12 08:43:54" + }, + { + "taskCount": 1, + "taskendCount": 0, + "name": "地址标准化项目", + "createUser": { + "name": "王文艳", + "userid": "02245922356399" + }, + "id": "f7c307d9af794f4589f0a7027142e6e8", + "state": "进行中", + "createDate": "2021-04-01 10:03:56" + }, + { + "taskCount": 2, + "taskendCount": 2, + "name": "企业经营地址库", + "createUser": { + "name": "王文艳", + "userid": "02245922356399" + }, + "id": "59b1247428a445f5971f8f06091fb558", + "state": "进行中", + "createDate": "2021-03-22 15:10:41" + }, + { + "taskCount": 11, + "taskendCount": 8, + "name": "建信住房租金估价报告项目", + "createUser": { + "name": "王文艳", + "userid": "02245922356399" + }, + "id": "ecd77309ab1c4b83b54ee87b8ddd4f98", + "state": "进行中", + "createDate": "2021-03-19 10:12:40" + }, + { + "taskCount": 2, + "taskendCount": 2, + "name": "上数分地址标准化项目", + "createUser": { + "name": "王文艳", + "userid": "02245922356399" + }, + "id": "4f22540647c74fc0a8277d798fbe9bfc", + "state": "进行中", + "createDate": "2021-03-18 16:50:19" + }, + { + "taskCount": 2, + "taskendCount": 2, + "name": "建行开发商项目", + "createUser": { + "name": "王文艳", + "userid": "02245922356399" + }, + "id": "f82329c2390c4d2399f96ba21e92c950", + "state": "进行中", + "createDate": "2021-03-15 09:52:34" + }, + { + "taskCount": 9, + "taskendCount": 8, + "name": "房金部楼盘字典数据测试", + "createUser": { + "name": "王文艳", + "userid": "02245922356399" + }, + "id": "457f11e89aad42b6a7bb289e8341ac04", + "state": "进行中", + "createDate": "2021-03-12 17:40:02" + }, + { + "taskCount": 2, + "taskendCount": 2, + "name": "房价通", + "createUser": { + "name": "王文艳", + "userid": "02245922356399" + }, + "id": "6a218757c86648559dacd9e4538d3f0a", + "state": "进行中", + "createDate": "2021-03-11 14:49:37" + }, + { + "taskCount": 1, + "taskendCount": 1, + "name": "亲邻科技", + "createUser": { + "name": "王文艳", + "userid": "02245922356399" + }, + "id": "33c2a17a6d194168a2838c9ae4bd18b3", + "state": "进行中", + "createDate": "2021-03-10 11:46:36" + }, + { + "taskCount": 2, + "taskendCount": 2, + "name": "福州农商银行", + "createUser": { + "name": "王文艳", + "userid": "02245922356399" + }, + "id": "f1f7bf085c3b4033932b8e78d2a644ed", + "state": "进行中", + "createDate": "2021-03-10 10:43:23" + }, + { + "taskCount": 27, + "taskendCount": 25, + "name": "房价网基础数据建设", + "createUser": { + "name": "王文艳", + "userid": "02245922356399" + }, + "id": "ddd31486abb645eaa8a48fb43d57045b", + "state": "进行中", + "createDate": "2021-03-10 10:27:53" + }, + { + "taskCount": 1, + "taskendCount": 1, + "name": "江南农村商业银行", + "createUser": { + "name": "王文艳", + "userid": "02245922356399" + }, + "id": "8f18fddec76a4ca788946825a741abdc", + "state": "进行中", + "createDate": "2021-03-09 09:38:15" + }, + { + "taskCount": 72, + "taskendCount": 65, + "name": "建行楼盘数据治理项目", + "createUser": { + "name": "王文艳", + "userid": "02245922356399" + }, + "id": "41bdf23cbf634035b694f92ba72b067f", + "state": "进行中", + "createDate": "2021-03-02 16:54:38" + }, + { + "taskCount": 2, + "taskendCount": 2, + "name": "江苏农行项目", + "createUser": { + "name": "王文艳", + "userid": "02245922356399" + }, + "id": "a10e63ac24b9487cb1dd1140dd2ffc94", + "state": "进行中", + "createDate": "2021-03-02 09:08:45" + }, + { + "taskCount": 0, + "taskendCount": 0, + "name": "浙商银行估值项目", + "createUser": { + "name": "王文艳", + "userid": "02245922356399" + }, + "id": "53aa253f216542dfb8022dcbd18601cc", + "state": "进行中", + "createDate": "2021-03-02 09:07:54" + }, + { + "taskCount": 2, + "taskendCount": 2, + "name": "机房运维", + "createUser": { + "name": "王文艳", + "userid": "02245922356399" + }, + "id": "fc76aa65155741c1a074305741a067eb", + "state": "进行中", + "createDate": "2021-03-02 09:01:42" + }, + { + "taskCount": 27, + "taskendCount": 26, + "name": "浙商银行本地化部署", + "createUser": { + "name": "王文艳", + "userid": "02245922356399" + }, + "id": "71e520aff8e243f3b04e9d6fea7867d1", + "state": "进行中", + "createDate": "2021-03-01 16:36:41" + } + ] + }, + "message": "成功" +} diff --git a/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/json/task.json b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/json/task.json new file mode 100644 index 000000000..8026c9d69 --- /dev/null +++ b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/json/task.json @@ -0,0 +1,85 @@ +{ + "code": 0, + "data": { + "count": 4, + "list": [ + { + "code": "5", + "response": { + "name": "王文艳", + "userid": "02245922356399" + }, + "planBeginTime": "2021-04-06 09:00:00", + "name": "地图展示上海租金数据", + "planEndTime": "2021-04-06 18:00:00", + "id": "3bbb043ad0b44ea2a1213e725274e3ad", + "state": "已完成", + "inventory": { + "name": "默认清单", + "id": "d00fcb9c5307499eab8f9798a23f6360", + "abbrev": "A" + }, + "flow": { + "name": "王文艳", + "userid": "02245922356399" + }, + "createDate": "2021-04-06 15:52:01" + }, + { + "code": "6", + "response": { + "name": "沈健", + "userid": "010828030128881885" + }, + "planBeginTime": "2021-04-07 09:00:00", + "name": "租房报告预览下载;es迁移丢失数据同步", + "planEndTime": "2021-04-08 18:59:00", + "id": "8725262c17db408dab1f31473d50598f", + "state": "已完成", + "inventory": { + "name": "默认清单", + "id": "d00fcb9c5307499eab8f9798a23f6360", + "abbrev": "A" + }, + "createDate": "2021-04-07 09:31:53" + }, + { + "code": "7", + "response": { + "name": "高娟", + "userid": "02245922257828" + }, + "planBeginTime": "2021-04-08 09:00:00", + "name": "根据新的租房报告进仁行接口修改", + "planEndTime": "2021-04-08 18:00:00", + "id": "309bdc4420e74868bda27884f4a46508", + "state": "已完成", + "inventory": { + "name": "默认清单", + "id": "d00fcb9c5307499eab8f9798a23f6360", + "abbrev": "A" + }, + "createDate": "2021-04-12 11:24:01" + }, + { + "code": "8", + "response": { + "name": "沈健", + "userid": "010828030128881885" + }, + "planBeginTime": "2021-04-16 09:23:00", + "name": "估值页面报告优化及小学数据按标准导出", + "planEndTime": "2021-04-16 19:00:00", + "id": "45f9d101b18b48a08045de76cf2e53af", + "state": "已完成", + "inventory": { + "name": "默认清单", + "id": "d00fcb9c5307499eab8f9798a23f6360", + "abbrev": "A" + }, + "createDate": "2021-04-16 09:23:21" + } + ] + }, + "message": "成功" +} diff --git a/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/json/taskDetail.json b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/json/taskDetail.json new file mode 100644 index 000000000..362cb7398 --- /dev/null +++ b/projects/fangjia-script/src/main/java/com/fangjia/script/statistics/json/taskDetail.json @@ -0,0 +1,29 @@ +{ + "code": 0, + "data": { + "code": "5", + "realityBeginDate": "2021-04-06 09:00:00", + "assignDate": "2021-04-06 15:52:01", + "flowConten": "1", + "description": "", + "realityEndDate": "2021-04-08 16:49:07", + "workTime": "1.00", + "confirmDate": "2021-04-08 16:49:07", + "response": { + "name": "王文艳", + "userid": "02245922356399" + }, + "name": "地图展示上海租金数据", + "inventoryId": "d00fcb9c5307499eab8f9798a23f6360", + "state": "已完成", + "id": "3bbb043ad0b44ea2a1213e725274e3ad", + "planEndDate": "2021-04-06 18:00:00", + "planBeginDate": "2021-04-06 09:00:00", + "flow": { + "name": "王文艳", + "userid": "02245922356399" + }, + "createDate": "2021-04-06 15:52:01" + }, + "message": "成功" +}