| | |
| | | @RequestMapping("getOrderList")
|
| | | public void getOrderList(AcceptData acceptData, Long uid, int page, String callback, PrintWriter out) {
|
| | | List<ElmeUserOrderVO> voList = new ArrayList<>();
|
| | | List<ElmeHongBaoOrderMap> list = elmeHongBaoOrderMapService.listByHongBaoUid(uid, page, Constant.PAGE_SIZE);
|
| | | List<ElmeHongBaoOrderMap> list = elmeHongBaoOrderMapService.listByHongBaoUid(uid, page, 3);
|
| | | if (list != null)
|
| | | for (ElmeHongBaoOrderMap map : list)
|
| | | voList.add(create(map));
|
| | |
| | | */
|
| | | @Scheduled(cron = "0 1 5 * * ? ")
|
| | | public void autoAddTLJBuyGoods2() {
|
| | | if (!Constant.IS_TASK)
|
| | | return;
|
| | | // if (!Constant.IS_TASK)
|
| | | // return;
|
| | | LogHelper.test("自购立减开始选品");
|
| | | String day = TimeUtil.getGernalTime(System.currentTimeMillis(), "yyyy-MM-dd");
|
| | | // 重试3次
|
| | |
| | | if (StringUtil.isNullOrEmpty(params.getTradeType()))
|
| | | throw new WXPlaceOrderParamsException(8, "请传入tradeType");
|
| | |
|
| | | if (StringUtil.isNullOrEmpty(params.getOpenId()))
|
| | | throw new WXPlaceOrderParamsException(9, "请传入openId");
|
| | | // if (StringUtil.isNullOrEmpty(params.getOpenId()))
|
| | | // throw new WXPlaceOrderParamsException(9, "请传入openId");
|
| | |
|
| | | Map<String, String> map = new HashMap<String, String>();
|
| | | map.put("appid", params.getInfo().getAppId());
|
| | |
| | | map.put("spbill_create_ip", params.getIp());
|
| | | map.put("notify_url", params.getNotifyUrl());
|
| | | map.put("trade_type", params.getTradeType());
|
| | | map.put("openid", params.getOpenId());
|
| | | if (!StringUtil.isNullOrEmpty(params.getOpenId()))
|
| | | map.put("openid", params.getOpenId());
|
| | | map.put("sign", WXUtil.getSignMD5(map, params.getInfo().getMchKey()));
|
| | |
|
| | | String entity = WXUtil.loadWXMessage(map);
|