Commit 5d17708b by zhanghj

V1.4.0--提交测试代码

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@23859 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 67d0265c
......@@ -82,7 +82,7 @@ public class BiddingOrderNoBidRemindTask extends QuartzJobBean{
}
}
if (list.size() > 0) {
logger.info("竞价单超时可发送列表", JSON.toJSONString(list));
logger.info("竞价单超时可发送列表"+ JSON.toJSONString(list));
userClient.sendBiddingOrderNoBidRemindMsg(JSON.toJSONString(list));
}
logger.info("结束执行竞价单超时定时任务提醒");
......
package com.glsx.usercenter.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
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.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.glsx.common.constants.ResultObject;
import com.glsx.common.feign.client.MenuClient;
import com.glsx.common.utils.Page;
import com.glsx.usercenter.component.AsyncWebScocketMsgSend;
import com.glsx.usercenter.constants.ResultCodeEnum;
import com.glsx.usercenter.pojo.Test;
import com.glsx.usercenter.service.TestService;
import com.glsx.usercenter.utils.ShiroUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
//import com.glsx.common.utils.PropertiesUtil;
......@@ -28,6 +32,8 @@ public class TestController extends BaseController {
private TestService testService;
@Autowired
private MenuClient menuClient;
@Autowired
private AsyncWebScocketMsgSend asyncWebScocketMsgSend;
@RequestMapping(value = "/get", method = {RequestMethod.GET, RequestMethod.POST})
public ResultObject index(Test test) {
......@@ -76,4 +82,11 @@ public class TestController extends BaseController {
logger.info("code=====" + code);
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), code);
}
@RequestMapping(value = "/testWebsocket", method = {RequestMethod.POST, RequestMethod.GET})
public ResultObject testWebsocket(@RequestBody JSONArray orderList) {
logger.info("测试websocke的msg=====" + JSONObject.toJSONString(orderList));
asyncWebScocketMsgSend.sendInfo(orderList);
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg());
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!