|
@@ -0,0 +1,65 @@
|
|
|
|
+package com.minpay.guomao.ordermanage.action;
|
|
|
|
+
|
|
|
|
+import java.util.HashMap;
|
|
|
|
+import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
+
|
|
|
|
+import com.minpay.common.bean.User;
|
|
|
|
+import com.minpay.common.format.IFormatService;
|
|
|
|
+import com.minpay.common.service.IGuoMaoStockService;
|
|
|
|
+import com.minpay.common.util.DateUtil;
|
|
|
|
+import com.minpay.db.table.model.ApWarehouseStock;
|
|
|
|
+import com.minpay.db.table.model.ApWarehouseStockExample;
|
|
|
|
+import com.minpay.db.table.own.mapper.OrderTransferManageMapper;
|
|
|
|
+import com.startup.minpay.frame.business.IMINAction;
|
|
|
|
+import com.startup.minpay.frame.business.res.MINActionResult;
|
|
|
|
+import com.startup.minpay.frame.constant.IMINBusinessConstant;
|
|
|
|
+import com.startup.minpay.frame.exception.MINBusinessException;
|
|
|
|
+import com.startup.minpay.frame.jdbc.MINRowBounds;
|
|
|
|
+import com.startup.minpay.frame.service.base.IMINDataBaseService;
|
|
|
|
+import com.startup.minpay.frame.service.base.Service;
|
|
|
|
+import com.startup.minpay.frame.session.MINSession;
|
|
|
|
+import com.startup.minpay.frame.target.MINAction;
|
|
|
|
+import com.startup.minpay.frame.target.MINComponent;
|
|
|
|
+import com.startup.minpay.frame.target.MINParam;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+@MINComponent
|
|
|
|
+public class OrderTransferManageAction implements IMINAction {
|
|
|
|
+
|
|
|
|
+ /**订单传输记录 */
|
|
|
|
+ public final static String ORDER_TRANSFER_FLOW = "orderTransferFlow";
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 订单传输记录
|
|
|
|
+ * @param orderId
|
|
|
|
+ * @param session
|
|
|
|
+ * @return
|
|
|
|
+ * @throws MINBusinessException
|
|
|
|
+ */
|
|
|
|
+ @MINAction(value = ORDER_TRANSFER_FLOW)
|
|
|
|
+ public MINActionResult orderTransferFlow(
|
|
|
|
+ @MINParam(key = "orderId") String orderId,
|
|
|
|
+ @MINParam(key = "page", defaultValue = "1") int page,
|
|
|
|
+ @MINParam(key = "limit", defaultValue = "10") int limit,
|
|
|
|
+ MINSession session) throws MINBusinessException {
|
|
|
|
+ MINActionResult res = new MINActionResult();
|
|
|
|
+ Map<String,String> map = new HashMap<String, String>();
|
|
|
|
+ map.put("orderId",orderId);
|
|
|
|
+ //分页
|
|
|
|
+ MINRowBounds rows = new MINRowBounds(page, limit);
|
|
|
|
+ List<Map<String,String>> list = Service.lookup(IMINDataBaseService.class).getMybatisMapper(OrderTransferManageMapper.class).queryOrderTransferFlow(map, rows);
|
|
|
|
+ list = Service.lookup(IFormatService.class).formatDate(list, "atfErpDate");
|
|
|
|
+ res.set(IMINBusinessConstant.F_PAGING_LAY, list);
|
|
|
|
+ res.set(IMINBusinessConstant.F_PAGING_COUNT, rows.getCount());
|
|
|
|
+ return res;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+}
|