|
@@ -1,8 +1,10 @@
|
|
|
package com.fdkankan.sale.wx.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.fdkankan.sale.common.ResultCode;
|
|
|
import com.fdkankan.sale.common.ResultData;
|
|
|
import com.fdkankan.sale.entity.RepairInvoice;
|
|
|
+import com.fdkankan.sale.exception.BusinessException;
|
|
|
import com.fdkankan.sale.httpClient.client.WxClient;
|
|
|
import com.fdkankan.sale.wx.pay.WXPayDefaultConfig;
|
|
|
import com.fdkankan.sale.service.impl.RepairCustomerService;
|
|
@@ -10,6 +12,7 @@ import com.fdkankan.sale.service.impl.RepairSaleService;
|
|
|
import com.fdkankan.sale.vo.request.RecordingParam;
|
|
|
import com.fdkankan.sale.vo.request.RepairParam;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -43,7 +46,9 @@ public class RepairCustomerController {
|
|
|
|
|
|
@GetMapping("/getRepairByOpenId")
|
|
|
public ResultData getRepairByOpenId(@RequestParam(required = false) String wxOpenId){
|
|
|
-
|
|
|
+ if(StringUtils.isNotBlank(wxOpenId)){
|
|
|
+ throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
+ }
|
|
|
return ResultData.ok(repairCustomerService.getRepairByOpenId(wxOpenId));
|
|
|
}
|
|
|
|