|
|
|
@ -18,6 +18,7 @@ import org.jeecg.common.system.query.QueryGenerator; |
|
|
|
|
import org.jeecg.common.system.vo.LoginUser; |
|
|
|
|
import org.jeecg.common.util.oConvertUtils; |
|
|
|
|
import org.jeecg.config.JeecgBaseConfig; |
|
|
|
|
import org.jeecg.modules.demo.annual.service.IAnnualService; |
|
|
|
|
import org.jeecg.modules.demo.annualCompPoint.entity.AnnualCompPoint; |
|
|
|
|
import org.jeecg.modules.demo.annualCompPoint.service.IAnnualCompPointService; |
|
|
|
|
import org.jeecg.modules.demo.annualcomp.entity.AnnualComp; |
|
|
|
@ -96,6 +97,8 @@ public class AwardPersionController extends JeecgController<AwardPersion, IAward |
|
|
|
|
private ISysRoleService sysRoleService; |
|
|
|
|
@Autowired |
|
|
|
|
private ISysUserRoleService sysUserRoleService; |
|
|
|
|
@Autowired |
|
|
|
|
private IAnnualService annualService; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 分页列表查询 |
|
|
|
@ -536,10 +539,16 @@ public class AwardPersionController extends JeecgController<AwardPersion, IAward |
|
|
|
|
QueryWrapper<TeamManagement> queryWrappertm = QueryGenerator.initQueryWrapper(teamManagement, request.getParameterMap()); |
|
|
|
|
queryWrappertm.eq("enroll_code",list.get(i).getEnrollCode()); |
|
|
|
|
List<TeamManagement> listtm = teamManagementService.list(queryWrappertm); |
|
|
|
|
if(annualService.getannualthisid(list.get(i).getAnnualid())==null){ |
|
|
|
|
return Result.error("文件导入失败:第"+(i+1)+"行年度不存在"); |
|
|
|
|
}else{ |
|
|
|
|
list.get(i).setAnnualid(annualService.getannualthisid(list.get(i).getAnnualid())); |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
for (int l = 0 ; l < listtm.size() ; l++){ |
|
|
|
|
SysUser sysUser = sysUserService.getById(listtm.get(l).getUserId()); |
|
|
|
|
list.get(i).setStudentorg(sysDepartService.queryDepartsByUsername(sysUser.getUsername()).get(0).getId()); |
|
|
|
|
|
|
|
|
|
if(listaca.get(0).getFirstPrize().equals(list.get(i).getAwardname())){ |
|
|
|
|
list.get(i).setAwardsort(1); |
|
|
|
|
list.get(i).setAwardid(listaca.get(0).getId()); |
|
|
|
|