|
@@ -6,6 +6,7 @@ import com.bz.smart_city.commom.model.ResultStatus;
|
|
|
import com.bz.smart_city.dto.pay.*;
|
|
|
import com.bz.smart_city.entity.pay.PayBaseAccount;
|
|
|
import com.bz.smart_city.entity.pay.PayMeter;
|
|
|
+import com.bz.smart_city.entity.pay.archives.AccountInfo;
|
|
|
import com.bz.smart_city.service.pay.PayBaseAccountService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -150,5 +151,14 @@ public class PayBaseAccountController {
|
|
|
return new AjaxMessage(1,"未查询到有效数据","");
|
|
|
}
|
|
|
}
|
|
|
+ @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));
|
|
|
+ }
|
|
|
+ return new AjaxMessage(ResultStatus.ERROR,"查询条件为空");
|
|
|
+ }
|
|
|
|
|
|
}
|