|
@@ -44,6 +44,9 @@ public class ShOrderManageAction implements IMINAction {
|
|
|
/**会员下单*/
|
|
|
public static final String ADD_ORDER_INFO = "addOrderInfo";
|
|
|
|
|
|
+ /**查询订单(订单详情)*/
|
|
|
+ public final static String QUERY_ORDERNEW = "queryOrderNew";
|
|
|
+
|
|
|
/**
|
|
|
*查询订单
|
|
|
* @param session
|
|
@@ -239,6 +242,88 @@ public class ShOrderManageAction implements IMINAction {
|
|
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ *新查询订单(管理)
|
|
|
+ * @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_ORDERNEW)
|
|
|
+ public MINActionResult queryOrderNew(
|
|
|
+ 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,
|
|
|
+ @MINParam(key = "openId") String openId,
|
|
|
+ @MINParam(key = "imeiAddr") String imeiAddr,
|
|
|
+ MINHttpServletRequestContext fapRequest
|
|
|
+ ) throws MINBusinessException {
|
|
|
+ MINActionResult res = new MINActionResult();
|
|
|
+ MINRowBounds rows = new MINRowBounds(page, limit);
|
|
|
+ // 创建查询条件
|
|
|
+ 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",playerId);
|
|
|
+ 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);
|
|
|
+ p.put("openId", openId);
|
|
|
+ p.put("imeiAddr", imeiAddr);
|
|
|
+ User user = session.getUser();
|
|
|
+ if(!user.getBranchId().equals(Constant.ADMINISTRATION_SYSTEM_NUMBER)){
|
|
|
+ p.put("branchId", user.getBranchId());
|
|
|
+ }
|
|
|
+
|
|
|
+ // 查询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','gameRule':'gameRuledesc'}").format(ls);
|
|
|
+ ls = Service.lookup(IFormatService.class).formatEnum(ls, "{isDrawdesc:'IS_DRAW',payModedesc:'PAY_MODE',statedesc:'ORDER_STATE',pickupSttdesc:'ORDER_PICKUP_STT',gameRuledesc:'GAME_RULE'}");
|
|
|
+
|
|
|
+ // 设置返回值
|
|
|
+ res.set(IMINBusinessConstant.F_PAGING_LAY, ls);
|
|
|
+ res.set(IMINBusinessConstant.F_PAGING_COUNT, rows.getCount());
|
|
|
+ return res;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|