|
|
@@ -2,6 +2,7 @@ package com.minpay.shouhuo.orderaction;
|
|
|
|
|
|
import com.min.util.OffSetUtil;
|
|
|
import com.minpay.common.bean.User;
|
|
|
+import com.minpay.common.constant.Constant;
|
|
|
import com.minpay.common.exception.BusinessCodeException;
|
|
|
import com.minpay.common.format.IFormatService;
|
|
|
import com.minpay.common.service.IOrderService;
|
|
|
@@ -57,8 +58,8 @@ public class ShOrderManageAction implements IMINAction {
|
|
|
* @return
|
|
|
* @throws MINBusinessException
|
|
|
*/
|
|
|
- @MINAction(value = QUERY_ORDER)
|
|
|
- public MINActionResult queryOrder(
|
|
|
+ @MINAction(value = "QUERY_ORDER")
|
|
|
+ public MINActionResult queryOrderb(
|
|
|
MINSession session,
|
|
|
@MINParam(key = "page", defaultValue = "1") int page,
|
|
|
@MINParam(key = "limit", defaultValue = "3") int limit,
|
|
|
@@ -159,4 +160,85 @@ public class ShOrderManageAction implements IMINAction {
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ *新查询订单
|
|
|
+ * @param session
|
|
|
+ * @param page
|
|
|
+ * @param limit
|
|
|
+ * @param equipmentId 机器编号 1
|
|
|
+ * @param equipmentName
|
|
|
+ * @param freightwayId 货道编号 1
|
|
|
+ * @param payMode 支付方式 1
|
|
|
+ * @param dates 日期(区间) 1
|
|
|
+ * @param playerId
|
|
|
+ * @param playerName 玩家名称 1
|
|
|
+ * @param state 支付状态 1
|
|
|
+ * @param orderNo 订单号 1
|
|
|
+ * @param isDraw 是否中奖
|
|
|
+ * @param productName 商品名称 1
|
|
|
+ * @param gameRule 购买方式 1
|
|
|
+ * @param deliveryId 出货编号 1
|
|
|
+ * @param fapRequest
|
|
|
+ * @return
|
|
|
+ * @throws MINBusinessException
|
|
|
+ */
|
|
|
+ @MINAction(value = QUERY_ORDER)
|
|
|
+ public MINActionResult queryOrder(
|
|
|
+ MINSession session,
|
|
|
+ @MINParam(key = "page", defaultValue = "1") int page,
|
|
|
+ @MINParam(key = "limit", defaultValue = "3") int limit,
|
|
|
+ @MINParam(key = "equipmentId") String equipmentId,
|
|
|
+ @MINParam(key = "equipmentName") String equipmentName,
|
|
|
+ @MINParam(key = "freightwayId") String freightwayId,
|
|
|
+ @MINParam(key = "payMode") String payMode,
|
|
|
+ @MINParam(key = "dates") String dates,
|
|
|
+ @MINParam(key = "playerId") String playerId,
|
|
|
+ @MINParam(key = "playerName") String playerName,
|
|
|
+ @MINParam(key = "state") String state,
|
|
|
+ @MINParam(key = "orderNo") String orderNo,
|
|
|
+ @MINParam(key = "isDraw") String isDraw,
|
|
|
+ @MINParam(key = "productName") String productName,
|
|
|
+ @MINParam(key = "gameRule") String gameRule,
|
|
|
+ @MINParam(key = "deliveryId") String deliveryId,
|
|
|
+ @MINParam(key = "pickupStt") String pickupStt,
|
|
|
+
|
|
|
+ MINHttpServletRequestContext fapRequest
|
|
|
+ ) throws MINBusinessException {
|
|
|
+ MINActionResult res = new MINActionResult();
|
|
|
+ MINRowBounds rows = new MINRowBounds(page, limit);
|
|
|
+ User user = session.getUser();
|
|
|
+ // 创建查询条件
|
|
|
+ Map<String, String> p = new HashMap<String, String>();
|
|
|
+ p.put("equipmentId",equipmentId);
|
|
|
+ p.put("equipmentName",equipmentName);
|
|
|
+ p.put("freightwayId",freightwayId);
|
|
|
+ p.put("payMode",payMode);
|
|
|
+ p.put("playerId",user.getId());
|
|
|
+ p.put("state",state);
|
|
|
+ p.put("dates", dates);
|
|
|
+ p.put("orderNo", orderNo);
|
|
|
+ p.put("playerName", playerName);
|
|
|
+ p.put("isDraw", isDraw);
|
|
|
+ p.put("productName", productName);
|
|
|
+ p.put("gameRule", gameRule);
|
|
|
+ p.put("deliveryId", deliveryId);
|
|
|
+ p.put("pickupStt", pickupStt);
|
|
|
+ // 查询OrderInfMapper.xml
|
|
|
+ List<Map<String, String>> ls = Service.lookup(IMINDataBaseService.class).getMybatisMapper(ShOrderMapper.class).queryOrderNew(p,rows);
|
|
|
+ // 格式化
|
|
|
+ ls = Service.lookup(IFormatService.class).formatDateTime(ls, "createTime");
|
|
|
+ ls = new MINCopyFormat("{isDraw:'isDrawdesc',payMode:'payModedesc','state':'statedesc','pickupStt':'pickupSttdesc'}").format(ls);
|
|
|
+ ls = Service.lookup(IFormatService.class).formatEnum(ls, "{isDrawdesc:'IS_DRAW',payModedesc:'PAY_TYPE',statedesc:'ORDER_STATE',pickupSttdesc:'ORDER_PICKUP_STT'}");
|
|
|
+
|
|
|
+
|
|
|
+ // 设置返回值
|
|
|
+ res.set(IMINBusinessConstant.F_PAGING_LAY, ls);
|
|
|
+ res.set(IMINBusinessConstant.F_PAGING_COUNT, rows.getCount());
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|