significative 4 months ago
commit 54ee82c7f8
  1. 40
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java
  2. 4
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/service/impl/AnnualCompPointServiceImpl.java
  3. 14
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/awardpersion/controller/AwardPersionController.java
  4. 10
      jeecg-boot-master/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java
  5. 1
      jeecgboot-vue3-master/src/locales/lang/zh-CN/sys.ts
  6. 4
      jeecgboot-vue3-master/src/views/abilityEvaluation/depart/DepartAbilityEvaluation.data.ts
  7. 10
      jeecgboot-vue3-master/src/views/annualCompPoint/committee/AnnualCompPointList.vue
  8. 6
      jeecgboot-vue3-master/src/views/annualScore/departCompTotalScore/DepartCompTotalScore.data.ts
  9. 14
      jeecgboot-vue3-master/src/views/system/loginmini/MiniRegister.vue

@ -148,17 +148,24 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint,
// 获取负责的比赛id
LambdaQueryWrapper<Comp> queryWrapperComp = new LambdaQueryWrapper<>();
// id位数相同,可用like模糊
queryWrapperComp.like(Comp::getCompAdmin, userId);
queryWrapperComp.eq(Comp::getCompAdmin, userId);
List<Comp> list = compService.list(queryWrapperComp);
if(list.isEmpty()){
return Result.error("未绑定比赛");
}
List<String> ids = list.stream().map(Comp::getId).collect(Collectors.toList());
// 获取负责的年度比赛id
QueryWrapper<AnnualComp> queryWrapperAnnual = new QueryWrapper<>();
queryWrapperAnnual.in(ids.size()!=0,"compid",ids);
/*queryWrapperAnnual.in(ids.size()!=0,"compid",ids);*/
queryWrapperAnnual.in("compid",ids);
List<AnnualComp> listAnnual = annualCompService.list(queryWrapperAnnual);
if(listAnnual.isEmpty()){
return Result.error("未创建年度比赛");
}
List<String> annualIds = listAnnual.stream().map(AnnualComp::getId).collect(Collectors.toList());
QueryWrapper<AnnualCompPoint> queryWrapper = QueryGenerator.initQueryWrapper(annualCompPoint, req.getParameterMap());
queryWrapper.in(annualIds.size()!=0,"annual_comp_id",annualIds);
queryWrapper.in("annual_comp_id",annualIds);
queryWrapper.eq("annual_comp_switch","Y"); // 比赛必须是开启的
Page<AnnualCompPoint> page = new Page<AnnualCompPoint>(pageNo, pageSize);
IPage<AnnualCompPoint> pageList = annualCompPointService.page(page, queryWrapper);
@ -304,7 +311,12 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint,
// @RequiresPermissions("annualCompPoint:annual_comp_point:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
public Result<String> edit(@RequestBody AnnualCompPoint annualCompPoint) {
boolean isUpdate = annualCompPointService.updateById(annualCompPoint);
boolean isUpdate ;
if(annualCompPoint.getAnnualCompState().equals("0") && annualCompPoint.getAnnualCompState().equals("4") ){
isUpdate = annualCompPointService.updateById(annualCompPoint);
} else {
return Result.error("当前状态不可修改");
}
if (!isUpdate){
return Result.error("编辑失败!");
}
@ -322,7 +334,13 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint,
// @RequiresPermissions("annualCompPoint:annual_comp_point:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
annualCompPointService.removeById(id);
AnnualCompPoint annualCompPoint =annualCompPointService.getById(id);
if(annualCompPoint.getAnnualCompState().equals("0") && annualCompPoint.getAnnualCompState().equals("4") ) {
System.out.println(id);
annualCompPointService.removeById(id);
}else {
return Result.error("当前状态不可删除");
}
return Result.OK("删除成功!");
}
/**
@ -940,8 +958,11 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint,
try {
List<AnnualCompPointMb> list = ExcelImportUtil.importExcel(file.getInputStream(), AnnualCompPointMb.class, params);
for (int i = 0 ; i < list.size();i++){
SysUser sysUser = sysUserService.getUserByName(list.get(i).getStudentcode());
if(sysUser==null){
QueryWrapper<SysUser> qw = new QueryWrapper<>();
qw.eq("work_no",list.get(i).getStudentcode());
List<SysUser> listsys = sysUserService.list(qw);
//SysUser sysUser = sysUserService.getUserByName(list.get(i).getStudentcode());
if(listsys.size()==0){
return Result.error("文件导入失败:第"+(i+1)+"行学生学号不存在");
}
}
@ -961,7 +982,10 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint,
annualCompetitionProjectRegistrationService.save(ar);
TeamManagement tm = new TeamManagement();
tm.setEnrollCode(enrollCode);
tm.setUserId(sysUserService.getUserByName(list.get(k).getStudentcode()).getId());
QueryWrapper<SysUser> qw1 = new QueryWrapper<>();
qw1.eq("work_no",list.get(k).getStudentcode());
List<SysUser> listsys1 = sysUserService.list(qw1);
tm.setUserId(listsys1.get(0).getId());
tm.setCaptain("0");
teamManagementService.save(tm);
}

@ -83,6 +83,10 @@ public class AnnualCompPointServiceImpl extends ServiceImpl<AnnualCompPointMappe
if (annualComp == null) {
return Result.error("年度比赛错误");
}
if (annualComp.getIsopen().equals("0")) {
return Result.error("请先启动年度比赛");
}
// 校验比赛项目名称
String objName = annualCompPoint.getObjName();
LambdaQueryWrapper<AnnualCompPoint> queryWrapper = new LambdaQueryWrapper<>();

@ -120,7 +120,7 @@ public class AwardPersionController extends JeecgController<AwardPersion, IAward
//学生(上传证书和查询)(根据学号查询筛选)
Page<AwardPersion> page = new Page<AwardPersion>(pageNo, pageSize);
QueryWrapper<AwardPersion> queryWrapper = QueryGenerator.initQueryWrapper(awardPersion, req.getParameterMap());
queryWrapper.eq("studentcode",user.getUsername());
queryWrapper.eq("studentcode",sysUserService.getById(user.getId()).getWorkNo());
IPage<AwardPersion> pageList = awardPersionService.page(page, queryWrapper);
return Result.OK(pageList);
}else if(sysRoleList.get(0).getId().equals("1693451972151386114")){
@ -224,7 +224,7 @@ public class AwardPersionController extends JeecgController<AwardPersion, IAward
for (int l = 0 ; l < listtm.size() ; l++){
SysUser sysUser = sysUserService.getById(listtm.get(l).getUserId());
awardPersion.setStudentname(sysUser.getRealname());
awardPersion.setStudentcode(sysUser.getUsername());
awardPersion.setStudentcode(sysUser.getWorkNo());
awardPersion.setStudentorg(sysDepartService.queryDepartsByUsername(sysUser.getUsername()).get(0).getId());
awardPersionService.save(awardPersion);
}
@ -515,31 +515,31 @@ public class AwardPersionController extends JeecgController<AwardPersion, IAward
if(listaca.get(0).getFirstPrize().equals(list.get(i).getAwardname())){
list.get(i).setAwardsort(1);
list.get(i).setAwardid(listaca.get(0).getId());
list.get(i).setStudentcode(sysUser.getUsername());
list.get(i).setStudentcode(sysUser.getWorkNo());
list.get(i).setStudentname(sysUser.getRealname());
listsave.add(list.get(i));
}else if(listaca.get(0).getSecondPrize().equals(list.get(i).getAwardname())){
list.get(i).setAwardsort(2);
list.get(i).setAwardid(listaca.get(0).getId());
list.get(i).setStudentcode(sysUser.getUsername());
list.get(i).setStudentcode(sysUser.getWorkNo());
list.get(i).setStudentname(sysUser.getRealname());
listsave.add(list.get(i));
}else if(listaca.get(0).getThirdPrize().equals(list.get(i).getAwardname())){
list.get(i).setAwardsort(3);
list.get(i).setAwardid(listaca.get(0).getId());
list.get(i).setStudentcode(sysUser.getUsername());
list.get(i).setStudentcode(sysUser.getWorkNo());
list.get(i).setStudentname(sysUser.getRealname());
listsave.add(list.get(i));
}else if(listaca.get(0).getFourthPrize().equals(list.get(i).getAwardname())){
list.get(i).setAwardsort(4);
list.get(i).setAwardid(listaca.get(0).getId());
list.get(i).setStudentcode(sysUser.getUsername());
list.get(i).setStudentcode(sysUser.getWorkNo());
list.get(i).setStudentname(sysUser.getRealname());
listsave.add(list.get(i));
}else if(listaca.get(0).getFifthPrize().equals(list.get(i).getAwardname())){
list.get(i).setAwardsort(5);
list.get(i).setAwardid(listaca.get(0).getId());
list.get(i).setStudentcode(sysUser.getUsername());
list.get(i).setStudentcode(sysUser.getWorkNo());
list.get(i).setStudentname(sysUser.getRealname());
listsave.add(list.get(i));
}else {

@ -1145,6 +1145,7 @@ public class SysUserController {
String departmentid = jsonObject.getString("departmentid");
String realname = jsonObject.getString("realname");
String checkKey = jsonObject.getString("checkKey");
String workon = jsonObject.getString("workno");
if(captcha==null){
result.error500("验证码无效");
@ -1187,6 +1188,14 @@ public class SysUserController {
result.setSuccess(false);
return result;
}
QueryWrapper<SysUser> queryWrapper = new QueryWrapper<>();
queryWrapper.in("work_no", workon);
List<SysUser> sysUser3 = sysUserService.list(queryWrapper);
if (sysUser3.size()>0) {
result.setMessage("该学号/工号已注册");
result.setSuccess(false);
return result;
}
if(oConvertUtils.isEmpty(realname)){
realname = username;
@ -1198,6 +1207,7 @@ public class SysUserController {
String passwordEncode = PasswordUtil.encrypt(username, password, salt);
user.setSalt(salt);
user.setUsername(username);
user.setWorkNo(workon);
user.setRealname(realname);
user.setPassword(passwordEncode);
//user.setEmail(email);

@ -60,6 +60,7 @@ export default {
placeholder: '请输入锁屏密码或者用户密码',
},
login: {
workno: '工号/学号',
backSignIn: '返回',
signInFormTitle: '登录',
mobileSignInFormTitle: '手机登录',

@ -29,7 +29,7 @@ export const searchFormSchema: FormSchema[] = [
field: 'depetId',
component: 'JDictSelectTag',
componentProps: {
dictCode: "sys_depart,depart_name,id"
dictCode:"sys_depart,depart_name,id,parent_id='1693446350597038081'"
},
colProps: {span: 6},
},
@ -59,7 +59,7 @@ export const formSchema: FormSchema[] = [
field: 'depetId',
component: 'JDictSelectTag',
componentProps: {
dictCode: "sys_depart,depart_name,id"
dictCode:"sys_depart,depart_name,id,parent_id='1693446350597038081'"
},
dynamicRules: ({model, schema}) => {
return [

@ -402,6 +402,9 @@
});
}
/**
* 个人积分汇总
* 触发条件评奖完成后操作且更新项目状态为积分已汇总并且不可再进行个人积分汇总
*
是否已凭奖为1且未汇总过时可以积分汇总操作
* 状态0待提交1已提交(待审核)2已审核(已通过)3待驳回4已驳回5-已报名6-已选题7-已上传作品8-已评分9-已评奖,10-积分已汇总
*/
@ -411,7 +414,12 @@
onClick: handleCollectScoreApply.bind(null, record),
});
}
if (record.isPj == 1 ) {
/**
* 个人能力量化
* 触发条件个人积分汇总完成后操作可以重复进行个人能力量化操作
*/
if (record.isPj == 1 && record.annualCompState == "10" ) {
actions.unshift({
label: '个人能力量化',
onClick: handlePersonalAbilityEvaluation.bind(null, record),

@ -42,7 +42,7 @@ export const searchFormSchema: FormSchema[] = [
field: 'depet',
component: 'JDictSelectTag',
componentProps:{
dictCode:"sys_depart,depart_name,id"
dictCode:"sys_depart,depart_name,id,parent_id='1693446350597038081'"
},
colProps: {span: 6},
},
@ -63,7 +63,9 @@ export const formSchema: FormSchema[] = [
field: 'depet',
component: 'JDictSelectTag',
componentProps:{
dictCode:"sys_depart,depart_name,id"
dictCode:"sys_depart,depart_name,id,parent_id='1693446350597038081'"
// dictCode: "sys_user,realname,id,username!='admin' order by create_time",
},
dynamicRules: ({model,schema}) => {
return [

@ -27,6 +27,12 @@
<a-input class="fix-auto-fill" type="text" :placeholder="t('sys.login.name')" v-model:value="formData.realname" />
</div>
</a-form-item>
<a-form-item>
<div class="aui-input-line">
<Icon class="aui-icon" icon="ant-design:mobile-outlined" />
<a-input class="fix-auto-fill" type="text" :placeholder="t('sys.login.workno')" v-model:value="formData.workno" />
</div>
</a-form-item>
<a-form-item>
<div class="aui-input-line">
<!-- <Icon class="aui-icon" icon="ant-design:mobile-outlined" /> -->
@ -137,6 +143,7 @@
const formRef = ref();
const formData = reactive<any>({
username: '',
workno: '',
mobile: '',
smscode: '',
password: '',
@ -228,6 +235,10 @@ const randCodeData = reactive<any>({
createMessage.warn(t('sys.login.passwordPlaceholder'));
return;
}
if (!formData.workno) {
createMessage.warn(t('sys.login.passwordPlaceholder'));
return;
}
if (!formData.confirmPassword) {
createMessage.warn(t('sys.login.confirmPassword'));
return;
@ -250,6 +261,7 @@ const randCodeData = reactive<any>({
try {
const resultInfo = await registerStu(
toRaw({
workno: formData.workno,
username: formData.username,
departmentid: formData.department,
realname: formData.realname,
@ -286,7 +298,7 @@ const randCodeData = reactive<any>({
* 初始化表单
*/
function initForm() {
Object.assign(formData, { username: '', mobile: '', realname: '', department: '', smscode: '', password: '', confirmPassword: ''/*, policy: false*/ });
Object.assign(formData, { workno: '', username: '', mobile: '', realname: '', department: '', smscode: '', password: '', confirmPassword: ''/*, policy: false*/ });
if (!unref(timer)) {
showInterval.value = true;
clearInterval(unref(timer));

Loading…
Cancel
Save