Compare commits

..

2 Commits

  1. 2
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/anncomgrotop/controller/AnnComGroTopController.java
  2. 23
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java
  3. 17
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.java
  4. 4
      jeecgboot-vue3-master/src/views/annualCompPoint/student2/AnnualCompPointList2.vue
  5. 12
      jeecgboot-vue3-master/src/views/system/loginmini/MiniLogin.vue

@ -115,6 +115,8 @@ public class AnnComGroTopController extends JeecgController<AnnComGroTop, IAnnCo
QueryWrapper<Expert> queryWrapperep = QueryGenerator.initQueryWrapper(expert, req.getParameterMap()); QueryWrapper<Expert> queryWrapperep = QueryGenerator.initQueryWrapper(expert, req.getParameterMap());
queryWrapperep.eq("user_id",sysUser.getId()); queryWrapperep.eq("user_id",sysUser.getId());
List<Expert> listep = expertService.list(queryWrapperep); List<Expert> listep = expertService.list(queryWrapperep);
ExpGroup expGroup = new ExpGroup(); ExpGroup expGroup = new ExpGroup();
QueryWrapper<ExpGroup> queryWrappereg = QueryGenerator.initQueryWrapper(expGroup, req.getParameterMap()); QueryWrapper<ExpGroup> queryWrappereg = QueryGenerator.initQueryWrapper(expGroup, req.getParameterMap());
queryWrappereg.eq("grouid",listep.get(0).getId()); queryWrappereg.eq("grouid",listep.get(0).getId());

@ -209,25 +209,39 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint,
QueryWrapper<Expert> exqueryWrapper = new QueryWrapper<>(); QueryWrapper<Expert> exqueryWrapper = new QueryWrapper<>();
exqueryWrapper.eq("user_id", loginUser.getId()); exqueryWrapper.eq("user_id", loginUser.getId());
Expert expert = expertService.getOne(exqueryWrapper); Expert expert = expertService.getOne(exqueryWrapper);
if(expert==null)
{
return Result.OK(null);
}
//开始获取exp-comp //开始获取exp-comp
QueryWrapper<CompExp> coexqueryWrapper = new QueryWrapper<>(); QueryWrapper<CompExp> coexqueryWrapper = new QueryWrapper<>();
coexqueryWrapper.eq("expid", expert.getId()); coexqueryWrapper.eq("expid", expert.getId());
List<CompExp> compExpList = compExpService.list(coexqueryWrapper); List<CompExp> compExpList = compExpService.list(coexqueryWrapper);
List<String> compIdListss = new ArrayList<>(); List<String> compIdListss = new ArrayList<>();
List<Comp> compList =new ArrayList<>();
if(compExpList.size()>0)
{
for (CompExp compExps : compExpList) { for (CompExp compExps : compExpList) {
compIdListss.add(compExps.getCompid()); compIdListss.add(compExps.getCompid());
} }
QueryWrapper<Comp> coqueryWrapper = new QueryWrapper<>(); QueryWrapper<Comp> coqueryWrapper = new QueryWrapper<>();
coqueryWrapper.in("id",compIdListss); coqueryWrapper.in("id",compIdListss);
List<Comp> compList = compService.list(coqueryWrapper); compList = compService.list(coqueryWrapper);
}
List<AnnualComp> annualCompList=new ArrayList<>();
if(compList.size()>0)
{
List<String> needlist = new ArrayList<>(); List<String> needlist = new ArrayList<>();
for (Comp comp : compList){ for (Comp comp : compList){
needlist.add(comp.getId()); needlist.add(comp.getId());
} }
QueryWrapper<AnnualComp> anncoqueryWrapper = new QueryWrapper<>(); QueryWrapper<AnnualComp> anncoqueryWrapper = new QueryWrapper<>();
anncoqueryWrapper.in("compid",needlist); anncoqueryWrapper.in("compid",needlist);
List<AnnualComp> annualCompList = annualCompService.list(anncoqueryWrapper); annualCompList = annualCompService.list(anncoqueryWrapper);
}
List<String> stringList = new ArrayList<>(); List<String> stringList = new ArrayList<>();
if(annualCompList.size()>0)
{
for (AnnualComp annualComp : annualCompList){ for (AnnualComp annualComp : annualCompList){
stringList.add(annualComp.getId()); stringList.add(annualComp.getId());
} }
@ -235,8 +249,11 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint,
Page<AnnualCompPoint> page = new Page<AnnualCompPoint>(pageNo, pageSize); Page<AnnualCompPoint> page = new Page<AnnualCompPoint>(pageNo, pageSize);
IPage<AnnualCompPoint> pageList = annualCompPointService.page(page, queryWrapper); IPage<AnnualCompPoint> pageList = annualCompPointService.page(page, queryWrapper);
return Result.OK(pageList); return Result.OK(pageList);
}else
{
return Result.OK(null);
}
} }
/** /**

@ -95,6 +95,10 @@ public class AnnualCompController extends JeecgController<AnnualComp, IAnnualCom
QueryWrapper<Expert> exqueryWrapper = new QueryWrapper<>(); QueryWrapper<Expert> exqueryWrapper = new QueryWrapper<>();
exqueryWrapper.eq("user_id", loginUser.getId()); exqueryWrapper.eq("user_id", loginUser.getId());
Expert expert = expertService.getOne(exqueryWrapper); Expert expert = expertService.getOne(exqueryWrapper);
if(expert==null)
{
return Result.OK(null);
}
//开始获取exp-comp //开始获取exp-comp
QueryWrapper<CompExp> coexqueryWrapper = new QueryWrapper<>(); QueryWrapper<CompExp> coexqueryWrapper = new QueryWrapper<>();
coexqueryWrapper.eq("expid", expert.getId()); coexqueryWrapper.eq("expid", expert.getId());
@ -103,16 +107,27 @@ public class AnnualCompController extends JeecgController<AnnualComp, IAnnualCom
for (CompExp compExps : compExpList) { for (CompExp compExps : compExpList) {
compIdListss.add(compExps.getCompid()); compIdListss.add(compExps.getCompid());
} }
List<Comp> compList=new ArrayList();
if(compExpList.size()>0)
{
QueryWrapper<Comp> coqueryWrapper = new QueryWrapper<>(); QueryWrapper<Comp> coqueryWrapper = new QueryWrapper<>();
coqueryWrapper.in("id",compIdListss); coqueryWrapper.in("id",compIdListss);
List<Comp> compList = compService.list(coqueryWrapper); compList = compService.list(coqueryWrapper);
}
List<String> needlist = new ArrayList<>(); List<String> needlist = new ArrayList<>();
for (Comp comp : compList){ for (Comp comp : compList){
needlist.add(comp.getId()); needlist.add(comp.getId());
} }
if(needlist.size()>0)
{
queryWrapper.in("compid",needlist); queryWrapper.in("compid",needlist);
IPage<AnnualComp> pageList = annualCompService.page(page, queryWrapper); IPage<AnnualComp> pageList = annualCompService.page(page, queryWrapper);
return Result.OK(pageList); return Result.OK(pageList);
}else
{
return Result.OK(null);
}
} }
/** /**

@ -12,8 +12,8 @@
<!--插槽:table标题--> <!--插槽:table标题-->
<template #tableTitle> <template #tableTitle>
<!-- <a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增 </a-button>--> <!-- <a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增 </a-button>-->
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出 <!-- <a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出
</a-button> </a-button>-->
<!-- <j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls"> 导入 </j-upload-button>--> <!-- <j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls"> 导入 </j-upload-button>-->
<a-dropdown v-if="selectedRowKeys.length > 0"> <a-dropdown v-if="selectedRowKeys.length > 0">
<template #overlay> <template #overlay>

@ -91,21 +91,21 @@
<a-button :loading="loginLoading" class="aui-link-login aui-flex-box" type="primary" @click="loginHandleClick"> <a-button :loading="loginLoading" class="aui-link-login aui-flex-box" type="primary" @click="loginHandleClick">
{{ t('sys.login.loginButton') }}</a-button> {{ t('sys.login.loginButton') }}</a-button>
</div> </div>
<div class="aui-flex"> <!-- <div class="aui-flex">
<a class="aui-linek-code aui-flex-box" @click="codeHandleClick">{{ t('sys.login.qrSignInFormTitle') }}</a> <a class="aui-linek-code aui-flex-box" @click="codeHandleClick">{{ t('sys.login.qrSignInFormTitle') }}</a>
</div> </div>-->
<div class="aui-flex"> <div class="aui-flex">
<a class="aui-linek-code aui-flex-box" @click="registerHandleClick">{{ t('sys.login.registerButton') }}</a> <a class="aui-linek-code aui-flex-box" @click="registerHandleClick">{{ t('sys.login.registerButton') }}</a>
</div> </div>
</div> </div>
</div> </div>
<a-form @keyup.enter.native="loginHandleClick"> <a-form @keyup.enter.native="loginHandleClick">
<div class="aui-flex aui-third-text"> <!-- <div class="aui-flex aui-third-text">
<div class="aui-flex-box aui-third-border"> <div class="aui-flex-box aui-third-border">
<span>{{ t('sys.login.otherSignIn') }}</span> <span>{{ t('sys.login.otherSignIn') }}</span>
</div> </div>
</div> </div>-->
<div class="aui-flex" :class="`${prefixCls}-sign-in-way`"> <!-- <div class="aui-flex" :class="`${prefixCls}-sign-in-way`">
<div class="aui-flex-box"> <div class="aui-flex-box">
<div class="aui-third-login"> <div class="aui-third-login">
<a title="github" @click="onThirdLogin('github')"><GithubFilled /></a> <a title="github" @click="onThirdLogin('github')"><GithubFilled /></a>
@ -126,7 +126,7 @@
<a title="微信" @click="onThirdLogin('wechat_open')"><WechatFilled /></a> <a title="微信" @click="onThirdLogin('wechat_open')"><WechatFilled /></a>
</div> </div>
</div> </div>
</div> </div>-->
</a-form> </a-form>
</div> </div>
</div> </div>

Loading…
Cancel
Save