|
|
|
@ -6,6 +6,8 @@ import com.logpm.report.service.IndexCountService;
|
|
|
|
|
import com.logpm.report.vo.IndexCountVO; |
|
|
|
|
import com.logpm.report.vo.indexCount.*; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import lombok.Data; |
|
|
|
|
import org.checkerframework.checker.units.qual.A; |
|
|
|
|
import org.springblade.common.constant.aftersales.WorkOrderStatusConstant; |
|
|
|
|
import org.springblade.common.constant.orderpackage.OrderPackageStatusConstant; |
|
|
|
|
import org.springblade.common.constant.stockup.StockupTypeConstant; |
|
|
|
@ -90,16 +92,44 @@ public class IndexCountServiceImpl implements IndexCountService {
|
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public AbnormalDataVo getAbnormalData() { |
|
|
|
|
return null; |
|
|
|
|
AbnormalDataVo abnormalDataVo = new AbnormalDataVo(); |
|
|
|
|
abnormalDataVo.setMoon(getAbnormalDataDetail("2")); |
|
|
|
|
abnormalDataVo.setDay(getAbnormalDataDetail("3")); |
|
|
|
|
return abnormalDataVo; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public AbnormalDetailDataVo getAbnormalDataDetail(String type){ |
|
|
|
|
AbnormalDetailDataVo abnormalDetailDataVo = new AbnormalDetailDataVo(); |
|
|
|
|
List<Long> warehouse = billingService.getWarehouse(); |
|
|
|
|
abnormalDetailDataVo.setAll(inLibraryDeliverService.getAbnormalAll(warehouse,billingService.getOtherTime(type))); |
|
|
|
|
abnormalDetailDataVo.setNotProcessed(inLibraryDeliverService.getAbnormalNotProcessed(warehouse,billingService.getOtherTime(type))); |
|
|
|
|
abnormalDetailDataVo.setApproximateRate(inLibraryDeliverService.getAbnormalApproximateRate(warehouse,billingService.getOtherTime(type))); |
|
|
|
|
return abnormalDetailDataVo; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 获取配送数据 |
|
|
|
|
* 获取配送数据 type 1 市配 2商配 |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public DeliveryDetailDataVo getDeliveryData() { |
|
|
|
|
return null; |
|
|
|
|
public DeliveryDataVo getDeliveryData() { |
|
|
|
|
DeliveryDataVo deliveryDataVo = new DeliveryDataVo(); |
|
|
|
|
deliveryDataVo.setCity(getDeliveryData(1)); |
|
|
|
|
deliveryDataVo.setShopp(getDeliveryData(2)); |
|
|
|
|
return deliveryDataVo; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public DeliveryDetailDataVo getDeliveryData(Integer type){ |
|
|
|
|
DeliveryDetailDataVo deliveryDetailDataVo = new DeliveryDetailDataVo(); |
|
|
|
|
List<Long> warehouse = billingService.getWarehouse(); |
|
|
|
|
deliveryDetailDataVo.setAll(inLibraryDeliverService.getDeliveryAll(warehouse,type)); |
|
|
|
|
deliveryDetailDataVo.setAllCount(inLibraryDeliverService.getDeliveryAllCount(warehouse,type)); |
|
|
|
|
deliveryDetailDataVo.setAllWeight(inLibraryDeliverService.getDeliveryAllWeight(warehouse,type)); |
|
|
|
|
deliveryDetailDataVo.setAllArea(inLibraryDeliverService.getDeliveryAllArea(warehouse,type)); |
|
|
|
|
deliveryDetailDataVo.setOnTheWay(inLibraryDeliverService.getDeliveryOnTheWay(warehouse,type)); |
|
|
|
|
return deliveryDetailDataVo; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -108,7 +138,23 @@ public class IndexCountServiceImpl implements IndexCountService {
|
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public SignDataVo getSignData() { |
|
|
|
|
return null; |
|
|
|
|
SignDataVo signDataVo = new SignDataVo(); |
|
|
|
|
signDataVo.setMoon(signDataDetail("2")); |
|
|
|
|
signDataVo.setMoon(signDataDetail("3")); |
|
|
|
|
return signDataVo; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public SignDetailDataVo signDataDetail(String type){ |
|
|
|
|
SignDetailDataVo signDetailDataVo = new SignDetailDataVo(); |
|
|
|
|
List<Long> warehouse = billingService.getWarehouse(); |
|
|
|
|
signDetailDataVo.setEndSign(inLibraryDeliverService.getEndSign(warehouse,billingService.getOtherTime(type))); |
|
|
|
|
signDetailDataVo.setNoSign(inLibraryDeliverService.getNoSign(warehouse,billingService.getOtherTime(type))); |
|
|
|
|
signDetailDataVo.setTimeEndSign(inLibraryDeliverService.getTimeEndSign(warehouse,billingService.getOtherTime(type))); |
|
|
|
|
signDetailDataVo.setJobNoSign(inLibraryDeliverService.getJobNoSign(warehouse,billingService.getOtherTime(type))); |
|
|
|
|
signDetailDataVo.setJobApproximateRate(inLibraryDeliverService.getJobApproximateRate(warehouse,billingService.getOtherTime(type))); |
|
|
|
|
signDetailDataVo.setTimeApproximateRate(inLibraryDeliverService.getTimeApproximateRate(warehouse,billingService.getOtherTime(type))); |
|
|
|
|
signDetailDataVo.setApproximateRate(inLibraryDeliverService.getApproximateRate(warehouse,billingService.getOtherTime(type))); |
|
|
|
|
return signDetailDataVo; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|