<?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.iailab.module.mcs.dao.StModelOutDao">
|
<select id="getAll" resultType="com.iailab.module.mcs.dto.StModelOutDTO">
|
select * from t_st_model_out where model_id = #{modelId}
|
order by sort
|
</select>
|
<delete id="deleteByModelId">
|
delete from t_st_model_out where model_id = #{modelId}
|
</delete>
|
<select id="getOutPoint" parameterType="map" resultType="com.iailab.module.mcs.dto.StModelOutDTO">
|
select t1.result_key,t1.is_write,t1.point_no,t1.disturbance_point_no
|
from t_st_model_out t1
|
left join t_st_model t2 on t2.id = t1.model_id
|
where t2.model_code = #{modelCode} and t1.is_write = '1'
|
order by t1.sort
|
</select>
|
|
</mapper>
|