|
@@ -173,7 +173,27 @@ public class NoCarController {
|
|
|
return new RespR(false, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 分页查询运单信息
|
|
|
+ *
|
|
|
+ * @param page 参数集
|
|
|
+ * @return 用户集合
|
|
|
+ */
|
|
|
+ @PostMapping("/findBillWayHis")
|
|
|
+ @ApiOperation(value = "分页查询无车运单信息", notes = "分页查询无车运单信息")
|
|
|
+ @LoginRequired(role = AuthenticationInterceptor.AUTH_NOCAR)
|
|
|
+ public RespR findBillWayHis(Page page, NoCarWayBill noCarWayBill, User user) {
|
|
|
+ try {
|
|
|
+ checkHasAuthRole.checkCustomerRole(user, noCarWayBill.getCustomerName());
|
|
|
+ setTimeDue(noCarWayBill);
|
|
|
+ setBillNums(noCarWayBill);
|
|
|
+ RespR respR = new RespR(noCarBillWayService.findByPageAndWayBillHis(page, noCarWayBill));
|
|
|
+ return respR;
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return new RespR(false, e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
public void setBillNums(NoCarWayBill noCarWayBill) {
|
|
|
String billNums = noCarWayBill.getBillNum();
|
|
|
if (!StringUtils.isEmpty(billNums)) {
|
|
@@ -311,7 +331,26 @@ public class NoCarController {
|
|
|
return new RespR(false, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 分页查询无车运单信息<2024
|
|
|
+ *
|
|
|
+ * @param page 参数集
|
|
|
+ * @return 用户集合
|
|
|
+ */
|
|
|
+ @PostMapping("/findNocarInvoicesHis")
|
|
|
+ @ApiOperation(value = "分页查询无车发票信息", notes = "分页查询无车发票信息")
|
|
|
+ @LoginRequired(role = AuthenticationInterceptor.AUTH_NOCAR)
|
|
|
+ public RespR findNocarInvoicesHis(Page page, BillInvoice billInvoice, User user) {
|
|
|
+ try {
|
|
|
+ checkHasAuthRole.checkCustomerRole(user, billInvoice.getCustomerName());
|
|
|
+ setParams(billInvoice);
|
|
|
+ RespR respR = new RespR(nocarInvoiceService.findByPageAndInvoiceHis(page, billInvoice));
|
|
|
+ return respR;
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return new RespR(false, e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
private void setParams(BillInvoice billInvoice) {
|
|
|
if (!StringUtils.isEmpty(billInvoice.getInvoiceMakeTime()) && !NULL.equals(billInvoice.getInvoiceMakeTime())) {
|
|
|
String[] res = billInvoice.getInvoiceMakeTime().split(",");
|
|
@@ -409,7 +448,33 @@ public class NoCarController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 批量查询无车运单信息
|
|
|
+ *
|
|
|
+ * @param file 参数集
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/batchImportNocarBillWayHis")
|
|
|
+ @ApiOperation(value = "批量查询无车运单信息<2024", notes = "批量查询无车运单信息<2024")
|
|
|
+ @LoginRequired(role = AuthenticationInterceptor.AUTH_ADMIN)
|
|
|
+ public RespR batchImportNocarBillWayHis(@RequestParam("file") MultipartFile file) {
|
|
|
+ try {
|
|
|
|
|
|
+ if (null == file) {
|
|
|
+ return new RespR(false, "批量查询无车运单信息失败,请查看数据是否维护准确");
|
|
|
+ }
|
|
|
+
|
|
|
+ ImportParams params = new ImportParams();
|
|
|
+ params.setTitleRows(1);
|
|
|
+ params.setHeadRows(1);
|
|
|
+ List<NoCarWayBill> list = ExcelImportUtil.importExcel(file.getInputStream(), NoCarWayBill.class, params);
|
|
|
+ RespR respR = noCarBillWayService.findImportNocarBillWay(list);
|
|
|
+ return respR;
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return new RespR(false, e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
/**
|
|
|
* 分页查询无车运单统计信息
|
|
|
*
|