Procházet zdrojové kódy

职业资格等级获取时间表开发

wangxx před 6 dny
rodič
revize
4114bcdc7f

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

@@ -194,6 +194,13 @@ public class LedgerTemplateController extends BaseController {
194 194
 //            "问题台账日期","问题台账内容","具体问题","处理人","班组","二次复核问题","是否完成整改"
195 195
 //        });
196 196
 
197
+        // 21. 职业资格等级获取时间表 (6列)
198
+        nm.put("qualificationLevel", "职业资格等级获取时间表");
199
+        hm.put("qualificationLevel", 2);
200
+        cm.put("qualificationLevel", new String[]{
201
+            "姓名","一级发证时间","二级发证时间","三级发证时间","四级发证时间","五级发证时间"
202
+        });
203
+
197 204
         KEY_TO_SHEET = Collections.unmodifiableMap(nm);
198 205
         KEY_TO_HEADS = Collections.unmodifiableMap(hm);
199 206
         KEY_TO_COLS  = Collections.unmodifiableMap(cm);

+ 17 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerQualificationLevel.java

@@ -3,6 +3,7 @@ package com.sundot.airport.ledger.domain;
3 3
 import java.util.Date;
4 4
 
5 5
 import com.baomidou.mybatisplus.annotation.IdType;
6
+import com.baomidou.mybatisplus.annotation.TableField;
6 7
 import com.baomidou.mybatisplus.annotation.TableId;
7 8
 import com.baomidou.mybatisplus.annotation.TableName;
8 9
 import com.fasterxml.jackson.annotation.JsonFormat;
@@ -70,6 +71,16 @@ public class LedgerQualificationLevel extends BaseEntity {
70 71
     @Excel(name = "同步标志(0=未同步;1=已同步)")
71 72
     private String syncFlag;
72 73
 
74
+    /** 查询参数 - 开始时间(非数据库字段) */
75
+    @TableField(exist = false)
76
+    @JsonFormat(pattern = "yyyy-MM-dd")
77
+    private Date beginTime;
78
+
79
+    /** 查询参数 - 结束时间(非数据库字段) */
80
+    @TableField(exist = false)
81
+    @JsonFormat(pattern = "yyyy-MM-dd")
82
+    private Date endTime;
83
+
73 84
     public Long getId() { return id; }
74 85
     public void setId(Long id) { this.id = id; }
75 86
 
@@ -123,4 +134,10 @@ public class LedgerQualificationLevel extends BaseEntity {
123 134
 
124 135
     public String getSyncFlag() { return syncFlag; }
125 136
     public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
137
+
138
+    public Date getBeginTime() { return beginTime; }
139
+    public void setBeginTime(Date beginTime) { this.beginTime = beginTime; }
140
+
141
+    public Date getEndTime() { return endTime; }
142
+    public void setEndTime(Date endTime) { this.endTime = endTime; }
126 143
 }

+ 4 - 4
airport-ledger/src/main/resources/mapper/ledger/LedgerQualificationLevelMapper.xml

@@ -41,11 +41,11 @@
41 41
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
42 42
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
43 43
         <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
44
-        <if test="params != null and params.beginTime != null and params.beginTime != ''">
45
-            AND create_time &gt;= #{params.beginTime}
44
+        <if test="beginTime != null">
45
+            AND create_time &gt;= #{beginTime}
46 46
         </if>
47
-        <if test="params != null and params.endTime != null and params.endTime != ''">
48
-            AND create_time &lt;= #{params.endTime}
47
+        <if test="endTime != null">
48
+            AND create_time &lt;= #{endTime}
49 49
         </if>
50 50
         ORDER BY id DESC
51 51
     </select>