用户关锁
This commit is contained in:
parent
32ad4e050e
commit
03d804812d
@ -38,6 +38,14 @@ public interface OperationsFeignClient {
|
|||||||
@GetMapping("/ebikeBikeInfo/api/openLock")
|
@GetMapping("/ebikeBikeInfo/api/openLock")
|
||||||
JsonResult<?> openLock(@RequestParam("bikeCode")String bikeCode);
|
JsonResult<?> openLock(@RequestParam("bikeCode")String bikeCode);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户开锁
|
||||||
|
*
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@GetMapping("/ebikeBikeInfo/api/lock")
|
||||||
|
JsonResult<?> lock(@RequestParam("bikeCode")String bikeCode);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户获取车辆详情及其计费规则
|
* 用户获取车辆详情及其计费规则
|
||||||
*
|
*
|
||||||
|
|||||||
@ -112,6 +112,17 @@ public class EbikeBikeInfoController {
|
|||||||
return JsonResult.success();
|
return JsonResult.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户关锁
|
||||||
|
*
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@GetMapping("/api/lock")
|
||||||
|
public JsonResult<?> lock(@RequestParam("bikeCode") String bikeCode) {
|
||||||
|
ebikeBikeInfoService.lock(bikeCode);
|
||||||
|
return JsonResult.success();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户获取车辆详情
|
* 用户获取车辆详情
|
||||||
|
|||||||
@ -81,4 +81,10 @@ public interface EbikeBikeInfoService extends IService<EbikeBikeInfo> {
|
|||||||
* @return 详情
|
* @return 详情
|
||||||
*/
|
*/
|
||||||
EbikeUserBikeInfo bikeInfo(String bikeCode);
|
EbikeUserBikeInfo bikeInfo(String bikeCode);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户关锁
|
||||||
|
* @param bikeCode 车辆编号
|
||||||
|
*/
|
||||||
|
void lock(String bikeCode);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -384,6 +384,11 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void lock(String bikeCode) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
static EbikeSpecialDay getEbikeSpecialDay(List<EbikeSpecialDay> ebikeSpecialDays) {
|
static EbikeSpecialDay getEbikeSpecialDay(List<EbikeSpecialDay> ebikeSpecialDays) {
|
||||||
LocalDate today = LocalDate.now();
|
LocalDate today = LocalDate.now();
|
||||||
DayOfWeek dayOfWeek = today.getDayOfWeek();
|
DayOfWeek dayOfWeek = today.getDayOfWeek();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user