数据中心台账修改
This commit is contained in:
@@ -7,10 +7,10 @@ import java.util.Date;
|
||||
|
||||
/**
|
||||
* 配网运行指标统计-年表,配网监测指标数据质量统计-年表
|
||||
* @TableName r_dn_operating_y
|
||||
* @TableName r_dn_operating_index_y
|
||||
*/
|
||||
@Data
|
||||
public class RDnOperatingY implements Serializable {
|
||||
public class RDnOperatingIndexY implements Serializable {
|
||||
/**
|
||||
* 单位ID
|
||||
*/
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.njcn.device.pms.mapper.distribution;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.RDnOperatingY;
|
||||
import com.njcn.device.pms.pojo.po.RDnOperatingIndexY;
|
||||
import com.njcn.device.pms.pojo.vo.PwRDnOperatingIndexCommonVO;
|
||||
|
||||
import java.util.List;
|
||||
@@ -9,11 +9,11 @@ import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author jianghf
|
||||
* @description 针对表【r_dn_operating_y(配网运行指标统计-年表,配网监测指标数据质量统计-年表)】的数据库操作Mapper
|
||||
* @description 针对表【r_dn_operating_index_y(配网运行指标统计-年表,配网监测指标数据质量统计-年表)】的数据库操作Mapper
|
||||
* @createDate 2022-11-10 10:21:46
|
||||
* @Entity com.njcn.device.pms.pojo.po.RDnOperatingY
|
||||
*/
|
||||
public interface RDnOperatingYMapper extends BaseMapper<RDnOperatingY> {
|
||||
public interface RDnOperatingYMapper extends BaseMapper<RDnOperatingIndexY> {
|
||||
|
||||
List<PwRDnOperatingIndexCommonVO> getOperatingList(Map<String, Object> condMap);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
TRUNCATE ( sum( index_integrity_rate ) / count( index_integrity_rate ), 2 ) iir,
|
||||
is_unusual
|
||||
FROM
|
||||
r_dn_operating_y t
|
||||
r_dn_operating_index_y t
|
||||
<where>
|
||||
t.org_no IN
|
||||
<foreach collection="deptIdList" item="item" open="(" close=")" separator=",">
|
||||
@@ -61,7 +61,7 @@
|
||||
TRUNCATE ( sum( index_integrity_rate ) / count( index_integrity_rate ), 2 ) iir,
|
||||
is_unusual
|
||||
FROM
|
||||
r_dn_operating_y t
|
||||
r_dn_operating_index_y t
|
||||
<where>
|
||||
t.org_no IN
|
||||
<foreach collection="deptIdList" item="item" open="(" close=")" separator=",">
|
||||
@@ -90,7 +90,7 @@
|
||||
TRUNCATE ( sum( index_integrity_rate ) / count( index_integrity_rate ), 2 ) iir,
|
||||
is_unusual
|
||||
FROM
|
||||
r_dn_operating_y t
|
||||
r_dn_operating_index_y t
|
||||
<where>
|
||||
t.org_no IN
|
||||
<foreach collection="deptIdList" item="item" open="(" close=")" separator=",">
|
||||
@@ -153,7 +153,7 @@
|
||||
TRUNCATE ( sum( index_integrity_rate ) / count( index_integrity_rate ), 2 ) iir,
|
||||
is_unusual
|
||||
FROM
|
||||
r_dn_operating_q t
|
||||
r_dn_operating_index_q t
|
||||
<where>
|
||||
t.org_no IN
|
||||
<foreach collection="deptIdList" item="item" open="(" close=")" separator=",">
|
||||
@@ -179,7 +179,7 @@
|
||||
TRUNCATE ( sum( index_integrity_rate ) / count( index_integrity_rate ), 2 ) iir,
|
||||
is_unusual
|
||||
FROM
|
||||
r_dn_operating_q t
|
||||
r_dn_operating_index_q t
|
||||
<where>
|
||||
t.org_no IN
|
||||
<foreach collection="deptIdList" item="item" open="(" close=")" separator=",">
|
||||
@@ -208,7 +208,7 @@
|
||||
TRUNCATE ( sum( index_integrity_rate ) / count( index_integrity_rate ), 2 ) iir,
|
||||
is_unusual
|
||||
FROM
|
||||
r_dn_operating_q t
|
||||
r_dn_operating_index_q t
|
||||
<where>
|
||||
t.org_no IN
|
||||
<foreach collection="deptIdList" item="item" open="(" close=")" separator=",">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.distribution.RDnOperatingYMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.njcn.device.pms.pojo.po.RDnOperatingY">
|
||||
<resultMap id="BaseResultMap" type="com.njcn.device.pms.pojo.po.RDnOperatingIndexY">
|
||||
<id property="orgNo" column="org_no" jdbcType="VARCHAR"/>
|
||||
<id property="dataDate" column="data_date" jdbcType="DATE"/>
|
||||
<id property="measurementPointType" column="measurement_point_type" jdbcType="VARCHAR"/>
|
||||
@@ -55,11 +55,11 @@
|
||||
-- 数据准确率
|
||||
truncate((rdim1.data_right_rate + rdim2.data_right_rate + rdim3.data_right_rate) / 3, 2) as dataRightRate
|
||||
|
||||
from r_dn_operating_y rdim1
|
||||
from r_dn_operating_index_y rdim1
|
||||
|
||||
left join r_dn_operating_y rdim2
|
||||
left join r_dn_operating_index_y rdim2
|
||||
on rdim1.org_no = rdim2.org_no
|
||||
left join r_dn_operating_y rdim3
|
||||
left join r_dn_operating_index_y rdim3
|
||||
on rdim1.org_no = rdim3.org_no
|
||||
where 1 = 1
|
||||
<if test="startTime != null and startTime != ''">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.njcn.device.pms.service.distribution;
|
||||
|
||||
import com.njcn.device.pms.pojo.param.PwRDnOperatingParam;
|
||||
import com.njcn.device.pms.pojo.po.RDnOperatingY;
|
||||
import com.njcn.device.pms.pojo.po.RDnOperatingIndexY;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.njcn.device.pms.pojo.vo.PwRDnOperatingIndexCommonVO;
|
||||
|
||||
@@ -9,10 +9,10 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* @author jianghf
|
||||
* @description 针对表【r_dn_operating_y(配网运行指标统计-年表,配网监测指标数据质量统计-年表)】的数据库操作Service
|
||||
* @description 针对表【r_dn_operating_index_y(配网运行指标统计-年表,配网监测指标数据质量统计-年表)】的数据库操作Service
|
||||
* @createDate 2022-11-10 10:21:46
|
||||
*/
|
||||
public interface RDnOperatingYService extends IService<RDnOperatingY> {
|
||||
public interface RDnOperatingYService extends IService<RDnOperatingIndexY> {
|
||||
|
||||
List<PwRDnOperatingIndexCommonVO> getOperatingList(PwRDnOperatingParam pwRDnOperatingParam);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.exception.BusinessException;
|
||||
import com.njcn.device.pms.pojo.param.PwRDnOperatingParam;
|
||||
import com.njcn.device.pms.pojo.po.RDnOperatingY;
|
||||
import com.njcn.device.pms.pojo.po.RDnOperatingIndexY;
|
||||
import com.njcn.device.pms.pojo.vo.PwRDnOperatingIndexCommonVO;
|
||||
import com.njcn.device.pms.service.distribution.RDnOperatingYService;
|
||||
import com.njcn.device.pms.mapper.distribution.RDnOperatingYMapper;
|
||||
@@ -13,7 +13,6 @@ import com.njcn.system.api.DicDataFeignClient;
|
||||
import com.njcn.system.enums.DicDataEnum;
|
||||
import com.njcn.user.api.DeptFeignClient;
|
||||
import com.njcn.user.pojo.dto.DeptDTO;
|
||||
import com.njcn.web.utils.WebUtil;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@@ -24,12 +23,12 @@ import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @author jianghf
|
||||
* @description 针对表【r_dn_operating_y(配网运行指标统计-年表,配网监测指标数据质量统计-年表)】的数据库操作Service实现
|
||||
* @description 针对表【r_dn_operating_index_y(配网运行指标统计-年表,配网监测指标数据质量统计-年表)】的数据库操作Service实现
|
||||
* @createDate 2022-11-10 10:21:46
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class RDnOperatingYServiceImpl extends ServiceImpl<RDnOperatingYMapper, RDnOperatingY>
|
||||
public class RDnOperatingYServiceImpl extends ServiceImpl<RDnOperatingYMapper, RDnOperatingIndexY>
|
||||
implements RDnOperatingYService{
|
||||
|
||||
private final DicDataFeignClient dicDataFeignClient;
|
||||
|
||||
Reference in New Issue
Block a user