喻忠伟 4 months ago
commit e9ea7d0b3f
  1. 9
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/bigScreen/controller/CompSystemBigScreenController.java
  2. 12
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/bigScreen/service/CompSystemBigScreenServiceImpl.java
  3. 8
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java
  4. 5
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/homepage/controller/UserHomePageController.java
  5. 9
      jeecgboot-vue3-master/src/views/comp/CompList.vue
  6. 9
      jeecgboot-vue3-master/src/views/comp/CompListRole.vue
  7. 9
      jeecgboot-vue3-master/src/views/comp/CompListST.vue
  8. 9
      jeecgboot-vue3-master/src/views/comp/CompListZJ.vue
  9. 2
      jeecgboot-vue3-master/src/views/depart/workbench/components/organizingCommittee/organizingCommittee.vue
  10. 4
      jeecgboot-vue3-master/src/views/expgroup/ExpGroup.data.ts
  11. 4
      jeecgboot-vue3-master/src/views/expgroup/ExpGroupList.vue
  12. 12
      jeecgboot-vue3-master/src/views/expgroup/components/ExpGroupForm.vue
  13. 2
      jeecgboot-vue3-master/src/views/topic/TopicList5.vue

@ -4,6 +4,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result; 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.abilityEvaluation.entity.PersonalAbilityEvaluation;
import org.jeecg.modules.demo.bigScreen.service.CompSystemBigScreenService; import org.jeecg.modules.demo.bigScreen.service.CompSystemBigScreenService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -31,6 +32,7 @@ public class CompSystemBigScreenController /*extends JeecgController*/ {
@Autowired @Autowired
private CompSystemBigScreenService compSystemBigScreenService; private CompSystemBigScreenService compSystemBigScreenService;
@AutoLog(value = "河南机电-比赛数据综合大屏")
@ApiOperation(value = "河南机电-比赛数据综合展示", notes = "河南机电-比赛数据综合展示") @ApiOperation(value = "河南机电-比赛数据综合展示", notes = "河南机电-比赛数据综合展示")
@GetMapping(value = "/composite") @GetMapping(value = "/composite")
public Result composite(HttpServletRequest req) { public Result composite(HttpServletRequest req) {
@ -38,6 +40,7 @@ public class CompSystemBigScreenController /*extends JeecgController*/ {
return Result.ok(result); return Result.ok(result);
} }
@AutoLog(value = "河南机电-部门大屏")
@ApiOperation(value = "河南机电-部门比赛数据展示", notes = "河南机电-部门比赛数据展示") @ApiOperation(value = "河南机电-部门比赛数据展示", notes = "河南机电-部门比赛数据展示")
@GetMapping(value = "/depart") @GetMapping(value = "/depart")
public Result bigScreen4Depart(String departId) { public Result bigScreen4Depart(String departId) {
@ -45,6 +48,7 @@ public class CompSystemBigScreenController /*extends JeecgController*/ {
return Result.ok(result); return Result.ok(result);
} }
@AutoLog(value = "河南机电-单个比赛大屏")
@ApiOperation(value = "河南机电-单个比赛数据展示", notes = "河南机电-单个比赛数据展示") @ApiOperation(value = "河南机电-单个比赛数据展示", notes = "河南机电-单个比赛数据展示")
@GetMapping(value = "/singleComp") @GetMapping(value = "/singleComp")
public Result singleComp(String compId) { public Result singleComp(String compId) {
@ -52,6 +56,7 @@ public class CompSystemBigScreenController /*extends JeecgController*/ {
return Result.ok(result); return Result.ok(result);
} }
@AutoLog(value = "河南机电-学生个人能力大屏")
@ApiOperation(value = "学生个人能力大屏", notes = "学生个人能力大屏") @ApiOperation(value = "学生个人能力大屏", notes = "学生个人能力大屏")
@GetMapping(value = "/student") @GetMapping(value = "/student")
public Result bigScreen4Student(String workNo) { public Result bigScreen4Student(String workNo) {
@ -59,24 +64,28 @@ public class CompSystemBigScreenController /*extends JeecgController*/ {
return Result.ok(result); return Result.ok(result);
} }
@AutoLog(value = "院系-参赛大屏")
@ApiOperation(value = "河南机电-院系参赛大屏数据", notes = "河南机电-院系参赛大屏数据") @ApiOperation(value = "河南机电-院系参赛大屏数据", notes = "河南机电-院系参赛大屏数据")
@GetMapping(value = "/canSai") @GetMapping(value = "/canSai")
public Result canSai() { public Result canSai() {
return Result.ok(compSystemBigScreenService.canSai()); return Result.ok(compSystemBigScreenService.canSai());
} }
@AutoLog(value = "院系-能力大屏")
@ApiOperation(value = "河南机电-院系能力大屏数据", notes = "河南机电-院系能力大屏数据") @ApiOperation(value = "河南机电-院系能力大屏数据", notes = "河南机电-院系能力大屏数据")
@GetMapping(value = "/nengLi") @GetMapping(value = "/nengLi")
public Result nengLi() { public Result nengLi() {
return Result.ok(compSystemBigScreenService.nengLi()); return Result.ok(compSystemBigScreenService.nengLi());
} }
@AutoLog(value = "院系-获奖大屏")
@ApiOperation(value = "河南机电-院系获奖大屏数据", notes = "河南机电-院系获奖大屏数据") @ApiOperation(value = "河南机电-院系获奖大屏数据", notes = "河南机电-院系获奖大屏数据")
@GetMapping(value = "/huoJiang") @GetMapping(value = "/huoJiang")
public Result huoJiang() { public Result huoJiang() {
return Result.ok(compSystemBigScreenService.huoJiang()); return Result.ok(compSystemBigScreenService.huoJiang());
} }
@AutoLog(value = "院系-得分大屏")
@ApiOperation(value = "河南机电-院系各比赛类型得分大屏数据", notes = "河南机电-院系各比赛类型得分大屏数据") @ApiOperation(value = "河南机电-院系各比赛类型得分大屏数据", notes = "河南机电-院系各比赛类型得分大屏数据")
@GetMapping(value = "/deFei") @GetMapping(value = "/deFei")
public Result deFei() { public Result deFei() {

@ -489,10 +489,11 @@ public class CompSystemBigScreenServiceImpl implements CompSystemBigScreenServic
//比赛数 //比赛数
last5YearDataVo.setCompCount(1); last5YearDataVo.setCompCount(1);
AnnualCompPoint annualCompPoint = iAnnualCompPointService.getOne(new LambdaQueryWrapper<AnnualCompPoint>().eq(AnnualCompPoint::getAnnualCompId, ac.getId())); List<AnnualCompPoint> annualCompPoints = iAnnualCompPointService.list(new LambdaQueryWrapper<AnnualCompPoint>().eq(AnnualCompPoint::getAnnualCompId, ac.getId()));
if (!ObjectUtils.isEmpty(annualCompPoint)) { if (!ObjectUtils.isEmpty(annualCompPoints)) {
Set<String> pids = annualCompPoints.stream().map(e -> e.getId()).collect(Collectors.toSet());
long personCount4CompTemp = iAnnualCompetitionProjectRegistrationService.count(new LambdaQueryWrapper<AnnualCompetitionProjectRegistration>(). long personCount4CompTemp = iAnnualCompetitionProjectRegistrationService.count(new LambdaQueryWrapper<AnnualCompetitionProjectRegistration>().
eq(AnnualCompetitionProjectRegistration::getAnnualCompid, annualCompPoint.getId())); in(AnnualCompetitionProjectRegistration::getAnnualCompid, pids));
personCount4Comp.getAndUpdate(val -> val.add(new BigDecimal(personCount4CompTemp))); personCount4Comp.getAndUpdate(val -> val.add(new BigDecimal(personCount4CompTemp)));
last5YearDataVo.setPersonCount(personCount4Comp.get().intValue()); last5YearDataVo.setPersonCount(personCount4Comp.get().intValue());
} }
@ -667,6 +668,9 @@ public class CompSystemBigScreenServiceImpl implements CompSystemBigScreenServic
List<Map<String, Object>> last4YearData = new LinkedList<>(); List<Map<String, Object>> last4YearData = new LinkedList<>();
List<Integer> years = DateUtils.getLastxYear(4); List<Integer> years = DateUtils.getLastxYear(4);
List<Annual> annualList = iAnnualService.list(new LambdaQueryWrapper<Annual>().in(Annual::getAnnualName, years).orderByAsc(Annual::getAnnualName)); List<Annual> annualList = iAnnualService.list(new LambdaQueryWrapper<Annual>().in(Annual::getAnnualName, years).orderByAsc(Annual::getAnnualName));
DecimalFormat decimalFormat = new DecimalFormat();
decimalFormat.setMaximumFractionDigits(2); // 保留两位小数
decimalFormat.setRoundingMode(RoundingMode.HALF_UP); // 设置具体的进位机制
annualList.forEach(annual -> { annualList.forEach(annual -> {
AtomicReference<BigDecimal> baseScore = new AtomicReference<>(BigDecimal.ZERO); AtomicReference<BigDecimal> baseScore = new AtomicReference<>(BigDecimal.ZERO);
Map<String, Object> yearData = new LinkedHashMap<>(); Map<String, Object> yearData = new LinkedHashMap<>();
@ -678,7 +682,7 @@ public class CompSystemBigScreenServiceImpl implements CompSystemBigScreenServic
double sum = compScoreList.stream().mapToDouble(PersonalCompScore::getScore).sum(); double sum = compScoreList.stream().mapToDouble(PersonalCompScore::getScore).sum();
baseScore.getAndUpdate(val -> val.add(new BigDecimal(sum))); baseScore.getAndUpdate(val -> val.add(new BigDecimal(sum)));
} }
yearData.put("score", baseScore); yearData.put("score", decimalFormat.format(baseScore.get()));
last4YearData.add(yearData); last4YearData.add(yearData);
}); });
studentInfoMap.put("last4YearData", last4YearData); studentInfoMap.put("last4YearData", last4YearData);

@ -268,7 +268,13 @@ public class ExpertController extends JeecgController<Expert, IExpertService> {
// 现在 Compid, CompName 和 Stat 包含了逗号分隔的值 // 现在 Compid, CompName 和 Stat 包含了逗号分隔的值
model.setCompName(CompName); model.setCompName(CompName);
model.setCompid(Compid); 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); return Result.OK(model);
} }

@ -4,6 +4,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.modules.demo.homepage.service.UserHomePageService; import org.jeecg.modules.demo.homepage.service.UserHomePageService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -28,6 +29,7 @@ public class UserHomePageController {
@Autowired @Autowired
private UserHomePageService homePageService; private UserHomePageService homePageService;
@AutoLog(value = "学校首页")
@ApiOperation(value = "河南机电-学校首页", notes = "河南机电-学校首页") @ApiOperation(value = "河南机电-学校首页", notes = "河南机电-学校首页")
@GetMapping(value = "/school") @GetMapping(value = "/school")
public Result school(HttpServletRequest req) { public Result school(HttpServletRequest req) {
@ -35,6 +37,7 @@ public class UserHomePageController {
return Result.ok(result); return Result.ok(result);
} }
@AutoLog(value = "部门首页")
@ApiOperation(value = "河南机电-部门首页", notes = "河南机电-部门首页") @ApiOperation(value = "河南机电-部门首页", notes = "河南机电-部门首页")
@GetMapping(value = "/depart") @GetMapping(value = "/depart")
public Result depart(String orgCode) { public Result depart(String orgCode) {
@ -42,6 +45,7 @@ public class UserHomePageController {
return Result.ok(result); return Result.ok(result);
} }
@AutoLog(value = "学校管理员-分析报告")
@ApiOperation(value = "河南机电-学校综合报告", notes = "河南机电-学校综合报告") @ApiOperation(value = "河南机电-学校综合报告", notes = "河南机电-学校综合报告")
@GetMapping(value = "/report4School") @GetMapping(value = "/report4School")
public Result report4School(HttpServletRequest req) { public Result report4School(HttpServletRequest req) {
@ -49,6 +53,7 @@ public class UserHomePageController {
return Result.ok(result); return Result.ok(result);
} }
@AutoLog(value = "部门管理员-分析报告")
@ApiOperation(value = "河南机电-部门综合报告", notes = "河南机电-部门综合报告") @ApiOperation(value = "河南机电-部门综合报告", notes = "河南机电-部门综合报告")
@GetMapping(value = "/report4Depart") @GetMapping(value = "/report4Depart")
public Result report4Depart(String orgCode) { public Result report4Depart(String orgCode) {

@ -17,14 +17,7 @@
<template v-if="toggleSearchStatus"> <template v-if="toggleSearchStatus">
<a-col :lg="8"> <a-col :lg="8">
<a-form-item label="比赛类型" name="compTypeId"> <a-form-item label="比赛类型" name="compTypeId">
<j-popup <j-dict-select-tag placeholder="请选择比赛类型" v-model:value="queryParam.compTypeId" dictCode="comp_type,type_name,id"/>
placeholder="请选择比赛类型"
v-model:value="queryParam.compTypeId"
code="comptype"
:fieldConfig="[{ source: 'type_name', target: 'compTypeId' }]"
:multi="true"
:setFieldsValue="setFieldsValue"
/>
</a-form-item> </a-form-item>
</a-col> </a-col>
</template> </template>

@ -17,14 +17,7 @@
<template v-if="toggleSearchStatus"> <template v-if="toggleSearchStatus">
<a-col :lg="8"> <a-col :lg="8">
<a-form-item label="比赛类型" name="compTypeId"> <a-form-item label="比赛类型" name="compTypeId">
<j-popup <j-dict-select-tag placeholder="请选择比赛类型" v-model:value="queryParam.compTypeId" dictCode="comp_type,type_name,id"/>
placeholder="请选择比赛类型"
v-model:value="queryParam.compTypeId"
code="comptype"
:fieldConfig="[{ source: 'type_name', target: 'compTypeId' }]"
:multi="true"
:setFieldsValue="setFieldsValue"
/>
</a-form-item> </a-form-item>
</a-col> </a-col>
</template> </template>

@ -17,14 +17,7 @@
<template v-if="toggleSearchStatus"> <template v-if="toggleSearchStatus">
<a-col :lg="8"> <a-col :lg="8">
<a-form-item label="比赛类型" name="compTypeId"> <a-form-item label="比赛类型" name="compTypeId">
<j-popup <j-dict-select-tag placeholder="请选择比赛类型" v-model:value="queryParam.compTypeId" dictCode="comp_type,type_name,id"/>
placeholder="请选择比赛类型"
v-model:value="queryParam.compTypeId"
code="comptype"
:fieldConfig="[{ source: 'type_name', target: 'compTypeId' }]"
:multi="true"
:setFieldsValue="setFieldsValue"
/>
</a-form-item> </a-form-item>
</a-col> </a-col>
</template> </template>

@ -17,14 +17,7 @@
<template v-if="toggleSearchStatus"> <template v-if="toggleSearchStatus">
<a-col :lg="8"> <a-col :lg="8">
<a-form-item label="比赛类型" name="compTypeId"> <a-form-item label="比赛类型" name="compTypeId">
<j-popup <j-dict-select-tag placeholder="请选择比赛类型" v-model:value="queryParam.compTypeId" dictCode="comp_type,type_name,id"/>
placeholder="请选择比赛类型"
v-model:value="queryParam.compTypeId"
code="comptype"
:fieldConfig="[{ source: 'type_name', target: 'compTypeId' }]"
:multi="true"
:setFieldsValue="setFieldsValue"
/>
</a-form-item> </a-form-item>
</a-col> </a-col>
</template> </template>

@ -39,7 +39,7 @@
<div class="left"><span>参赛人数</span><span>个人赛人数</span><span>团队赛人数</span></div> <div class="left"><span>参赛人数</span><span>个人赛人数</span><span>团队赛人数</span></div>
<div class="right"><SvgIcon size="20" name="content" /></div> <div class="right"><SvgIcon size="20" name="content" /></div>
</div> </div>
<div class="name"><span>20</span><span>10</span><span>10</span></div> <div class="name"><span>{{ data.csNumber }}</span><span>{{ data.grsNumber }}</span><span>{{ data.tdsNumber }}</span></div>
</div> </div>
</div></a-col> </div></a-col>
<a-col :lg="12" :xxl="6"><div class="item"> <a-col :lg="12" :xxl="6"><div class="item">

@ -10,7 +10,7 @@ export const columns: BasicColumn[] = [
dataIndex: 'grouid_dictText' dataIndex: 'grouid_dictText'
}, },
{ {
title: '是否长', title: '是否长',
align: "center", align: "center",
dataIndex: 'islead', dataIndex: 'islead',
customRender:({text}) => { customRender:({text}) => {
@ -39,7 +39,7 @@ export const formSchema: FormSchema[] = [
}, },
}, },
{ {
label: '是否长', label: '是否长',
field: 'islead', field: 'islead',
component: 'JSwitch', component: 'JSwitch',
componentProps:{ componentProps:{

@ -174,9 +174,9 @@
} }
}, },
{ {
label: '设为长', label: '设为长',
popConfirm: { popConfirm: {
title: '是否设为长', title: '是否设为长',
confirm: szdz.bind(null, record), confirm: szdz.bind(null, record),
} }
}, },

@ -8,7 +8,7 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-item label="是否长" v-bind="validateInfos.islead"> <a-form-item label="是否长" v-bind="validateInfos.islead">
<j-switch v-model:value="formData.islead" :disabled="disabled"></j-switch> <j-switch v-model:value="formData.islead" :disabled="disabled"></j-switch>
</a-form-item> </a-form-item>
</a-col> </a-col>
@ -31,7 +31,7 @@
import { getValueType } from '/@/utils'; import { getValueType } from '/@/utils';
import { saveOrUpdate } from '../ExpGroup.api'; import { saveOrUpdate } from '../ExpGroup.api';
import { Form } from 'ant-design-vue'; import { Form } from 'ant-design-vue';
const props = defineProps({ const props = defineProps({
formDisabled: { type: Boolean, default: false }, formDisabled: { type: Boolean, default: false },
formData: { type: Object, default: ()=>{} }, formData: { type: Object, default: ()=>{} },
@ -42,9 +42,9 @@
const emit = defineEmits(['register', 'ok']); const emit = defineEmits(['register', 'ok']);
const formData = reactive<Record<string, any>>({ const formData = reactive<Record<string, any>>({
id: '', id: '',
grouid: '', grouid: '',
islead: '', islead: '',
annCompGroupid: '', annCompGroupid: '',
}); });
const { createMessage } = useMessage(); const { createMessage } = useMessage();
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } }); const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
@ -67,7 +67,7 @@
return props.formDisabled; return props.formDisabled;
}); });
/** /**
* 新增 * 新增
*/ */

@ -230,7 +230,7 @@ function handleEdit3(record: Recordable) {
function getTableAction(record) { function getTableAction(record) {
const actions = [ const actions = [
{ {
label: '评分标准', label: '评分细则设置',
onClick: handleEdit2.bind(null, record), onClick: handleEdit2.bind(null, record),
}, },
/* { /* {

Loading…
Cancel
Save