houzhongjian
2024-07-23 a6de490948278991e47952e90671ddba4555e9a2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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>