|
@@ -4,23 +4,21 @@ import com.abi.qms.platform.dao.enums.QrTypeEnum;
|
|
|
import com.abi.qms.platform.dao.mapper.ReportServiceMapper;
|
|
|
import com.abi.qms.platform.dao.vo.result.ListBrandCodeReportVO;
|
|
|
import com.abi.qms.platform.dao.vo.result.ListFactoryCodeReportVO;
|
|
|
-import com.abi.qms.platform.dao.vo.result.ListSkuCodeReportVO;
|
|
|
+import com.abi.qms.platform.dao.vo.result.ListMaterialCodeReportVO;
|
|
|
import com.abi.qms.platform.dao.vo.result.ListPackageCodeVo;
|
|
|
import com.abi.qms.platform.dto.req.ReportReq;
|
|
|
import com.abi.qms.platform.dto.res.ListBrandCodeReportRes;
|
|
|
import com.abi.qms.platform.dto.res.ListFactoryCodeReportRes;
|
|
|
-import com.abi.qms.platform.dto.res.ListSkuCodeRankingReportRes;
|
|
|
+import com.abi.qms.platform.dto.res.ListMaterialCodeRankingReportRes;
|
|
|
import com.abi.qms.platform.dto.res.PackageCodeTypeRes;
|
|
|
import com.abi.qms.platform.service.ReportService;
|
|
|
import com.abi.task.common.utils.PojoConverterUtils;
|
|
|
-import org.apache.commons.lang.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
|
|
|
|
import java.text.DecimalFormat;
|
|
|
-import java.text.SimpleDateFormat;
|
|
|
import java.time.DayOfWeek;
|
|
|
import java.time.Instant;
|
|
|
import java.time.LocalDateTime;
|
|
@@ -42,7 +40,7 @@ public class ReportServiceImpl implements ReportService {
|
|
|
private ReportServiceMapper reportServiceMapper;
|
|
|
|
|
|
/**
|
|
|
- * 品牌使用码量占比
|
|
|
+ * 品牌使用码量占比(603版 已废弃)
|
|
|
*
|
|
|
* @param reportReq
|
|
|
* @return com.abi.qms.platform.dto.res.ListBrandCodeReportRes
|
|
@@ -71,17 +69,17 @@ public class ReportServiceImpl implements ReportService {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * SKU使用码量排名
|
|
|
+ * 物料使用码量排名
|
|
|
* @param reportReq
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public ListSkuCodeRankingReportRes querySkuCodeRanking(ReportReq reportReq) {
|
|
|
- List<ListSkuCodeReportVO> listSkuCodeReportVOS = reportServiceMapper.querySkuCodeRanking(reportReq);
|
|
|
+ public ListMaterialCodeRankingReportRes queryMaterialCodeRanking(ReportReq reportReq) {
|
|
|
+ List<ListMaterialCodeReportVO> listMaterialCodeReportVOS = reportServiceMapper.queryMaterialCodeRanking(reportReq);
|
|
|
// 封装出参
|
|
|
- ListSkuCodeRankingReportRes res = new ListSkuCodeRankingReportRes();
|
|
|
- List<ListSkuCodeRankingReportRes.SkuCodeReportResBean> skuCodeReportResBeans = PojoConverterUtils.copyList(listSkuCodeReportVOS, ListSkuCodeRankingReportRes.SkuCodeReportResBean.class);
|
|
|
- res.setReportSkuCodeRankingResList(skuCodeReportResBeans);
|
|
|
+ ListMaterialCodeRankingReportRes res = new ListMaterialCodeRankingReportRes();
|
|
|
+ List<ListMaterialCodeRankingReportRes.MaterialCodeReportResBean> materialCodeReportResBeans = PojoConverterUtils.copyList(listMaterialCodeReportVOS, ListMaterialCodeRankingReportRes.MaterialCodeReportResBean.class);
|
|
|
+ res.setReportMaterialCodeRankingResList(materialCodeReportResBeans);
|
|
|
return res;
|
|
|
}
|
|
|
|