|
@@ -30,6 +30,7 @@ import com.platform.dao.entity.longyanpurchaseorder.LongYanPurchaseOrder;
|
|
|
import com.platform.dao.mapper.longyanpurchaseorder.LongYanPurchaseOrderMapper;
|
|
|
import com.platform.dao.vo.query.preparation.PreparationVO;
|
|
|
import com.platform.dao.vo.report.AllPreparationReportVO;
|
|
|
+import com.platform.dao.vo.report.LongYanPurchaseOrderByConditionReportVO;
|
|
|
import com.platform.dao.vo.report.LongYanPurchaseOrderByTimeExport;
|
|
|
import com.platform.dao.vo.report.LongYanPurchaseOrderReportVO;
|
|
|
import com.platform.dao.vo.sb.SbInfoVO;
|
|
@@ -48,6 +49,7 @@ import java.math.BigDecimal;
|
|
|
import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.stream.Collectors;
|
|
@@ -73,6 +75,20 @@ public class LongYanPurchaseOrderServiceImpl extends BaseServiceImpl<LongYanPurc
|
|
|
super.deleteByPrimaryKey(id);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Map<Integer,List<LongYanPurchaseOrderByConditionReportVO>> getPieByCondition(LongYanPurchaseOrderDTO dto) {
|
|
|
+ List<LongYanPurchaseOrderByConditionReportVO> reportVO1 = mapper.getReportByCptcode(dto);
|
|
|
+ List<LongYanPurchaseOrderByConditionReportVO> reportVO2 = mapper.getReportByCbustype(dto);
|
|
|
+ List<LongYanPurchaseOrderByConditionReportVO> reportVO3 = mapper.getReportByOldOrNew(dto);
|
|
|
+ List<LongYanPurchaseOrderByConditionReportVO> reportVO4 = mapper.getReportByCdepcode(dto);
|
|
|
+ Map<Integer,List<LongYanPurchaseOrderByConditionReportVO>> map = new HashMap<>();
|
|
|
+ map.put(1,reportVO1);
|
|
|
+ map.put(2,reportVO2);
|
|
|
+ map.put(3,reportVO3);
|
|
|
+ map.put(4,reportVO4);
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public List<LongYanPurchaseOrderByTimeExport> exportPurchaseByTime(LongYanPurchaseOrderDTO dto, Integer searchYear, LocalDate startMonth, LocalDate endMonth) {
|
|
|
List<Map<String, LocalDateTime>> monthStartAndEndList = new ArrayList<Map<String, LocalDateTime>>();
|