use of com.bc.pmpheep.back.po.DecLastPosition in project pmph by BCSquad.
the class DecLastPositionServiceTest method testGetDecLastPosition.
@Test
@Rollback(Const.ISROLLBACK)
public void testGetDecLastPosition() {
long id = add().getId();
DecLastPosition decLastPosition = decLastPositionService.getDecLastPositionById(id);
Assert.assertNotNull("获取作家上套教材参编情况失败", decLastPosition);
}
use of com.bc.pmpheep.back.po.DecLastPosition in project pmph by BCSquad.
the class DecLastPositionServiceTest method testUpdateDecLastPosition.
@Test
@Rollback(Const.ISROLLBACK)
public void testUpdateDecLastPosition() {
DecLastPosition decLastPosition = add();
decLastPosition.setDeclarationId(3L);
decLastPosition.setMaterialName("心理统计学");
Integer count = decLastPositionService.updateDecLastPosition(decLastPosition);
Assert.assertTrue("数据更新失败", count > 0);
}
Aggregations