Authored by mali

Merge branch 'dev'

  1 +package com.yohoufo.order.controller;
  2 +
  3 +import com.yohoufo.common.ApiResponse;
  4 +import com.yohoufo.order.service.impl.AppraiseService;
  5 +import org.springframework.beans.factory.annotation.Autowired;
  6 +import org.springframework.web.bind.annotation.RequestMapping;
  7 +import org.springframework.web.bind.annotation.RequestParam;
  8 +import org.springframework.web.bind.annotation.RestController;
  9 +
  10 +/**
  11 + * @author kun.wang
  12 + * @date 2018/9/25
  13 + */
  14 +@RestController
  15 +public class AppraiseController {
  16 +
  17 + @Autowired
  18 + private AppraiseService appraiseService;
  19 +
  20 + /**
  21 + * 商品鉴定不通过,鉴定中心寄回商品给卖家
  22 + * @param expressCompanyId 快递公司id
  23 + * @param orderCode 订单号
  24 + * @param wayBillCode 快递单号
  25 + * @return
  26 + */
  27 + @RequestMapping(params = "method=ufo.order.appraiseFail")
  28 + public ApiResponse appraiseFail(@RequestParam("expressCompanyId") Integer expressCompanyId,
  29 + @RequestParam("orderCode") Long orderCode, @RequestParam("wayBillCode") String wayBillCode) {
  30 + boolean result = appraiseService.appraiseFail(expressCompanyId, orderCode, wayBillCode);
  31 + return new ApiResponse.ApiResponseBuilder().code(200)
  32 + .data(result).message("").build();
  33 + }
  34 +
  35 + /**
  36 + * 鉴定通过,鉴定中心发货给买家
  37 + * @param expressCompanyId
  38 + * @param orderCode
  39 + * @param wayBillCode
  40 + * @return
  41 + */
  42 + @RequestMapping(params = "method=ufo.order.appraiseSuccess")
  43 + public ApiResponse appraiseSuccess(@RequestParam("expressCompanyId") Integer expressCompanyId,
  44 + @RequestParam("orderCode") Long orderCode, @RequestParam("wayBillCode") String wayBillCode) {
  45 + boolean result = appraiseService.appraiseSuccess(expressCompanyId, orderCode, wayBillCode);
  46 + return new ApiResponse.ApiResponseBuilder().code(200)
  47 + .data(result).message("").build();
  48 + }
  49 +
  50 +}
@@ -4,7 +4,6 @@ import com.yohobuy.ufo.model.order.resp.ExpressInfoRespBo; @@ -4,7 +4,6 @@ import com.yohobuy.ufo.model.order.resp.ExpressInfoRespBo;
4 import com.yohoufo.common.ApiResponse; 4 import com.yohoufo.common.ApiResponse;
5 import com.yohoufo.order.model.response.AppraiseAddressResp; 5 import com.yohoufo.order.model.response.AppraiseAddressResp;
6 import com.yohoufo.order.service.IExpressInfoService; 6 import com.yohoufo.order.service.IExpressInfoService;
7 -import com.yohoufo.order.service.impl.AppraiseService;  
8 import org.springframework.beans.factory.annotation.Autowired; 7 import org.springframework.beans.factory.annotation.Autowired;
9 import org.springframework.web.bind.annotation.RequestMapping; 8 import org.springframework.web.bind.annotation.RequestMapping;
10 import org.springframework.web.bind.annotation.RequestParam; 9 import org.springframework.web.bind.annotation.RequestParam;
@@ -20,8 +19,6 @@ public class ExpressInfoController { @@ -20,8 +19,6 @@ public class ExpressInfoController {
20 @Autowired 19 @Autowired
21 private IExpressInfoService expressInfoService; 20 private IExpressInfoService expressInfoService;
22 21
23 - @Autowired  
24 - private AppraiseService appraiseService;  
25 22
26 /** 23 /**
27 * 卖家发货到鉴定中心 24 * 卖家发货到鉴定中心
@@ -37,37 +34,6 @@ public class ExpressInfoController { @@ -37,37 +34,6 @@ public class ExpressInfoController {
37 return new ApiResponse(); 34 return new ApiResponse();
38 } 35 }
39 36
40 -  
41 - /**  
42 - * 商品鉴定不通过,鉴定中心寄回商品给卖家  
43 - * @param expressCompanyId 快递公司id  
44 - * @param orderCode 订单号  
45 - * @param wayBillCode 快递单号  
46 - * @return  
47 - */  
48 - @RequestMapping(params = "method=ufo.order.appraiseFail")  
49 - public ApiResponse appraiseFail(@RequestParam("expressCompanyId") Integer expressCompanyId,  
50 - @RequestParam("orderCode") Long orderCode, @RequestParam("wayBillCode") String wayBillCode) {  
51 - boolean result = appraiseService.appraiseFail(expressCompanyId, orderCode, wayBillCode);  
52 - return new ApiResponse.ApiResponseBuilder().code(200)  
53 - .data(result).message("").build();  
54 - }  
55 -  
56 - /**  
57 - * 鉴定通过,鉴定中心发货给买家  
58 - * @param expressCompanyId  
59 - * @param orderCode  
60 - * @param wayBillCode  
61 - * @return  
62 - */  
63 - @RequestMapping(params = "method=ufo.order.appraiseSuccess")  
64 - public ApiResponse appraiseSuccess(@RequestParam("expressCompanyId") Integer expressCompanyId,  
65 - @RequestParam("orderCode") Long orderCode, @RequestParam("wayBillCode") String wayBillCode) {  
66 - boolean result = appraiseService.appraiseSuccess(expressCompanyId, orderCode, wayBillCode);  
67 - return new ApiResponse.ApiResponseBuilder().code(200)  
68 - .data(result).message("").build();  
69 - }  
70 -  
71 /** 37 /**
72 * 查询快递详情 38 * 查询快递详情
73 * @param orderCode 39 * @param orderCode
@@ -58,7 +58,7 @@ public class PaymentServiceImpl implements IPaymentService { @@ -58,7 +58,7 @@ public class PaymentServiceImpl implements IPaymentService {
58 OrderCodeGenerator orderCodeGenerator; 58 OrderCodeGenerator orderCodeGenerator;
59 59
60 @Autowired 60 @Autowired
61 - WeixinPayAppService weixinPayAppService; 61 + WeixinPayBlkAppService weixinPayAppService;
62 62
63 @Autowired 63 @Autowired
64 AlipayOuyinService alipayService; 64 AlipayOuyinService alipayService;