字典数据返回调整

This commit is contained in:
2023-08-11 10:07:06 +08:00
parent f82909ccd2
commit 6df90a9002
2 changed files with 35 additions and 9 deletions

View File

@@ -42,10 +42,10 @@ public class EleEpdPqdVO implements Serializable {
private String unit;
@ApiModelProperty(value = "数据开始谐波次数")
private Integer harmStart;
private Double harmStart;
@ApiModelProperty(value = "数据结束谐波次数")
private Integer harmEnd;
private Double harmEnd;
@ApiModelProperty(value = "统计方式")
private String statMethod;

View File

@@ -3,10 +3,36 @@
<mapper namespace="com.njcn.system.mapper.EleEpdPqdMapper">
<select id="page" resultType="EleEpdPqdVO">
SELECT
select
sdd.Name dataTypeName,
ele_epd_pqd.*
FROM
ele_epd_pqd.Id,
ele_epd_pqd.Name,
ele_epd_pqd.Other_Name otherName,
ele_epd_pqd.Show_Name showName,
ele_epd_pqd.Sort,
ele_epd_pqd.`Type` ,
ele_epd_pqd.Phase ,
ele_epd_pqd.Unit ,
case when ele_epd_pqd.Harm_Start = 1 then 0.5 else ele_epd_pqd.Harm_Start end harmStart,
case when ele_epd_pqd.Harm_Start = 1 then 49.5 else ele_epd_pqd.Harm_End end harmEnd ,
ele_epd_pqd.Stat_Method statMethod,
ele_epd_pqd.Class_Id classId,
ele_epd_pqd.System_Type systemType,
ele_epd_pqd.data_type dataType,
ele_epd_pqd.tran_flag tranFlag,
ele_epd_pqd.tran_rule tranRule,
ele_epd_pqd.event_type eventType,
ele_epd_pqd.store_flag storeFlag,
ele_epd_pqd.cur_sts curSts,
ele_epd_pqd.ctl_sts ctlSts,
ele_epd_pqd.max_num maxNum,
ele_epd_pqd.min_num minNum,
ele_epd_pqd.set_value setValue,
ele_epd_pqd.strlen ,
ele_epd_pqd.default_value defaultValue,
ele_epd_pqd.resources_id resourcesId,
ele_epd_pqd.status
from
ele_epd_pqd ele_epd_pqd
left join
sys_dict_data sdd