物消息路由模块、物解析模块提供接口

This commit is contained in:
2023-08-14 21:08:03 +08:00
parent 4d34ba1403
commit 6a01f8e0b1
17 changed files with 138 additions and 14 deletions

View File

@@ -2,6 +2,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.param.DataArrayParam;
import com.njcn.csdevice.pojo.po.CsDataArray;
import com.njcn.csdevice.pojo.vo.EnergyTemplateVO;
import com.njcn.csdevice.pojo.vo.LineTargetVO;
@@ -28,4 +29,6 @@ public interface CsDataArrayMapper extends BaseMapper<CsDataArray> {
List<CsDataArray> getGroupData(@Param("id") String id);
List<EnergyTemplateVO> getArrayByGroup(@Param("list") List<String> list);
List<CsDataArray> findListByParam(@Param("param") DataArrayParam param);
}

View File

@@ -2,6 +2,9 @@ package com.njcn.csdevice.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.csdevice.pojo.po.CsLinePO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
*
@@ -12,4 +15,6 @@ import com.njcn.csdevice.pojo.po.CsLinePO;
* @version V1.0.0
*/
public interface CsLinePOMapper extends BaseMapper<CsLinePO> {
List<CsLinePO> findByNdid(@Param("id") String id);
}

View File

@@ -89,4 +89,22 @@
</foreach>
order by t1.sort
</select>
<select id="findListByParam" resultType="CsDataArray">
select
t4.*
from
cs_equipment_delivery t0
left join
cs_dev_model_relation t1 on t0.id = t1.dev_id
left join
cs_dev_model t2 on t1.model_id = t2.id
left join cs_data_set t3 on t3.pid = t2.id
left join cs_data_array t4 on t3.id = t4.pid
where
t0.ndid = #{param.id}
and t1.did = #{param.did}
and t3.cl_dev = #{param.cldId}
and t4.stat_method = #{param.statMethod}
</select>
</mapper>

View File

@@ -22,4 +22,18 @@
line_id, dev_id, `name`, `position`, vol_grade, pt_ratio, ct_ratio, `status`, create_by,
create_time, update_by, update_time
</sql>
<select id="findByNdid" resultType="CsLinePO">
select
t3.*
from
cs_equipment_delivery t0
left join cs_ledger t1 on
t0.id = t1.Id
left join cs_ledger t2 on
t1.Id = t2.Pid
left join cs_line t3 on t2.Id = t3.line_id
where
t0.ndid = #{id}
</select>
</mapper>