“djh”
2025-06-24 e0e136f627de2c724b84b02fda02376b53c9e97b
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?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.exam.system.mapper.CompanyBasicMapper">
    <update id="updateBasicById">
        UPDATE company_basic
        <set>
            <if test="companyId != null and companyId != ''" >
                company_id = #{companyId},
            </if>
            <if test="companyName != null and companyName != ''" >
                company_name = #{companyName},
            </if>
            <if test="basic != null and basic !=''" >
                basic = #{basic},
            </if>
            <if test="introduce != null and introduce != ''" >
                introduce = #{introduce},
            </if>
            <if test="target != null and target != ''" >
                target = #{target},
            </if>
            <if test="quality != null and quality != ''" >
                quality = #{quality},
            </if>
            <if test="activity != null and activity!=''" >
                activity = #{activity},
            </if>
            <if test="audit != null and audit != ''" >
                audit = #{audit},
            </if>
            <if test="epiboly != null and epiboly != ''" >
                epiboly = #{epiboly},
            </if>
            <if test="resource != null and resource != ''" >
                resource = #{resource},
            </if>
            <if test="delFlag != null and delFlag != ''" >
                del_flag = #{delFlag},
            </if>
            <if test="createBy != null" >
                create_by = #{createBy},
            </if>
            <if test="createTime != null" >
                create_time = #{createTime},
            </if>
            <if test="updateBy != null" >
                update_by = #{updateBy},
            </if>
            <if test="updateTime != null" >
                update_time = #{updateTime}
            </if>
        </set>
        where id = #{id}
    </update>
 
    <select id="selectCompanyBasicList" resultType="com.gkhy.exam.system.domain.CompanyBasic">
        SELECT
            `id`,
            `company_id`,
            `company_name`,
            `basic`,
            `introduce`,
            `target`,
            `quality`,
            `activity`,
            `audit`,
            `epiboly`,
            `resource`,
            `del_flag`,
            `create_by`,
            `create_time`,
            `update_by`,
            `update_time`
        FROM
            company_basic
        WHERE
            del_flag = 1
        <if test="companyId!=null and companyId != ''">
            and company_id = #{companyId}
        </if>
        ORDER BY
            create_time DESC
    </select>
</mapper>