chenshudong 1 месяц назад
Родитель
Сommit
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
 import java.util.List;
3
 import java.util.List;
4
 import javax.servlet.http.HttpServletResponse;
4
 import javax.servlet.http.HttpServletResponse;
5
+
5
 import org.springframework.security.access.prepost.PreAuthorize;
6
 import org.springframework.security.access.prepost.PreAuthorize;
6
 import org.springframework.beans.factory.annotation.Autowired;
7
 import org.springframework.beans.factory.annotation.Autowired;
7
 import org.springframework.web.bind.annotation.GetMapping;
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
  * 每日各时段查堵行李Controller
27
  * 每日各时段查堵行李Controller
27
- * 
28
+ *
28
  * @author wangxx
29
  * @author wangxx
29
  * @date 2026-04-13
30
  * @date 2026-04-13
30
  */
31
  */
31
 @RestController
32
 @RestController
32
 @RequestMapping("/blocked/pieceDaily")
33
 @RequestMapping("/blocked/pieceDaily")
33
-public class BlockedLuggagePieceDailyController extends BaseController
34
-{
34
+public class BlockedLuggagePieceDailyController extends BaseController {
35
     @Autowired
35
     @Autowired
36
     private IBlockedLuggagePieceDailyService blockedLuggagePieceDailyService;
36
     private IBlockedLuggagePieceDailyService blockedLuggagePieceDailyService;
37
 
37
 
@@ -40,8 +40,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
40
      */
40
      */
41
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:list')")
41
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:list')")
42
     @GetMapping("/list")
42
     @GetMapping("/list")
43
-    public TableDataInfo list(BlockedLuggagePieceDaily blockedLuggagePieceDaily)
44
-    {
43
+    public TableDataInfo list(BlockedLuggagePieceDaily blockedLuggagePieceDaily) {
45
         startPage();
44
         startPage();
46
         List<BlockedLuggagePieceDaily> list = blockedLuggagePieceDailyService.selectBlockedLuggagePieceDailyList(blockedLuggagePieceDaily);
45
         List<BlockedLuggagePieceDaily> list = blockedLuggagePieceDailyService.selectBlockedLuggagePieceDailyList(blockedLuggagePieceDaily);
47
         return getDataTable(list);
46
         return getDataTable(list);
@@ -53,8 +52,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
53
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:export')")
52
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:export')")
54
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.EXPORT)
53
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.EXPORT)
55
     @PostMapping("/export")
54
     @PostMapping("/export")
56
-    public void export(HttpServletResponse response, BlockedLuggagePieceDaily blockedLuggagePieceDaily)
57
-    {
55
+    public void export(HttpServletResponse response, BlockedLuggagePieceDaily blockedLuggagePieceDaily) {
58
         List<BlockedLuggagePieceDaily> list = blockedLuggagePieceDailyService.selectBlockedLuggagePieceDailyList(blockedLuggagePieceDaily);
56
         List<BlockedLuggagePieceDaily> list = blockedLuggagePieceDailyService.selectBlockedLuggagePieceDailyList(blockedLuggagePieceDaily);
59
         ExcelUtil<BlockedLuggagePieceDaily> util = new ExcelUtil<BlockedLuggagePieceDaily>(BlockedLuggagePieceDaily.class);
57
         ExcelUtil<BlockedLuggagePieceDaily> util = new ExcelUtil<BlockedLuggagePieceDaily>(BlockedLuggagePieceDaily.class);
60
         util.exportExcel(response, list, "每日各时段查堵行李数据");
58
         util.exportExcel(response, list, "每日各时段查堵行李数据");
@@ -66,8 +64,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
66
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:import')")
64
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:import')")
67
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.IMPORT)
65
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.IMPORT)
68
     @PostMapping("/importData")
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
         ExcelUtil<BlockedLuggagePieceDaily> util = new ExcelUtil<BlockedLuggagePieceDaily>(BlockedLuggagePieceDaily.class);
68
         ExcelUtil<BlockedLuggagePieceDaily> util = new ExcelUtil<BlockedLuggagePieceDaily>(BlockedLuggagePieceDaily.class);
72
         List<BlockedLuggagePieceDaily> list = util.importExcel(file.getInputStream());
69
         List<BlockedLuggagePieceDaily> list = util.importExcel(file.getInputStream());
73
         String message = blockedLuggagePieceDailyService.importData(list, updateSupport);
70
         String message = blockedLuggagePieceDailyService.importData(list, updateSupport);
@@ -78,8 +75,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
78
      * 获取导入模板
75
      * 获取导入模板
79
      */
76
      */
80
     @PostMapping("/importTemplate")
77
     @PostMapping("/importTemplate")
81
-    public void importTemplate(HttpServletResponse response)
82
-    {
78
+    public void importTemplate(HttpServletResponse response) {
83
         ExcelUtil<BlockedLuggagePieceDaily> util = new ExcelUtil<BlockedLuggagePieceDaily>(BlockedLuggagePieceDaily.class);
79
         ExcelUtil<BlockedLuggagePieceDaily> util = new ExcelUtil<BlockedLuggagePieceDaily>(BlockedLuggagePieceDaily.class);
84
         util.importTemplateExcel(response, "每日各时段查堵行李数据");
80
         util.importTemplateExcel(response, "每日各时段查堵行李数据");
85
     }
81
     }
@@ -89,8 +85,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
89
      */
85
      */
90
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:query')")
86
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:query')")
91
     @GetMapping(value = "/{id}")
87
     @GetMapping(value = "/{id}")
92
-    public AjaxResult getInfo(@PathVariable("id") Long id)
93
-    {
88
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
94
         return success(blockedLuggagePieceDailyService.selectBlockedLuggagePieceDailyById(id));
89
         return success(blockedLuggagePieceDailyService.selectBlockedLuggagePieceDailyById(id));
95
     }
90
     }
96
 
91
 
@@ -99,11 +94,9 @@ public class BlockedLuggagePieceDailyController extends BaseController
99
      */
94
      */
100
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:add')")
95
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:add')")
101
     @GetMapping("/checkDuplicate")
96
     @GetMapping("/checkDuplicate")
102
-    public AjaxResult checkDuplicate(BlockedLuggagePieceDaily blockedLuggagePieceDaily)
103
-    {
97
+    public AjaxResult checkDuplicate(BlockedLuggagePieceDaily blockedLuggagePieceDaily) {
104
         BlockedLuggagePieceDaily duplicate = blockedLuggagePieceDailyService.checkDuplicate(blockedLuggagePieceDaily);
98
         BlockedLuggagePieceDaily duplicate = blockedLuggagePieceDailyService.checkDuplicate(blockedLuggagePieceDaily);
105
-        if (duplicate != null)
106
-        {
99
+        if (duplicate != null) {
107
             return AjaxResult.warn("数据已存在,是否覆盖?", duplicate);
100
             return AjaxResult.warn("数据已存在,是否覆盖?", duplicate);
108
         }
101
         }
109
         return success();
102
         return success();
@@ -115,8 +108,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
115
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:add')")
108
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:add')")
116
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.INSERT)
109
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.INSERT)
117
     @PostMapping
110
     @PostMapping
118
-    public AjaxResult add(@RequestBody BlockedLuggagePieceDaily blockedLuggagePieceDaily)
119
-    {
111
+    public AjaxResult add(@RequestBody BlockedLuggagePieceDaily blockedLuggagePieceDaily) {
120
         blockedLuggagePieceDaily.setCreateBy(getUsername());
112
         blockedLuggagePieceDaily.setCreateBy(getUsername());
121
         return toAjax(blockedLuggagePieceDailyService.insertBlockedLuggagePieceDaily(blockedLuggagePieceDaily));
113
         return toAjax(blockedLuggagePieceDailyService.insertBlockedLuggagePieceDaily(blockedLuggagePieceDaily));
122
     }
114
     }
@@ -127,8 +119,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
127
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:add')")
119
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:add')")
128
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.INSERT)
120
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.INSERT)
129
     @PostMapping("/addOrOverwrite")
121
     @PostMapping("/addOrOverwrite")
130
-    public AjaxResult addOrOverwrite(@RequestBody BlockedLuggagePieceDaily blockedLuggagePieceDaily)
131
-    {
122
+    public AjaxResult addOrOverwrite(@RequestBody BlockedLuggagePieceDaily blockedLuggagePieceDaily) {
132
         blockedLuggagePieceDaily.setCreateBy(getUsername());
123
         blockedLuggagePieceDaily.setCreateBy(getUsername());
133
         blockedLuggagePieceDaily.setUpdateBy(getUsername());
124
         blockedLuggagePieceDaily.setUpdateBy(getUsername());
134
         return toAjax(blockedLuggagePieceDailyService.insertOrUpdate(blockedLuggagePieceDaily));
125
         return toAjax(blockedLuggagePieceDailyService.insertOrUpdate(blockedLuggagePieceDaily));
@@ -140,8 +131,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
140
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:edit')")
131
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:edit')")
141
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.UPDATE)
132
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.UPDATE)
142
     @PutMapping
133
     @PutMapping
143
-    public AjaxResult edit(@RequestBody BlockedLuggagePieceDaily blockedLuggagePieceDaily)
144
-    {
134
+    public AjaxResult edit(@RequestBody BlockedLuggagePieceDaily blockedLuggagePieceDaily) {
145
         blockedLuggagePieceDaily.setUpdateBy(getUsername());
135
         blockedLuggagePieceDaily.setUpdateBy(getUsername());
146
         return toAjax(blockedLuggagePieceDailyService.updateBlockedLuggagePieceDaily(blockedLuggagePieceDaily));
136
         return toAjax(blockedLuggagePieceDailyService.updateBlockedLuggagePieceDaily(blockedLuggagePieceDaily));
147
     }
137
     }
@@ -152,8 +142,7 @@ public class BlockedLuggagePieceDailyController extends BaseController
152
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:remove')")
142
     @PreAuthorize("@ss.hasPermi('blocked:pieceDaily:remove')")
153
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.DELETE)
143
     @Log(title = "每日各时段查堵行李", businessType = BusinessType.DELETE)
154
     @DeleteMapping("/{ids}")
144
     @DeleteMapping("/{ids}")
155
-    public AjaxResult remove(@PathVariable Long[] ids)
156
-    {
145
+    public AjaxResult remove(@PathVariable Long[] ids) {
157
         return toAjax(blockedLuggagePieceDailyService.deleteBlockedLuggagePieceDailyByIds(ids));
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
 import java.math.BigDecimal;
3
 import java.math.BigDecimal;
4
 import java.util.Date;
4
 import java.util.Date;
5
+
5
 import com.fasterxml.jackson.annotation.JsonFormat;
6
 import com.fasterxml.jackson.annotation.JsonFormat;
6
 import io.swagger.annotations.ApiModelProperty;
7
 import io.swagger.annotations.ApiModelProperty;
7
 import org.apache.commons.lang3.builder.ToStringBuilder;
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
  * 每日各时段查堵行李对象 blocked_luggage_piece_daily
14
  * 每日各时段查堵行李对象 blocked_luggage_piece_daily
14
- * 
15
+ *
15
  * @author wangxx
16
  * @author wangxx
16
  * @date 2026-04-13
17
  * @date 2026-04-13
17
  */
18
  */
18
-public class BlockedLuggagePieceDaily extends BaseEntity
19
-{
19
+public class BlockedLuggagePieceDaily extends BaseEntity {
20
     private static final long serialVersionUID = 1L;
20
     private static final long serialVersionUID = 1L;
21
 
21
 
22
     /** 主键ID */
22
     /** 主键ID */
@@ -102,201 +102,167 @@ public class BlockedLuggagePieceDaily extends BaseEntity
102
     @ApiModelProperty("删除标志")
102
     @ApiModelProperty("删除标志")
103
     private String delFlag;
103
     private String delFlag;
104
 
104
 
105
-    public void setId(Long id) 
106
-    {
105
+    public void setId(Long id) {
107
         this.id = id;
106
         this.id = id;
108
     }
107
     }
109
 
108
 
110
-    public Long getId() 
111
-    {
109
+    public Long getId() {
112
         return id;
110
         return id;
113
     }
111
     }
114
 
112
 
115
-    public void setStatDate(Date statDate) 
116
-    {
113
+    public void setStatDate(Date statDate) {
117
         this.statDate = statDate;
114
         this.statDate = statDate;
118
     }
115
     }
119
 
116
 
120
-    public Date getStatDate() 
121
-    {
117
+    public Date getStatDate() {
122
         return statDate;
118
         return statDate;
123
     }
119
     }
124
 
120
 
125
-    public void setBrigadeId(Long brigadeId) 
126
-    {
121
+    public void setBrigadeId(Long brigadeId) {
127
         this.brigadeId = brigadeId;
122
         this.brigadeId = brigadeId;
128
     }
123
     }
129
 
124
 
130
-    public Long getBrigadeId() 
131
-    {
125
+    public Long getBrigadeId() {
132
         return brigadeId;
126
         return brigadeId;
133
     }
127
     }
134
 
128
 
135
-    public void setBrigadeName(String brigadeName) 
136
-    {
129
+    public void setBrigadeName(String brigadeName) {
137
         this.brigadeName = brigadeName;
130
         this.brigadeName = brigadeName;
138
     }
131
     }
139
 
132
 
140
-    public String getBrigadeName() 
141
-    {
133
+    public String getBrigadeName() {
142
         return brigadeName;
134
         return brigadeName;
143
     }
135
     }
144
 
136
 
145
-    public void setTimePeriod(String timePeriod) 
146
-    {
137
+    public void setTimePeriod(String timePeriod) {
147
         this.timePeriod = timePeriod;
138
         this.timePeriod = timePeriod;
148
     }
139
     }
149
 
140
 
150
-    public String getTimePeriod() 
151
-    {
141
+    public String getTimePeriod() {
152
         return timePeriod;
142
         return timePeriod;
153
     }
143
     }
154
 
144
 
155
-    public void setT1WalkBagCount(Integer t1WalkBagCount) 
156
-    {
145
+    public void setT1WalkBagCount(Integer t1WalkBagCount) {
157
         this.t1WalkBagCount = t1WalkBagCount;
146
         this.t1WalkBagCount = t1WalkBagCount;
158
     }
147
     }
159
 
148
 
160
-    public Integer getT1WalkBagCount() 
161
-    {
149
+    public Integer getT1WalkBagCount() {
162
         return t1WalkBagCount;
150
         return t1WalkBagCount;
163
     }
151
     }
164
 
152
 
165
-    public void setT1WalkBlockedCount(Integer t1WalkBlockedCount) 
166
-    {
153
+    public void setT1WalkBlockedCount(Integer t1WalkBlockedCount) {
167
         this.t1WalkBlockedCount = t1WalkBlockedCount;
154
         this.t1WalkBlockedCount = t1WalkBlockedCount;
168
     }
155
     }
169
 
156
 
170
-    public Integer getT1WalkBlockedCount() 
171
-    {
157
+    public Integer getT1WalkBlockedCount() {
172
         return t1WalkBlockedCount;
158
         return t1WalkBlockedCount;
173
     }
159
     }
174
 
160
 
175
-    public void setT2WalkBagCount(Integer t2WalkBagCount) 
176
-    {
161
+    public void setT2WalkBagCount(Integer t2WalkBagCount) {
177
         this.t2WalkBagCount = t2WalkBagCount;
162
         this.t2WalkBagCount = t2WalkBagCount;
178
     }
163
     }
179
 
164
 
180
-    public Integer getT2WalkBagCount() 
181
-    {
165
+    public Integer getT2WalkBagCount() {
182
         return t2WalkBagCount;
166
         return t2WalkBagCount;
183
     }
167
     }
184
 
168
 
185
-    public void setT2WalkBlockedCount(Integer t2WalkBlockedCount) 
186
-    {
169
+    public void setT2WalkBlockedCount(Integer t2WalkBlockedCount) {
187
         this.t2WalkBlockedCount = t2WalkBlockedCount;
170
         this.t2WalkBlockedCount = t2WalkBlockedCount;
188
     }
171
     }
189
 
172
 
190
-    public Integer getT2WalkBlockedCount() 
191
-    {
173
+    public Integer getT2WalkBlockedCount() {
192
         return t2WalkBlockedCount;
174
         return t2WalkBlockedCount;
193
     }
175
     }
194
 
176
 
195
-    public void setT1TravelBagCount(Integer t1TravelBagCount) 
196
-    {
177
+    public void setT1TravelBagCount(Integer t1TravelBagCount) {
197
         this.t1TravelBagCount = t1TravelBagCount;
178
         this.t1TravelBagCount = t1TravelBagCount;
198
     }
179
     }
199
 
180
 
200
-    public Integer getT1TravelBagCount() 
201
-    {
181
+    public Integer getT1TravelBagCount() {
202
         return t1TravelBagCount;
182
         return t1TravelBagCount;
203
     }
183
     }
204
 
184
 
205
-    public void setT1TravelBlockedCount(Integer t1TravelBlockedCount) 
206
-    {
185
+    public void setT1TravelBlockedCount(Integer t1TravelBlockedCount) {
207
         this.t1TravelBlockedCount = t1TravelBlockedCount;
186
         this.t1TravelBlockedCount = t1TravelBlockedCount;
208
     }
187
     }
209
 
188
 
210
-    public Integer getT1TravelBlockedCount() 
211
-    {
189
+    public Integer getT1TravelBlockedCount() {
212
         return t1TravelBlockedCount;
190
         return t1TravelBlockedCount;
213
     }
191
     }
214
 
192
 
215
-    public void setT2TravelBagCount(Integer t2TravelBagCount) 
216
-    {
193
+    public void setT2TravelBagCount(Integer t2TravelBagCount) {
217
         this.t2TravelBagCount = t2TravelBagCount;
194
         this.t2TravelBagCount = t2TravelBagCount;
218
     }
195
     }
219
 
196
 
220
-    public Integer getT2TravelBagCount() 
221
-    {
197
+    public Integer getT2TravelBagCount() {
222
         return t2TravelBagCount;
198
         return t2TravelBagCount;
223
     }
199
     }
224
 
200
 
225
-    public void setT2TravelBlockedCount(Integer t2TravelBlockedCount) 
226
-    {
201
+    public void setT2TravelBlockedCount(Integer t2TravelBlockedCount) {
227
         this.t2TravelBlockedCount = t2TravelBlockedCount;
202
         this.t2TravelBlockedCount = t2TravelBlockedCount;
228
     }
203
     }
229
 
204
 
230
-    public Integer getT2TravelBlockedCount() 
231
-    {
205
+    public Integer getT2TravelBlockedCount() {
232
         return t2TravelBlockedCount;
206
         return t2TravelBlockedCount;
233
     }
207
     }
234
 
208
 
235
-    public void setTotalLuggageCount(Integer totalLuggageCount) 
236
-    {
209
+    public void setTotalLuggageCount(Integer totalLuggageCount) {
237
         this.totalLuggageCount = totalLuggageCount;
210
         this.totalLuggageCount = totalLuggageCount;
238
     }
211
     }
239
 
212
 
240
-    public Integer getTotalLuggageCount() 
241
-    {
213
+    public Integer getTotalLuggageCount() {
242
         return totalLuggageCount;
214
         return totalLuggageCount;
243
     }
215
     }
244
 
216
 
245
-    public void setTotalBlockedCount(Integer totalBlockedCount) 
246
-    {
217
+    public void setTotalBlockedCount(Integer totalBlockedCount) {
247
         this.totalBlockedCount = totalBlockedCount;
218
         this.totalBlockedCount = totalBlockedCount;
248
     }
219
     }
249
 
220
 
250
-    public Integer getTotalBlockedCount() 
251
-    {
221
+    public Integer getTotalBlockedCount() {
252
         return totalBlockedCount;
222
         return totalBlockedCount;
253
     }
223
     }
254
 
224
 
255
-    public void setBlockedRate(BigDecimal blockedRate) 
256
-    {
225
+    public void setBlockedRate(BigDecimal blockedRate) {
257
         this.blockedRate = blockedRate;
226
         this.blockedRate = blockedRate;
258
     }
227
     }
259
 
228
 
260
-    public BigDecimal getBlockedRate() 
261
-    {
229
+    public BigDecimal getBlockedRate() {
262
         return blockedRate;
230
         return blockedRate;
263
     }
231
     }
264
 
232
 
265
-    public void setDelFlag(String delFlag) 
266
-    {
233
+    public void setDelFlag(String delFlag) {
267
         this.delFlag = delFlag;
234
         this.delFlag = delFlag;
268
     }
235
     }
269
 
236
 
270
-    public String getDelFlag() 
271
-    {
237
+    public String getDelFlag() {
272
         return delFlag;
238
         return delFlag;
273
     }
239
     }
274
 
240
 
275
     @Override
241
     @Override
276
     public String toString() {
242
     public String toString() {
277
         return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
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
 package com.sundot.airport.blocked.mapper;
1
 package com.sundot.airport.blocked.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.sundot.airport.blocked.domain.BlockedLuggagePieceDaily;
5
 import com.sundot.airport.blocked.domain.BlockedLuggagePieceDaily;
5
 
6
 
6
 /**
7
 /**
7
  * 每日各时段查堵行李Mapper接口
8
  * 每日各时段查堵行李Mapper接口
8
- * 
9
+ *
9
  * @author wangxx
10
  * @author wangxx
10
  * @date 2026-04-13
11
  * @date 2026-04-13
11
  */
12
  */
12
-public interface BlockedLuggagePieceDailyMapper 
13
-{
13
+public interface BlockedLuggagePieceDailyMapper {
14
     /**
14
     /**
15
      * 查询每日行李过检查堵件数统计
15
      * 查询每日行李过检查堵件数统计
16
-     * 
16
+     *
17
      * @param id 每日行李过检查堵件数统计主键
17
      * @param id 每日行李过检查堵件数统计主键
18
      * @return 每日行李过检查堵件数统计
18
      * @return 每日行李过检查堵件数统计
19
      */
19
      */
@@ -21,7 +21,7 @@ public interface BlockedLuggagePieceDailyMapper
21
 
21
 
22
     /**
22
     /**
23
      * 查询每日行李过检查堵件数统计列表
23
      * 查询每日行李过检查堵件数统计列表
24
-     * 
24
+     *
25
      * @param blockedLuggagePieceDaily 每日行李过检查堵件数统计
25
      * @param blockedLuggagePieceDaily 每日行李过检查堵件数统计
26
      * @return 每日行李过检查堵件数统计集合
26
      * @return 每日行李过检查堵件数统计集合
27
      */
27
      */
@@ -29,7 +29,7 @@ public interface BlockedLuggagePieceDailyMapper
29
 
29
 
30
     /**
30
     /**
31
      * 新增每日行李过检查堵件数统计
31
      * 新增每日行李过检查堵件数统计
32
-     * 
32
+     *
33
      * @param blockedLuggagePieceDaily 每日行李过检查堵件数统计
33
      * @param blockedLuggagePieceDaily 每日行李过检查堵件数统计
34
      * @return 结果
34
      * @return 结果
35
      */
35
      */
@@ -37,7 +37,7 @@ public interface BlockedLuggagePieceDailyMapper
37
 
37
 
38
     /**
38
     /**
39
      * 修改每日行李过检查堵件数统计
39
      * 修改每日行李过检查堵件数统计
40
-     * 
40
+     *
41
      * @param blockedLuggagePieceDaily 每日行李过检查堵件数统计
41
      * @param blockedLuggagePieceDaily 每日行李过检查堵件数统计
42
      * @return 结果
42
      * @return 结果
43
      */
43
      */
@@ -45,7 +45,7 @@ public interface BlockedLuggagePieceDailyMapper
45
 
45
 
46
     /**
46
     /**
47
      * 删除每日行李过检查堵件数统计
47
      * 删除每日行李过检查堵件数统计
48
-     * 
48
+     *
49
      * @param id 每日行李过检查堵件数统计主键
49
      * @param id 每日行李过检查堵件数统计主键
50
      * @return 结果
50
      * @return 结果
51
      */
51
      */
@@ -53,7 +53,7 @@ public interface BlockedLuggagePieceDailyMapper
53
 
53
 
54
     /**
54
     /**
55
      * 批量删除每日行李过检查堵件数统计
55
      * 批量删除每日行李过检查堵件数统计
56
-     * 
56
+     *
57
      * @param ids 需要删除的数据主键集合
57
      * @param ids 需要删除的数据主键集合
58
      * @return 结果
58
      * @return 结果
59
      */
59
      */

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

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