Search in sources :

Example 11 with DecNationalPlan

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

the class DecNationalPlanServiceTest method add.

private DecNationalPlan add() {
    DecNationalPlan decNationalPlan = new DecNationalPlan();
    decNationalPlan.setDeclarationId(1L);
    decNationalPlan.setMaterialName("普通心理学");
    decNationalPlan.setIsbn("123456");
    decNationalPlan.setRank(2);
    decNationalPlan.setRankText("国家卫计委十二五");
    decNationalPlan.setSort(13);
    decNationalPlanService.addDecNationalPlan(decNationalPlan);
    DecNationalPlan decNationalPlan2 = new DecNationalPlan(1L, "社会心理学", "654321", 1, "教育部十二五", "专业主修教材", null);
    decNationalPlanService.addDecNationalPlan(decNationalPlan2);
    DecNationalPlan decNationalPlan3 = new DecNationalPlan(2L, "变态心理学", "111", 3, "both", null, null);
    decNationalPlanService.addDecNationalPlan(decNationalPlan3);
    return decNationalPlan3;
}
Also used : DecNationalPlan(com.bc.pmpheep.back.po.DecNationalPlan)

Example 12 with DecNationalPlan

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

the class DecNationalPlanServiceTest method testAddDecNationalPlan.

@Test
@Rollback(Const.ISROLLBACK)
public void testAddDecNationalPlan() {
    DecNationalPlan decNationalPlan = new DecNationalPlan();
    decNationalPlan.setDeclarationId(3L);
    decNationalPlan.setMaterialName("人体解剖学");
    decNationalPlan.setIsbn("666");
    decNationalPlan.setRank(1);
    decNationalPlan.setRankText("教育部十二五");
    decNationalPlan.setNote("重点建设学科");
    decNationalPlan.setSort(1);
    decNationalPlan = decNationalPlanService.addDecNationalPlan(decNationalPlan);
    Assert.assertTrue("添加数据失败", decNationalPlan.getId() > 0);
}
Also used : DecNationalPlan(com.bc.pmpheep.back.po.DecNationalPlan) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest) Rollback(org.springframework.test.annotation.Rollback)

Aggregations

DecNationalPlan (com.bc.pmpheep.back.po.DecNationalPlan)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 DecResearch (com.bc.pmpheep.back.po.DecResearch)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