|
@@ -9,6 +9,7 @@ import java.util.List;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
+import com.iamberry.wechat.core.entity.OrderUtil;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
@@ -18,9 +19,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
-//import cn.jpush.api.common.connection.IHttpClient.RequestMethod;
|
|
|
import com.iamberry.app.tool.log.RatFWLogger;
|
|
|
-import com.iamberry.wechat.core.entity.OrderUtil;
|
|
|
import com.iamberry.wechat.core.entity.drp.PlaceInfo;
|
|
|
import com.iamberry.wechat.core.entity.member.Member;
|
|
|
import com.iamberry.wechat.core.entity.mq.MQMessage;
|
|
@@ -344,7 +343,7 @@ public class AdminOrderHandlers {
|
|
|
return mv;
|
|
|
case 1: // 待支付(管理员存在操作权限:取消订单,如果取消订单,订单状态修改为0)
|
|
|
|
|
|
- if (!orderUtil.orderActin[0].equals(action)) {// 判断当前请求操作是否相符, 否则提示不成功
|
|
|
+ if (!orderUtil.getOrderActin()[0].equals(action)) {// 判断当前请求操作是否相符, 否则提示不成功
|
|
|
mv.addObject("msgObj", new MessageDto(false, "对不起,操作有误", "对不起,您刚才的操作流程有误,请按照系统流程操作!"));
|
|
|
return mv;
|
|
|
}
|
|
@@ -362,8 +361,10 @@ public class AdminOrderHandlers {
|
|
|
return mv;
|
|
|
}
|
|
|
case 2: // 已支付、待发货(管理员的操作为:确认发货)
|
|
|
-
|
|
|
- if (!orderUtil.orderActin[2].equals(action)) {// 判断当前请求操作是否相符, 否则提示不成功
|
|
|
+ System.out.println("orderUtil="+orderUtil);
|
|
|
+ System.out.println("orderUtil.orderActin[2]="+orderUtil.getOrderActin()[2]);
|
|
|
+ System.out.println("action="+action);
|
|
|
+ if (!orderUtil.getOrderActin()[2].equals(action)) {// 判断当前请求操作是否相符, 否则提示不成功
|
|
|
mv.addObject("msgObj", new MessageDto(false, "对不起,操作有误", "对不起,您刚才的操作流程有误,请按照系统流程操作!"));
|
|
|
return mv;
|
|
|
}
|
|
@@ -409,7 +410,7 @@ public class AdminOrderHandlers {
|
|
|
case 3: // 退款申请中(管理员可以操作:确认退款)
|
|
|
|
|
|
// 只有两种操作 : 确认退款、驳回退款
|
|
|
- if (orderUtil.orderActin[4].equals(action)) {
|
|
|
+ if (orderUtil.getOrderActin()[4].equals(action)) {
|
|
|
// 驳回退款
|
|
|
|
|
|
if (!orderUtil.orderStatusIntToOrderStatusString(2).equals(actionDto.getToOrderStatus())) {// 判断请求修改的订单状态是否相符,否则提示不成功
|
|
@@ -424,7 +425,7 @@ public class AdminOrderHandlers {
|
|
|
mv.addObject("msgObj", new MessageDto(false, "对不起,驳回退款订单失败", "对不起,对不起,驳回退款订单失败,请稍后重试!"));
|
|
|
return mv;
|
|
|
}
|
|
|
- } else if (orderUtil.orderActin[5].equals(action)) {
|
|
|
+ } else if (orderUtil.getOrderActin()[5].equals(action)) {
|
|
|
// 同意退款 , 需要回滚积分
|
|
|
|
|
|
if (!orderUtil.orderStatusIntToOrderStatusString(4).equals(actionDto.getToOrderStatus())) {// 判断请求修改的订单状态是否相符,否则提示不成功
|
|
@@ -458,7 +459,7 @@ public class AdminOrderHandlers {
|
|
|
return mv;
|
|
|
case 6: // 申请退货中(只有管理员能操作 : 确认退货)
|
|
|
|
|
|
- if (!orderUtil.orderActin[6].equals(action) && !orderUtil.orderActin[10].equals(action)) {// 判断当前请求操作是否相符, 否则提示不成功
|
|
|
+ if (!orderUtil.getOrderActin()[6].equals(action) && !orderUtil.getOrderActin()[10].equals(action)) {// 判断当前请求操作是否相符, 否则提示不成功
|
|
|
mv.addObject("msgObj", new MessageDto(false, "对不起,操作有误", "对不起,您刚才的操作流程有误,请按照系统流程操作!"));
|
|
|
return mv;
|
|
|
}
|
|
@@ -482,7 +483,7 @@ public class AdminOrderHandlers {
|
|
|
}
|
|
|
case 7: // 退货中(管理员具有操作能力:确认退货)
|
|
|
|
|
|
- if (!orderUtil.orderActin[7].equals(action)) {// 判断当前请求操作是否相符, 否则提示不成功
|
|
|
+ if (!orderUtil.getOrderActin()[7].equals(action)) {// 判断当前请求操作是否相符, 否则提示不成功
|
|
|
mv.addObject("msgObj", new MessageDto(false, "对不起,操作有误", "对不起,您刚才的操作流程有误,请按照系统流程操作!"));
|
|
|
return mv;
|
|
|
}
|
|
@@ -562,7 +563,7 @@ public class AdminOrderHandlers {
|
|
|
return mv;
|
|
|
case 9: // 换货中(管理员对申请换货的订单,确认换货时,订单状态为此,此时只有管理员具有操作权限,只能确认换货,录入物流信息,并重新计算订单关闭的时间,待入账积分的时间要修改)
|
|
|
|
|
|
- if (!orderUtil.orderActin[9].equals(action)) {// 判断当前请求操作是否相符, 否则提示不成功
|
|
|
+ if (!orderUtil.getOrderActin()[9].equals(action)) {// 判断当前请求操作是否相符, 否则提示不成功
|
|
|
mv.addObject("msgObj", new MessageDto(false, "对不起,操作有误", "对不起,您刚才的操作流程有误,请按照系统流程操作!"));
|
|
|
return mv;
|
|
|
}
|
|
@@ -601,7 +602,7 @@ public class AdminOrderHandlers {
|
|
|
break;
|
|
|
case 11: // 在订单为已发货时,用户具有的权限,用户申请换货
|
|
|
|
|
|
- if (!orderUtil.orderActin[8].equals(action) && !orderUtil.orderActin[11].equals(action)) {// 判断当前请求操作是否相符, 否则提示不成功
|
|
|
+ if (!orderUtil.getOrderActin()[8].equals(action) && !orderUtil.getOrderActin()[11].equals(action)) {// 判断当前请求操作是否相符, 否则提示不成功
|
|
|
mv.addObject("msgObj", new MessageDto(false, "对不起,操作有误", "对不起,您刚才的操作流程有误,请按照系统流程操作!"));
|
|
|
return mv;
|
|
|
}
|
|
@@ -642,7 +643,7 @@ public class AdminOrderHandlers {
|
|
|
|
|
|
/**
|
|
|
* 订单备注
|
|
|
- * @param actionDTO
|
|
|
+ * @param actionDto
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
@RequestMapping("/remark/{id}")
|