class DrawController {

	@PostMapping(value = "/querydrawcash")
	public ResBodyData queryDrawCash(
			@RequestParam(value = "pageNumber", defaultValue = "1") int pageNumber,
			@RequestParam(value = "pageSize", defaultValue = "20") int pageSize,
			@RequestParam(value = "type", defaultValue = "list") String type,
			@RequestParam Map<String, Object> params) {
		
		if("list".equals(type)){
			PageHelper.startPage(pageNumber, pageSize);
		}
		List<EcmMzfDraw> ecmMzfDrawList = drawService.queryDrawCash(params);
		int total = drawService.getDrawCount(params);
		
		Map<String,Object> result = Maps.newHashMap();
		result.put("list", ecmMzfDrawList);
		result.put("total", total);
		return SettlementUtil.success(result);
	}

}