controller层增加日志跟踪
This commit is contained in:
parent
99c330627f
commit
2cfb84e681
@ -122,6 +122,10 @@
|
|||||||
<version>3.10.2</version>
|
<version>3.10.2</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.ruoyi</groupId>
|
||||||
|
<artifactId>ruoyi-common-log</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|||||||
@ -4,6 +4,8 @@ package com.xhpc.tradebill.controller;
|
|||||||
import com.xhpc.common.core.utils.SecurityUtils;
|
import com.xhpc.common.core.utils.SecurityUtils;
|
||||||
import com.xhpc.common.core.web.controller.BaseController;
|
import com.xhpc.common.core.web.controller.BaseController;
|
||||||
import com.xhpc.common.core.web.domain.AjaxResult;
|
import com.xhpc.common.core.web.domain.AjaxResult;
|
||||||
|
import com.xhpc.common.log.annotation.Log;
|
||||||
|
import com.xhpc.common.log.enums.BusinessType;
|
||||||
import com.xhpc.tradebill.domain.XhpcTradebillUploadRecordDomain;
|
import com.xhpc.tradebill.domain.XhpcTradebillUploadRecordDomain;
|
||||||
import com.xhpc.tradebill.service.CommonService;
|
import com.xhpc.tradebill.service.CommonService;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
@ -21,12 +23,13 @@ public class CommonController extends BaseController {
|
|||||||
@Resource
|
@Resource
|
||||||
CommonService commonService;
|
CommonService commonService;
|
||||||
|
|
||||||
|
@Log(title = "上传对账单(OSS方式)", businessType = BusinessType.INSERT)
|
||||||
@PostMapping("/oss/upload")
|
@PostMapping("/oss/upload")
|
||||||
public AjaxResult OssUpload(@RequestBody XhpcTradebillUploadRecordDomain domain) throws Exception{
|
public AjaxResult OssUpload(@RequestBody XhpcTradebillUploadRecordDomain domain) throws Exception{
|
||||||
return AjaxResult.success(commonService.ossUpload(domain));
|
return AjaxResult.success(commonService.ossUpload(domain));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Log(title = "上传对账单(OSS方式)", businessType = BusinessType.INSERT)
|
||||||
@PostMapping("/file/upload")
|
@PostMapping("/file/upload")
|
||||||
public AjaxResult fileUpload(MultipartFile file, int type) throws Exception {
|
public AjaxResult fileUpload(MultipartFile file, int type) throws Exception {
|
||||||
if (file ==null || type < 1){
|
if (file ==null || type < 1){
|
||||||
|
|||||||
@ -4,6 +4,8 @@ package com.xhpc.tradebill.controller;
|
|||||||
import com.xhpc.common.core.web.controller.BaseController;
|
import com.xhpc.common.core.web.controller.BaseController;
|
||||||
import com.xhpc.common.core.web.domain.AjaxResult;
|
import com.xhpc.common.core.web.domain.AjaxResult;
|
||||||
import com.xhpc.common.core.web.page.TableDataInfo;
|
import com.xhpc.common.core.web.page.TableDataInfo;
|
||||||
|
import com.xhpc.common.log.annotation.Log;
|
||||||
|
import com.xhpc.common.log.enums.BusinessType;
|
||||||
import com.xhpc.tradebill.domain.XhpcTradebillInternetCheckRecordDomain;
|
import com.xhpc.tradebill.domain.XhpcTradebillInternetCheckRecordDomain;
|
||||||
import com.xhpc.tradebill.service.InternetBillService;
|
import com.xhpc.tradebill.service.InternetBillService;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
@ -21,6 +23,7 @@ public class InternetBillController extends BaseController {
|
|||||||
@Resource
|
@Resource
|
||||||
InternetBillService internetBillService;
|
InternetBillService internetBillService;
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("/checkList/{uploadId}")
|
@GetMapping("/checkList/{uploadId}")
|
||||||
public AjaxResult getCheckList(@RequestParam(required = false) Integer uploadId,
|
public AjaxResult getCheckList(@RequestParam(required = false) Integer uploadId,
|
||||||
@RequestParam(required = false) String orderNumber,
|
@RequestParam(required = false) String orderNumber,
|
||||||
@ -37,6 +40,7 @@ public class InternetBillController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("/checkPage")
|
@GetMapping("/checkPage")
|
||||||
public TableDataInfo getCheckPage(@RequestParam(required = false) Integer uploadId,
|
public TableDataInfo getCheckPage(@RequestParam(required = false) Integer uploadId,
|
||||||
@RequestParam(required = false) String orderNumber,
|
@RequestParam(required = false) String orderNumber,
|
||||||
@ -55,6 +59,7 @@ public class InternetBillController extends BaseController {
|
|||||||
return getDataTable(internetBillService.getInternetCheckList(params));
|
return getDataTable(internetBillService.getInternetCheckList(params));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("/statusTotal")
|
@GetMapping("/statusTotal")
|
||||||
public AjaxResult getStatusTotal(@RequestParam(required = false) Integer uploadId,
|
public AjaxResult getStatusTotal(@RequestParam(required = false) Integer uploadId,
|
||||||
@RequestParam(required = false) String orderNumber,
|
@RequestParam(required = false) String orderNumber,
|
||||||
@ -79,12 +84,15 @@ public class InternetBillController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Log(title = "人工确认流量方对账数据", businessType = BusinessType.UPDATE)
|
||||||
@PostMapping("/checkInfo")
|
@PostMapping("/checkInfo")
|
||||||
public AjaxResult updateCheckInfo(@RequestBody XhpcTradebillInternetCheckRecordDomain domain){
|
public AjaxResult updateCheckInfo(@RequestBody XhpcTradebillInternetCheckRecordDomain domain){
|
||||||
|
|
||||||
return AjaxResult.success(internetBillService.updateInfoByDomain(domain));
|
return AjaxResult.success(internetBillService.updateInfoByDomain(domain));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Log(title = "导出流量方对账数据", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response,
|
public void export(HttpServletResponse response,
|
||||||
@RequestParam(required = false) Integer uploadId,
|
@RequestParam(required = false) Integer uploadId,
|
||||||
|
|||||||
@ -4,6 +4,8 @@ package com.xhpc.tradebill.controller;
|
|||||||
import com.xhpc.common.core.web.controller.BaseController;
|
import com.xhpc.common.core.web.controller.BaseController;
|
||||||
import com.xhpc.common.core.web.domain.AjaxResult;
|
import com.xhpc.common.core.web.domain.AjaxResult;
|
||||||
import com.xhpc.common.core.web.page.TableDataInfo;
|
import com.xhpc.common.core.web.page.TableDataInfo;
|
||||||
|
import com.xhpc.common.log.annotation.Log;
|
||||||
|
import com.xhpc.common.log.enums.BusinessType;
|
||||||
import com.xhpc.tradebill.domain.XhpcTradebillPaymentCheckRecordDomain;
|
import com.xhpc.tradebill.domain.XhpcTradebillPaymentCheckRecordDomain;
|
||||||
import com.xhpc.tradebill.service.PaymentBillService;
|
import com.xhpc.tradebill.service.PaymentBillService;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
@ -20,6 +22,7 @@ public class PaymentBillController extends BaseController {
|
|||||||
@Resource
|
@Resource
|
||||||
PaymentBillService paymentBillService;
|
PaymentBillService paymentBillService;
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("/checkList/{uploadId}")
|
@GetMapping("/checkList/{uploadId}")
|
||||||
public AjaxResult getCheckList(@RequestParam(required = false) Integer uploadId,
|
public AjaxResult getCheckList(@RequestParam(required = false) Integer uploadId,
|
||||||
@RequestParam(required = false) String orderNumber,
|
@RequestParam(required = false) String orderNumber,
|
||||||
@ -64,6 +67,7 @@ public class PaymentBillController extends BaseController {
|
|||||||
return AjaxResult.success(paymentBillService.getStatusTotal(params));
|
return AjaxResult.success(paymentBillService.getStatusTotal(params));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("/checkInfo/{id}")
|
@GetMapping("/checkInfo/{id}")
|
||||||
public AjaxResult getCheckInfo(@PathVariable Integer id){
|
public AjaxResult getCheckInfo(@PathVariable Integer id){
|
||||||
|
|
||||||
@ -71,12 +75,14 @@ public class PaymentBillController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Log(title = "人工确认支付平台对账数据", businessType = BusinessType.UPDATE)
|
||||||
@PostMapping("/checkInfo")
|
@PostMapping("/checkInfo")
|
||||||
public AjaxResult updateCheckInfo(@RequestBody XhpcTradebillPaymentCheckRecordDomain domain){
|
public AjaxResult updateCheckInfo(@RequestBody XhpcTradebillPaymentCheckRecordDomain domain){
|
||||||
return AjaxResult.success(paymentBillService.updateInfoByDomain(domain));
|
return AjaxResult.success(paymentBillService.updateInfoByDomain(domain));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Log(title = "导出支付平台对账数据", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response,
|
public void export(HttpServletResponse response,
|
||||||
@RequestParam(required = false) Integer uploadId,
|
@RequestParam(required = false) Integer uploadId,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user