|
@@ -16,7 +16,10 @@ import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* Crated by Zjy on 2020-04-22 9:45
|
|
@@ -154,11 +157,13 @@ public class PayBaseAccountController {
|
|
|
@GetMapping("/getAccountInfoByMetercode")
|
|
|
@ApiOperation("根据水表编码获取客户信息")
|
|
|
public AjaxMessage<List<AccountInfo>> getAccountInfoByMetercode(
|
|
|
- @ApiParam(value = "水表编码") @RequestParam("metercodes") List<String> metercodes){
|
|
|
- if(metercodes.size()>0){
|
|
|
- return new AjaxMessage<>(ResultStatus.OK,payBaseAccountService.getAccountInfoByMetercode(metercodes));
|
|
|
+ @ApiParam(value = "水表编码") Map<String,Object> args){
|
|
|
+ if(args.containsKey("metercodes")){
|
|
|
+ List<String> metercodes = (List<String>)args.get("metercodes");
|
|
|
+ if(metercodes.size() > 0){
|
|
|
+ return new AjaxMessage<>(ResultStatus.OK,payBaseAccountService.getAccountInfoByMetercode(metercodes));
|
|
|
+ }
|
|
|
}
|
|
|
return new AjaxMessage(ResultStatus.ERROR,"查询条件为空");
|
|
|
}
|
|
|
-
|
|
|
}
|