From b081f47c61a9c60bf424f314f078e57faac7e2a5 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期日, 01 三月 2020 11:02:09 +0800
Subject: [PATCH] 优化小区重复显示问题
---
JobService/src/main/java/com/java110/job/controller/JobController.java | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 107 insertions(+), 4 deletions(-)
diff --git a/JobService/src/main/java/com/java110/job/controller/JobController.java b/JobService/src/main/java/com/java110/job/controller/JobController.java
index 1f2a623..cf21f5d 100644
--- a/JobService/src/main/java/com/java110/job/controller/JobController.java
+++ b/JobService/src/main/java/com/java110/job/controller/JobController.java
@@ -1,24 +1,32 @@
package com.java110.job.controller;
+import com.alibaba.fastjson.JSONObject;
import com.java110.core.base.controller.BaseController;
+import com.java110.job.Api.HcFtpToFileSystemConfigAction;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
+import javax.servlet.http.HttpServletRequest;
import java.util.Date;
/**
- * 棣栭〉鐧婚檰鎺у埗绫�
+ * 棣栭〉鎺у埗绫�
* 20190813
* 甯堝欢淇�
*/
@Controller
+@RequestMapping(path = "/HcFtpToFileSystemConfigList")
public class JobController extends BaseController {
private static final Logger logger = LoggerFactory.getLogger(JobController.class);
+
+ @Autowired
+ HcFtpToFileSystemConfigAction ftpToFileSystemConfigAction;
/**
@@ -26,11 +34,106 @@
*
* @return 椤甸潰鍚嶇О
*/
- @RequestMapping(path = "/FtpToFileSystemConfigList")
+ @RequestMapping(path = "/")
public ModelAndView flow() {
- logger.debug("璇锋眰娴佺▼ {},{}", new StringBuffer("prvncFtpToFileSystem"), new Date());
- return new ModelAndView("prvncFtpToFileSystemConfigList");
+ logger.debug("璇锋眰娴佺▼ {},{}", new StringBuffer("棣栭〉鎴戣繘鏉ヤ簡"), new Date());
+ return new ModelAndView("HcFtpToFileSystemConfigList");
+ }
+
+ /**
+ * 椤甸潰杞藉叆鏃跺姞杞�
+ * @return
+ */
+ @RequestMapping(path = "/queryFtpItems")
+ @ResponseBody
+ public String queryFtpItems(HttpServletRequest request) {
+ logger.debug("璇锋眰娴佺▼ {},{}", new StringBuffer("queryFtpItems 鎴戠湅鍒拌姹備簡"), new Date());
+ JSONObject JSON = ftpToFileSystemConfigAction.queryFtpItems(request);
+ return JSON.toJSONString();
+ }
+
+ /**
+ * 鐐瑰嚮淇濆瓨鎸夐挳鏃�
+ * @return
+ */
+ @RequestMapping(path = "/addFtpItem")
+ @ResponseBody
+ public String addFtpItem(HttpServletRequest request) {
+ logger.debug("璇锋眰娴佺▼ {},{}", new StringBuffer("addFtpItem 鎴戠湅鍒拌姹備簡"), new Date());
+ JSONObject JSON = ftpToFileSystemConfigAction.addFtpItem(request);
+ return JSON.toJSONString();
+ }
+
+ /**
+ * 鑾峰彇浠诲姟灞炴��
+ * @return
+ */
+ @RequestMapping(path = "/questTaskTample")
+ @ResponseBody
+ public String questTaskTample(HttpServletRequest request) {
+ logger.debug("璇锋眰娴佺▼ {},{}", new StringBuffer("questTaskTample 鎴戠湅鍒拌姹備簡"), new Date());
+ JSONObject JSON = ftpToFileSystemConfigAction.questTaskTample(request);
+ return JSON.toJSONString();
+ }
+
+ /**
+ * 鏍规嵁TaskId 鑾峰彇浠诲姟灞炴��
+ * @return
+ */
+ @RequestMapping(path = "/queryTaskAttrs")
+ @ResponseBody
+ public String queryTaskAttrs(HttpServletRequest request) {
+ logger.debug("璇锋眰娴佺▼ {},{}", new StringBuffer("queryTaskAttrs 鎴戠湅鍒拌姹備簡"), new Date());
+ JSONObject JSON = ftpToFileSystemConfigAction.queryTaskAttrs(request);
+ return JSON.toJSONString();
}
+ /**
+ * 鏍规嵁TaskId 鍚姩浠诲姟
+ * @return
+ */
+ @RequestMapping(path = "/startJob")
+ @ResponseBody
+ public String startJob(HttpServletRequest request) {
+ logger.debug("璇锋眰娴佺▼ {},{}", new StringBuffer("startJob 鎴戠湅鍒拌姹備簡"), new Date());
+ JSONObject JSON = ftpToFileSystemConfigAction.startJob(request);
+ return JSON.toJSONString();
+ }
+
+
+ /**
+ * 鏍规嵁TaskId 鍋滄浠诲姟
+ * @return
+ */
+ @RequestMapping(path = "/stopJob")
+ @ResponseBody
+ public String stopJob(HttpServletRequest request) {
+ logger.debug("璇锋眰娴佺▼ {},{}", new StringBuffer("stopJob 鎴戠湅鍒拌姹備簡"), new Date());
+ JSONObject JSON = ftpToFileSystemConfigAction.stopJob(request);
+ return JSON.toJSONString();
+ }
+ /**
+ * 鏍规嵁TaskId 鍒犻櫎浠诲姟
+ * @return
+ */
+ @RequestMapping(path = "/deleteFtpItem")
+ @ResponseBody
+ public String deleteFtpItem(HttpServletRequest request) {
+ logger.debug("璇锋眰娴佺▼ {},{}", new StringBuffer("deleteFtpItem 鎴戠湅鍒拌姹備簡"), new Date());
+ JSONObject JSON = ftpToFileSystemConfigAction.deleteFtpItem(request);
+ return JSON.toJSONString();
+ }
+
+ /**
+ * 鏍规嵁TaskId 鍒犻櫎浠诲姟
+ * @return
+ */
+ @RequestMapping(path = "/editFtpItem")
+ @ResponseBody
+ public String editFtpItem(HttpServletRequest request) {
+ logger.debug("璇锋眰娴佺▼ {},{}", new StringBuffer("editFtpItem 鎴戠湅鍒拌姹備簡"), new Date());
+ JSONObject JSON = ftpToFileSystemConfigAction.editFtpItem(request);
+ return JSON.toJSONString();
+ }
}
--
Gitblit v1.8.0