|
@@ -117,7 +117,7 @@ public class StationService {
|
|
|
return datas;
|
|
|
}
|
|
|
|
|
|
- public void addStation(StationVO vo) throws Exception {
|
|
|
+ public Long addStation(StationVO vo) throws Exception {
|
|
|
QueryWrapper<CareStation> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.lambda().eq(CareStation::getName,vo.getName());
|
|
|
int count = this.careStationService.count(queryWrapper);
|
|
@@ -134,6 +134,7 @@ public class StationService {
|
|
|
if (!flag) {
|
|
|
throw new BDException("新增服务站失败!");
|
|
|
}
|
|
|
+ return careStation.getId();
|
|
|
}
|
|
|
|
|
|
private String getCode(){
|