Browse Source

#视频轮播配置功能

zhongwei
yang_shj 3 months ago
parent
commit
c36148d262
  1. 8
      hzims-service/equipment/src/main/java/com/hnac/hzims/history/service/impl/HistoryDeviceServiceImpl.java
  2. 5
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationVideoCarouselController.java
  3. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/VideoCarouselService.java
  4. 3
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/VideoCarouselServiceImpl.java

8
hzims-service/equipment/src/main/java/com/hnac/hzims/history/service/impl/HistoryDeviceServiceImpl.java

@ -212,16 +212,16 @@ public class HistoryDeviceServiceImpl implements IHistoryDeviceService {
// 返回结构 // 返回结构
return result.getData().entrySet().stream().map(entry->{ return result.getData().entrySet().stream().map(entry->{
HistoryDataVo history = new HistoryDataVo(); HistoryDataVo history = new HistoryDataVo();
if("firstAttr".equals(entry.getKey())){ if("firstAttrId".equals(entry.getKey())){
history.setAttrIndex(param.getFirstAttrId()); history.setAttrIndex(param.getFirstAttrId());
history.setAttrIndexName(param.getFirstAttrName()); history.setAttrIndexName(param.getFirstAttrName());
}else if("secondAttr".equals(entry.getKey())){ }else if("secondAttrId".equals(entry.getKey())){
history.setAttrIndex(param.getSecondAttrId()); history.setAttrIndex(param.getSecondAttrId());
history.setAttrIndexName(param.getSecondAttrName()); history.setAttrIndexName(param.getSecondAttrName());
}else if("thirdlyAttr".equals(entry.getKey())){ }else if("thirdlyAttrId".equals(entry.getKey())){
history.setAttrIndex(param.getThirdlyAttrId()); history.setAttrIndex(param.getThirdlyAttrId());
history.setAttrIndexName(param.getThirdlyAttrName()); history.setAttrIndexName(param.getThirdlyAttrName());
}else if("fourthAttr".equals(entry.getKey())){ }else if("fourthAttrId".equals(entry.getKey())){
history.setAttrIndex(param.getFourthAttrId()); history.setAttrIndex(param.getFourthAttrId());
history.setAttrIndexName(param.getFourthAttrName()); history.setAttrIndexName(param.getFourthAttrName());
}else{ }else{

5
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationVideoCarouselController.java

@ -34,9 +34,8 @@ public class StationVideoCarouselController extends BladeController {
@GetMapping("/query") @GetMapping("/query")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "查询站点视频轮播保存记录", notes = "传入VideoRecordEntity") @ApiOperation(value = "查询站点视频轮播保存记录", notes = "传入VideoRecordEntity")
public R query(@RequestParam("stationId") String stationId, public R query(@RequestParam("userId") String userId) {
@RequestParam("userId") String userId) { return R.data(videoCarouselService.videoCarousel(userId));
return R.data(videoCarouselService.videoCarousel(stationId,userId));
} }

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/VideoCarouselService.java

@ -10,5 +10,5 @@ import com.hnac.hzims.operational.station.vo.StationVideoCarouselVO;
public interface VideoCarouselService extends IService<VideoCarouselEntity> { public interface VideoCarouselService extends IService<VideoCarouselEntity> {
boolean submit(VideoCarouselEntity entity); boolean submit(VideoCarouselEntity entity);
StationVideoCarouselVO videoCarousel(String stationId, String userId); StationVideoCarouselVO videoCarousel(String userId);
} }

3
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/VideoCarouselServiceImpl.java

@ -58,12 +58,11 @@ public class VideoCarouselServiceImpl extends ServiceImpl<VideoCarouselMapper, V
/** /**
* 查询视频轮播保存记录 * 查询视频轮播保存记录
* @param stationId
* @param userId * @param userId
* @return * @return
*/ */
@Override @Override
public StationVideoCarouselVO videoCarousel(String stationId, String userId) { public StationVideoCarouselVO videoCarousel(String userId) {
VideoCarouselEntity videoCarousel = this.getOne(Wrappers.<VideoCarouselEntity>lambdaQuery() VideoCarouselEntity videoCarousel = this.getOne(Wrappers.<VideoCarouselEntity>lambdaQuery()
.eq(VideoCarouselEntity::getCreateUser,userId) .eq(VideoCarouselEntity::getCreateUser,userId)
); );

Loading…
Cancel
Save