|
|
|
@ -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.service.IAnnualService; |
|
|
|
|
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.service.IAnnualCompService; |
|
|
|
|
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.service.ICompService; |
|
|
|
|
import org.jeecg.modules.system.entity.SysRole; |
|
|
|
@ -57,13 +61,16 @@ public class AnnualCompController extends JeecgController<AnnualComp, IAnnualCom |
|
|
|
|
private IAnnualService annualService; |
|
|
|
|
@Autowired |
|
|
|
|
private ICompService compService; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private IAnnualCompPointService annualCompPointService; |
|
|
|
|
@Autowired |
|
|
|
|
private ISysUserRoleService iSysUserRoleService; |
|
|
|
|
@Autowired |
|
|
|
|
private IAnnualCompAwardService annualCompAwardService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 分页列表查询 |
|
|
|
@ -315,6 +322,24 @@ public class AnnualCompController extends JeecgController<AnnualComp, IAnnualCom |
|
|
|
|
//String annualId = annual.getId();
|
|
|
|
|
annualCompVo.setAnnualid(annualCompVo.getAnnualid()); |
|
|
|
|
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("添加成功!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|