diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/bigScreen/controller/CompSystemBigScreenController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/bigScreen/controller/CompSystemBigScreenController.java index 237f7ebd..b96c24f1 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/bigScreen/controller/CompSystemBigScreenController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/bigScreen/controller/CompSystemBigScreenController.java @@ -4,6 +4,7 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.jeecg.common.api.vo.Result; +import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.modules.demo.abilityEvaluation.entity.PersonalAbilityEvaluation; import org.jeecg.modules.demo.bigScreen.service.CompSystemBigScreenService; import org.springframework.beans.factory.annotation.Autowired; @@ -31,6 +32,7 @@ public class CompSystemBigScreenController /*extends JeecgController*/ { @Autowired private CompSystemBigScreenService compSystemBigScreenService; + @AutoLog(value = "河南机电-比赛数据综合大屏") @ApiOperation(value = "河南机电-比赛数据综合展示", notes = "河南机电-比赛数据综合展示") @GetMapping(value = "/composite") public Result composite(HttpServletRequest req) { @@ -38,6 +40,7 @@ public class CompSystemBigScreenController /*extends JeecgController*/ { return Result.ok(result); } + @AutoLog(value = "河南机电-部门大屏") @ApiOperation(value = "河南机电-部门比赛数据展示", notes = "河南机电-部门比赛数据展示") @GetMapping(value = "/depart") public Result bigScreen4Depart(String departId) { @@ -45,6 +48,7 @@ public class CompSystemBigScreenController /*extends JeecgController*/ { return Result.ok(result); } + @AutoLog(value = "河南机电-单个比赛大屏") @ApiOperation(value = "河南机电-单个比赛数据展示", notes = "河南机电-单个比赛数据展示") @GetMapping(value = "/singleComp") public Result singleComp(String compId) { @@ -52,6 +56,7 @@ public class CompSystemBigScreenController /*extends JeecgController*/ { return Result.ok(result); } + @AutoLog(value = "河南机电-学生个人能力大屏") @ApiOperation(value = "学生个人能力大屏", notes = "学生个人能力大屏") @GetMapping(value = "/student") public Result bigScreen4Student(String workNo) { @@ -59,24 +64,28 @@ public class CompSystemBigScreenController /*extends JeecgController*/ { return Result.ok(result); } + @AutoLog(value = "院系-参赛大屏") @ApiOperation(value = "河南机电-院系参赛大屏数据", notes = "河南机电-院系参赛大屏数据") @GetMapping(value = "/canSai") public Result canSai() { return Result.ok(compSystemBigScreenService.canSai()); } + @AutoLog(value = "院系-能力大屏") @ApiOperation(value = "河南机电-院系能力大屏数据", notes = "河南机电-院系能力大屏数据") @GetMapping(value = "/nengLi") public Result nengLi() { return Result.ok(compSystemBigScreenService.nengLi()); } + @AutoLog(value = "院系-获奖大屏") @ApiOperation(value = "河南机电-院系获奖大屏数据", notes = "河南机电-院系获奖大屏数据") @GetMapping(value = "/huoJiang") public Result huoJiang() { return Result.ok(compSystemBigScreenService.huoJiang()); } + @AutoLog(value = "院系-得分大屏") @ApiOperation(value = "河南机电-院系各比赛类型得分大屏数据", notes = "河南机电-院系各比赛类型得分大屏数据") @GetMapping(value = "/deFei") public Result deFei() { diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/bigScreen/service/CompSystemBigScreenServiceImpl.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/bigScreen/service/CompSystemBigScreenServiceImpl.java index 28b0bcfc..a3c2c50e 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/bigScreen/service/CompSystemBigScreenServiceImpl.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/bigScreen/service/CompSystemBigScreenServiceImpl.java @@ -489,10 +489,11 @@ public class CompSystemBigScreenServiceImpl implements CompSystemBigScreenServic //比赛数 last5YearDataVo.setCompCount(1); - AnnualCompPoint annualCompPoint = iAnnualCompPointService.getOne(new LambdaQueryWrapper().eq(AnnualCompPoint::getAnnualCompId, ac.getId())); - if (!ObjectUtils.isEmpty(annualCompPoint)) { + List annualCompPoints = iAnnualCompPointService.list(new LambdaQueryWrapper().eq(AnnualCompPoint::getAnnualCompId, ac.getId())); + if (!ObjectUtils.isEmpty(annualCompPoints)) { + Set pids = annualCompPoints.stream().map(e -> e.getId()).collect(Collectors.toSet()); long personCount4CompTemp = iAnnualCompetitionProjectRegistrationService.count(new LambdaQueryWrapper(). - eq(AnnualCompetitionProjectRegistration::getAnnualCompid, annualCompPoint.getId())); + in(AnnualCompetitionProjectRegistration::getAnnualCompid, pids)); personCount4Comp.getAndUpdate(val -> val.add(new BigDecimal(personCount4CompTemp))); last5YearDataVo.setPersonCount(personCount4Comp.get().intValue()); } @@ -667,6 +668,9 @@ public class CompSystemBigScreenServiceImpl implements CompSystemBigScreenServic List> last4YearData = new LinkedList<>(); List years = DateUtils.getLastxYear(4); List annualList = iAnnualService.list(new LambdaQueryWrapper().in(Annual::getAnnualName, years).orderByAsc(Annual::getAnnualName)); + DecimalFormat decimalFormat = new DecimalFormat(); + decimalFormat.setMaximumFractionDigits(2); // 保留两位小数 + decimalFormat.setRoundingMode(RoundingMode.HALF_UP); // 设置具体的进位机制 annualList.forEach(annual -> { AtomicReference baseScore = new AtomicReference<>(BigDecimal.ZERO); Map yearData = new LinkedHashMap<>(); @@ -678,7 +682,7 @@ public class CompSystemBigScreenServiceImpl implements CompSystemBigScreenServic double sum = compScoreList.stream().mapToDouble(PersonalCompScore::getScore).sum(); baseScore.getAndUpdate(val -> val.add(new BigDecimal(sum))); } - yearData.put("score", baseScore); + yearData.put("score", decimalFormat.format(baseScore.get())); last4YearData.add(yearData); }); studentInfoMap.put("last4YearData", last4YearData); diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java index a2423599..9d87ed29 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java @@ -268,7 +268,13 @@ public class ExpertController extends JeecgController { // 现在 Compid, CompName 和 Stat 包含了逗号分隔的值 model.setCompName(CompName); model.setCompid(Compid); - model.setStat(Stat); + if(Stat.indexOf(",")==-1){ + model.setStat(Stat); + }else{ + Stat = Stat.substring(0,Stat.indexOf(",")); + model.setStat(Stat); + } + return Result.OK(model); } diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/homepage/controller/UserHomePageController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/homepage/controller/UserHomePageController.java index 315dbc5f..f2b2bb02 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/homepage/controller/UserHomePageController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/homepage/controller/UserHomePageController.java @@ -4,6 +4,7 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.jeecg.common.api.vo.Result; +import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.modules.demo.homepage.service.UserHomePageService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; @@ -28,6 +29,7 @@ public class UserHomePageController { @Autowired private UserHomePageService homePageService; + @AutoLog(value = "学校首页") @ApiOperation(value = "河南机电-学校首页", notes = "河南机电-学校首页") @GetMapping(value = "/school") public Result school(HttpServletRequest req) { @@ -35,6 +37,7 @@ public class UserHomePageController { return Result.ok(result); } + @AutoLog(value = "部门首页") @ApiOperation(value = "河南机电-部门首页", notes = "河南机电-部门首页") @GetMapping(value = "/depart") public Result depart(String orgCode) { @@ -42,6 +45,7 @@ public class UserHomePageController { return Result.ok(result); } + @AutoLog(value = "学校管理员-分析报告") @ApiOperation(value = "河南机电-学校综合报告", notes = "河南机电-学校综合报告") @GetMapping(value = "/report4School") public Result report4School(HttpServletRequest req) { @@ -49,6 +53,7 @@ public class UserHomePageController { return Result.ok(result); } + @AutoLog(value = "部门管理员-分析报告") @ApiOperation(value = "河南机电-部门综合报告", notes = "河南机电-部门综合报告") @GetMapping(value = "/report4Depart") public Result report4Depart(String orgCode) { diff --git a/jeecgboot-vue3-master/src/views/comp/CompList.vue b/jeecgboot-vue3-master/src/views/comp/CompList.vue index 9a25328b..a9f06273 100644 --- a/jeecgboot-vue3-master/src/views/comp/CompList.vue +++ b/jeecgboot-vue3-master/src/views/comp/CompList.vue @@ -17,14 +17,7 @@ diff --git a/jeecgboot-vue3-master/src/views/comp/CompListRole.vue b/jeecgboot-vue3-master/src/views/comp/CompListRole.vue index 333787e2..aa99b50c 100644 --- a/jeecgboot-vue3-master/src/views/comp/CompListRole.vue +++ b/jeecgboot-vue3-master/src/views/comp/CompListRole.vue @@ -17,14 +17,7 @@ diff --git a/jeecgboot-vue3-master/src/views/comp/CompListST.vue b/jeecgboot-vue3-master/src/views/comp/CompListST.vue index 3e92db88..76c9d604 100644 --- a/jeecgboot-vue3-master/src/views/comp/CompListST.vue +++ b/jeecgboot-vue3-master/src/views/comp/CompListST.vue @@ -17,14 +17,7 @@ diff --git a/jeecgboot-vue3-master/src/views/comp/CompListZJ.vue b/jeecgboot-vue3-master/src/views/comp/CompListZJ.vue index aa259ca1..f3b08787 100644 --- a/jeecgboot-vue3-master/src/views/comp/CompListZJ.vue +++ b/jeecgboot-vue3-master/src/views/comp/CompListZJ.vue @@ -17,14 +17,7 @@ diff --git a/jeecgboot-vue3-master/src/views/depart/workbench/components/organizingCommittee/organizingCommittee.vue b/jeecgboot-vue3-master/src/views/depart/workbench/components/organizingCommittee/organizingCommittee.vue index 5b4d3e54..6915652c 100644 --- a/jeecgboot-vue3-master/src/views/depart/workbench/components/organizingCommittee/organizingCommittee.vue +++ b/jeecgboot-vue3-master/src/views/depart/workbench/components/organizingCommittee/organizingCommittee.vue @@ -39,7 +39,7 @@
参赛人数个人赛人数团队赛人数
-
201010
+
{{ data.csNumber }}{{ data.grsNumber }}{{ data.tdsNumber }}
diff --git a/jeecgboot-vue3-master/src/views/expgroup/ExpGroup.data.ts b/jeecgboot-vue3-master/src/views/expgroup/ExpGroup.data.ts index f1c08230..29c6f35a 100644 --- a/jeecgboot-vue3-master/src/views/expgroup/ExpGroup.data.ts +++ b/jeecgboot-vue3-master/src/views/expgroup/ExpGroup.data.ts @@ -10,7 +10,7 @@ export const columns: BasicColumn[] = [ dataIndex: 'grouid_dictText' }, { - title: '是否队长', + title: '是否组长', align: "center", dataIndex: 'islead', customRender:({text}) => { @@ -39,7 +39,7 @@ export const formSchema: FormSchema[] = [ }, }, { - label: '是否队长', + label: '是否组长', field: 'islead', component: 'JSwitch', componentProps:{ diff --git a/jeecgboot-vue3-master/src/views/expgroup/ExpGroupList.vue b/jeecgboot-vue3-master/src/views/expgroup/ExpGroupList.vue index dd61d888..fa8d039c 100644 --- a/jeecgboot-vue3-master/src/views/expgroup/ExpGroupList.vue +++ b/jeecgboot-vue3-master/src/views/expgroup/ExpGroupList.vue @@ -174,9 +174,9 @@ } }, { - label: '设为队长', + label: '设为组长', popConfirm: { - title: '是否设为队长', + title: '是否设为组长', confirm: szdz.bind(null, record), } }, diff --git a/jeecgboot-vue3-master/src/views/expgroup/components/ExpGroupForm.vue b/jeecgboot-vue3-master/src/views/expgroup/components/ExpGroupForm.vue index e2cd98b6..01b0e348 100644 --- a/jeecgboot-vue3-master/src/views/expgroup/components/ExpGroupForm.vue +++ b/jeecgboot-vue3-master/src/views/expgroup/components/ExpGroupForm.vue @@ -8,7 +8,7 @@ - + @@ -31,7 +31,7 @@ import { getValueType } from '/@/utils'; import { saveOrUpdate } from '../ExpGroup.api'; import { Form } from 'ant-design-vue'; - + const props = defineProps({ formDisabled: { type: Boolean, default: false }, formData: { type: Object, default: ()=>{} }, @@ -42,9 +42,9 @@ const emit = defineEmits(['register', 'ok']); const formData = reactive>({ id: '', - grouid: '', - islead: '', - annCompGroupid: '', + grouid: '', + islead: '', + annCompGroupid: '', }); const { createMessage } = useMessage(); const labelCol = ref({ xs: { span: 24 }, sm: { span: 5 } }); @@ -67,7 +67,7 @@ return props.formDisabled; }); - + /** * 新增 */ diff --git a/jeecgboot-vue3-master/src/views/topic/TopicList5.vue b/jeecgboot-vue3-master/src/views/topic/TopicList5.vue index c9992421..49321b3d 100644 --- a/jeecgboot-vue3-master/src/views/topic/TopicList5.vue +++ b/jeecgboot-vue3-master/src/views/topic/TopicList5.vue @@ -230,7 +230,7 @@ function handleEdit3(record: Recordable) { function getTableAction(record) { const actions = [ { - label: '评分标准', + label: '评分细则设置', onClick: handleEdit2.bind(null, record), }, /* {