|
@@ -0,0 +1,59 @@
|
|
|
+package com.jtgh.yjpt.controller.cg;
|
|
|
+
|
|
|
+import org.activiti.engine.impl.util.json.JSONObject;
|
|
|
+import org.springframework.flex.remoting.RemotingDestination;
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
+
|
|
|
+import com.jtgh.yjpt.controller.BaseController;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 储罐动态信息交换接口controller
|
|
|
+ *
|
|
|
+ * @author yxd
|
|
|
+ *
|
|
|
+ */
|
|
|
+@Controller
|
|
|
+@RequestMapping("cgdtjk")
|
|
|
+public class cgdtjkController extends BaseController {
|
|
|
+ /**
|
|
|
+ * 储罐信息设置接口
|
|
|
+ *
|
|
|
+ * @param jsonStr
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value="/sendCgxx")
|
|
|
+ @ResponseBody
|
|
|
+ public JSONObject sendCgxx(String jsonStr) {
|
|
|
+ // 解析json数据
|
|
|
+ //
|
|
|
+ // 返回结果信息
|
|
|
+ JSONObject jsonObj = new JSONObject();
|
|
|
+ // 消息编码
|
|
|
+ jsonObj.put("CODE", "M001");
|
|
|
+ // 消息内容
|
|
|
+ jsonObj.put("MSG", "操作成功");
|
|
|
+ return jsonObj;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 储罐监控信息接口
|
|
|
+ *
|
|
|
+ * @param jsonStr
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value="/sendCgjkxx")
|
|
|
+ @ResponseBody
|
|
|
+ public JSONObject sendCgjkxx(String jsonStr) {
|
|
|
+ // 解析json数据
|
|
|
+ //
|
|
|
+ // 返回结果信息
|
|
|
+ JSONObject jsonObj = new JSONObject();
|
|
|
+ // 消息编码
|
|
|
+ jsonObj.put("CODE", "M009");
|
|
|
+ // 消息内容
|
|
|
+ jsonObj.put("MSG", "操作失败");
|
|
|
+ return jsonObj;
|
|
|
+ }
|
|
|
+}
|