|
@@ -1,13 +1,11 @@
|
|
|
package com.sckw.payment.controller;
|
|
package com.sckw.payment.controller;
|
|
|
|
|
|
|
|
-import com.sckw.core.exception.BusinessException;
|
|
|
|
|
import com.sckw.core.model.page.PageRes;
|
|
import com.sckw.core.model.page.PageRes;
|
|
|
import com.sckw.core.web.response.HttpResult;
|
|
import com.sckw.core.web.response.HttpResult;
|
|
|
import com.sckw.excel.utils.ExcelUtil;
|
|
import com.sckw.excel.utils.ExcelUtil;
|
|
|
import com.sckw.payment.model.constant.LogisticsUnitType;
|
|
import com.sckw.payment.model.constant.LogisticsUnitType;
|
|
|
import com.sckw.payment.model.dto.SettlementLogisticsDto;
|
|
import com.sckw.payment.model.dto.SettlementLogisticsDto;
|
|
|
import com.sckw.payment.model.vo.req.SettlementReq;
|
|
import com.sckw.payment.model.vo.req.SettlementReq;
|
|
|
-import com.sckw.payment.model.vo.req.SettlementWalletReq;
|
|
|
|
|
import com.sckw.payment.model.vo.res.SettlementLogisticsVo;
|
|
import com.sckw.payment.model.vo.res.SettlementLogisticsVo;
|
|
|
import com.sckw.payment.service.KwpSettlementLogisticsService;
|
|
import com.sckw.payment.service.KwpSettlementLogisticsService;
|
|
|
import jakarta.annotation.Resource;
|
|
import jakarta.annotation.Resource;
|
|
@@ -38,6 +36,7 @@ public class KwpSettlementLogisticsController {
|
|
|
// ========= 运费收款 承运方 =========
|
|
// ========= 运费收款 承运方 =========
|
|
|
@PostMapping(name = "运费收款-物流订单列表", path = "pageListCollection")
|
|
@PostMapping(name = "运费收款-物流订单列表", path = "pageListCollection")
|
|
|
public HttpResult pageSelectCollection(@RequestBody @Valid SettlementReq settlementReq) {
|
|
public HttpResult pageSelectCollection(@RequestBody @Valid SettlementReq settlementReq) {
|
|
|
|
|
+ List<Long> idList = settlementReq.getIdList();
|
|
|
return HttpResult.ok(kwpSettlementLogisticsService.pageSelectCollection(settlementReq));
|
|
return HttpResult.ok(kwpSettlementLogisticsService.pageSelectCollection(settlementReq));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -54,16 +53,16 @@ public class KwpSettlementLogisticsController {
|
|
|
@PostMapping(name = "运费收款-根据条件导出物流订单表数据", path = "exportCollection")
|
|
@PostMapping(name = "运费收款-根据条件导出物流订单表数据", path = "exportCollection")
|
|
|
public HttpResult exportCollection(HttpServletResponse response, @RequestBody @Valid SettlementReq settlementReq) {
|
|
public HttpResult exportCollection(HttpServletResponse response, @RequestBody @Valid SettlementReq settlementReq) {
|
|
|
List<SettlementLogisticsDto> list;
|
|
List<SettlementLogisticsDto> list;
|
|
|
- if (CollectionUtils.isEmpty(settlementReq.getIds()) && settlementReq.getPage() != 0 && settlementReq.getPageSize() != 0) {
|
|
|
|
|
|
|
+ if (CollectionUtils.isEmpty(settlementReq.getIdList()) && settlementReq.getPage() != 0 && settlementReq.getPageSize() != 0) {
|
|
|
//有page、pageSize,无ids
|
|
//有page、pageSize,无ids
|
|
|
PageRes<SettlementLogisticsDto> pageResult = kwpSettlementLogisticsService.pageSelectCollection(settlementReq);
|
|
PageRes<SettlementLogisticsDto> pageResult = kwpSettlementLogisticsService.pageSelectCollection(settlementReq);
|
|
|
list = pageResult.getList();
|
|
list = pageResult.getList();
|
|
|
- } else if (CollectionUtils.isEmpty(settlementReq.getIds())) {
|
|
|
|
|
|
|
+ } else if (CollectionUtils.isEmpty(settlementReq.getIdList())) {
|
|
|
//无page、pageSize,无ids
|
|
//无page、pageSize,无ids
|
|
|
list = kwpSettlementLogisticsService.selectList(LogisticsUnitType.CARRIER);
|
|
list = kwpSettlementLogisticsService.selectList(LogisticsUnitType.CARRIER);
|
|
|
} else {
|
|
} else {
|
|
|
//有ids
|
|
//有ids
|
|
|
- list = kwpSettlementLogisticsService.selectList(settlementReq.getIds());
|
|
|
|
|
|
|
+ list = kwpSettlementLogisticsService.selectList(settlementReq.getIdList());
|
|
|
}
|
|
}
|
|
|
return this.export(response, list);
|
|
return this.export(response, list);
|
|
|
}
|
|
}
|
|
@@ -88,16 +87,16 @@ public class KwpSettlementLogisticsController {
|
|
|
@PostMapping(name = "运费付款-根据条件导出物流订单表数据", path = "exportPayment")
|
|
@PostMapping(name = "运费付款-根据条件导出物流订单表数据", path = "exportPayment")
|
|
|
public HttpResult exportPayment(HttpServletResponse response, @RequestBody @Valid SettlementReq settlementReq) {
|
|
public HttpResult exportPayment(HttpServletResponse response, @RequestBody @Valid SettlementReq settlementReq) {
|
|
|
List<SettlementLogisticsDto> list;
|
|
List<SettlementLogisticsDto> list;
|
|
|
- if (CollectionUtils.isEmpty(settlementReq.getIds()) && settlementReq.getPage() != 0 && settlementReq.getPageSize() != 0) {
|
|
|
|
|
|
|
+ if (CollectionUtils.isEmpty(settlementReq.getIdList()) && settlementReq.getPage() != 0 && settlementReq.getPageSize() != 0) {
|
|
|
//有page、pageSize,无ids
|
|
//有page、pageSize,无ids
|
|
|
PageRes<SettlementLogisticsDto> pageResult = kwpSettlementLogisticsService.pageSelectPayment(settlementReq);
|
|
PageRes<SettlementLogisticsDto> pageResult = kwpSettlementLogisticsService.pageSelectPayment(settlementReq);
|
|
|
list = pageResult.getList();
|
|
list = pageResult.getList();
|
|
|
- } else if (CollectionUtils.isEmpty(settlementReq.getIds())) {
|
|
|
|
|
|
|
+ } else if (CollectionUtils.isEmpty(settlementReq.getIdList())) {
|
|
|
//无page、pageSize,无ids
|
|
//无page、pageSize,无ids
|
|
|
list = kwpSettlementLogisticsService.selectList(LogisticsUnitType.SHIPPER);
|
|
list = kwpSettlementLogisticsService.selectList(LogisticsUnitType.SHIPPER);
|
|
|
} else {
|
|
} else {
|
|
|
//有ids
|
|
//有ids
|
|
|
- list = kwpSettlementLogisticsService.selectList(settlementReq.getIds());
|
|
|
|
|
|
|
+ list = kwpSettlementLogisticsService.selectList(settlementReq.getIdList());
|
|
|
}
|
|
}
|
|
|
return this.export(response, list);
|
|
return this.export(response, list);
|
|
|
}
|
|
}
|