|
|
@@ -129,8 +129,8 @@ public class StatisticAnalysisServiceImpl implements IStatisticAnalysisService {
|
|
|
FinanceProfitDtoList financeProfit1 = new FinanceProfitDtoList();
|
|
|
financeProfit1.setBillType(i.getBusinessType());
|
|
|
financeProfit1.setBillNo(i.getBillNo());
|
|
|
- financeProfit1.setHBlNo(i.getHblno());
|
|
|
- financeProfit1.setMBlNo(i.getMblno());
|
|
|
+ financeProfit1.setHblNo(i.getHblno());
|
|
|
+ financeProfit1.setMblNo(i.getMblno());
|
|
|
financeProfit1.setCorpName(i.getCorpCnName());
|
|
|
financeProfit1.setSalesman(i.getOperatorName());
|
|
|
financeProfit1.setPod(i.getPodCnName());
|
|
|
@@ -806,8 +806,8 @@ public class StatisticAnalysisServiceImpl implements IStatisticAnalysisService {
|
|
|
FinanceProfitDtoList financeProfit1 = new FinanceProfitDtoList();
|
|
|
financeProfit1.setBillType(i.getBusinessType());
|
|
|
financeProfit1.setBillNo(i.getBillNo());
|
|
|
- financeProfit1.setHBlNo(i.getHblno());
|
|
|
- financeProfit1.setMBlNo(i.getMblno());
|
|
|
+ financeProfit1.setHblNo(i.getHblno());
|
|
|
+ financeProfit1.setMblNo(i.getMblno());
|
|
|
financeProfit1.setCorpName(i.getCorpCnName());
|
|
|
financeProfit1.setSalesman(i.getOperatorName());
|
|
|
financeProfit1.setPod(i.getPodCnName());
|
|
|
@@ -1010,8 +1010,8 @@ public class StatisticAnalysisServiceImpl implements IStatisticAnalysisService {
|
|
|
FinanceProfitDtoList financeProfit1 = new FinanceProfitDtoList();
|
|
|
financeProfit1.setBillType(i.getBusinessType());
|
|
|
financeProfit1.setBillNo(i.getBillNo());
|
|
|
- financeProfit1.setHBlNo(i.getHblno());
|
|
|
- financeProfit1.setMBlNo(i.getMblno());
|
|
|
+ financeProfit1.setHblNo(i.getHblno());
|
|
|
+ financeProfit1.setMblNo(i.getMblno());
|
|
|
financeProfit1.setCorpName(i.getCorpCnName());
|
|
|
financeProfit1.setSalesman(i.getOperatorName());
|
|
|
financeProfit1.setPod(i.getPodCnName());
|
|
|
@@ -1512,12 +1512,17 @@ public class StatisticAnalysisServiceImpl implements IStatisticAnalysisService {
|
|
|
.eq(Bills::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(Bills::getBusinessType, "SE"));
|
|
|
List<Long> billId = billsList.stream().map(Bills::getId).collect(Collectors.toList());
|
|
|
- List<DispatchVehicles> dispatchVehiclesList = dispatchVehiclesMapper.selectList(new LambdaQueryWrapper<DispatchVehicles>()
|
|
|
- .eq(DispatchVehicles::getIsDeleted, 0)
|
|
|
- .eq(DispatchVehicles::getTenantId, AuthUtil.getTenantId())
|
|
|
- .eq(DispatchVehicles::getWhetherReturn, "0")
|
|
|
- .in(DispatchVehicles::getPid, billId));
|
|
|
- if (dispatchVehiclesList.isEmpty()) {
|
|
|
+ List<DispatchVehicles> dispatchVehiclesList = new ArrayList<>();
|
|
|
+ if (!billId.isEmpty()){
|
|
|
+ dispatchVehiclesList = dispatchVehiclesMapper.selectList(new LambdaQueryWrapper<DispatchVehicles>()
|
|
|
+ .eq(DispatchVehicles::getIsDeleted, 0)
|
|
|
+ .eq(DispatchVehicles::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(DispatchVehicles::getWhetherReturn, "0")
|
|
|
+ .in(DispatchVehicles::getPid, billId));
|
|
|
+ if (dispatchVehiclesList.isEmpty()) {
|
|
|
+ return R.data(mapList);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
return R.data(mapList);
|
|
|
}
|
|
|
Date date = new Date();
|
|
|
@@ -1553,20 +1558,25 @@ public class StatisticAnalysisServiceImpl implements IStatisticAnalysisService {
|
|
|
.eq(Bills::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(Bills::getBusinessType, "SE"));
|
|
|
List<Long> billId = billsList.stream().map(Bills::getId).collect(Collectors.toList());
|
|
|
- List<DispatchVehicles> dispatchVehiclesList = dispatchVehiclesMapper.selectList(new LambdaQueryWrapper<DispatchVehicles>()
|
|
|
- .eq(DispatchVehicles::getIsDeleted, 0)
|
|
|
- .eq(DispatchVehicles::getTenantId, AuthUtil.getTenantId())
|
|
|
- .eq(DispatchVehicles::getWhetherReturn, "1")
|
|
|
- .in(DispatchVehicles::getPid, billId));
|
|
|
- if (dispatchVehiclesList.isEmpty()) {
|
|
|
+ List<DispatchVehicles> dispatchVehiclesList = new ArrayList<>();
|
|
|
+ if (!billId.isEmpty()) {
|
|
|
+ dispatchVehiclesList = dispatchVehiclesMapper.selectList(new LambdaQueryWrapper<DispatchVehicles>()
|
|
|
+ .eq(DispatchVehicles::getIsDeleted, 0)
|
|
|
+ .eq(DispatchVehicles::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(DispatchVehicles::getWhetherReturn, "1")
|
|
|
+ .in(DispatchVehicles::getPid, billId));
|
|
|
+ if (dispatchVehiclesList.isEmpty()) {
|
|
|
+ return R.data(mapList);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
return R.data(mapList);
|
|
|
}
|
|
|
Date date = new Date();
|
|
|
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
for (DispatchVehicles item : dispatchVehiclesList) {
|
|
|
if (ObjectUtils.isNotNull(item.getReturnDate())) {
|
|
|
- Bills bills = billsList.stream().filter(e-> e.getId().equals(item.getPid())).findFirst().orElse(null);
|
|
|
- if (bills != null){
|
|
|
+ Bills bills = billsList.stream().filter(e -> e.getId().equals(item.getPid())).findFirst().orElse(null);
|
|
|
+ if (bills != null) {
|
|
|
Calendar calendar = Calendar.getInstance();
|
|
|
calendar.setTime(item.getReturnDate());
|
|
|
calendar.add(Calendar.DAY_OF_MONTH, 5);
|