Browse Source

资质汇总表--字段改动

wangxx 3 weeks ago
parent
commit
c03c1c6f71

+ 7 - 0
airport-admin/src/main/java/com/sundot/airport/web/controller/ledger/LedgerCertificateInfoController.java

@@ -98,6 +98,13 @@ public class LedgerCertificateInfoController extends BaseController {
98 98
         return toAjax(certificateInfoService.updateCertificateInfo(ledgerCertificateInfo));
99 99
     }
100 100
 
101
+    @PreAuthorize("@ss.hasPermi('ledger:certificate:remove')")
102
+    @Log(title = "证书信息", businessType = BusinessType.DELETE)
103
+    @DeleteMapping("/{id}")
104
+    public AjaxResult remove(@PathVariable Long id) {
105
+        return toAjax(certificateInfoService.deleteCertificateInfoById(id));
106
+    }
107
+
101 108
     /**
102 109
      * 删除证书信息
103 110
      */

+ 0 - 7
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerCertificateInfoMapper.java

@@ -59,13 +59,6 @@ public interface LedgerCertificateInfoMapper {
59 59
      */
60 60
     public int deleteCertificateInfoByIds(Long[] ids);
61 61
 
62
-    /**
63
-     * 根据身份证号查询证书信息
64
-     * 
65
-     * @param idCard 身份证号
66
-     * @return 证书信息
67
-     */
68
-    public LedgerCertificateInfo selectCertificateInfoByIdCard(String idCard);
69 62
 
70 63
     /**
71 64
      * 根据证书编号查询证书信息

+ 6 - 47
airport-ledger/src/main/resources/mapper/personnel/LedgerCertificateInfoMapper.xml

@@ -7,19 +7,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
7 7
     <resultMap type="LedgerCertificateInfo" id="CertificateInfoResult">
8 8
         <id     property="id"              column="id"              />
9 9
         <result property="tenantId"        column="tenant_id"       />
10
-        <result property="unitName"        column="unit_name"       />
11 10
         <result property="userId"          column="user_id"         />
12 11
         <result property="personName"      column="person_name"     />
13
-        <result property="gender"          column="gender"          />
14
-        <result property="birthDate"       column="birth_date"      />
15
-        <result property="idCard"          column="id_card"         />
16 12
         <result property="certLevel"       column="cert_level"      />
17 13
         <result property="issueDate"       column="issue_date"      />
18 14
         <result property="certNo"          column="cert_no"         />
19 15
         <result property="theoryScore"     column="theory_score"    />
20 16
         <result property="practiceScore"   column="practice_score"  />
21 17
         <result property="evalScore"       column="eval_score"      />
22
-        <result property="employmentType"  column="employment_type" />
23 18
         <result property="serviceMonths"   column="service_months"  />
24 19
         <result property="expiryDate"      column="expiry_date"     />
25 20
         <result property="status"          column="status"          />
@@ -33,9 +28,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
33 28
     </resultMap>
34 29
 
35 30
     <sql id="selectCertificateInfoVo">
36
-        select id, tenant_id, unit_name, user_id, person_name, gender, birth_date, id_card, 
31
+        select id, tenant_id,  user_id, person_name,
37 32
                cert_level, issue_date, cert_no, theory_score, practice_score, eval_score, 
38
-               employment_type, service_months, expiry_date, status, expire_days, remark,
33
+               service_months, expiry_date, status, expire_days, remark,
39 34
                create_by, create_time, update_by, update_time, del_flag
40 35
         from ledger_certificate_info
41 36
     </sql>
@@ -45,20 +40,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
45 40
         <where>  
46 41
             del_flag = '0'
47 42
             <if test="tenantId != null and tenantId != ''"> and tenant_id = #{tenantId}</if>
48
-            <if test="unitName != null and unitName != ''"> and unit_name like concat('%', #{unitName}, '%')</if>
49 43
             <if test="personName != null and personName != ''"> and person_name like concat('%', #{personName}, '%')</if>
50
-            <if test="gender != null and gender != ''"> and gender = #{gender}</if>
51
-            <if test="idCard != null and idCard != ''"> and id_card = #{idCard}</if>
52 44
             <if test="certLevel != null and certLevel != ''"> and cert_level = #{certLevel}</if>
53 45
             <if test="certNo != null and certNo != ''"> and cert_no = #{certNo}</if>
54
-            <if test="employmentType != null and employmentType != ''"> and employment_type = #{employmentType}</if>
55 46
             <if test="status != null and status != ''"> and status = #{status}</if>
56
-            <if test="params.beginBirthDate != null and params.beginBirthDate != ''">
57
-                and date_format(birth_date,'%Y%m%d') &gt;= date_format(#{params.beginBirthDate},'%Y%m%d')
58
-            </if>
59
-            <if test="params.endBirthDate != null and params.endBirthDate != ''">
60
-                and date_format(birth_date,'%Y%m%d') &lt;= date_format(#{params.endBirthDate},'%Y%m%d')
61
-            </if>
62 47
             <if test="params.beginIssueDate != null and params.beginIssueDate != ''">
63 48
                 and date_format(issue_date,'%Y%m%d') &gt;= date_format(#{params.beginIssueDate},'%Y%m%d')
64 49
             </if>
@@ -80,11 +65,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
80 65
         where id = #{id} and del_flag = '0'
81 66
     </select>
82 67
 
83
-    <select id="selectCertificateInfoByIdCard" parameterType="String" resultMap="CertificateInfoResult">
84
-        <include refid="selectCertificateInfoVo"/>
85
-        where id_card = #{idCard} and del_flag = '0' limit 1
86
-    </select>
87
-
88 68
     <select id="selectCertificateInfoByCertNo" parameterType="String" resultMap="CertificateInfoResult">
89 69
         <include refid="selectCertificateInfoVo"/>
90 70
         where cert_no = #{certNo} and del_flag = '0' limit 1
@@ -124,19 +104,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
124 104
         insert into ledger_certificate_info
125 105
         <trim prefix="(" suffix=")" suffixOverrides=",">
126 106
             <if test="tenantId != null and tenantId != ''">tenant_id,</if>
127
-            <if test="unitName != null and unitName != ''">unit_name,</if>
128 107
             <if test="userId != null">user_id,</if>
129 108
             <if test="personName != null and personName != ''">person_name,</if>
130
-            <if test="gender != null and gender != ''">gender,</if>
131
-            <if test="birthDate != null">birth_date,</if>
132
-            <if test="idCard != null and idCard != ''">id_card,</if>
133 109
             <if test="certLevel != null and certLevel != ''">cert_level,</if>
134 110
             <if test="issueDate != null">issue_date,</if>
135 111
             <if test="certNo != null and certNo != ''">cert_no,</if>
136 112
             <if test="theoryScore != null">theory_score,</if>
137 113
             <if test="practiceScore != null">practice_score,</if>
138 114
             <if test="evalScore != null">eval_score,</if>
139
-            <if test="employmentType != null and employmentType != ''">employment_type,</if>
140 115
             <if test="serviceMonths != null">service_months,</if>
141 116
             <if test="expiryDate != null">expiry_date,</if>
142 117
             <if test="status != null and status != ''">status,</if>
@@ -148,19 +123,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
148 123
          </trim>
149 124
         <trim prefix="values (" suffix=")" suffixOverrides=",">
150 125
             <if test="tenantId != null and tenantId != ''">#{tenantId},</if>
151
-            <if test="unitName != null and unitName != ''">#{unitName},</if>
152 126
             <if test="userId != null">#{userId},</if>
153 127
             <if test="personName != null and personName != ''">#{personName},</if>
154
-            <if test="gender != null and gender != ''">#{gender},</if>
155
-            <if test="birthDate != null">#{birthDate},</if>
156
-            <if test="idCard != null and idCard != ''">#{idCard},</if>
157 128
             <if test="certLevel != null and certLevel != ''">#{certLevel},</if>
158 129
             <if test="issueDate != null">#{issueDate},</if>
159 130
             <if test="certNo != null and certNo != ''">#{certNo},</if>
160 131
             <if test="theoryScore != null">#{theoryScore},</if>
161 132
             <if test="practiceScore != null">#{practiceScore},</if>
162 133
             <if test="evalScore != null">#{evalScore},</if>
163
-            <if test="employmentType != null and employmentType != ''">#{employmentType},</if>
164 134
             <if test="serviceMonths != null">#{serviceMonths},</if>
165 135
             <if test="expiryDate != null">#{expiryDate},</if>
166 136
             <if test="status != null and status != ''">#{status},</if>
@@ -176,19 +146,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
176 146
         update ledger_certificate_info
177 147
         <trim prefix="SET" suffixOverrides=",">
178 148
             <if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if>
179
-            <if test="unitName != null and unitName != ''">unit_name = #{unitName},</if>
180 149
             <if test="userId != null">user_id = #{userId},</if>
181 150
             <if test="personName != null and personName != ''">person_name = #{personName},</if>
182
-            <if test="gender != null and gender != ''">gender = #{gender},</if>
183
-            <if test="birthDate != null">birth_date = #{birthDate},</if>
184
-            <if test="idCard != null and idCard != ''">id_card = #{idCard},</if>
185 151
             <if test="certLevel != null and certLevel != ''">cert_level = #{certLevel},</if>
186 152
             <if test="issueDate != null">issue_date = #{issueDate},</if>
187 153
             <if test="certNo != null and certNo != ''">cert_no = #{certNo},</if>
188 154
             <if test="theoryScore != null">theory_score = #{theoryScore},</if>
189 155
             <if test="practiceScore != null">practice_score = #{practiceScore},</if>
190 156
             <if test="evalScore != null">eval_score = #{evalScore},</if>
191
-            <if test="employmentType != null and employmentType != ''">employment_type = #{employmentType},</if>
192 157
             <if test="serviceMonths != null">service_months = #{serviceMonths},</if>
193 158
             <if test="expiryDate != null">expiry_date = #{expiryDate},</if>
194 159
             <if test="status != null and status != ''">status = #{status},</if>
@@ -222,16 +187,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
222 187
 
223 188
     <insert id="batchInsertCertificateInfo" useGeneratedKeys="true" keyProperty="list.id">
224 189
         insert into ledger_certificate_info
225
-        (tenant_id, unit_name, user_id, person_name, gender, birth_date, id_card,
190
+        (tenant_id, user_id, person_name,
226 191
          cert_level, issue_date, cert_no, theory_score, practice_score, eval_score,
227
-         employment_type, service_months, expiry_date, status, expire_days, remark,
192
+         service_months, expiry_date, status, expire_days, remark,
228 193
          create_by, create_time, del_flag)
229 194
         values
230 195
         <foreach collection="list" item="item" separator=",">
231
-            (#{item.tenantId}, #{item.unitName}, #{item.userId}, #{item.personName},
232
-             #{item.gender}, #{item.birthDate}, #{item.idCard}, #{item.certLevel},
196
+            (#{item.tenantId}, #{item.userId}, #{item.personName}, #{item.certLevel},
233 197
              #{item.issueDate}, #{item.certNo}, #{item.theoryScore}, #{item.practiceScore},
234
-             #{item.evalScore}, #{item.employmentType}, #{item.serviceMonths},
198
+             #{item.evalScore}, #{item.serviceMonths},
235 199
              #{item.expiryDate}, #{item.status}, #{item.expireDays}, #{item.remark},
236 200
              #{item.createBy}, sysdate(), '0')
237 201
         </foreach>
@@ -241,19 +205,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
241 205
         <foreach collection="list" item="item" separator=";">
242 206
             update ledger_certificate_info
243 207
             set tenant_id = #{item.tenantId},
244
-                unit_name = #{item.unitName},
245 208
                 user_id = #{item.userId},
246 209
                 person_name = #{item.personName},
247
-                gender = #{item.gender},
248
-                birth_date = #{item.birthDate},
249
-                id_card = #{item.idCard},
250 210
                 cert_level = #{item.certLevel},
251 211
                 issue_date = #{item.issueDate},
252 212
                 cert_no = #{item.certNo},
253 213
                 theory_score = #{item.theoryScore},
254 214
                 practice_score = #{item.practiceScore},
255 215
                 eval_score = #{item.evalScore},
256
-                employment_type = #{item.employmentType},
257 216
                 service_months = #{item.serviceMonths},
258 217
                 expiry_date = #{item.expiryDate},
259 218
                 status = #{item.status},