From ba29811c971a8ad9bdffd1bf1b33231e76c980d5 Mon Sep 17 00:00:00 2001 From: whycxzp <glperry@163.com> Date: 星期五, 14 三月 2025 16:39:28 +0800 Subject: [PATCH] 类名命名规范化 --- src/main/java/com/whyc/service/BatttestdataInfService.java | 48 ++++++++++++++++++++++++------------------------ 1 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/main/java/com/whyc/service/BatttestdataInfService.java b/src/main/java/com/whyc/service/BatttestdataInfService.java index 4a72dec..83249af 100644 --- a/src/main/java/com/whyc/service/BatttestdataInfService.java +++ b/src/main/java/com/whyc/service/BatttestdataInfService.java @@ -4,8 +4,8 @@ import com.whyc.dto.Response; import com.whyc.mapper.BatttestdataIdMapper; import com.whyc.mapper.BatttestdataInfMapper; -import com.whyc.pojo.db_batt_testdata.BatttestdataId; -import com.whyc.pojo.db_batt_testdata.BatttestdataInf; +import com.whyc.pojo.db_batt_testdata.BattTestDataId; +import com.whyc.pojo.db_batt_testdata.BattTestDataInf; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -31,7 +31,7 @@ public Map<String, Object> getDevTinfByYearMonth(int userId) { Map<String,Object> map=new HashMap<>(); //鏈勾 - List<BatttestdataInf> listYear=mapper.getDevTinfByYear(userId); + List<BattTestDataInf> listYear=mapper.getDevTinfByYear(userId); Map<String,Object> a200Map=new HashMap<>(); Map<String,Object> actmMap=new HashMap<>(); @@ -44,11 +44,11 @@ actmYearMap.put(3,0); actmYearMap.put(4,0); //鏈勾 - Map<Integer, List<BatttestdataInf>> typeMapY = listYear.stream().collect(Collectors.groupingBy(BatttestdataInf::getDevType)); + Map<Integer, List<BattTestDataInf>> typeMapY = listYear.stream().collect(Collectors.groupingBy(BattTestDataInf::getDevType)); for (Integer type : typeMapY.keySet()) { - List<BatttestdataInf> list=typeMapY.get(type); - Map<Integer, List<BatttestdataInf>> testMapY = list.stream().collect(Collectors.groupingBy(BatttestdataInf::getTestType)); + List<BattTestDataInf> list=typeMapY.get(type); + Map<Integer, List<BattTestDataInf>> testMapY = list.stream().collect(Collectors.groupingBy(BattTestDataInf::getTestType)); for (Integer test : testMapY.keySet()) { if(type==1){ a200YearMap.put(test, testMapY.get(test).size()); @@ -70,11 +70,11 @@ actmMonthMap.put(2,0); actmMonthMap.put(3,0); actmMonthMap.put(4,0); - List<BatttestdataInf> listMonth=mapper.getDevTinfByMonth(userId); - Map<Integer, List<BatttestdataInf>> typeMapM = listMonth.stream().collect(Collectors.groupingBy(BatttestdataInf::getDevType)); + List<BattTestDataInf> listMonth=mapper.getDevTinfByMonth(userId); + Map<Integer, List<BattTestDataInf>> typeMapM = listMonth.stream().collect(Collectors.groupingBy(BattTestDataInf::getDevType)); for (Integer type : typeMapM.keySet()) { - List<BatttestdataInf> list=typeMapM.get(type); - Map<Integer, List<BatttestdataInf>> testMapM = list.stream().collect(Collectors.groupingBy(BatttestdataInf::getTestType)); + List<BattTestDataInf> list=typeMapM.get(type); + Map<Integer, List<BattTestDataInf>> testMapM = list.stream().collect(Collectors.groupingBy(BattTestDataInf::getTestType)); for (Integer test : testMapM.keySet()) { if(type==1){ a200MonthMap.put(test, testMapM.get(test).size()); @@ -116,11 +116,11 @@ actmdataMap.put(resultDate.toString(),actmweekDataMap); } - List<BatttestdataInf> listW1=mapper.getDevTinfByWeek(userId,1); - Map<String, List<BatttestdataInf>> typeMapW1 = listW1.stream().collect(Collectors.groupingBy(BatttestdataInf::getWeekDay)); + List<BattTestDataInf> listW1=mapper.getDevTinfByWeek(userId,1); + Map<String, List<BattTestDataInf>> typeMapW1 = listW1.stream().collect(Collectors.groupingBy(BattTestDataInf::getWeekDay)); for (String day : typeMapW1.keySet()) { - List<BatttestdataInf> list1=typeMapW1.get(day); - Map<Integer, List<BatttestdataInf>> testMapM1 = list1.stream().collect(Collectors.groupingBy(BatttestdataInf::getTestType)); + List<BattTestDataInf> list1=typeMapW1.get(day); + Map<Integer, List<BattTestDataInf>> testMapM1 = list1.stream().collect(Collectors.groupingBy(BattTestDataInf::getTestType)); //杩戜竴鍛╝200 Map<Integer,Integer> a200weekMap=new HashMap<>(); a200weekMap.put(2,0); @@ -131,11 +131,11 @@ a200dataMap.put(day,a200weekMap); } - List<BatttestdataInf> listW2=mapper.getDevTinfByWeek(userId,2); - Map<String, List<BatttestdataInf>> typeMapW2= listW2.stream().collect(Collectors.groupingBy(BatttestdataInf::getWeekDay)); + List<BattTestDataInf> listW2=mapper.getDevTinfByWeek(userId,2); + Map<String, List<BattTestDataInf>> typeMapW2= listW2.stream().collect(Collectors.groupingBy(BattTestDataInf::getWeekDay)); for (String day : typeMapW2.keySet()) { - List<BatttestdataInf> list2=typeMapW2.get(day); - Map<Integer, List<BatttestdataInf>> testMapM2 = list2.stream().collect(Collectors.groupingBy(BatttestdataInf::getTestType)); + List<BattTestDataInf> list2=typeMapW2.get(day); + Map<Integer, List<BattTestDataInf>> testMapM2 = list2.stream().collect(Collectors.groupingBy(BattTestDataInf::getTestType)); //杩戜竴鍛╝ctm Map<Integer,Integer> actmweekMap=new HashMap<>(); actmweekMap.put(2,0); @@ -154,12 +154,12 @@ public Response getTinfById(Integer devId) { Map<String,Object> map=new HashMap<>(); //鑾峰彇鍏呮斁鐢垫暟鎹� - List<BatttestdataInf> listDis=mapper.getTinfById(3,devId); - List<BatttestdataInf> listChr=mapper.getTinfById(2,devId); + List<BattTestDataInf> listDis=mapper.getTinfById(3,devId); + List<BattTestDataInf> listChr=mapper.getTinfById(2,devId); map.put("dis",listDis); map.put("chr",listChr); if(devId/100000000==2){ - List<BatttestdataInf> listJun=mapper.getTinfById(4,devId); + List<BattTestDataInf> listJun=mapper.getTinfById(4,devId); map.put("jun",listJun); } @@ -167,17 +167,17 @@ } //鑾峰彇璁惧鏌愭璁板綍璇︾粏鐨勫崟浣撴斁鐢佃繃绋� public Response getTdataById(Integer devId, Integer testRecordCount) { - List<BatttestdataId> list=subService.getTdataById(devId,testRecordCount); + List<BattTestDataId> list=subService.getTdataById(devId,testRecordCount); return new Response().setII(1,list!=null,list,"鑾峰彇璁惧鏌愭璁板綍璇︾粏鐨勫崟浣撴斁鐢佃繃绋�"); } //鑾峰彇鏀剧數inf - public BatttestdataInf getTinfExport(Integer devId, Integer testRecordCount) { + public BattTestDataInf getTinfExport(Integer devId, Integer testRecordCount) { QueryWrapper wrapper=new QueryWrapper(); wrapper.eq("dev_id",devId); wrapper.eq("test_record_count",testRecordCount); wrapper.last("limit 1"); - BatttestdataInf tinf=mapper.selectOne(wrapper); + BattTestDataInf tinf=mapper.selectOne(wrapper); return tinf; } } \ No newline at end of file -- Gitblit v1.9.1