no message

This commit is contained in:
2025-09-02 14:37:45 +08:00
parent fc4e2223a8
commit 7871f8d437

View File

@ -35,18 +35,21 @@ public class SendDataController {
@ApiOperation(value = "接收需同步数据接口")
@PostMapping("/dataToBattery")
public Result sendDataToBattery(@RequestBody DataRceiveReq dataRceiveReq){
log.info("接收数据:{}",JSON.toJSONString(dataRceiveReq));
return Result.ok(sendDataService.recAndSend(dataRceiveReq));
}
@ApiOperation(value = "接收用户同步数据接口")
@GetMapping("/userinfo/{id}")
public Result sendUserInfoToBattery(@PathVariable String id){
log.info("/userinfo 接收用户数据:{}",id);
return Result.ok(sendDataService.sendUserInfoById(Long.parseLong(id)));
}
@ApiOperation(value = "接收运营商同步数据接口")
@GetMapping("/companyinfo/{id}")
public Map<String,String> sendCompanyInfoToBattery(@PathVariable String id){
log.info("/companyinfo 接收运营商数据:{}",id);
Map<String, String> map = sendDataService.sendCompanyInfoToBattery(Long.parseLong(id));
return map;
}
@ -54,12 +57,14 @@ public class SendDataController {
@ApiOperation(value = "接收门店同步数据接口")
@GetMapping("/storeinfo/{id}")
public Map<String,String> sendStoreInfoToBattery(@PathVariable String id){
log.info("/storeinfo 接收门店数据:{}",id);
return sendDataService.sendStoreInfoToBattery(Long.parseLong(id));
}
@ApiOperation(value = "接收充电同步数据接口")
@GetMapping("/subOrder/{id}")
public Map<String,String> sendSubOrderToBattery(@PathVariable String id){
log.info("/subOrder 接收充电数据:{}",id);
return sendDataService.sendSubOrderToBattery(Long.parseLong(id));
}