|
@@ -5,8 +5,6 @@ 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
|
|
|
*
|
|
@@ -14,45 +12,41 @@ import com.jtgh.yjpt.controller.BaseController;
|
|
|
*
|
|
|
*/
|
|
|
@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;
|
|
|
- }
|
|
|
+@RequestMapping("cg")
|
|
|
+public class CgdtjkController {
|
|
|
+ /**
|
|
|
+ * 储罐信息设置接口
|
|
|
+ *
|
|
|
+ * @param jsonStr
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/sz")
|
|
|
+ @ResponseBody
|
|
|
+ public JSONObject sz(CgjkszBean cgjksz) {
|
|
|
+ // 返回结果信息
|
|
|
+ JSONObject jsonObj = new JSONObject();
|
|
|
+ // 消息编码
|
|
|
+ jsonObj.put("CODE", "M001");
|
|
|
+ // 消息内容
|
|
|
+ jsonObj.put("MSG", "操作成功");
|
|
|
+ return jsonObj;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 储罐监控信息接口
|
|
|
+ *
|
|
|
+ * @param jsonStr
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/jk")
|
|
|
+ @ResponseBody
|
|
|
+ public JSONObject jk(CgjkxxBean cgjkxx) {
|
|
|
+ // 返回结果信息
|
|
|
+ JSONObject jsonObj = new JSONObject();
|
|
|
+ // 消息编码
|
|
|
+ jsonObj.put("CODE", "M009");
|
|
|
+ // 消息内容
|
|
|
+ jsonObj.put("MSG", "操作失败");
|
|
|
+ return jsonObj;
|
|
|
+ }
|
|
|
}
|