组态功能开发
This commit is contained in:
@@ -2,6 +2,10 @@ package com.njcn.csdevice.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.csdevice.pojo.po.CsDataArray;
|
||||
import com.njcn.csdevice.pojo.vo.LineTargetVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -13,4 +17,6 @@ import com.njcn.csdevice.pojo.po.CsDataArray;
|
||||
*/
|
||||
public interface CsDataArrayMapper extends BaseMapper<CsDataArray> {
|
||||
|
||||
List<LineTargetVO> getDataArray(@Param("list") List<String> list);
|
||||
|
||||
}
|
||||
|
||||
@@ -2,6 +2,10 @@ package com.njcn.csdevice.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.csdevice.pojo.po.CsDataSet;
|
||||
import com.njcn.csdevice.pojo.vo.LineTargetVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -13,4 +17,6 @@ import com.njcn.csdevice.pojo.po.CsDataSet;
|
||||
*/
|
||||
public interface CsDataSetMapper extends BaseMapper<CsDataSet> {
|
||||
|
||||
List<LineTargetVO> getDataSet(@Param("modelId") String modelId);
|
||||
|
||||
}
|
||||
|
||||
@@ -2,12 +2,15 @@ package com.njcn.csdevice.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.csdevice.pojo.dto.DataArrayDTO;
|
||||
import com.njcn.csdevice.pojo.param.CsDevModelQueryListParm;
|
||||
import com.njcn.csdevice.pojo.param.CsDevModelQueryParm;
|
||||
import com.njcn.csdevice.pojo.po.CsDevModelPO;
|
||||
import com.njcn.csdevice.pojo.vo.CsDevModelPageVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
@@ -21,4 +24,6 @@ public interface CsDevModelMapper extends BaseMapper<CsDevModelPO> {
|
||||
Page<CsDevModelPageVO> getPage(Page<CsDevModelPageVO> returnpage,@Param("csDevModelQueryParm") CsDevModelQueryParm csDevModelQueryParm);
|
||||
|
||||
CsDevModelPageVO queryOne(@Param("csDevModelQueryListParm")CsDevModelQueryListParm csDevModelQueryListParm);
|
||||
|
||||
List<DataArrayDTO> getDataArrayByModelId(@Param("modelId")String modelId);
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
package com.njcn.csdevice.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.csdevice.pojo.dto.CsDictDTO;
|
||||
import com.njcn.csdevice.pojo.po.CsDictPO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* 接口文档访问地址:http://serverIP:port/swagger-ui.html
|
||||
* Date: 2023/4/3 14:53【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
public interface CsDictMapper extends BaseMapper<CsDictPO> {
|
||||
|
||||
CsDictDTO getOwnAndFatherData(@Param("name") String name);
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.csdevice.mapper.CsDataArrayMapper">
|
||||
|
||||
<select id="getDataArray" resultType="LineTargetVO">
|
||||
select
|
||||
pid,
|
||||
name,
|
||||
another_name anotherName,
|
||||
idx sort
|
||||
from
|
||||
cs_data_array
|
||||
where
|
||||
pid in
|
||||
<foreach collection='list' item='item' index="index" open='(' separator=',' close=')'>
|
||||
#{item}
|
||||
</foreach>
|
||||
group by pid,name,another_name,idx
|
||||
order by idx
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.csdevice.mapper.CsDataSetMapper">
|
||||
|
||||
<select id="getDataSet" resultType="LineTargetVO">
|
||||
select
|
||||
id,
|
||||
pid,
|
||||
name,
|
||||
another_name anotherName,
|
||||
idx sort
|
||||
from
|
||||
cs_data_set
|
||||
where
|
||||
pid = #{modelId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -74,4 +74,18 @@
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
<select id="getDataArrayByModelId" resultType="com.njcn.csdevice.pojo.dto.DataArrayDTO">
|
||||
select
|
||||
distinct t1.id dataSetId,t1.another_name dataSetName ,t2.name dataArrayName,t2.another_name dataArrayShowName
|
||||
from
|
||||
cs_dev_model t0
|
||||
left join cs_data_set t1 on
|
||||
t0.id = t1.pid
|
||||
left join cs_data_array t2 on
|
||||
t1.id = t2.pid
|
||||
where
|
||||
t0.id = #{modelId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user