瀏覽代碼

漏检统计表-补充查询筛选条件

chenshudong 2 天之前
父節點
當前提交
f32de7f5cc

+ 31 - 0
airport-blocked/src/main/java/com/sundot/airport/blocked/domain/BlockedMissCheckStatistics.java

@@ -8,6 +8,7 @@ import org.apache.commons.lang3.builder.ToStringBuilder;
8 8
 import org.apache.commons.lang3.builder.ToStringStyle;
9 9
 import com.sundot.airport.common.annotation.Excel;
10 10
 import com.sundot.airport.common.core.domain.BaseEntity;
11
+import org.springframework.format.annotation.DateTimeFormat;
11 12
 
12 13
 /**
13 14
  * 漏检统计对象 blocked_miss_check_statistics
@@ -178,6 +179,20 @@ public class BlockedMissCheckStatistics extends BaseEntity {
178 179
     @ApiModelProperty("删除标志(0代表存在 1代表删除)")
179 180
     private String delFlag;
180 181
 
182
+    /**
183
+     * 查询开始日期
184
+     */
185
+    @JsonFormat(pattern = "yyyy-MM-dd")
186
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
187
+    private Date startDate;
188
+
189
+    /**
190
+     * 查询结束日期
191
+     */
192
+    @JsonFormat(pattern = "yyyy-MM-dd")
193
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
194
+    private Date endDate;
195
+
181 196
     public void setId(Long id) {
182 197
         this.id = id;
183 198
     }
@@ -450,6 +465,22 @@ public class BlockedMissCheckStatistics extends BaseEntity {
450 465
         return delFlag;
451 466
     }
452 467
 
468
+    public Date getStartDate() {
469
+        return startDate;
470
+    }
471
+
472
+    public void setStartDate(Date startDate) {
473
+        this.startDate = startDate;
474
+    }
475
+
476
+    public Date getEndDate() {
477
+        return endDate;
478
+    }
479
+
480
+    public void setEndDate(Date endDate) {
481
+        this.endDate = endDate;
482
+    }
483
+
453 484
     @Override
454 485
     public String toString() {
455 486
         return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)

+ 31 - 0
airport-blocked/src/main/resources/mapper/blocked/BlockedMissCheckStatisticsMapper.xml

@@ -99,19 +99,50 @@
99 99
                 '%')
100 100
             </if>
101 101
             <if test="terminalId != null ">and terminal_id = #{terminalId}</if>
102
+            <if test="terminalName != null  and terminalName != ''">and terminal_name like
103
+                concat('%', #{terminalName}, '%')
104
+            </if>
102 105
             <if test="areaId != null ">and area_id = #{areaId}</if>
106
+            <if test="areaName != null  and areaName != ''">and area_name like
107
+                concat('%', #{areaName}, '%')
108
+            </if>
103 109
             <if test="channelId != null ">and channel_id = #{channelId}</if>
110
+            <if test="channelName != null  and channelName != ''">and channel_name like
111
+                concat('%', #{channelName}, '%')
112
+            </if>
104 113
             <if test="reviewedUserId != null ">and reviewed_user_id = #{reviewedUserId}</if>
105 114
             <if test="reviewedUserName != null  and reviewedUserName != ''">and reviewed_user_name like concat('%',
106 115
                 #{reviewedUserName}, '%')
107 116
             </if>
108 117
             <if test="reviewUserId != null ">and review_user_id = #{reviewUserId}</if>
118
+            <if test="reviewUserName != null  and reviewUserName != ''">and review_user_name like
119
+                concat('%', #{reviewUserName}, '%')
120
+            </if>
109 121
             <if test="reviewDate != null ">and review_date = #{reviewDate}</if>
110 122
             <if test="missCheckTime != null ">and DATE_FORMAT(miss_check_time, '%Y-%m-%d %H:%i') =
111 123
                 DATE_FORMAT(#{missCheckTime}, '%Y-%m-%d %H:%i')
112 124
             </if>
113 125
             <if test="difficultyLevel != null  and difficultyLevel != ''">and difficulty_level = #{difficultyLevel}</if>
114 126
             <if test="gender != null  and gender != ''">and gender = #{gender}</if>
127
+            <if test="actingSupervisorId != null ">and acting_supervisor_id = #{actingSupervisorId}</if>
128
+            <if test="actingSupervisorName != null  and actingSupervisorName != ''">and acting_supervisor_name like
129
+                concat('%', #{actingSupervisorName}, '%')
130
+            </if>
131
+            <if test="missCheckItem != null  and missCheckItem != ''">and miss_check_item like
132
+                concat('%', #{missCheckItem}, '%')
133
+            </if>
134
+            <if test="supervisorId != null ">and supervisor_id = #{supervisorId}</if>
135
+            <if test="supervisorName != null  and supervisorName != ''">and supervisor_name like
136
+                concat('%', #{supervisorName}, '%')
137
+            </if>
138
+            <if test="teamLeaderId != null ">and team_leader_id = #{teamLeaderId}</if>
139
+            <if test="teamLeaderName != null  and teamLeaderName != ''">and team_leader_name like
140
+                concat('%', #{teamLeaderName}, '%')
141
+            </if>
142
+            <if test="startDate != null and endDate != null">
143
+                and (review_date >= #{startDate}
144
+                and review_date <![CDATA[ < ]]> date_add(#{endDate} , interval 1 day))
145
+            </if>
115 146
         </where>
116 147
         order by review_date desc, miss_check_time desc
117 148
     </select>