ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TParkingRecord.java
@@ -22,7 +22,6 @@ * @since 2024-08-08 */ @Data @EqualsAndHashCode(callSuper = false) @TableName("t_parking_record") @ApiModel(value="TParkingRecord对象", description="") public class TParkingRecord implements Serializable { ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TChargingPileServiceImpl.java
@@ -256,8 +256,10 @@ List<TChargingGun> list = chargingGunService.list(new LambdaQueryWrapper<TChargingGun>().eq(TChargingGun::getChargingPileId, chargingPile.getId()).eq(TChargingGun::getDelFlag, 0)); for (TChargingGun chargingGun : list) { chargingGun.setFullNumber(chargingPile.getCode() + chargingGun.getCode()); chargingGunService.updateById(chargingGun); TChargingGun chargingGun1 = new TChargingGun(); chargingGun1.setId(chargingGun.getId()); chargingGun1.setFullNumber(chargingPile.getCode() + chargingGun.getCode()); chargingGunService.updateById(chargingGun1); //下发硬件充电二维码 String code_prefix = "https://mxcd.zhinenganguan.com?No="; ruoyi-service/ruoyi-integration/src/main/java/com/ruoyi/integration/barrierGate/model/BaseResponse.java
@@ -1,12 +1,10 @@ package com.ruoyi.integration.barrierGate.model; import lombok.Data; /** * @author zhibing.pu * @Date 2024/9/5 11:29 */ @Data public class BaseResponse<T> { private Integer code; @@ -15,6 +13,38 @@ private T data; public Integer getCode() { return code; } public void setCode(Integer code) { this.code = code; } public String getMsg() { return msg; } public void setMsg(String msg) { this.msg = msg; } public T getData() { return data; } public void setData(T data) { this.data = data; } public BaseResponse() { } public BaseResponse(Integer code, String msg, T data) { this.code = code; this.msg = msg; this.data = data; } public static BaseResponse ok(){ return ok(new Object()); @@ -22,10 +52,7 @@ public static <T> BaseResponse<T> ok(T data){ BaseResponse baseResponse = new BaseResponse(); baseResponse.setCode(0); baseResponse.setData(data); baseResponse.setMsg("成功"); BaseResponse baseResponse = new BaseResponse(0, "成功", data); return baseResponse; } }