Commit 0b824a7b by 伍思炜

新智能平台对接开发

parent 37a678cf
package com.winsun.controller;
import com.alibaba.fastjson.JSONObject;
import com.winsun.bean.AttributeList;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class TestController
{
@RequestMapping(value = "testPost", method = RequestMethod.POST)
public AttributeList testPost(@RequestBody JSONObject requestBean)
{
System.out.println(requestBean);
AttributeList responseBean = new AttributeList();
responseBean.setName("123");
responseBean.setValue("succ");
return responseBean;
}
}
\ No newline at end of file
package com.winsun.bean;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
@Data
public class AttributeList {
@JSONField(name ="属性名")
private String name;
@JSONField(name ="属性值")
private String value;
}
......@@ -169,6 +169,9 @@ public interface OrderMapper extends BaseMapper<Order> {
@Select("SELECT * FROM hhr_order WHERE user_type = '5' and order_status = '未下单'")
List<Map<String,Object>> selectDKList();
@Select("SELECT * FROM hhr_order WHERE user_type = '5' and kd_order_id = 'vpsg0u4l4y8tkp1aimlh'")
Map<String,Object> selectDKList2();
/**
* 一人一码订单通报 -- 移动订单(学校)
......
......@@ -16,7 +16,7 @@ public class ZnptSignUtils {
private final SecretKeySpec secretKey;
public ZnptSignUtils() {
try {
byte[] data = macKey.getBytes(ENCODING);
this.secretKey = new SecretKeySpec(data, MAC_NAME);
......
......@@ -10,7 +10,7 @@ eureka:
serviceUrl:
defaultZone: http://localhost:20000/eureka/
server:
port: 10002
port: 10003
servlet:
context-path: /ciop
tomcat:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment