|
@@ -9,6 +9,7 @@ import com.iamberry.rst.core.page.PagedResult;
|
|
import com.iamberry.rst.core.sys.Admin;
|
|
import com.iamberry.rst.core.sys.Admin;
|
|
import com.iamberry.rst.faces.address.AddressService;
|
|
import com.iamberry.rst.faces.address.AddressService;
|
|
import com.iamberry.rst.faces.cm.*;
|
|
import com.iamberry.rst.faces.cm.*;
|
|
|
|
+import com.iamberry.rst.faces.order.EfastOrderService;
|
|
import com.iamberry.rst.faces.product.ProductService;
|
|
import com.iamberry.rst.faces.product.ProductService;
|
|
import com.iamberry.rst.faces.sms.SmsService;
|
|
import com.iamberry.rst.faces.sms.SmsService;
|
|
import com.iamberry.rst.faces.sys.SysService;
|
|
import com.iamberry.rst.faces.sys.SysService;
|
|
@@ -22,6 +23,7 @@ import com.iamberry.wechat.tools.NameUtils;
|
|
import com.iamberry.wechat.tools.ResponseJson;
|
|
import com.iamberry.wechat.tools.ResponseJson;
|
|
import com.iamberry.wechat.tools.ResultInfo;
|
|
import com.iamberry.wechat.tools.ResultInfo;
|
|
import net.sf.json.JSONArray;
|
|
import net.sf.json.JSONArray;
|
|
|
|
+import net.sf.json.JSONObject;
|
|
import org.apache.commons.codec.binary.Base64;
|
|
import org.apache.commons.codec.binary.Base64;
|
|
import org.apache.commons.lang.StringUtils;
|
|
import org.apache.commons.lang.StringUtils;
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
@@ -91,6 +93,8 @@ public class AdminCustomerController {
|
|
private AddressService addressService;
|
|
private AddressService addressService;
|
|
@Autowired
|
|
@Autowired
|
|
private PostageService postageService;
|
|
private PostageService postageService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private EfastOrderService efastOrderService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1892,5 +1896,52 @@ public class AdminCustomerController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 根据客户信息查询旧的客诉信息
|
|
|
|
+ *
|
|
|
|
+ * @param request
|
|
|
|
+ * @return
|
|
|
|
+ * @throws Exception
|
|
|
|
+ */
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @RequestMapping("/selectOnCustomer")
|
|
|
|
+ public ResponseJson listOnCustomer(HttpServletRequest request,CustomerInfo customerInfo) throws Exception {
|
|
|
|
+ if (customerInfo == null) {
|
|
|
|
+ return new ResponseJson(500, "查询客诉失败!", 500);
|
|
|
|
+ }
|
|
|
|
+ List<CustomerInfo> onCustomerList = customerService.listOnCustomer(customerInfo);
|
|
|
|
+ if (onCustomerList.size() == 0) {
|
|
|
|
+ return new ResponseJson(500, "未找到客诉!", 500);
|
|
|
|
+ } else {
|
|
|
|
+ ResponseJson rj = new ResponseJson(200, "查询成功", 200);
|
|
|
|
+ rj.addResponseKeyValue("onCustomerList", onCustomerList);
|
|
|
|
+ return rj;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 根据efast订单号查询efast订单物流信息
|
|
|
|
+ * @param request
|
|
|
|
+ * @return
|
|
|
|
+ * @throws Exception
|
|
|
|
+ */
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @RequestMapping("/getefastOrder")
|
|
|
|
+ public ResponseJson getEfastOrderInfo(HttpServletRequest request,String efastOrderId) throws Exception {
|
|
|
|
+ if (efastOrderId == null) {
|
|
|
|
+ return new ResponseJson(500, "查询失败!", 500);
|
|
|
|
+ }
|
|
|
|
+ JSONObject orderInfo = efastOrderService.getOrderFormEfastByOrderId(efastOrderId);
|
|
|
|
+ if (orderInfo == null) {
|
|
|
|
+ return new ResponseJson(500, "查询失败!", 500);
|
|
|
|
+ } else if (!orderInfo.has("orders")) {
|
|
|
|
+ return new ResponseJson(500, "查询失败!", 500);
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ ResponseJson rj = new ResponseJson(200, "查询成功", 200);
|
|
|
|
+ rj.addResponseKeyValue("orderInfo", orderInfo.toString());
|
|
|
|
+ return rj;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|