chenshudong 1 månad sedan
förälder
incheckning
90b8f1c241

+ 14 - 25
airport-admin/src/main/java/com/sundot/airport/web/controller/blocked/BlockedLuggagePieceDailyController.java

@@ -2,6 +2,7 @@ package com.sundot.airport.web.controller.blocked;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
+
5 6
 import org.springframework.security.access.prepost.PreAuthorize;
6 7
 import org.springframework.beans.factory.annotation.Autowired;
7 8
 import org.springframework.web.bind.annotation.GetMapping;
@@ -24,14 +25,13 @@ import com.sundot.airport.common.core.page.TableDataInfo;
24 25
 
25 26
 /**
26 27
  * 每日各时段查堵行李Controller
27
- * 
28
+ *
28 29
  * @author wangxx
29 30
  * @date 2026-04-13
30 31
  */
31 32
 @RestController
32 33
 @RequestMapping("/blocked/pieceDaily")
33
-public class BlockedLuggagePieceDailyController extends BaseController
34
-{
34
+public class BlockedLuggagePieceDailyController extends BaseController {
35 35
     @Autowired
36 36
     private IBlockedLuggagePieceDailyService blockedLuggagePieceDailyService;
37 37
 
@@ -40,8 +40,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
40 40
      */
41 41
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:list')")
42 42
     @GetMapping("/list")
43
-    public TableDataInfo list(BlockedLuggagePieceDaily blockedLuggagePieceDaily)
44
-    {
43
+    public TableDataInfo list(BlockedLuggagePieceDaily blockedLuggagePieceDaily) {
45 44
         startPage();
46 45
         List<BlockedLuggagePieceDaily> list = blockedLuggagePieceDailyService.selectBlockedLuggagePieceDailyList(blockedLuggagePieceDaily);
47 46
         return getDataTable(list);
@@ -53,8 +52,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
53 52
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:export')")
54 53
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.EXPORT)
55 54
     @PostMapping("/export")
56
-    public void export(HttpServletResponse response, BlockedLuggagePieceDaily blockedLuggagePieceDaily)
57
-    {
55
+    public void export(HttpServletResponse response, BlockedLuggagePieceDaily blockedLuggagePieceDaily) {
58 56
         List<BlockedLuggagePieceDaily> list = blockedLuggagePieceDailyService.selectBlockedLuggagePieceDailyList(blockedLuggagePieceDaily);
59 57
         ExcelUtil<BlockedLuggagePieceDaily> util = new ExcelUtil<BlockedLuggagePieceDaily>(BlockedLuggagePieceDaily.class);
60 58
         util.exportExcel(response, list, "每日各时段查堵行李数据");
@@ -66,8 +64,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
66 64
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:import')")
67 65
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.IMPORT)
68 66
     @PostMapping("/importData")
69
-    public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception
70
-    {
67
+    public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception {
71 68
         ExcelUtil<BlockedLuggagePieceDaily> util = new ExcelUtil<BlockedLuggagePieceDaily>(BlockedLuggagePieceDaily.class);
72 69
         List<BlockedLuggagePieceDaily> list = util.importExcel(file.getInputStream());
73 70
         String message = blockedLuggagePieceDailyService.importData(list, updateSupport);
@@ -78,8 +75,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
78 75
      * 获取导入模板
79 76
      */
80 77
     @PostMapping("/importTemplate")
81
-    public void importTemplate(HttpServletResponse response)
82
-    {
78
+    public void importTemplate(HttpServletResponse response) {
83 79
         ExcelUtil<BlockedLuggagePieceDaily> util = new ExcelUtil<BlockedLuggagePieceDaily>(BlockedLuggagePieceDaily.class);
84 80
         util.importTemplateExcel(response, "每日各时段查堵行李数据");
85 81
     }
@@ -89,8 +85,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
89 85
      */
90 86
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:query')")
91 87
     @GetMapping(value = "/{id}")
92
-    public AjaxResult getInfo(@PathVariable("id") Long id)
93
-    {
88
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
94 89
         return success(blockedLuggagePieceDailyService.selectBlockedLuggagePieceDailyById(id));
95 90
     }
96 91
 
@@ -99,11 +94,9 @@ public class BlockedLuggagePieceDailyController extends BaseController
99 94
      */
100 95
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:add')")
101 96
     @GetMapping("/checkDuplicate")
102
-    public AjaxResult checkDuplicate(BlockedLuggagePieceDaily blockedLuggagePieceDaily)
103
-    {
97
+    public AjaxResult checkDuplicate(BlockedLuggagePieceDaily blockedLuggagePieceDaily) {
104 98
         BlockedLuggagePieceDaily duplicate = blockedLuggagePieceDailyService.checkDuplicate(blockedLuggagePieceDaily);
105
-        if (duplicate != null)
106
-        {
99
+        if (duplicate != null) {
107 100
             return AjaxResult.warn("数据已存在,是否覆盖?", duplicate);
108 101
         }
109 102
         return success();
@@ -115,8 +108,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
115 108
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:add')")
116 109
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.INSERT)
117 110
     @PostMapping
118
-    public AjaxResult add(@RequestBody BlockedLuggagePieceDaily blockedLuggagePieceDaily)
119
-    {
111
+    public AjaxResult add(@RequestBody BlockedLuggagePieceDaily blockedLuggagePieceDaily) {
120 112
         blockedLuggagePieceDaily.setCreateBy(getUsername());
121 113
         return toAjax(blockedLuggagePieceDailyService.insertBlockedLuggagePieceDaily(blockedLuggagePieceDaily));
122 114
     }
@@ -127,8 +119,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
127 119
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:add')")
128 120
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.INSERT)
129 121
     @PostMapping("/addOrOverwrite")
130
-    public AjaxResult addOrOverwrite(@RequestBody BlockedLuggagePieceDaily blockedLuggagePieceDaily)
131
-    {
122
+    public AjaxResult addOrOverwrite(@RequestBody BlockedLuggagePieceDaily blockedLuggagePieceDaily) {
132 123
         blockedLuggagePieceDaily.setCreateBy(getUsername());
133 124
         blockedLuggagePieceDaily.setUpdateBy(getUsername());
134 125
         return toAjax(blockedLuggagePieceDailyService.insertOrUpdate(blockedLuggagePieceDaily));
@@ -140,8 +131,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
140 131
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:edit')")
141 132
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.UPDATE)
142 133
     @PutMapping
143
-    public AjaxResult edit(@RequestBody BlockedLuggagePieceDaily blockedLuggagePieceDaily)
144
-    {
134
+    public AjaxResult edit(@RequestBody BlockedLuggagePieceDaily blockedLuggagePieceDaily) {
145 135
         blockedLuggagePieceDaily.setUpdateBy(getUsername());
146 136
         return toAjax(blockedLuggagePieceDailyService.updateBlockedLuggagePieceDaily(blockedLuggagePieceDaily));
147 137
     }
@@ -152,8 +142,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
152 142
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:remove')")
153 143
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.DELETE)
154 144
     @DeleteMapping("/{ids}")
155
-    public AjaxResult remove(@PathVariable Long[] ids)
156
-    {
145
+    public AjaxResult remove(@PathVariable Long[] ids) {
157 146
         return toAjax(blockedLuggagePieceDailyService.deleteBlockedLuggagePieceDailyByIds(ids));
158 147
     }
159 148
 }

+ 60 - 94
airport-blocked/src/main/java/com/sundot/airport/blocked/domain/BlockedLuggagePieceDaily.java

@@ -2,6 +2,7 @@ package com.sundot.airport.blocked.domain;
2 2
 
3 3
 import java.math.BigDecimal;
4 4
 import java.util.Date;
5
+
5 6
 import com.fasterxml.jackson.annotation.JsonFormat;
6 7
 import io.swagger.annotations.ApiModelProperty;
7 8
 import org.apache.commons.lang3.builder.ToStringBuilder;
@@ -11,12 +12,11 @@ import com.sundot.airport.common.core.domain.BaseEntity;
11 12
 
12 13
 /**
13 14
  * 每日各时段查堵行李对象 blocked_luggage_piece_daily
14
- * 
15
+ *
15 16
  * @author wangxx
16 17
  * @date 2026-04-13
17 18
  */
18
-public class BlockedLuggagePieceDaily extends BaseEntity
19
-{
19
+public class BlockedLuggagePieceDaily extends BaseEntity {
20 20
     private static final long serialVersionUID = 1L;
21 21
 
22 22
     /** 主键ID */
@@ -102,201 +102,167 @@ public class BlockedLuggagePieceDaily extends BaseEntity
102 102
     @ApiModelProperty("删除标志")
103 103
     private String delFlag;
104 104
 
105
-    public void setId(Long id) 
106
-    {
105
+    public void setId(Long id) {
107 106
         this.id = id;
108 107
     }
109 108
 
110
-    public Long getId() 
111
-    {
109
+    public Long getId() {
112 110
         return id;
113 111
     }
114 112
 
115
-    public void setStatDate(Date statDate) 
116
-    {
113
+    public void setStatDate(Date statDate) {
117 114
         this.statDate = statDate;
118 115
     }
119 116
 
120
-    public Date getStatDate() 
121
-    {
117
+    public Date getStatDate() {
122 118
         return statDate;
123 119
     }
124 120
 
125
-    public void setBrigadeId(Long brigadeId) 
126
-    {
121
+    public void setBrigadeId(Long brigadeId) {
127 122
         this.brigadeId = brigadeId;
128 123
     }
129 124
 
130
-    public Long getBrigadeId() 
131
-    {
125
+    public Long getBrigadeId() {
132 126
         return brigadeId;
133 127
     }
134 128
 
135
-    public void setBrigadeName(String brigadeName) 
136
-    {
129
+    public void setBrigadeName(String brigadeName) {
137 130
         this.brigadeName = brigadeName;
138 131
     }
139 132
 
140
-    public String getBrigadeName() 
141
-    {
133
+    public String getBrigadeName() {
142 134
         return brigadeName;
143 135
     }
144 136
 
145
-    public void setTimePeriod(String timePeriod) 
146
-    {
137
+    public void setTimePeriod(String timePeriod) {
147 138
         this.timePeriod = timePeriod;
148 139
     }
149 140
 
150
-    public String getTimePeriod() 
151
-    {
141
+    public String getTimePeriod() {
152 142
         return timePeriod;
153 143
     }
154 144
 
155
-    public void setT1WalkBagCount(Integer t1WalkBagCount) 
156
-    {
145
+    public void setT1WalkBagCount(Integer t1WalkBagCount) {
157 146
         this.t1WalkBagCount = t1WalkBagCount;
158 147
     }
159 148
 
160
-    public Integer getT1WalkBagCount() 
161
-    {
149
+    public Integer getT1WalkBagCount() {
162 150
         return t1WalkBagCount;
163 151
     }
164 152
 
165
-    public void setT1WalkBlockedCount(Integer t1WalkBlockedCount) 
166
-    {
153
+    public void setT1WalkBlockedCount(Integer t1WalkBlockedCount) {
167 154
         this.t1WalkBlockedCount = t1WalkBlockedCount;
168 155
     }
169 156
 
170
-    public Integer getT1WalkBlockedCount() 
171
-    {
157
+    public Integer getT1WalkBlockedCount() {
172 158
         return t1WalkBlockedCount;
173 159
     }
174 160
 
175
-    public void setT2WalkBagCount(Integer t2WalkBagCount) 
176
-    {
161
+    public void setT2WalkBagCount(Integer t2WalkBagCount) {
177 162
         this.t2WalkBagCount = t2WalkBagCount;
178 163
     }
179 164
 
180
-    public Integer getT2WalkBagCount() 
181
-    {
165
+    public Integer getT2WalkBagCount() {
182 166
         return t2WalkBagCount;
183 167
     }
184 168
 
185
-    public void setT2WalkBlockedCount(Integer t2WalkBlockedCount) 
186
-    {
169
+    public void setT2WalkBlockedCount(Integer t2WalkBlockedCount) {
187 170
         this.t2WalkBlockedCount = t2WalkBlockedCount;
188 171
     }
189 172
 
190
-    public Integer getT2WalkBlockedCount() 
191
-    {
173
+    public Integer getT2WalkBlockedCount() {
192 174
         return t2WalkBlockedCount;
193 175
     }
194 176
 
195
-    public void setT1TravelBagCount(Integer t1TravelBagCount) 
196
-    {
177
+    public void setT1TravelBagCount(Integer t1TravelBagCount) {
197 178
         this.t1TravelBagCount = t1TravelBagCount;
198 179
     }
199 180
 
200
-    public Integer getT1TravelBagCount() 
201
-    {
181
+    public Integer getT1TravelBagCount() {
202 182
         return t1TravelBagCount;
203 183
     }
204 184
 
205
-    public void setT1TravelBlockedCount(Integer t1TravelBlockedCount) 
206
-    {
185
+    public void setT1TravelBlockedCount(Integer t1TravelBlockedCount) {
207 186
         this.t1TravelBlockedCount = t1TravelBlockedCount;
208 187
     }
209 188
 
210
-    public Integer getT1TravelBlockedCount() 
211
-    {
189
+    public Integer getT1TravelBlockedCount() {
212 190
         return t1TravelBlockedCount;
213 191
     }
214 192
 
215
-    public void setT2TravelBagCount(Integer t2TravelBagCount) 
216
-    {
193
+    public void setT2TravelBagCount(Integer t2TravelBagCount) {
217 194
         this.t2TravelBagCount = t2TravelBagCount;
218 195
     }
219 196
 
220
-    public Integer getT2TravelBagCount() 
221
-    {
197
+    public Integer getT2TravelBagCount() {
222 198
         return t2TravelBagCount;
223 199
     }
224 200
 
225
-    public void setT2TravelBlockedCount(Integer t2TravelBlockedCount) 
226
-    {
201
+    public void setT2TravelBlockedCount(Integer t2TravelBlockedCount) {
227 202
         this.t2TravelBlockedCount = t2TravelBlockedCount;
228 203
     }
229 204
 
230
-    public Integer getT2TravelBlockedCount() 
231
-    {
205
+    public Integer getT2TravelBlockedCount() {
232 206
         return t2TravelBlockedCount;
233 207
     }
234 208
 
235
-    public void setTotalLuggageCount(Integer totalLuggageCount) 
236
-    {
209
+    public void setTotalLuggageCount(Integer totalLuggageCount) {
237 210
         this.totalLuggageCount = totalLuggageCount;
238 211
     }
239 212
 
240
-    public Integer getTotalLuggageCount() 
241
-    {
213
+    public Integer getTotalLuggageCount() {
242 214
         return totalLuggageCount;
243 215
     }
244 216
 
245
-    public void setTotalBlockedCount(Integer totalBlockedCount) 
246
-    {
217
+    public void setTotalBlockedCount(Integer totalBlockedCount) {
247 218
         this.totalBlockedCount = totalBlockedCount;
248 219
     }
249 220
 
250
-    public Integer getTotalBlockedCount() 
251
-    {
221
+    public Integer getTotalBlockedCount() {
252 222
         return totalBlockedCount;
253 223
     }
254 224
 
255
-    public void setBlockedRate(BigDecimal blockedRate) 
256
-    {
225
+    public void setBlockedRate(BigDecimal blockedRate) {
257 226
         this.blockedRate = blockedRate;
258 227
     }
259 228
 
260
-    public BigDecimal getBlockedRate() 
261
-    {
229
+    public BigDecimal getBlockedRate() {
262 230
         return blockedRate;
263 231
     }
264 232
 
265
-    public void setDelFlag(String delFlag) 
266
-    {
233
+    public void setDelFlag(String delFlag) {
267 234
         this.delFlag = delFlag;
268 235
     }
269 236
 
270
-    public String getDelFlag() 
271
-    {
237
+    public String getDelFlag() {
272 238
         return delFlag;
273 239
     }
274 240
 
275 241
     @Override
276 242
     public String toString() {
277 243
         return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
278
-            .append("id", getId())
279
-            .append("statDate", getStatDate())
280
-            .append("brigadeId", getBrigadeId())
281
-            .append("brigadeName", getBrigadeName())
282
-            .append("timePeriod", getTimePeriod())
283
-            .append("t1WalkBagCount", getT1WalkBagCount())
284
-            .append("t1WalkBlockedCount", getT1WalkBlockedCount())
285
-            .append("t2WalkBagCount", getT2WalkBagCount())
286
-            .append("t2WalkBlockedCount", getT2WalkBlockedCount())
287
-            .append("t1TravelBagCount", getT1TravelBagCount())
288
-            .append("t1TravelBlockedCount", getT1TravelBlockedCount())
289
-            .append("t2TravelBagCount", getT2TravelBagCount())
290
-            .append("t2TravelBlockedCount", getT2TravelBlockedCount())
291
-            .append("totalLuggageCount", getTotalLuggageCount())
292
-            .append("totalBlockedCount", getTotalBlockedCount())
293
-            .append("blockedRate", getBlockedRate())
294
-            .append("delFlag", getDelFlag())
295
-            .append("createBy", getCreateBy())
296
-            .append("createTime", getCreateTime())
297
-            .append("updateBy", getUpdateBy())
298
-            .append("updateTime", getUpdateTime())
299
-            .append("remark", getRemark())
300
-            .toString();
244
+                .append("id", getId())
245
+                .append("statDate", getStatDate())
246
+                .append("brigadeId", getBrigadeId())
247
+                .append("brigadeName", getBrigadeName())
248
+                .append("timePeriod", getTimePeriod())
249
+                .append("t1WalkBagCount", getT1WalkBagCount())
250
+                .append("t1WalkBlockedCount", getT1WalkBlockedCount())
251
+                .append("t2WalkBagCount", getT2WalkBagCount())
252
+                .append("t2WalkBlockedCount", getT2WalkBlockedCount())
253
+                .append("t1TravelBagCount", getT1TravelBagCount())
254
+                .append("t1TravelBlockedCount", getT1TravelBlockedCount())
255
+                .append("t2TravelBagCount", getT2TravelBagCount())
256
+                .append("t2TravelBlockedCount", getT2TravelBlockedCount())
257
+                .append("totalLuggageCount", getTotalLuggageCount())
258
+                .append("totalBlockedCount", getTotalBlockedCount())
259
+                .append("blockedRate", getBlockedRate())
260
+                .append("delFlag", getDelFlag())
261
+                .append("createBy", getCreateBy())
262
+                .append("createTime", getCreateTime())
263
+                .append("updateBy", getUpdateBy())
264
+                .append("updateTime", getUpdateTime())
265
+                .append("remark", getRemark())
266
+                .toString();
301 267
     }
302 268
 }

+ 9 - 9
airport-blocked/src/main/java/com/sundot/airport/blocked/mapper/BlockedLuggagePieceDailyMapper.java

@@ -1,19 +1,19 @@
1 1
 package com.sundot.airport.blocked.mapper;
2 2
 
3 3
 import java.util.List;
4
+
4 5
 import com.sundot.airport.blocked.domain.BlockedLuggagePieceDaily;
5 6
 
6 7
 /**
7 8
  * 每日各时段查堵行李Mapper接口
8
- * 
9
+ *
9 10
  * @author wangxx
10 11
  * @date 2026-04-13
11 12
  */
12
-public interface BlockedLuggagePieceDailyMapper 
13
-{
13
+public interface BlockedLuggagePieceDailyMapper {
14 14
     /**
15 15
      * 查询每日行李过检查堵件数统计
16
-     * 
16
+     *
17 17
      * @param id 每日行李过检查堵件数统计主键
18 18
      * @return 每日行李过检查堵件数统计
19 19
      */
@@ -21,7 +21,7 @@ public interface BlockedLuggagePieceDailyMapper
21 21
 
22 22
     /**
23 23
      * 查询每日行李过检查堵件数统计列表
24
-     * 
24
+     *
25 25
      * @param blockedLuggagePieceDaily 每日行李过检查堵件数统计
26 26
      * @return 每日行李过检查堵件数统计集合
27 27
      */
@@ -29,7 +29,7 @@ public interface BlockedLuggagePieceDailyMapper
29 29
 
30 30
     /**
31 31
      * 新增每日行李过检查堵件数统计
32
-     * 
32
+     *
33 33
      * @param blockedLuggagePieceDaily 每日行李过检查堵件数统计
34 34
      * @return 结果
35 35
      */
@@ -37,7 +37,7 @@ public interface BlockedLuggagePieceDailyMapper
37 37
 
38 38
     /**
39 39
      * 修改每日行李过检查堵件数统计
40
-     * 
40
+     *
41 41
      * @param blockedLuggagePieceDaily 每日行李过检查堵件数统计
42 42
      * @return 结果
43 43
      */
@@ -45,7 +45,7 @@ public interface BlockedLuggagePieceDailyMapper
45 45
 
46 46
     /**
47 47
      * 删除每日行李过检查堵件数统计
48
-     * 
48
+     *
49 49
      * @param id 每日行李过检查堵件数统计主键
50 50
      * @return 结果
51 51
      */
@@ -53,7 +53,7 @@ public interface BlockedLuggagePieceDailyMapper
53 53
 
54 54
     /**
55 55
      * 批量删除每日行李过检查堵件数统计
56
-     * 
56
+     *
57 57
      * @param ids 需要删除的数据主键集合
58 58
      * @return 结果
59 59
      */

+ 12 - 12
airport-blocked/src/main/java/com/sundot/airport/blocked/service/IBlockedLuggagePieceDailyService.java

@@ -1,19 +1,19 @@
1 1
 package com.sundot.airport.blocked.service;
2 2
 
3 3
 import java.util.List;
4
+
4 5
 import com.sundot.airport.blocked.domain.BlockedLuggagePieceDaily;
5 6
 
6 7
 /**
7 8
  * 每日各时段查堵行李Service接口
8
- * 
9
+ *
9 10
  * @author wangxx
10 11
  * @date 2026-04-13
11 12
  */
12
-public interface IBlockedLuggagePieceDailyService 
13
-{
13
+public interface IBlockedLuggagePieceDailyService {
14 14
     /**
15 15
      * 查询每日各时段查堵行李
16
-     * 
16
+     *
17 17
      * @param id 每日各时段查堵行李主键
18 18
      * @return 每日各时段查堵行李
19 19
      */
@@ -21,7 +21,7 @@ public interface IBlockedLuggagePieceDailyService
21 21
 
22 22
     /**
23 23
      * 查询每日各时段查堵行李列表
24
-     * 
24
+     *
25 25
      * @param blockedLuggagePieceDaily 每日各时段查堵行李
26 26
      * @return 每日各时段查堵行李集合
27 27
      */
@@ -29,7 +29,7 @@ public interface IBlockedLuggagePieceDailyService
29 29
 
30 30
     /**
31 31
      * 新增每日各时段查堵行李
32
-     * 
32
+     *
33 33
      * @param blockedLuggagePieceDaily 每日各时段查堵行李
34 34
      * @return 结果
35 35
      */
@@ -37,7 +37,7 @@ public interface IBlockedLuggagePieceDailyService
37 37
 
38 38
     /**
39 39
      * 修改每日各时段查堵行李
40
-     * 
40
+     *
41 41
      * @param blockedLuggagePieceDaily 每日各时段查堵行李
42 42
      * @return 结果
43 43
      */
@@ -45,7 +45,7 @@ public interface IBlockedLuggagePieceDailyService
45 45
 
46 46
     /**
47 47
      * 批量删除每日各时段查堵行李
48
-     * 
48
+     *
49 49
      * @param ids 需要删除的每日各时段查堵行李主键集合
50 50
      * @return 结果
51 51
      */
@@ -53,7 +53,7 @@ public interface IBlockedLuggagePieceDailyService
53 53
 
54 54
     /**
55 55
      * 删除每日各时段查堵行李信息
56
-     * 
56
+     *
57 57
      * @param id 每日各时段查堵行李主键
58 58
      * @return 结果
59 59
      */
@@ -61,7 +61,7 @@ public interface IBlockedLuggagePieceDailyService
61 61
 
62 62
     /**
63 63
      * 导入每日各时段查堵行李数据
64
-     * 
64
+     *
65 65
      * @param list 数据列表
66 66
      * @param updateSupport 是否更新支持
67 67
      * @return 导入结果信息
@@ -70,7 +70,7 @@ public interface IBlockedLuggagePieceDailyService
70 70
 
71 71
     /**
72 72
      * 检查数据是否重复
73
-     * 
73
+     *
74 74
      * @param blockedLuggagePieceDaily 统计数据
75 75
      * @return 重复的数据,如果没有重复返回null
76 76
      */
@@ -78,7 +78,7 @@ public interface IBlockedLuggagePieceDailyService
78 78
 
79 79
     /**
80 80
      * 新增或更新每日各时段查堵行李(如果数据重复则覆盖更新)
81
-     * 
81
+     *
82 82
      * @param blockedLuggagePieceDaily 每日各时段查堵行李
83 83
      * @return 结果
84 84
      */

+ 62 - 100
airport-blocked/src/main/java/com/sundot/airport/blocked/service/impl/BlockedLuggagePieceDailyServiceImpl.java

@@ -4,6 +4,7 @@ import java.math.BigDecimal;
4 4
 import java.math.RoundingMode;
5 5
 import java.util.Date;
6 6
 import java.util.List;
7
+
7 8
 import cn.hutool.core.collection.CollUtil;
8 9
 import cn.hutool.core.util.ObjUtil;
9 10
 import cn.hutool.core.util.StrUtil;
@@ -20,13 +21,12 @@ import com.sundot.airport.system.service.ISysDeptService;
20 21
 
21 22
 /**
22 23
  * 每日各时段查堵行李Service业务层处理
23
- * 
24
+ *
24 25
  * @author wangxx
25 26
  * @date 2026-04-13
26 27
  */
27 28
 @Service
28
-public class BlockedLuggagePieceDailyServiceImpl implements IBlockedLuggagePieceDailyService 
29
-{
29
+public class BlockedLuggagePieceDailyServiceImpl implements IBlockedLuggagePieceDailyService {
30 30
     @Autowired
31 31
     private BlockedLuggagePieceDailyMapper blockedLuggagePieceDailyMapper;
32 32
 
@@ -35,38 +35,35 @@ public class BlockedLuggagePieceDailyServiceImpl implements IBlockedLuggagePiece
35 35
 
36 36
     /**
37 37
      * 查询每日各时段查堵行李
38
-     * 
38
+     *
39 39
      * @param id 每日各时段查堵行李主键
40 40
      * @return 每日各时段查堵行李
41 41
      */
42 42
     @Override
43
-    public BlockedLuggagePieceDaily selectBlockedLuggagePieceDailyById(Long id)
44
-    {
43
+    public BlockedLuggagePieceDaily selectBlockedLuggagePieceDailyById(Long id) {
45 44
         return blockedLuggagePieceDailyMapper.selectBlockedLuggagePieceDailyById(id);
46 45
     }
47 46
 
48 47
     /**
49 48
      * 查询每日各时段查堵行李列表
50
-     * 
49
+     *
51 50
      * @param blockedLuggagePieceDaily 每日各时段查堵行李
52 51
      * @return 每日各时段查堵行李
53 52
      */
54 53
     @Override
55
-    public List<BlockedLuggagePieceDaily> selectBlockedLuggagePieceDailyList(BlockedLuggagePieceDaily blockedLuggagePieceDaily)
56
-    {
54
+    public List<BlockedLuggagePieceDaily> selectBlockedLuggagePieceDailyList(BlockedLuggagePieceDaily blockedLuggagePieceDaily) {
57 55
         return blockedLuggagePieceDailyMapper.selectBlockedLuggagePieceDailyList(blockedLuggagePieceDaily);
58 56
     }
59 57
 
60 58
     /**
61 59
      * 新增每日各时段查堵行李
62
-     * 
60
+     *
63 61
      * @param blockedLuggagePieceDaily 每日各时段查堵行李
64 62
      * @return 结果
65 63
      */
66 64
     @Override
67 65
     @Transactional
68
-    public int insertBlockedLuggagePieceDaily(BlockedLuggagePieceDaily blockedLuggagePieceDaily)
69
-    {
66
+    public int insertBlockedLuggagePieceDaily(BlockedLuggagePieceDaily blockedLuggagePieceDaily) {
70 67
         // 根据大队名称填充ID
71 68
         fillBrigadeIdByName(blockedLuggagePieceDaily);
72 69
         calculateAndSetFields(blockedLuggagePieceDaily);
@@ -75,14 +72,13 @@ public class BlockedLuggagePieceDailyServiceImpl implements IBlockedLuggagePiece
75 72
 
76 73
     /**
77 74
      * 修改每日各时段查堵行李
78
-     * 
75
+     *
79 76
      * @param blockedLuggagePieceDaily 每日各时段查堵行李
80 77
      * @return 结果
81 78
      */
82 79
     @Override
83 80
     @Transactional
84
-    public int updateBlockedLuggagePieceDaily(BlockedLuggagePieceDaily blockedLuggagePieceDaily)
85
-    {
81
+    public int updateBlockedLuggagePieceDaily(BlockedLuggagePieceDaily blockedLuggagePieceDaily) {
86 82
         // 根据大队名称填充ID
87 83
         fillBrigadeIdByName(blockedLuggagePieceDaily);
88 84
         calculateAndSetFields(blockedLuggagePieceDaily);
@@ -91,41 +87,37 @@ public class BlockedLuggagePieceDailyServiceImpl implements IBlockedLuggagePiece
91 87
 
92 88
     /**
93 89
      * 批量删除每日各时段查堵行李
94
-     * 
90
+     *
95 91
      * @param ids 需要删除的每日各时段查堵行李主键
96 92
      * @return 结果
97 93
      */
98 94
     @Override
99
-    public int deleteBlockedLuggagePieceDailyByIds(Long[] ids)
100
-    {
95
+    public int deleteBlockedLuggagePieceDailyByIds(Long[] ids) {
101 96
         return blockedLuggagePieceDailyMapper.deleteBlockedLuggagePieceDailyByIds(ids);
102 97
     }
103 98
 
104 99
     /**
105 100
      * 删除每日各时段查堵行李信息
106
-     * 
101
+     *
107 102
      * @param id 每日各时段查堵行李主键
108 103
      * @return 结果
109 104
      */
110 105
     @Override
111
-    public int deleteBlockedLuggagePieceDailyById(Long id)
112
-    {
106
+    public int deleteBlockedLuggagePieceDailyById(Long id) {
113 107
         return blockedLuggagePieceDailyMapper.deleteBlockedLuggagePieceDailyById(id);
114 108
     }
115 109
 
116 110
     /**
117 111
      * 导入每日各时段查堵行李数据
118
-     * 
112
+     *
119 113
      * @param list 数据列表
120 114
      * @param isUpdateSupport 是否更新支持,如果已存在,则进行更新数据
121 115
      * @return 结果
122 116
      */
123 117
     @Transactional(rollbackFor = Exception.class)
124 118
     @Override
125
-    public String importData(List<BlockedLuggagePieceDaily> list, boolean isUpdateSupport)
126
-    {
127
-        if (CollUtil.isEmpty(list))
128
-        {
119
+    public String importData(List<BlockedLuggagePieceDaily> list, boolean isUpdateSupport) {
120
+        if (CollUtil.isEmpty(list)) {
129 121
             throw new ServiceException("导入每日各时段查堵行李数据不能为空!");
130 122
         }
131 123
 
@@ -133,52 +125,44 @@ public class BlockedLuggagePieceDailyServiceImpl implements IBlockedLuggagePiece
133 125
         int failureNum = 0;
134 126
         StringBuilder successMsg = new StringBuilder();
135 127
         StringBuilder failureMsg = new StringBuilder();
136
-        
137
-        for (BlockedLuggagePieceDaily data : list)
138
-        {
139
-            try
140
-            {
128
+
129
+        for (BlockedLuggagePieceDaily data : list) {
130
+            try {
141 131
                 // 根据大队名称填充ID
142 132
                 fillBrigadeIdByName(data);
143
-                
133
+
144 134
                 // 数据校验
145
-                if (ObjUtil.isNull(data.getStatDate()))
146
-                {
135
+                if (ObjUtil.isNull(data.getStatDate())) {
147 136
                     failureNum++;
148 137
                     failureMsg.append("<br/>" + failureNum + "、统计日期不能为空");
149 138
                     continue;
150 139
                 }
151
-                if (ObjUtil.isNull(data.getBrigadeId()))
152
-                {
140
+                if (ObjUtil.isNull(data.getBrigadeId())) {
153 141
                     failureNum++;
154 142
                     failureMsg.append("<br/>" + failureNum + "、大队ID不能为空");
155 143
                     continue;
156 144
                 }
157
-                if (StrUtil.isBlank(data.getTimePeriod()))
158
-                {
145
+                if (StrUtil.isBlank(data.getTimePeriod())) {
159 146
                     failureNum++;
160 147
                     failureMsg.append("<br/>" + failureNum + "、时间段不能为空");
161 148
                     continue;
162 149
                 }
163
-                
150
+
164 151
                 // 查询是否已存在(根据日期+大队ID+时间段唯一)
165 152
                 BlockedLuggagePieceDaily queryParam = new BlockedLuggagePieceDaily();
166 153
                 queryParam.setStatDate(data.getStatDate());
167 154
                 queryParam.setBrigadeId(data.getBrigadeId());
168 155
                 queryParam.setTimePeriod(data.getTimePeriod());
169 156
                 List<BlockedLuggagePieceDaily> existingList = blockedLuggagePieceDailyMapper.selectBlockedLuggagePieceDailyList(queryParam);
170
-                
171
-                if (CollUtil.isEmpty(existingList))
172
-                {
157
+
158
+                if (CollUtil.isEmpty(existingList)) {
173 159
                     // 新增
174 160
                     data.setCreateTime(DateUtils.getNowDate());
175 161
                     calculateAndSetFields(data);
176 162
                     blockedLuggagePieceDailyMapper.insertBlockedLuggagePieceDaily(data);
177 163
                     successNum++;
178 164
                     successMsg.append("<br/>" + successNum + "、统计日期【" + data.getStatDate() + "】、大队【" + data.getBrigadeName() + "】、时间段【" + data.getTimePeriod() + "】导入成功");
179
-                }
180
-                else if (isUpdateSupport)
181
-                {
165
+                } else if (isUpdateSupport) {
182 166
                     // 更新
183 167
                     BlockedLuggagePieceDaily old = existingList.get(0);
184 168
                     data.setId(old.getId());
@@ -187,28 +171,21 @@ public class BlockedLuggagePieceDailyServiceImpl implements IBlockedLuggagePiece
187 171
                     blockedLuggagePieceDailyMapper.updateBlockedLuggagePieceDaily(data);
188 172
                     successNum++;
189 173
                     successMsg.append("<br/>" + successNum + "、统计日期【" + data.getStatDate() + "】、大队【" + data.getBrigadeName() + "】、时间段【" + data.getTimePeriod() + "】更新成功");
190
-                }
191
-                else
192
-                {
174
+                } else {
193 175
                     failureNum++;
194 176
                     failureMsg.append("<br/>" + failureNum + "、统计日期【" + data.getStatDate() + "】、大队【" + data.getBrigadeName() + "】、时间段【" + data.getTimePeriod() + "】已存在");
195 177
                 }
196
-            }
197
-            catch (Exception e)
198
-            {
178
+            } catch (Exception e) {
199 179
                 failureNum++;
200 180
                 String msg = "<br/>" + failureNum + "、统计日期【" + data.getStatDate() + "】导入失败:";
201 181
                 failureMsg.append(msg + e.getMessage());
202 182
             }
203 183
         }
204
-        
205
-        if (failureNum > 0)
206
-        {
184
+
185
+        if (failureNum > 0) {
207 186
             failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
208 187
             throw new ServiceException(failureMsg.toString());
209
-        }
210
-        else
211
-        {
188
+        } else {
212 189
             successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
213 190
         }
214 191
         return successMsg.toString();
@@ -216,28 +193,25 @@ public class BlockedLuggagePieceDailyServiceImpl implements IBlockedLuggagePiece
216 193
 
217 194
     /**
218 195
      * 检查数据是否重复
219
-     * 
196
+     *
220 197
      * @param blockedLuggagePieceDaily 统计数据
221 198
      * @return 重复的数据,如果没有重复返回null
222 199
      */
223 200
     @Override
224
-    public BlockedLuggagePieceDaily checkDuplicate(BlockedLuggagePieceDaily blockedLuggagePieceDaily)
225
-    {
201
+    public BlockedLuggagePieceDaily checkDuplicate(BlockedLuggagePieceDaily blockedLuggagePieceDaily) {
226 202
         if (ObjUtil.isNull(blockedLuggagePieceDaily.getStatDate())
227 203
                 || ObjUtil.isNull(blockedLuggagePieceDaily.getBrigadeId())
228
-                || ObjUtil.isNull(blockedLuggagePieceDaily.getTimePeriod()))
229
-        {
204
+                || ObjUtil.isNull(blockedLuggagePieceDaily.getTimePeriod())) {
230 205
             return null;
231 206
         }
232
-        
207
+
233 208
         BlockedLuggagePieceDaily queryParam = new BlockedLuggagePieceDaily();
234 209
         queryParam.setStatDate(blockedLuggagePieceDaily.getStatDate());
235 210
         queryParam.setBrigadeId(blockedLuggagePieceDaily.getBrigadeId());
236 211
         queryParam.setTimePeriod(blockedLuggagePieceDaily.getTimePeriod());
237 212
         List<BlockedLuggagePieceDaily> existingList = blockedLuggagePieceDailyMapper.selectBlockedLuggagePieceDailyList(queryParam);
238
-        
239
-        if (CollUtil.isNotEmpty(existingList))
240
-        {
213
+
214
+        if (CollUtil.isNotEmpty(existingList)) {
241 215
             return existingList.get(0);
242 216
         }
243 217
         return null;
@@ -245,30 +219,26 @@ public class BlockedLuggagePieceDailyServiceImpl implements IBlockedLuggagePiece
245 219
 
246 220
     /**
247 221
      * 新增或更新每日各时段查堵行李(如果数据重复则覆盖更新)
248
-     * 
222
+     *
249 223
      * @param blockedLuggagePieceDaily 每日各时段查堵行李
250 224
      * @return 结果
251 225
      */
252 226
     @Override
253 227
     @Transactional
254
-    public int insertOrUpdate(BlockedLuggagePieceDaily blockedLuggagePieceDaily)
255
-    {
228
+    public int insertOrUpdate(BlockedLuggagePieceDaily blockedLuggagePieceDaily) {
256 229
         // 检查是否重复
257 230
         BlockedLuggagePieceDaily existing = checkDuplicate(blockedLuggagePieceDaily);
258 231
         // 根据大队名称填充ID
259 232
         fillBrigadeIdByName(blockedLuggagePieceDaily);
260
-        if (existing != null)
261
-        {
233
+        if (existing != null) {
262 234
             // 数据已存在,执行更新(覆盖)
263 235
             blockedLuggagePieceDaily.setId(existing.getId());
264
-            blockedLuggagePieceDaily.setUpdateBy(blockedLuggagePieceDaily.getUpdateBy() != null 
236
+            blockedLuggagePieceDaily.setUpdateBy(blockedLuggagePieceDaily.getUpdateBy() != null
265 237
                     ? blockedLuggagePieceDaily.getUpdateBy() : blockedLuggagePieceDaily.getCreateBy());
266 238
 
267 239
             calculateAndSetFields(blockedLuggagePieceDaily);
268 240
             return blockedLuggagePieceDailyMapper.updateBlockedLuggagePieceDaily(blockedLuggagePieceDaily);
269
-        }
270
-        else
271
-        {
241
+        } else {
272 242
             // 数据不存在,执行新增
273 243
             calculateAndSetFields(blockedLuggagePieceDaily);
274 244
             return blockedLuggagePieceDailyMapper.insertBlockedLuggagePieceDaily(blockedLuggagePieceDaily);
@@ -277,39 +247,37 @@ public class BlockedLuggagePieceDailyServiceImpl implements IBlockedLuggagePiece
277 247
 
278 248
     /**
279 249
      * 计算并设置所有计算字段
280
-     * 
250
+     *
281 251
      * @param data 统计数据
282 252
      */
283
-    private void calculateAndSetFields(BlockedLuggagePieceDaily data)
284
-    {
253
+    private void calculateAndSetFields(BlockedLuggagePieceDaily data) {
285 254
         // 初始化默认值
286 255
         initDefaultValues(data);
287
-        
256
+
288 257
         // 计算过检行李数
289 258
         Integer totalLuggage = (data.getT1WalkBagCount() != null ? data.getT1WalkBagCount() : 0)
290 259
                 + (data.getT2WalkBagCount() != null ? data.getT2WalkBagCount() : 0)
291 260
                 + (data.getT1TravelBagCount() != null ? data.getT1TravelBagCount() : 0)
292 261
                 + (data.getT2TravelBagCount() != null ? data.getT2TravelBagCount() : 0);
293 262
         data.setTotalLuggageCount(totalLuggage);
294
-        
263
+
295 264
         // 计算时段查堵件数
296 265
         Integer totalBlocked = (data.getT1WalkBlockedCount() != null ? data.getT1WalkBlockedCount() : 0)
297 266
                 + (data.getT2WalkBlockedCount() != null ? data.getT2WalkBlockedCount() : 0)
298 267
                 + (data.getT1TravelBlockedCount() != null ? data.getT1TravelBlockedCount() : 0)
299 268
                 + (data.getT2TravelBlockedCount() != null ? data.getT2TravelBlockedCount() : 0);
300 269
         data.setTotalBlockedCount(totalBlocked);
301
-        
270
+
302 271
         // 计算查堵万分率
303 272
         data.setBlockedRate(calculateBlockRate(totalBlocked, totalLuggage));
304 273
     }
305
-    
274
+
306 275
     /**
307 276
      * 初始化默认值
308
-     * 
277
+     *
309 278
      * @param data 统计数据
310 279
      */
311
-    private void initDefaultValues(BlockedLuggagePieceDaily data)
312
-    {
280
+    private void initDefaultValues(BlockedLuggagePieceDaily data) {
313 281
         if (data.getT1WalkBagCount() == null) data.setT1WalkBagCount(0);
314 282
         if (data.getT1WalkBlockedCount() == null) data.setT1WalkBlockedCount(0);
315 283
         if (data.getT2WalkBagCount() == null) data.setT2WalkBagCount(0);
@@ -319,22 +287,19 @@ public class BlockedLuggagePieceDailyServiceImpl implements IBlockedLuggagePiece
319 287
         if (data.getT2TravelBagCount() == null) data.setT2TravelBagCount(0);
320 288
         if (data.getT2TravelBlockedCount() == null) data.setT2TravelBlockedCount(0);
321 289
     }
322
-    
290
+
323 291
     /**
324 292
      * 计算万分率(查堵件数/过检行李数*10000)
325
-     * 
293
+     *
326 294
      * @param blockedCount 查堵件数
327 295
      * @param luggageCount 过检行李数
328 296
      * @return 万分率
329 297
      */
330
-    private BigDecimal calculateBlockRate(Integer blockedCount, Integer luggageCount)
331
-    {
332
-        if (luggageCount == null || luggageCount == 0)
333
-        {
298
+    private BigDecimal calculateBlockRate(Integer blockedCount, Integer luggageCount) {
299
+        if (luggageCount == null || luggageCount == 0) {
334 300
             return BigDecimal.ZERO;
335 301
         }
336
-        if (blockedCount == null)
337
-        {
302
+        if (blockedCount == null) {
338 303
             blockedCount = 0;
339 304
         }
340 305
         return BigDecimal.valueOf(blockedCount)
@@ -344,18 +309,15 @@ public class BlockedLuggagePieceDailyServiceImpl implements IBlockedLuggagePiece
344 309
 
345 310
     /**
346 311
      * 根据大队名称填充大队ID
347
-     * 
312
+     *
348 313
      * @param data 统计数据
349 314
      */
350
-    private void fillBrigadeIdByName(BlockedLuggagePieceDaily data)
351
-    {
352
-        if (ObjUtil.isNull(data.getBrigadeId()) && StrUtil.isNotBlank(data.getBrigadeName()))
353
-        {
315
+    private void fillBrigadeIdByName(BlockedLuggagePieceDaily data) {
316
+        if (ObjUtil.isNull(data.getBrigadeId()) && StrUtil.isNotBlank(data.getBrigadeName())) {
354 317
             SysDept deptQuery = new SysDept();
355 318
             deptQuery.setDeptName(data.getBrigadeName());
356 319
             List<SysDept> deptList = sysDeptService.selectDeptList(deptQuery);
357
-            if (CollUtil.isNotEmpty(deptList))
358
-            {
320
+            if (CollUtil.isNotEmpty(deptList)) {
359 321
                 data.setBrigadeId(deptList.get(0).getDeptId());
360 322
             }
361 323
         }

+ 66 - 43
airport-blocked/src/main/resources/mapper/blocked/BlockedLuggagePieceDailyMapper.xml

@@ -1,61 +1,82 @@
1 1
 <?xml version="1.0" encoding="UTF-8" ?>
2 2
 <!DOCTYPE mapper
3
-PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
-"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5 5
 <mapper namespace="com.sundot.airport.blocked.mapper.BlockedLuggagePieceDailyMapper">
6
-    
6
+
7 7
     <resultMap type="BlockedLuggagePieceDaily" id="BlockedLuggagePieceDailyResult">
8
-        <result property="id"    column="id"    />
9
-        <result property="statDate"    column="stat_date"    />
10
-        <result property="brigadeId"    column="brigade_id"    />
11
-        <result property="brigadeName"    column="brigade_name"    />
12
-        <result property="timePeriod"    column="time_period"    />
13
-        <result property="t1WalkBagCount"    column="t1_walk_bag_count"    />
14
-        <result property="t1WalkBlockedCount"    column="t1_walk_blocked_count"    />
15
-        <result property="t2WalkBagCount"    column="t2_walk_bag_count"    />
16
-        <result property="t2WalkBlockedCount"    column="t2_walk_blocked_count"    />
17
-        <result property="t1TravelBagCount"    column="t1_travel_bag_count"    />
18
-        <result property="t1TravelBlockedCount"    column="t1_travel_blocked_count"    />
19
-        <result property="t2TravelBagCount"    column="t2_travel_bag_count"    />
20
-        <result property="t2TravelBlockedCount"    column="t2_travel_blocked_count"    />
21
-        <result property="totalLuggageCount"    column="total_luggage_count"    />
22
-        <result property="totalBlockedCount"    column="total_blocked_count"    />
23
-        <result property="blockedRate"    column="blocked_rate"    />
24
-        <result property="createBy"    column="create_by"    />
25
-        <result property="createTime"    column="create_time"    />
26
-        <result property="updateBy"    column="update_by"    />
27
-        <result property="updateTime"    column="update_time"    />
28
-        <result property="remark"    column="remark"    />
29
-        <result property="delFlag"    column="del_flag"    />
8
+        <result property="id" column="id"/>
9
+        <result property="statDate" column="stat_date"/>
10
+        <result property="brigadeId" column="brigade_id"/>
11
+        <result property="brigadeName" column="brigade_name"/>
12
+        <result property="timePeriod" column="time_period"/>
13
+        <result property="t1WalkBagCount" column="t1_walk_bag_count"/>
14
+        <result property="t1WalkBlockedCount" column="t1_walk_blocked_count"/>
15
+        <result property="t2WalkBagCount" column="t2_walk_bag_count"/>
16
+        <result property="t2WalkBlockedCount" column="t2_walk_blocked_count"/>
17
+        <result property="t1TravelBagCount" column="t1_travel_bag_count"/>
18
+        <result property="t1TravelBlockedCount" column="t1_travel_blocked_count"/>
19
+        <result property="t2TravelBagCount" column="t2_travel_bag_count"/>
20
+        <result property="t2TravelBlockedCount" column="t2_travel_blocked_count"/>
21
+        <result property="totalLuggageCount" column="total_luggage_count"/>
22
+        <result property="totalBlockedCount" column="total_blocked_count"/>
23
+        <result property="blockedRate" column="blocked_rate"/>
24
+        <result property="createBy" column="create_by"/>
25
+        <result property="createTime" column="create_time"/>
26
+        <result property="updateBy" column="update_by"/>
27
+        <result property="updateTime" column="update_time"/>
28
+        <result property="remark" column="remark"/>
29
+        <result property="delFlag" column="del_flag"/>
30 30
     </resultMap>
31 31
 
32 32
     <sql id="selectBlockedLuggagePieceDailyVo">
33
-        select id, stat_date, brigade_id, brigade_name, time_period,
34
-               t1_walk_bag_count, t1_walk_blocked_count, t2_walk_bag_count, t2_walk_blocked_count,
35
-               t1_travel_bag_count, t1_travel_blocked_count, t2_travel_bag_count, t2_travel_blocked_count,
36
-               total_luggage_count, total_blocked_count, blocked_rate,
37
-               create_by, create_time, update_by, update_time, remark, del_flag
33
+        select id,
34
+               stat_date,
35
+               brigade_id,
36
+               brigade_name,
37
+               time_period,
38
+               t1_walk_bag_count,
39
+               t1_walk_blocked_count,
40
+               t2_walk_bag_count,
41
+               t2_walk_blocked_count,
42
+               t1_travel_bag_count,
43
+               t1_travel_blocked_count,
44
+               t2_travel_bag_count,
45
+               t2_travel_blocked_count,
46
+               total_luggage_count,
47
+               total_blocked_count,
48
+               blocked_rate,
49
+               create_by,
50
+               create_time,
51
+               update_by,
52
+               update_time,
53
+               remark,
54
+               del_flag
38 55
         from blocked_luggage_piece_daily
39 56
     </sql>
40 57
 
41
-    <select id="selectBlockedLuggagePieceDailyList" parameterType="BlockedLuggagePieceDaily" resultMap="BlockedLuggagePieceDailyResult">
58
+    <select id="selectBlockedLuggagePieceDailyList" parameterType="BlockedLuggagePieceDaily"
59
+            resultMap="BlockedLuggagePieceDailyResult">
42 60
         <include refid="selectBlockedLuggagePieceDailyVo"/>
43
-        <where>  
61
+        <where>
44 62
             del_flag = '0'
45
-            <if test="statDate != null "> and stat_date = #{statDate}</if>
46
-            <if test="brigadeId != null "> and brigade_id = #{brigadeId}</if>
47
-            <if test="brigadeName != null  and brigadeName != ''"> and brigade_name like concat('%', #{brigadeName}, '%')</if>
48
-            <if test="timePeriod != null  and timePeriod != ''"> and time_period = #{timePeriod}</if>
63
+            <if test="statDate != null ">and stat_date = #{statDate}</if>
64
+            <if test="brigadeId != null ">and brigade_id = #{brigadeId}</if>
65
+            <if test="brigadeName != null  and brigadeName != ''">and brigade_name like concat('%', #{brigadeName},
66
+                '%')
67
+            </if>
68
+            <if test="timePeriod != null  and timePeriod != ''">and time_period = #{timePeriod}</if>
49 69
         </where>
50 70
         order by stat_date desc, time_period, brigade_id
51 71
     </select>
52
-    
72
+
53 73
     <select id="selectBlockedLuggagePieceDailyById" parameterType="Long" resultMap="BlockedLuggagePieceDailyResult">
54 74
         <include refid="selectBlockedLuggagePieceDailyVo"/>
55 75
         where id = #{id} and del_flag = '0'
56 76
     </select>
57
-        
58
-    <insert id="insertBlockedLuggagePieceDaily" parameterType="BlockedLuggagePieceDaily" useGeneratedKeys="true" keyProperty="id">
77
+
78
+    <insert id="insertBlockedLuggagePieceDaily" parameterType="BlockedLuggagePieceDaily" useGeneratedKeys="true"
79
+            keyProperty="id">
59 80
         insert into blocked_luggage_piece_daily
60 81
         <trim prefix="(" suffix=")" suffixOverrides=",">
61 82
             <if test="statDate != null">stat_date,</if>
@@ -79,7 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
79 100
             <if test="updateTime != null">update_time,</if>
80 101
             <if test="remark != null">remark,</if>
81 102
             <if test="delFlag != null and delFlag != ''">del_flag,</if>
82
-         </trim>
103
+        </trim>
83 104
         <trim prefix="values (" suffix=")" suffixOverrides=",">
84 105
             <if test="statDate != null">#{statDate},</if>
85 106
             <if test="brigadeId != null">#{brigadeId},</if>
@@ -102,7 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
102 123
             <if test="updateTime != null">#{updateTime},</if>
103 124
             <if test="remark != null">#{remark},</if>
104 125
             <if test="delFlag != null and delFlag != ''">#{delFlag},</if>
105
-         </trim>
126
+        </trim>
106 127
     </insert>
107 128
 
108 129
     <update id="updateBlockedLuggagePieceDaily" parameterType="BlockedLuggagePieceDaily">
@@ -131,11 +152,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
131 152
     </update>
132 153
 
133 154
     <delete id="deleteBlockedLuggagePieceDailyById" parameterType="Long">
134
-        update blocked_luggage_piece_daily set del_flag = '2' where id = #{id}
155
+        update blocked_luggage_piece_daily
156
+        set del_flag = '2'
157
+        where id = #{id}
135 158
     </delete>
136 159
 
137 160
     <delete id="deleteBlockedLuggagePieceDailyByIds" parameterType="String">
138
-        update blocked_luggage_piece_daily set del_flag = '2' where id in 
161
+        update blocked_luggage_piece_daily set del_flag = '2' where id in
139 162
         <foreach item="id" collection="array" open="(" separator="," close=")">
140 163
             #{id}
141 164
         </foreach>