2025-12-29 17:13:09 +08:00
|
|
|
package com.gunshi.project.ss.service;
|
2025-11-03 16:47:35 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
2026-01-14 13:48:18 +08:00
|
|
|
import com.gunshi.project.ss.common.model.StationNormalVo;
|
2025-12-29 17:13:09 +08:00
|
|
|
import com.gunshi.project.ss.common.model.so.JcskSyBPageSo;
|
|
|
|
|
import com.gunshi.project.ss.common.model.vo.HomeJcskSYBVo;
|
|
|
|
|
import com.gunshi.project.ss.common.mapper.JcskSyBMapper;
|
|
|
|
|
import com.gunshi.project.ss.common.model.JcskSyB;
|
2025-11-03 16:47:35 +08:00
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
|
|
@Slf4j
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public class JcskSyBService extends ServiceImpl<JcskSyBMapper, JcskSyB> {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Page<JcskSyB> pageQuery(JcskSyBPageSo page) {
|
|
|
|
|
LambdaQueryWrapper<JcskSyB> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
|
|
|
|
|
if(ObjectUtils.isNotNull(page.getMpcd())){
|
|
|
|
|
queryWrapper.like(JcskSyB::getMpcd,page.getMpcd());
|
|
|
|
|
}
|
|
|
|
|
if(ObjectUtils.isNotNull(page.getDm())){
|
|
|
|
|
queryWrapper.like(JcskSyB::getDm,page.getDm());
|
|
|
|
|
}
|
|
|
|
|
Page<JcskSyB> res = this.page(page.getPageSo().toPage(), queryWrapper);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<HomeJcskSYBVo> getDetailsAndMonitoringDataList() {
|
|
|
|
|
return baseMapper.getDetailsAndMonitoringDataList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public HomeJcskSYBVo getDetailsById(String id) {
|
|
|
|
|
return baseMapper.getDetailsById(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<String> getDvcdByProfileCode(String profileCode) {
|
|
|
|
|
|
|
|
|
|
return this.baseMapper.getDvcdByProfileCode(profileCode);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDvcdByStcdAndMpcd(String stcd, String mpcd) {
|
|
|
|
|
return this.baseMapper.selectDvcdByStcdAndMpcd(stcd,mpcd);
|
|
|
|
|
}
|
2025-12-10 17:04:37 +08:00
|
|
|
|
|
|
|
|
public List<String> getAllDvcd() {
|
|
|
|
|
return this.baseMapper.selectAllDvcd();
|
|
|
|
|
}
|
2026-01-14 13:48:18 +08:00
|
|
|
|
|
|
|
|
public List<StationNormalVo> queryNormalList() {
|
|
|
|
|
return baseMapper.queryNormalList();
|
|
|
|
|
}
|
2025-11-03 16:47:35 +08:00
|
|
|
}
|