DepInfoMapper.xml
11.4 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?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.chinagas.modules.system.mapper.DepInfoMapper">
<insert id="insertDepInfo" parameterType="com.chinagas.api.system.domain.DepInfo" useGeneratedKeys="true" keyProperty="depId">
insert into dep_info(
<!-- <if test="depId != null and depId != ''" > dep_id,</if>-->
<if test="depName != null and depName != ''" > dep_name,</if>
<if test="depCode != null and depCode != ''" > dep_code,</if>
<if test="parentDepId != null and parentDepId != ''" > parent_dep_id,</if>
<if test="depAddress != null and depAddress != ''" > dep_address,</if>
<if test="depTel != null and depTel != ''" > dep_tel,</if>
<if test="depMail != null and depMail != ''" > dep_mail,</if>
<if test="depType != null and depType != ''" > dep_type,</if>
<if test="status != null and status != ''" > status,</if>
<if test="startTime != null "> start_time,</if>
<if test="endTime != null " > end_time,</if>
<if test="crtDate != null " > crt_date,</if>
<if test="crtName != null and crtName != ''" > crt_name,</if>
<if test="lstupdtName != null and lstupdtName != ''" > lstupdt_name,</if>
<if test="attribute1 != null and attribute1 != ''" > attribute1,</if>
<if test="attribute2 != null and attribute2 != ''" > attribute2,</if>
<if test="attribute3 != null and attribute3 != ''" > attribute3,</if>
<if test="attribute4 != null and attribute4 != ''" > attribute4,</if>
<if test="attribute5 != null and attribute5 != ''" > attribute5,</if>
<if test="attribute6 != null and attribute6 != ''" > attribute6,</if>
<if test="attribute7 != null and attribute7 != ''" > attribute7,</if>
<if test="attribute8 != null and attribute8 != ''" > attribute8,</if>
<if test="attribute9 != null and attribute9 != ''" > attribute9,</if>
<if test="attribute10 != null and attribute10 != ''" > attribute10,</if>
<if test="attribute11 != null and attribute11 != ''" > attribute11,</if>
<if test="attribute12 != null and attribute12 != ''" > attribute12,</if>
<if test="attribute13 != null and attribute13 != ''" > attribute13,</if>
<if test="attribute14 != null and attribute14 != ''" > attribute14,</if>
<if test="attribute15 != null and attribute15 != ''" > attribute15,</if>
<if test="attribute16 != null and attribute16 != ''" > attribute16,</if>
<if test="attribute17 != null and attribute17 != ''" > attribute17,</if>
<if test="attribute18 != null and attribute18 != ''" > attribute18,</if>
<if test="attribute19 != null and attribute19 != ''" > attribute19,</if>
<if test="attribute20 != null and attribute20 != ''" > attribute20,</if>
<if test="cgDeptPath != null and cgDeptPath != ''" > cg_dept_path,</if>
<if test="depSName != null and depSName != ''" > dep_s_name,</if>
<if test="setid != null and setid != ''" > setid,</if>
<if test="cgGintDeptLevel!= null and cgGintDeptLevel!= ''" > cg_gint_dept_level,</if>
<if test="cgDeptSort != null and cgDeptSort != ''" > cg_dept_sort,</if>
<if test="cgDeptCmpLvl != null and cgDeptCmpLvl != ''" > cg_dept_cmp_lvl,</if>
<if test="cgDeptArea != null and cgDeptArea != ''" > cg_dept_area,</if>
<if test="deptId != null and deptId != ''" > dept_id,</if>
<if test="effdt != null and effdt != ''" > effdt,</if>
<if test="effStatus != null and effStatus != ''" > eff_status,</if>
<if test="descrshort != null and descrshort != ''" > descrshort,</if>
<if test="descr != null and descr != ''" > descr,</if>
<if test="cgDeptType != null and cgDeptType != ''" > cg_dept_type,</if>
<if test="cgDeptParent != null and cgDeptParent != ''" > cg_dept_parent,</if>
<if test="company != null and company != ''" > company,</if>
<if test="companyDescr != null and companyDescr != ''" > company_descr,</if>
<if test="cgIsCompany != null and cgIsCompany != ''" > cg_is_company,</if>
<if test="cgDeptManagerId!= null and cgDeptManagerId!= ''" > cg_dept_manager_id,</if>
<if test="cgDeptVirtual != null and cgDeptVirtual != ''" > cg_dept_virtual,</if>
<if test="setidDept != null and setidDept != ''" > setid_dept,</if>
<if test="deptid2 != null and deptid2 != ''" > deptid2,</if>
<if test="descr2 != null and descr2 != ''" > descr2,</if>
<if test="setidLocation != null and setidLocation != ''" > setid_location,</if>
<if test="location != null and location != ''" > location,</if>
<if test="managerId != null and managerId != ''" > manager_id,</if>
<if test="cgManJbcdDescr != null and cgManJbcdDescr != ''" > cg_man_jbcd_descr,</if>
<if test="cgDeptAddr != null and cgDeptAddr != ''" > cg_dept_addr,</if>
<if test="lastupddttm != null and lastupddttm != ''" > lastupddttm,</if>
<if test="uuid != null and uuid != ''" > uuid,</if>
lstupdt_date
) values(
<!-- <if test="depId != null and depId != ''" > #{dep_id},</if>-->
<if test="depName != null and depName != ''" > #{depName },</if>
<if test="depCode != null and depCode != ''" > #{depCode },</if>
<if test="parentDepId != null and parentDepId != ''" > #{parentDepId },</if>
<if test="depAddress != null and depAddress != ''" > #{depAddress },</if>
<if test="depTel != null and depTel != ''" > #{depTel },</if>
<if test="depMail != null and depMail != ''" > #{depMail },</if>
<if test="depType != null and depType != ''" > #{depType },</if>
<if test="status != null and status != ''" > #{status },</if>
<if test="startTime != null " > #{startTime },</if>
<if test="endTime != null " > #{endTime },</if>
<if test="crtDate != null " > #{crtDate },</if>
<if test="crtName != null and crtName != ''" > #{crtName },</if>
<if test="lstupdtName != null and lstupdtName != ''" > #{lstupdtName },</if>
<if test="attribute1 != null and attribute1 != ''" > #{attribute1 },</if>
<if test="attribute2 != null and attribute2 != ''" > #{attribute2 },</if>
<if test="attribute3 != null and attribute3 != ''" > #{attribute3 },</if>
<if test="attribute4 != null and attribute4 != ''" > #{attribute4 },</if>
<if test="attribute5 != null and attribute5 != ''" > #{attribute5 },</if>
<if test="attribute6 != null and attribute6 != ''" > #{attribute6 },</if>
<if test="attribute7 != null and attribute7 != ''" > #{attribute7 },</if>
<if test="attribute8 != null and attribute8 != ''" > #{attribute8 },</if>
<if test="attribute9 != null and attribute9 != ''" > #{attribute9 },</if>
<if test="attribute10 != null and attribute10 != ''" > #{attribute10 },</if>
<if test="attribute11 != null and attribute11 != ''" > #{attribute11 },</if>
<if test="attribute12 != null and attribute12 != ''" > #{attribute12 },</if>
<if test="attribute13 != null and attribute13 != ''" > #{attribute13 },</if>
<if test="attribute14 != null and attribute14 != ''" > #{attribute14 },</if>
<if test="attribute15 != null and attribute15 != ''" > #{attribute15 },</if>
<if test="attribute16 != null and attribute16 != ''" > #{attribute16 },</if>
<if test="attribute17 != null and attribute17 != ''" > #{attribute17 },</if>
<if test="attribute18 != null and attribute18 != ''" > #{attribute18 },</if>
<if test="attribute19 != null and attribute19 != ''" > #{attribute19 },</if>
<if test="attribute20 != null and attribute20 != ''" > #{attribute20 },</if>
<if test="cgDeptPath != null and cgDeptPath != ''" > #{cgDeptPath },</if>
<if test="depSName != null and depSName != ''" > #{depSName },</if>
<if test="setid != null and setid != ''" > #{setid },</if>
<if test="cgGintDeptLevel!= null and cgGintDeptLevel!= ''" > #{cgGintDeptLevel },</if>
<if test="cgDeptSort != null and cgDeptSort != ''" > #{cgDeptSort },</if>
<if test="cgDeptCmpLvl != null and cgDeptCmpLvl != ''" > #{cgDeptCmpLvl },</if>
<if test="cgDeptArea != null and cgDeptArea != ''" > #{cgDeptArea },</if>
<if test="deptId != null and deptId != ''" > #{deptId },</if>
<if test="effdt != null and effdt != ''" > #{effdt },</if>
<if test="effStatus != null and effStatus != ''" > #{effStatus },</if>
<if test="descrshort != null and descrshort != ''" > #{descrshort },</if>
<if test="descr != null and descr != ''" > #{descr },</if>
<if test="cgDeptType != null and cgDeptType != ''" > #{cgDeptType },</if>
<if test="cgDeptParent != null and cgDeptParent != ''" > #{cgDeptParent },</if>
<if test="company != null and company != ''" > #{company },</if>
<if test="companyDescr != null and companyDescr != ''" > #{companyDescr },</if>
<if test="cgIsCompany != null and cgIsCompany != ''" > #{cgIsCompany },</if>
<if test="cgDeptManagerId!= null and cgDeptManagerId!= ''" > #{cgDeptManagerId },</if>
<if test="cgDeptVirtual != null and cgDeptVirtual != ''" > #{cgDeptVirtual },</if>
<if test="setidDept != null and setidDept != ''" > #{setidDept },</if>
<if test="deptid2 != null and deptid2 != ''" > #{deptid2 },</if>
<if test="descr2 != null and descr2 != ''" > #{descr2 },</if>
<if test="setidLocation != null and setidLocation != ''" > #{setidLocation },</if>
<if test="location != null and location != ''" > #{location },</if>
<if test="managerId != null and managerId != ''" > #{managerId },</if>
<if test="cgManJbcdDescr != null and cgManJbcdDescr != ''" > #{cgManJbcdDescr },</if>
<if test="cgDeptAddr != null and cgDeptAddr != ''" > #{cgDeptAddr },</if>
<if test="lastupddttm != null and lastupddttm != ''" > #{lastupddttm },</if>
<if test="uuid != null and uuid != ''" > #{uuid },</if>
sysdate()
)
</insert>
</mapper>