|
|
|
@ -3,6 +3,7 @@ package cn.chjyj.szwh.controller.api; |
|
|
|
import cn.chjyj.szwh.bean.Goods; |
|
|
|
import cn.chjyj.szwh.controller.BaseController; |
|
|
|
import cn.chjyj.szwh.service.GoodsService; |
|
|
|
import com.alibaba.fastjson2.JSON; |
|
|
|
import com.alibaba.fastjson2.JSONObject; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.apache.commons.logging.Log; |
|
|
|
@ -133,13 +134,18 @@ public class GoodsController extends BaseController { |
|
|
|
/** |
|
|
|
* 根据类型获取委托信息 |
|
|
|
* |
|
|
|
* @param type |
|
|
|
* @param createtime |
|
|
|
* @param goods_type |
|
|
|
// * @param type
|
|
|
|
// * @param createtime
|
|
|
|
// * @param goods_type
|
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@RequestMapping("/getTypeGoods") |
|
|
|
public JSONObject getTypeGoods(String type, String createtime, String goods_type) { |
|
|
|
public JSONObject getTypeGoods(HttpServletRequest request) { |
|
|
|
log.info("get_type_goods:"); |
|
|
|
String type = request.getParameter("type"); |
|
|
|
log.info(type); |
|
|
|
String createtime = request.getParameter("createtime"); |
|
|
|
String goods_type = request.getParameter("goods_type"); |
|
|
|
//10长的时间戳
|
|
|
|
long startTime = System.currentTimeMillis(); |
|
|
|
List<Goods> goodsList = goodsService.getTypeGoods(type, createtime, goods_type); |
|
|
|
@ -153,7 +159,9 @@ public class GoodsController extends BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
@RequestMapping("/getTypeGoods/{type}") |
|
|
|
public JSONObject getTypeGoodsRest(@PathVariable String type) { |
|
|
|
public JSONObject getTypeGoodsRest(@PathVariable String type,@RequestBody String reqstr) { |
|
|
|
log.info("get type goods json:"); |
|
|
|
log.info(reqstr); |
|
|
|
long startTime = System.currentTimeMillis(); |
|
|
|
List<Goods> goodsList = goodsService.getTypeGoods(type, "", ""); |
|
|
|
long endtime = System.currentTimeMillis(); |
|
|
|
|