|
|
@ -19,9 +19,13 @@ import org.jeecg.common.system.vo.LoginUser; |
|
|
|
import org.jeecg.modules.demo.annual.entity.Annual; |
|
|
|
import org.jeecg.modules.demo.annual.entity.Annual; |
|
|
|
import org.jeecg.modules.demo.annual.service.IAnnualService; |
|
|
|
import org.jeecg.modules.demo.annual.service.IAnnualService; |
|
|
|
import org.jeecg.modules.demo.annual.service.impl.AnnualServiceImpl; |
|
|
|
import org.jeecg.modules.demo.annual.service.impl.AnnualServiceImpl; |
|
|
|
|
|
|
|
import org.jeecg.modules.demo.annualCompPoint.entity.AnnualCompPoint; |
|
|
|
|
|
|
|
import org.jeecg.modules.demo.annualCompPoint.service.IAnnualCompPointService; |
|
|
|
import org.jeecg.modules.demo.annualcomp.entity.AnnualComp; |
|
|
|
import org.jeecg.modules.demo.annualcomp.entity.AnnualComp; |
|
|
|
import org.jeecg.modules.demo.annualcomp.service.IAnnualCompService; |
|
|
|
import org.jeecg.modules.demo.annualcomp.service.IAnnualCompService; |
|
|
|
import org.jeecg.modules.demo.annualcomp.vo.AnnualCompVo; |
|
|
|
import org.jeecg.modules.demo.annualcomp.vo.AnnualCompVo; |
|
|
|
|
|
|
|
import org.jeecg.modules.demo.annualcompaward.entity.AnnualCompAward; |
|
|
|
|
|
|
|
import org.jeecg.modules.demo.annualcompaward.service.IAnnualCompAwardService; |
|
|
|
import org.jeecg.modules.demo.comp.entity.Comp; |
|
|
|
import org.jeecg.modules.demo.comp.entity.Comp; |
|
|
|
import org.jeecg.modules.demo.comp.service.ICompService; |
|
|
|
import org.jeecg.modules.demo.comp.service.ICompService; |
|
|
|
import org.jeecg.modules.system.entity.SysRole; |
|
|
|
import org.jeecg.modules.system.entity.SysRole; |
|
|
@ -57,9 +61,12 @@ public class AnnualCompController extends JeecgController<AnnualComp, IAnnualCom |
|
|
|
private IAnnualService annualService; |
|
|
|
private IAnnualService annualService; |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private ICompService compService; |
|
|
|
private ICompService compService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private IAnnualCompPointService annualCompPointService; |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private ISysUserRoleService iSysUserRoleService; |
|
|
|
private ISysUserRoleService iSysUserRoleService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private IAnnualCompAwardService annualCompAwardService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -315,6 +322,24 @@ public class AnnualCompController extends JeecgController<AnnualComp, IAnnualCom |
|
|
|
//String annualId = annual.getId();
|
|
|
|
//String annualId = annual.getId();
|
|
|
|
annualCompVo.setAnnualid(annualCompVo.getAnnualid()); |
|
|
|
annualCompVo.setAnnualid(annualCompVo.getAnnualid()); |
|
|
|
annualCompService.save(annualCompVo); |
|
|
|
annualCompService.save(annualCompVo); |
|
|
|
|
|
|
|
AnnualCompPoint annualCompPoint = new AnnualCompPoint(); |
|
|
|
|
|
|
|
annualCompPoint.setAnnualCompId(annualCompVo.getId()); |
|
|
|
|
|
|
|
annualCompPoint.setObjName("默认年度比赛项目"); |
|
|
|
|
|
|
|
annualCompPoint.setEntryForm("N"); |
|
|
|
|
|
|
|
annualCompPoint.setAnnualCompState("2"); |
|
|
|
|
|
|
|
annualCompPoint.setTeamNumber(0); |
|
|
|
|
|
|
|
annualCompPoint.setRequireLeader("N"); |
|
|
|
|
|
|
|
annualCompPoint.setRequireTeamName("N"); |
|
|
|
|
|
|
|
annualCompPoint.setRequireApply("N"); |
|
|
|
|
|
|
|
annualCompPoint.setRequireTopic("N"); |
|
|
|
|
|
|
|
annualCompPoint.setRequireUploadWorks("N"); |
|
|
|
|
|
|
|
annualCompPoint.setRequireScore("N"); |
|
|
|
|
|
|
|
annualCompPoint.setAnnualCompSwitch("Y"); |
|
|
|
|
|
|
|
annualCompPointService.save(annualCompPoint); |
|
|
|
|
|
|
|
//比赛奖项设置
|
|
|
|
|
|
|
|
AnnualCompAward annualCompAward=new AnnualCompAward(); |
|
|
|
|
|
|
|
annualCompAward.setAnnucompid(annualCompPoint.getId()); |
|
|
|
|
|
|
|
annualCompAwardService.save(annualCompAward); |
|
|
|
return Result.OK("添加成功!"); |
|
|
|
return Result.OK("添加成功!"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|