Compare commits
No commits in common. "afdd119b3c9df2739c40fd4816760e91b6fe24c1897ea024a8613ea2761535fb" and "1f913038f09cdd1f2bec0e942491354df4ce7ea0ddfa26370884373392e7d00d" have entirely different histories.
afdd119b3c
...
1f913038f0
@ -4,7 +4,6 @@ import com.cdzy.common.model.request.PageParam;
|
||||
import com.cdzy.common.model.response.JsonResult;
|
||||
import com.cdzy.operations.model.dto.EbikeBikeInfoDto;
|
||||
import com.cdzy.operations.model.dto.EbikeDto;
|
||||
import com.cdzy.operations.model.dto.EbikeUserBikeInfo;
|
||||
import com.cdzy.operations.model.vo.EbikeBatchLaunchVo;
|
||||
import com.cdzy.operations.model.vo.EbikeBatchUnLaunchVo;
|
||||
import com.cdzy.operations.model.vo.EbikeBikeBindVo;
|
||||
@ -111,16 +110,4 @@ public class EbikeBikeInfoController {
|
||||
ebikeBikeInfoService.openLock(bikeCode);
|
||||
return JsonResult.success();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 用户获取车辆详情
|
||||
*
|
||||
* @return 结果
|
||||
*/
|
||||
@GetMapping("/api/bikeInfo")
|
||||
public JsonResult<?> bikeInfo(@RequestParam("bikeCode") String bikeCode) {
|
||||
EbikeUserBikeInfo info = ebikeBikeInfoService.bikeInfo(bikeCode);
|
||||
return JsonResult.success(info);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,50 +0,0 @@
|
||||
package com.cdzy.operations.model.dto;
|
||||
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 实体类。
|
||||
*
|
||||
* @author attiya
|
||||
* @since 2025-10-21
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Table("ebike_bike_info")
|
||||
public class EbikeUserBikeInfo implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
/**
|
||||
* 运营商ID
|
||||
*/
|
||||
private Long operatorId;
|
||||
|
||||
/**
|
||||
* 运营区ID
|
||||
*/
|
||||
private Long regionId;
|
||||
|
||||
/**
|
||||
* 运营区名称
|
||||
*/
|
||||
private String regionName;
|
||||
|
||||
/**
|
||||
* 车辆编号(与车辆二维码编号相同
|
||||
*/
|
||||
private String bikeCode;
|
||||
|
||||
|
||||
}
|
||||
@ -3,7 +3,6 @@ package com.cdzy.operations.service;
|
||||
import com.cdzy.common.model.request.PageParam;
|
||||
import com.cdzy.operations.model.dto.EbikeBikeInfoDto;
|
||||
import com.cdzy.operations.model.dto.EbikeDto;
|
||||
import com.cdzy.operations.model.dto.EbikeUserBikeInfo;
|
||||
import com.cdzy.operations.model.entity.EbikeBikeInfo;
|
||||
import com.cdzy.operations.model.vo.EbikeBatchLaunchVo;
|
||||
import com.cdzy.operations.model.vo.EbikeBatchUnLaunchVo;
|
||||
@ -74,11 +73,4 @@ public interface EbikeBikeInfoService extends IService<EbikeBikeInfo> {
|
||||
* @param bikeCode 车辆编号
|
||||
*/
|
||||
void openLock(String bikeCode);
|
||||
|
||||
/**
|
||||
* 用户获取车辆详情
|
||||
* @param bikeCode 车辆编号
|
||||
* @return 详情
|
||||
*/
|
||||
EbikeUserBikeInfo bikeInfo(String bikeCode);
|
||||
}
|
||||
|
||||
@ -7,7 +7,6 @@ import com.cdzy.operations.enums.*;
|
||||
import com.cdzy.operations.mapper.*;
|
||||
import com.cdzy.operations.model.dto.EbikeBikeInfoDto;
|
||||
import com.cdzy.operations.model.dto.EbikeDto;
|
||||
import com.cdzy.operations.model.dto.EbikeUserBikeInfo;
|
||||
import com.cdzy.operations.model.entity.*;
|
||||
import com.cdzy.operations.model.vo.*;
|
||||
import com.cdzy.operations.service.EbikeBikeInfoService;
|
||||
@ -283,14 +282,6 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
|
||||
|
||||
ebikeEcuInfoService.unLock(ebikeEcuInfo);
|
||||
|
||||
info.setUsageStatus(BikeUsageStatus.CYCLING);
|
||||
|
||||
this.mapper.update(info);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EbikeUserBikeInfo bikeInfo(String bikeCode) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user