组态功能
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.njcn.csdevice.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.csdevice.pojo.dto.DataArrayDTO;
|
||||
import com.njcn.csdevice.pojo.po.CsDataArray;
|
||||
import com.njcn.csdevice.pojo.vo.LineTargetVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
@@ -19,4 +20,6 @@ public interface CsDataArrayMapper extends BaseMapper<CsDataArray> {
|
||||
|
||||
List<LineTargetVO> getDataArray(@Param("list") List<String> list);
|
||||
|
||||
List<DataArrayDTO> getData(@Param("list") List<String> list);
|
||||
|
||||
}
|
||||
|
||||
@@ -19,4 +19,26 @@
|
||||
order by idx
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="getData" resultType="DataArrayDTO">
|
||||
select
|
||||
t1.another_name dataSetName,
|
||||
t0.name dataArrayName,
|
||||
t0.another_name dataArrayShowName,
|
||||
group_concat(distinct t0.stat_method) statMethod,
|
||||
group_concat(distinct t0.phase) phase
|
||||
from
|
||||
cs_data_array t0
|
||||
left join cs_data_set t1 on t0.pid = t1.id
|
||||
where
|
||||
t1.id IN
|
||||
<foreach collection='list' item='item' index="index" open='(' separator=',' close=')'>
|
||||
#{item}
|
||||
</foreach>
|
||||
group by t1.another_name,t0.name,t0.another_name
|
||||
order by convert (substring_index(group_concat(distinct t0.sort),',',-1),unsigned)
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user