更新
This commit is contained in:
parent
a247cb5a4b
commit
d8761b6876
@ -107,6 +107,7 @@ public class HitRegInfoController extends BaseController
|
||||
list1.add(hitRegInfoExportVo);
|
||||
}catch (Exception e) {
|
||||
log.error("导出错误,团队信息:{}", hitRegInfo1);
|
||||
log.error("导出错误,错误信息:{}", e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -137,10 +137,10 @@ public class HitRegInfoServiceImpl implements IHitRegInfoService {
|
||||
*/
|
||||
@Override
|
||||
public List<HitRegInfo> selectHitRegInfoListExport(HitRegInfo hitRegInfo) {
|
||||
if (ObjectUtil.isEmpty(hitRegInfo.getYear())) {
|
||||
//获取当前年
|
||||
hitRegInfo.setYear(DateUtil.format(new Date(), "yyyy"));
|
||||
}
|
||||
// if (ObjectUtil.isEmpty(hitRegInfo.getYear())) {
|
||||
// //获取当前年
|
||||
// hitRegInfo.setYear(DateUtil.format(new Date(), "yyyy"));
|
||||
// }
|
||||
Long userId = SecurityUtils.getLoginUser().getUserId();
|
||||
//判断当前登陆人是否是领队老师,如果是查询该老师学校下的战队
|
||||
HitRegistrationTeachInfo teacherInfo = teachInfoMapper.selectHitRegistrationTeachInfoByUserId(userId, hitRegInfo.getYear());
|
||||
@ -155,12 +155,12 @@ public class HitRegInfoServiceImpl implements IHitRegInfoService {
|
||||
for (HitRegInfoUser regInfoUser : hitRegInfoUsers) {
|
||||
switch (regInfoUser.getType()) {
|
||||
case "3": {
|
||||
HitRegistrationTeachInfo hitRegistrationTeachInfo = teachInfoMapper.selectHitRegistrationTeachInfoByUserId(regInfoUser.getUserId(), hitRegInfo.getYear());
|
||||
HitRegistrationTeachInfo hitRegistrationTeachInfo = teachInfoMapper.selectHitRegistrationTeachInfoByUserId(regInfoUser.getUserId(), null);
|
||||
regInfo.setLdTeacher(hitRegistrationTeachInfo);
|
||||
break;
|
||||
}
|
||||
case "2": {
|
||||
HitRegistrationTeachInfo hitRegistrationTeachInfo = teachInfoMapper.selectHitRegistrationTeachInfoByUserId(regInfoUser.getUserId(), hitRegInfo.getYear());
|
||||
HitRegistrationTeachInfo hitRegistrationTeachInfo = teachInfoMapper.selectHitRegistrationTeachInfoByUserId(regInfoUser.getUserId(), null);
|
||||
regInfo.getZdTeacher().add(hitRegistrationTeachInfo);
|
||||
break;
|
||||
}
|
||||
|
@ -55,7 +55,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="selectHitRegistrationTeachInfoByUserId"
|
||||
resultType="com.ruoyi.common.core.domain.HitRegistrationTeachInfo">
|
||||
select * from hit_registration_teach_info
|
||||
where user_id = #{userId} and create_time like concat(#{year},'%')
|
||||
<where>user_id = #{userId}
|
||||
<if test="year != null">
|
||||
and create_time like concat(#{year},'%')
|
||||
</if>
|
||||
</where>
|
||||
|
||||
</select>
|
||||
<select id="selectHitRegistrationTeachInfoByUserIdNoYear"
|
||||
|
@ -146,7 +146,7 @@
|
||||
<!-- <image-upload :limit="1" v-model="registerForm.hitRegistrationTeachInfo.file"></image-upload>-->
|
||||
<el-upload
|
||||
ref="upload"
|
||||
:limit="1"
|
||||
:limit="1"system/hit_reg_info/export
|
||||
:headers="upload.headers"
|
||||
:action="upload.url + '?updateSupport=' + upload.updateSupport"
|
||||
:disabled="upload.isUploading"
|
||||
|
Loading…
Reference in New Issue
Block a user