use of com.bc.pmpheep.back.vo.WriterPointRuleVO in project pmph by BCSquad.
the class WriterPointRuleServiceTest method getlistWriterPointRulePoint.
@SuppressWarnings({ "unused", "rawtypes", "unchecked" })
@Test
@Rollback(Const.ISROLLBACK)
public void getlistWriterPointRulePoint() {
WriterPointRule writerPointRule = this.addWriterPointRulePoint();
PageParameter pageParameter = new PageParameter<>();
PageResult pageResult = new PageResult<>();
WriterPointRuleVO writerPointRuleVO = new WriterPointRuleVO();
pageParameter.setParameter(writerPointRuleVO);
pageParameter.setPageSize(10);
pageResult = writerPointRuleService.getlistWriterPointRulePoint(pageParameter);
Assert.assertNotNull("分页数据失败", pageResult);
}
use of com.bc.pmpheep.back.vo.WriterPointRuleVO in project pmph by BCSquad.
the class WriterPointRuleServiceTest method updateWriterPointRule.
@Test
@Rollback(Const.ISROLLBACK)
public void updateWriterPointRule() {
writerPointRuleService.addWriterPointRule(writerPointRule);
writerPointRule.setPoint(2);
WriterPointRuleVO writerPointRule1 = new WriterPointRuleVO(writerPointRule.getId(), "登录规则", "login", 1, false, null, 0, null, false);
Assert.assertTrue("更新失败", writerPointRuleService.updateWriterPointRule(writerPointRule1) > 0);
}
use of com.bc.pmpheep.back.vo.WriterPointRuleVO in project pmph by BCSquad.
the class WriterPointRuleController method list.
/**
* 分页查询积分规则列表
* @param pageSize
* @param pageNumber
* @param ruleCode
* @param ruleName
* @return
*/
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "分页查询积分规则列表")
@RequestMapping(value = "/pointrule/list", method = RequestMethod.GET)
public ResponseBean list(@RequestParam("pageSize") Integer pageSize, @RequestParam("pageNumber") Integer pageNumber, @RequestParam("ruleCode") String ruleCode, @RequestParam("ruleName") String ruleName) {
PageParameter<WriterPointRuleVO> pageParameter = new PageParameter<WriterPointRuleVO>(pageNumber, pageSize);
WriterPointRuleVO writerPointRuleVO = new WriterPointRuleVO();
writerPointRuleVO.setRuleName(ruleName);
writerPointRuleVO.setRuleCode(ruleCode);
pageParameter.setParameter(writerPointRuleVO);
return new ResponseBean(writerPointRuleService.getListWriterPointRule(pageParameter));
}
use of com.bc.pmpheep.back.vo.WriterPointRuleVO in project pmph by BCSquad.
the class WriterPointRuleController method exchangeList.
/**
* 分页查询兑换规则列表
* @param pageSize
* @param pageNumber
* @param ruleCode
* @param ruleName
* @return
*/
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "分页查询兑换规则列表")
@RequestMapping(value = "/exchangeList", method = RequestMethod.GET)
public ResponseBean exchangeList(@RequestParam("pageSize") Integer pageSize, @RequestParam("pageNumber") Integer pageNumber, @RequestParam("ruleCode") String ruleCode, @RequestParam("ruleName") String ruleName) {
PageParameter<WriterPointRuleVO> pageParameter = new PageParameter<WriterPointRuleVO>(pageNumber, pageSize);
WriterPointRuleVO writerPointRuleVO = new WriterPointRuleVO();
writerPointRuleVO.setRuleName(ruleName);
writerPointRuleVO.setRuleCode(ruleCode);
pageParameter.setParameter(writerPointRuleVO);
return new ResponseBean(writerPointRuleService.getlistWriterPointRulePoint(pageParameter));
}
use of com.bc.pmpheep.back.vo.WriterPointRuleVO in project pmph by BCSquad.
the class WriterPointRuleServiceTest method getListWriterPointRule.
@SuppressWarnings({ "unused", "rawtypes", "unchecked" })
@Test
@Rollback(Const.ISROLLBACK)
public void getListWriterPointRule() {
WriterPointRule writerPointRule = this.addWriterPointRules();
PageParameter pageParameter = new PageParameter<>();
PageResult pageResult = new PageResult<>();
WriterPointRuleVO writerPointRuleVO = new WriterPointRuleVO();
pageParameter.setParameter(writerPointRuleVO);
pageParameter.setPageSize(10);
pageResult = writerPointRuleService.getListWriterPointRule(pageParameter);
Assert.assertNotNull("分页数据失败", pageResult);
}
Aggregations