“djh”
2025-03-17 47d330d27fb88e85a40e64e5423f73b0b29c088e
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
29
30
31
32
33
34
35
36
37
38
39
<?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.gkhy.sign.mapper.SignatureTypeMapper">
 
    <sql id="selectType">
        SELECT
            `id`,
            `type_name`,
            `del_flag`,
            `create_by`,
            `create_time`,
            `update_by`,
            `update_time`
        FROM
            signature_type
    </sql>
 
    <delete id="deleteTypeIds">
        update signature_type set del_flag = 2 where id= #{ids}
    </delete>
 
 
    <select id="selectTypeList" resultType="com.gkhy.sign.entity.SignatureType">
        <include refid="selectType"/>
        <where>
            and del_flag = 0
            <if test="typeName != null and typeName !=''">
                and type_name = #{typeName}
            </if>
        </where>
    </select>
 
    <select id="selectByTypeName" resultType="com.gkhy.sign.entity.SignatureType">
        <include refid="selectType"/>
        where type_name =#{typeName} and del_flag = 0
    </select>
</mapper>