Search in sources :

Example 11 with DecResearch

use of com.bc.pmpheep.back.po.DecResearch in project pmph by BCSquad.

the class DecResearchServiceTest method add.

private DecResearch add() {
    DecResearch decResearch = new DecResearch();
    decResearch.setDeclarationId(2L);
    decResearch.setResearchName("催眠治疗");
    decResearch.setApprovalUnit("催眠协会");
    decResearch.setAward("二等奖");
    decResearch.setNote("催眠治疗的效果研究");
    decResearch.setSort(45);
    decResearchService.addDecResearch(decResearch);
    DecResearch decResearch2 = new DecResearch(2L, "儿童智力成长", "发展心理学研究会", "三等奖", "智力成长的阶段性研究", null);
    decResearchService.addDecResearch(decResearch2);
    DecResearch decResearch3 = new DecResearch(9L, "脑电波活动", "脑科学协会", "一等奖", null, 1);
    decResearchService.addDecResearch(decResearch3);
    return decResearch3;
}
Also used : DecResearch(com.bc.pmpheep.back.po.DecResearch)

Example 12 with DecResearch

use of com.bc.pmpheep.back.po.DecResearch in project pmph by BCSquad.

the class DecResearchServiceTest method testAddDecResearch.

@Test
@Rollback(Const.ISROLLBACK)
public void testAddDecResearch() {
    DecResearch decResearch = new DecResearch();
    decResearch.setDeclarationId(1L);
    decResearch.setResearchName("心理防御机制的负面作用");
    decResearch.setApprovalUnit("心理协会");
    decResearch.setAward("一等奖");
    decResearch = decResearchService.addDecResearch(decResearch);
    Assert.assertTrue("添加数据失败", decResearch.getId() > 0);
}
Also used : DecResearch(com.bc.pmpheep.back.po.DecResearch) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest) Rollback(org.springframework.test.annotation.Rollback)

Aggregations

DecResearch (com.bc.pmpheep.back.po.DecResearch)12 DecAcade (com.bc.pmpheep.back.po.DecAcade)5 DecCourseConstruction (com.bc.pmpheep.back.po.DecCourseConstruction)5 DecEduExp (com.bc.pmpheep.back.po.DecEduExp)5 DecLastPosition (com.bc.pmpheep.back.po.DecLastPosition)5 DecNationalPlan (com.bc.pmpheep.back.po.DecNationalPlan)5 DecTeachExp (com.bc.pmpheep.back.po.DecTeachExp)5 DecTextbook (com.bc.pmpheep.back.po.DecTextbook)5 DecWorkExp (com.bc.pmpheep.back.po.DecWorkExp)5 ArrayList (java.util.ArrayList)5 DecAcadeReward (com.bc.pmpheep.back.po.DecAcadeReward)4 DecAchievement (com.bc.pmpheep.back.po.DecAchievement)4 DecClinicalReward (com.bc.pmpheep.back.po.DecClinicalReward)4 DecIntention (com.bc.pmpheep.back.po.DecIntention)4 DecMonograph (com.bc.pmpheep.back.po.DecMonograph)4 DecMoocDigital (com.bc.pmpheep.back.po.DecMoocDigital)4 DecPublishReward (com.bc.pmpheep.back.po.DecPublishReward)4 DecSci (com.bc.pmpheep.back.po.DecSci)4 DecTextbookPmph (com.bc.pmpheep.back.po.DecTextbookPmph)4 DecExtensionVO (com.bc.pmpheep.back.vo.DecExtensionVO)4