|
@@ -5,13 +5,12 @@ import com.minpay.common.constant.Constant;
|
|
|
import com.minpay.common.format.IFormatService;
|
|
|
import com.minpay.common.service.ILogService;
|
|
|
import com.minpay.common.service.IPublicService;
|
|
|
+import com.minpay.common.util.CommonUtil;
|
|
|
import com.minpay.common.util.RegexUtil;
|
|
|
import com.minpay.db.table.mapper.VmOrderDetailsMapper;
|
|
|
+import com.minpay.db.table.mapper.VmOrderInfMapper;
|
|
|
import com.minpay.db.table.mapper.VmRechargeRuleMapper;
|
|
|
-import com.minpay.db.table.model.VmOrderDetails;
|
|
|
-import com.minpay.db.table.model.VmOrderDetailsExample;
|
|
|
-import com.minpay.db.table.model.VmRechargeRule;
|
|
|
-import com.minpay.db.table.model.VmRechargeRuleExample;
|
|
|
+import com.minpay.db.table.model.*;
|
|
|
import com.minpay.db.table.own.mapper.OrderInfMapper;
|
|
|
import com.minpay.db.table.own.mapper.ShOrderMapper;
|
|
|
import com.mysql.jdbc.StringUtils;
|
|
@@ -45,6 +44,8 @@ import java.util.Map;
|
|
|
public class ShOrderManageAction implements IMINAction {
|
|
|
public final static String QUERY_ORDER = "queryOrder";
|
|
|
public final static String QUERY_ORDER_DETAILS = "queryOrderDetails";
|
|
|
+ /** 订单作废 */
|
|
|
+ public final static String ORDER_CANCEL = "orderCancel";
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -134,5 +135,26 @@ public class ShOrderManageAction implements IMINAction {
|
|
|
res.set(IMINBusinessConstant.F_PAGING_COUNT, rows.getCount());
|
|
|
return res;
|
|
|
}
|
|
|
+ @MINAction(value = ORDER_CANCEL)
|
|
|
+ public MINActionResult orderCancel(
|
|
|
+ MINSession session,
|
|
|
+ @MINParam(key = "id") String id,
|
|
|
+ MINHttpServletRequestContext fapRequest
|
|
|
+ ) throws MINBusinessException {
|
|
|
+ MINActionResult res = new MINActionResult();
|
|
|
+ if (CommonUtil.isEmpty(id)){
|
|
|
+ throw new MINBusinessException("订单编号为空!");
|
|
|
+ }
|
|
|
+ VmOrderInf vmOrderInf = Service.lookup(IMINDataBaseService.class).getMybatisMapper(VmOrderInfMapper.class).selectByPrimaryKey(id);
|
|
|
+ if (null == vmOrderInf){
|
|
|
+ throw new MINBusinessException("订单信息不存在!");
|
|
|
+ }
|
|
|
+ vmOrderInf.setPickupStt("02");
|
|
|
+ Service.lookup(IMINDataBaseService.class)
|
|
|
+ .getMybatisMapper(VmOrderInfMapper.class)
|
|
|
+ .updateByPrimaryKeySelective(vmOrderInf);
|
|
|
|
|
|
+ // 设置返回值
|
|
|
+ return res;
|
|
|
+ }
|
|
|
}
|