| | |
| | | import com.yeshi.fanli.util.CMQManager;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | | import com.yeshi.fanli.util.VersionUtil;
|
| | | import com.yeshi.fanli.util.account.UserUtil;
|
| | | import com.yeshi.fanli.vo.order.CommonOrderVO;
|
| | | import com.yeshi.fanli.vo.user.UserInfoExtraVO;
|
| | |
| | | String orderNo, String startTime, String endTime, Integer slotTime, boolean needCount, Integer dateType,
|
| | | Integer goodsType, PrintWriter out) {
|
| | |
|
| | | if (Constant.IS_TEST)
|
| | | uid = 389677L;
|
| | |
|
| | | if (uid == null) {
|
| | | out.print(JsonUtil.loadFalseResult(1, "用户未登录"));
|
| | | return;
|
| | |
| | | type = null; // 所有类型订单
|
| | | }
|
| | |
|
| | | if (goodsType != null && goodsType == 0) {
|
| | | if (!VersionUtil.greaterThan_1_6_0(acceptData.getPlatform(), acceptData.getVersion())) {
|
| | | goodsType = Constant.SOURCE_TYPE_TAOBAO;
|
| | | } else if (goodsType != null && goodsType == 0){
|
| | | goodsType = null; // 所有平台订单
|
| | | }
|
| | |
|
| | |
| | |
|
| | |
|
| | |
|
| | | /**
|
| | | * 统计各个平台数据
|
| | | * @param acceptData
|
| | | * @param uid
|
| | | * @param goodsType
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getNearOrderNum", method = RequestMethod.POST)
|
| | | public void getNearOrderNum(AcceptData acceptData, Long uid, Integer goodsType, PrintWriter out) {
|
| | |
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | if (goodsType != null && goodsType == 0) {
|
| | | goodsType = null;
|
| | | if (goodsType == null || goodsType > 3 || goodsType < 1) {
|
| | | out.print(JsonUtil.loadFalseResult(1, "平台类型缺失或不正确"));
|
| | | return;
|
| | | }
|
| | | |
| | |
|
| | | /* 今日订单统计 */
|
| | | Map<String, BigDecimal> countToday = commonOrderService.countHistoryOrder(uid, 1, goodsType);
|
| | |
| | | try {
|
| | | isS = orderService.addOrder(or);
|
| | | if (isS) {
|
| | | CMQManager.getInstance().addTaoBaoOrderMsg(order, orderList);
|
| | | CMQManager.getInstance().addTaoBaoOrderMsg(order);
|
| | | // 加入到LostOrder
|
| | | LostOrder lo = new LostOrder();
|
| | | lo.setCreateTime(System.currentTimeMillis());
|