test_class.file: service/settlement-service/src/test/java/com/meiduimall/service/settlement/api/WaterControllerTest.java
test_class.identifier: WaterControllerTest
test_class.superclass: extends BaseTest
test_case.body: @Test
  	public void testQueryWater() throws UnsupportedEncodingException, Exception {
  		
  		ResultActions results = mockMvc.perform(
  				MockMvcRequestBuilders.post("/settlementservice/revenueservice/v1/querywater"))
  				.andExpect(status().isOk());
  		
  		results.andDo(new ResultHandler() {
  			@Override
  			public void handle(MvcResult result) throws Exception {
  				System.out.println("*********"+result.getResponse().getContentAsString());
  			}
  		});
  	}
test_case.class_method_signature: WaterControllerTest.testQueryWater()
test_case.full_signature: @Test public void testQueryWater()
test_case.identifier: testQueryWater
test_case.invocations: andExpect perform post isOk status andDo println getContentAsString getResponse
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testQueryWater()
focal_class.declarator: logger = LoggerFactory.getLogger(WaterController.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(WaterController.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: agentService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private AgentService agentService;
focal_class.type: AgentService
focal_class.var_name: agentService
focal_class.declarator: waterService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private WaterService waterService;
focal_class.type: WaterService
focal_class.var_name: waterService
focal_class.declarator: orderService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private OrderService orderService;
focal_class.type: OrderService
focal_class.var_name: orderService
focal_class.file: service/settlement-service/src/main/java/com/meiduimall/service/settlement/api/WaterController.java
focal_class.identifier: WaterController
focal_class.class_method_signature: WaterController.queryWater(@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, String waterType)
focal_class.full_signature: @PostMapping("/querywater") public ResBodyData queryWater(@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, String waterType)
focal_class.identifier: queryWater
focal_class.modifiers: @PostMapping("/querywater") public
focal_class.parameters: (@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, String waterType)
focal_class.return: ResBodyData
focal_class.signature: ResBodyData queryWater(@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, String waterType)
focal_class.class_method_signature: WaterController.queryWaterById(String waterId, String waterType, Integer loginType, String code,
  			Integer pageNumber, Integer pageSize)
focal_class.full_signature: @PostMapping("/querywaterbyid") public ResBodyData queryWaterById(String waterId, String waterType, Integer loginType, String code,
  			Integer pageNumber, Integer pageSize)
focal_class.identifier: queryWaterById
focal_class.modifiers: @PostMapping("/querywaterbyid") public
focal_class.parameters: (String waterId, String waterType, Integer loginType, String code,
  			Integer pageNumber, Integer pageSize)
focal_class.return: ResBodyData
focal_class.signature: ResBodyData queryWaterById(String waterId, String waterType, Integer loginType, String code,
  			Integer pageNumber, Integer pageSize)
focal_class.class_method_signature: WaterController.getRecMoney(@RequestParam Map<String, Object> params)
focal_class.full_signature: @PostMapping("/getrecmoney") public ResBodyData getRecMoney(@RequestParam Map<String, Object> params)
focal_class.identifier: getRecMoney
focal_class.modifiers: @PostMapping("/getrecmoney") public
focal_class.parameters: (@RequestParam Map<String, Object> params)
focal_class.return: ResBodyData
focal_class.signature: ResBodyData getRecMoney(@RequestParam Map<String, Object> params)
focal_method.body: @PostMapping("/querywater")
  	public ResBodyData queryWater(@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, String waterType) {
  		
  		if ("list".equals(type)) {
  			PageHelper.startPage(pageNumber, pageSize);
  		}
  
  		if (!Strings.isNullOrEmpty(waterType)) {// 流水类型可传多个参数，用逗号隔开
  			List<String> waterTypeList = Arrays.asList(waterType.split(","));
  			params.put("waterType", waterTypeList);
  		}
  
  		List<EcmMzfWater> waterList = agentService.getWaterList(params);
  		int total = agentService.getWaterCount(params);
  
  		Map<String, Object> map = Maps.newHashMap();
  		map.put("waterList", waterList);
  		map.put("total", total);
  
  		return SettlementUtil.success(map);
  
  	}
focal_method.class_method_signature: WaterController.queryWater(@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, String waterType)
focal_method.full_signature: @PostMapping("/querywater") public ResBodyData queryWater(@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, String waterType)
focal_method.identifier: queryWater
focal_method.invocations: equals startPage isNullOrEmpty asList split put getWaterList getWaterCount newHashMap put put success
focal_method.modifiers: @PostMapping("/querywater") public
focal_method.parameters: (@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, String waterType)
focal_method.return: ResBodyData
focal_method.signature: ResBodyData queryWater(@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, String waterType)