|
@@ -0,0 +1,44 @@
|
|
|
+package com.jkcredit.invoice.hub.controller.web.record;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.jkcredit.invoice.hub.controller.base.WebResource;
|
|
|
+import com.jkcredit.invoice.hub.controller.web.record.fb.BillRecordFB;
|
|
|
+import com.jkcredit.invoice.hub.model.dto.carFreeCarrierBillStart.BillRecordDto;
|
|
|
+import com.jkcredit.invoice.hub.model.vo.record.BillRecordVo;
|
|
|
+import com.jkcredit.invoice.hub.service.carFreeCarrierBillStart.CarFreeCarrierBillStartService;
|
|
|
+import com.jkcredit.invoice.hub.spi.lang.exception.ServiceException;
|
|
|
+import com.jkcredit.invoice.hub.spi.web.data.ResponseData;
|
|
|
+import com.jkcredit.invoice.hub.util.BeanUtil;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @description:
|
|
|
+ * @author: xusonglin
|
|
|
+ * @create: 2020/1/20 16:31
|
|
|
+ * @version: V1.0
|
|
|
+ **/
|
|
|
+@Slf4j
|
|
|
+@RestController
|
|
|
+public class BillRecordResource extends WebResource {
|
|
|
+ @Autowired
|
|
|
+ CarFreeCarrierBillStartService startService;
|
|
|
+
|
|
|
+ @GetMapping("/billRecord")
|
|
|
+ public ResponseData billRecord(Page page, @RequestBody BillRecordFB fb) {
|
|
|
+ try {
|
|
|
+ BillRecordDto dto = new BillRecordDto();
|
|
|
+ BeanUtil.copyProperties(dto, fb);
|
|
|
+ IPage<BillRecordVo> billRecordVoList = startService.getBillRecord(page, dto);
|
|
|
+ ResponseData success = ResponseData.success(billRecordVoList);
|
|
|
+ return success;
|
|
|
+ } catch (ServiceException e) {
|
|
|
+ log.error("获取运单详情列表失败, 失败原因:{}", e.getMessage());
|
|
|
+ return ResponseData.failed("获取运单详情列表失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|