xieb
2023-10-19 1dd5d8f8a616f5cf3caa7828d46989c7d3dcafc4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?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="cn.gistack.sm.point.mapper.PointMapper">
 
    <!--自定义分页列表查询-->
    <select id="selectPointPage" resultType="cn.gistack.sm.point.vo.PointVO">
        select * from sm_point
        where 1=1
        <if test="point.resGuid!=null and point.resGuid!=''">
            and res_guid like concat('%',#{point.resGuid},'%')
        </if>
        <if test="point.name!=null and point.name!=''">
            and name like concat('%',#{point.name},'%')
        </if>
        <if test="point.type!=null">
            and type = #{point.type}
        </if>
        <if test="point.picId!=null and point.picId!=''">
            and pic_id = #{point.picId}
        </if>
    </select>
 
    <!--删除考证表附件信息-->
    <delete id="deletePicByPicAttach">
        delete from sm_textual_research_attach where id = #{id}
    </delete>
 
</mapper>