郑永安
2023-06-19 f65443d8abeaedc9d102324565e8368e7c9d90c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
package com.gk.firework.Controller;
 
 
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gk.firework.Controller.Base.BaseController;
import com.gk.firework.Domain.*;
import com.gk.firework.Domain.Utils.FilterObject;
import com.gk.firework.Domain.Vo.StandardTemplate1Vo;
import com.gk.firework.Service.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@Api(tags = "安全生产标准化管理")
@RequestMapping("/")
@RestController
public class StandardController extends BaseController {
 
    @Autowired
    private StandardTemplate1Service standardTemplate1Service;
    @Autowired
    private StandardLawListService standardLawListService;
    @Autowired
    private StandardEducationLegerService standardEducationLegerService;
    @Autowired
    private StandardGuardRollService standardGuardRollService;
    @Autowired
    private StandardDeviceToolsLegerService standardDeviceToolsLegerService;
    @Autowired
    private StandardProductLegerService standardProductLegerService;
    @Autowired
    private StandardHiddenDangerLegerService standardHiddenDangerLegerService;
    @Autowired
    private StandardSupplyMarketObjectService standardSupplyMarketObjectService;
    @Autowired
    private StandardConferenceRecordService standardConferenceRecordService;
    @Autowired
    private StandardRewardRecordService standardRewardRecordService;
 
    /**
     * @Description: 查询简单模板
     * @date 2021/4/29 13:59
     */
    @ApiOperation(value = "查询简单模板", notes = "分页查询", httpMethod = "POST")
    @PostMapping("/standardList")
    Object template1(@RequestBody FilterObject filterObject) {
        Integer pageIndex = filterObject.getPageIndex();
        Integer pageSize = filterObject.getPageSize();
        IPage page = standardTemplate1Service.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
        return success(page);
    }
 
    /**
     * @Description: 新增简单模板
     * @date 2021/4/29 15:42
     */
    @ApiOperation(value = "新增简单模板", httpMethod = "POST")
    @PostMapping("/addstandard")
    Object addStandard(StandardTemplate1Vo standardTemplate1Vo) {
        standardTemplate1Service.addStandard(standardTemplate1Vo,getUser());
        return success();
    }
 
    /**
    * @Description: 修改简单模板
    * @date 2021/4/30 16:13
    */
    @ApiOperation(value = "修改简单模板", httpMethod = "PUT")
    @PostMapping("/putstandard")
    Object modStandard(StandardTemplate1Vo standardTemplate1Vo) {
        standardTemplate1Service.modStandard(standardTemplate1Vo,getUser());
        return success();
    }
 
    /**
     * @Description: 删除简单模板
     * @date 2021/4/30 16:21
     */
    @ApiOperation(value = "删除简单模板", httpMethod = "DELETE")
    @PostMapping("/delstandard")
    Object delStandard(@RequestParam Long id) {
        standardTemplate1Service.delStandard(id, getUser());
        return success();
    }
 
    /**
    * @Description: 适用的法律法规清单
    * @date 2021/5/8 13:50
    */
    @ApiOperation(value = "查询适用的法律法规清单", notes = "分页查询", httpMethod = "POST")
    @PostMapping("/queryStandardLawList")
    Object queryStandardLawList(@RequestBody FilterObject filterObject) {
        Integer pageIndex = filterObject.getPageIndex();
        Integer pageSize = filterObject.getPageSize();
        IPage page = standardLawListService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
        return success(page);
    }
 
 
    /**
     * @Description: 新增适用的法律法规清单
     * @date 2021/5/8 13:50
     */
    @ApiOperation(value = "新增适用的法律法规清单", httpMethod = "POST")
    @PostMapping("/addstandardLawList")
    Object addStandardLawList(StandardLawList standardLawList) {
        standardLawListService.addStandardLawList(standardLawList,getUser());
        return success();
    }
 
 
    /**
     * @Description: 修改适用的法律法规清单
     * @date 2021/5/8 13:50
     */
    @ApiOperation(value = "修改适用的法律法规清单", httpMethod = "PUT")
    @PostMapping("/putstandardLawList")
    Object modStandardLawList(StandardLawList standardLawList) {
        standardLawListService.modStandardLawList(standardLawList,getUser());
        return success();
    }
 
    /**
     * @Description: 删除适用的法律法规清单
     * @date 2021/5/8 13:50
     */
    @ApiOperation(value = "删除适用的法律法规清单", httpMethod = "DELETE")
    @PostMapping("/delstandardLawList")
    Object delStandardLawList(@RequestParam Long id) {
        standardLawListService.delStandardLawList(id,getUser());
        return success();
    }
 
 
    /**
    * @Description: 从业人员教育培训台账
    * @date 2021/5/8 16:29
    */
    @ApiOperation(value = "查询从业人员教育培训台账", notes = "分页查询", httpMethod = "POST")
    @PostMapping("/queryStandardEducationLeger")
    Object queryStandardEducationLeger(@RequestBody FilterObject filterObject) {
        Integer pageIndex = filterObject.getPageIndex();
        Integer pageSize = filterObject.getPageSize();
        IPage page = standardEducationLegerService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
        return success(page);
    }
 
    /**
     * @Description: 新增从业人员教育培训台账
     * @date 2021/5/8 13:50
     */
    @ApiOperation(value = "新增从业人员教育培训台账", httpMethod = "POST")
    @PostMapping("/addstandardEducationLeger")
    Object addStandardEducationLeger(StandardEducationLeger standardEducationLeger) {
        standardEducationLegerService.addStandardEducationLeger(standardEducationLeger,getUser());
        return success();
    }
 
    /**
     * @Description: 修改从业人员教育培训台账
     * @date 2021/5/8 13:50
     */
    @ApiOperation(value = "修改从业人员教育培训台账", httpMethod = "PUT")
    @PostMapping("/putstandardEducationLeger")
    Object modStandardEducationLeger(StandardEducationLeger standardEducationLeger) {
        standardEducationLegerService.modStandardEducationLeger(standardEducationLeger,getUser());
        return success();
    }
 
    /**
     * @Description: 删除从业人员教育培训台账
     * @date 2021/5/8 13:50
     */
    @ApiOperation(value = "删除从业人员教育培训台账", httpMethod = "DELETE")
    @PostMapping("/delstandardEducationLeger")
    Object delStandardEducationLeger(@RequestParam Long id) {
        standardEducationLegerService.delStandardEducationLeger(id,getUser());
        return success();
    }
 
 
    /**
     * @Description: 查询保管员和守护员名册
     * @date 2021/5/8 16:29
     */
    @ApiOperation(value = "查询保管员和守护员名册", notes = "分页查询", httpMethod = "POST")
    @PostMapping("/queryStandardGuardRoll")
    Object queryStandardGuardRoll(@RequestBody FilterObject filterObject) {
        Integer pageIndex = filterObject.getPageIndex();
        Integer pageSize = filterObject.getPageSize();
        IPage page = standardGuardRollService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
        return success(page);
    }
 
 
    /**
     * @Description: 新增保管员和守护员名册
     * @date 2021/5/8 13:50
     */
    @ApiOperation(value = "新增从业人员教育培训台账", httpMethod = "POST")
    @PostMapping("/addstandardGuardRoll")
    Object addStandardGuardRoll(@RequestBody StandardGuardRoll standardGuardRoll) {
        standardGuardRollService.addStandardGuardRoll(standardGuardRoll,getUser());
        return success();
    }
 
    /**
     * @Description: 修改保管员和守护员名册
     * @date 2021/5/8 13:50
     */
    @ApiOperation(value = "新增从业人员教育培训台账", httpMethod = "PUT")
    @PostMapping("/putstandardGuardRoll")
    Object modStandardGuardRoll(@RequestBody StandardGuardRoll standardGuardRoll) {
        standardGuardRollService.modStandardGuardRoll(standardGuardRoll,getUser());
        return success();
    }
 
    /**
     * @Description: 删除保管员和守护员名册
     * @date 2021/5/8 13:50
     */
    @ApiOperation(value = "删除从业人员教育培训台账", httpMethod = "DELETE")
    @PostMapping("/delstandardGuardRoll")
    Object delStandardGuardRoll(@RequestParam Long id) {
        standardGuardRollService.delStandardGuardRoll(id,getUser());
        return success();
    }
 
    /**
    * @Description: 安全设施设备、消防器材和运输工具台账
    * @date 2021/5/18 9:24
    */
    @ApiOperation(value = "查询安全设施设备、消防器材和运输工具台账", notes = "分页查询", httpMethod = "POST")
    @PostMapping("/queryDeviceToolsLeger")
    Object queryDeviceToolsLeger(@RequestBody FilterObject filterObject) {
        Integer pageIndex = filterObject.getPageIndex();
        Integer pageSize = filterObject.getPageSize();
        IPage page = standardDeviceToolsLegerService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
        return success(page);
    }
 
 
    /**
     * @Description: 新增安全设施设备、消防器材和运输工具台账
     * @date 2021/5/18 9:24
     */
    @ApiOperation(value = "deviceToolsLeger", httpMethod = "POST")
    @PostMapping("/adddeviceToolsLeger")
    Object addDeviceToolsLeger(@RequestBody StandardDeviceToolsLeger standardDeviceToolsLeger) {
        standardDeviceToolsLegerService.addDeviceToolsLeger(standardDeviceToolsLeger,getUser());
        return success();
    }
 
    /**
     * @Description: 新增安全设施设备、消防器材和运输工具台账
     * @date 2021/5/18 9:24
     */
    @ApiOperation(value = "deviceToolsLeger", httpMethod = "PUT")
    @PostMapping("/putdeviceToolsLeger")
    Object modDeviceToolsLeger(@RequestBody StandardDeviceToolsLeger standardDeviceToolsLeger) {
        standardDeviceToolsLegerService.modDeviceToolsLeger(standardDeviceToolsLeger,getUser());
        return success();
    }
 
    /**
     * @Description: 删除安全设施设备、消防器材和运输工具台账
     * @date 2021/5/18 9:24
     */
    @ApiOperation(value = "deviceToolsLeger", httpMethod = "DELETE")
    @PostMapping("/deldeviceToolsLeger")
    Object modDeviceToolsLeger(@RequestParam Long id) {
        standardDeviceToolsLegerService.delDeviceToolsLeger(id,getUser());
        return success();
    }
 
 
    /**
     * @Description: 经营产品信息台账
     * @date 2021/5/18 9:24
     */
    @ApiOperation(value = "查询经营产品信息台账", notes = "分页查询", httpMethod = "POST")
    @PostMapping("/queryProductLeger")
    Object queryProductLeger(@RequestBody FilterObject filterObject) {
        Integer pageIndex = filterObject.getPageIndex();
        Integer pageSize = filterObject.getPageSize();
        IPage page = standardProductLegerService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
        return success(page);
    }
 
 
    /**
     * @Description: 新增经营产品信息台账
     * @date 2021/5/18 9:24
     */
    @ApiOperation(value = "新增经营产品信息台账", httpMethod = "POST")
    @PostMapping("/addproductLeger")
    Object addProductLeger(@RequestBody StandardProductLeger standardProductLeger) {
        standardProductLegerService.addProductLeger(standardProductLeger,getUser());
        return success();
    }
 
 
    /**
     * @Description: 修改经营产品信息台账
     * @date 2021/5/18 9:24
     */
    @ApiOperation(value = "修改经营产品信息台账", httpMethod = "PUT")
    @PostMapping("/putproductLeger")
    Object modProductLeger(@RequestBody StandardProductLeger standardProductLeger) {
        standardProductLegerService.modProductLeger(standardProductLeger,getUser());
        return success();
    }
 
    /**
     * @Description: 删除经营产品信息台账
     * @date 2021/5/18 9:24
     */
    @ApiOperation(value = "删除经营产品信息台账", httpMethod = "DELETE")
    @PostMapping("/delproductLeger")
    Object delProductLeger(@RequestParam Long id) {
        standardProductLegerService.delProductLeger(id,getUser());
        return success();
    }
 
 
    /**
     * @Description: 隐患排查治理台账
     * @date 2021/5/18 9:24
     */
    @ApiOperation(value = "查询隐患排查治理台账", notes = "分页查询", httpMethod = "POST")
    @PostMapping("/queryHiddenDangerLeger")
    Object queryHiddenDangerLeger(@RequestBody FilterObject filterObject) {
        Integer pageIndex = filterObject.getPageIndex();
        Integer pageSize = filterObject.getPageSize();
        IPage page = standardHiddenDangerLegerService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
        return success(page);
    }
 
    /**
     * @Description: 新增隐患排查治理台账
     * @date 2021/5/18 9:24
     */
    @ApiOperation(value = "新增隐患排查治理台账", notes = "分页查询", httpMethod = "POST")
    @PostMapping("/addhiddenDangerLeger")
    Object addHiddenDangerLeger(@RequestBody StandardHiddenDangerLeger standardHiddenDangerLeger) {
        standardHiddenDangerLegerService.addHiddenDangerLeger(standardHiddenDangerLeger, getUser());
        return success();
    }
 
 
    /**
     * @Description: 修改隐患排查治理台账
     * @date 2021/5/18 9:24
     */
    @ApiOperation(value = "修改隐患排查治理台账", httpMethod = "PUT")
    @PostMapping("/puthiddenDangerLeger")
    Object modHiddenDangerLeger(@RequestBody StandardHiddenDangerLeger standardHiddenDangerLeger) {
        standardHiddenDangerLegerService.modHiddenDangerLeger(standardHiddenDangerLeger, getUser());
        return success();
    }
 
    /**
     * @Description: 删除隐患排查治理台账
     * @date 2021/5/18 9:24
     */
    @ApiOperation(value = "删除隐患排查治理台账", httpMethod = "DELETE")
    @PostMapping("/delhiddenDangerLeger")
    Object delHiddenDangerLeger(@RequestParam Long id) {
        standardHiddenDangerLegerService.delHiddenDangerLeger(id, getUser());
        return success();
    }
 
    /**
    * @Description: 供销对象台账
    * @date 2021/5/21 10:30
    */
    @ApiOperation(value = "供销对象台账", notes = "分页查询", httpMethod = "POST")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "menu",value = "供|销的菜单名")
    })
    @PostMapping("/querySupplyMarketObject")
    Object querySupplyMarketObject(@RequestBody FilterObject filterObject) {
        Integer pageIndex = filterObject.getPageIndex();
        Integer pageSize = filterObject.getPageSize();
        IPage page = standardSupplyMarketObjectService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
        return success(page);
    }
 
    /**
     * @Description: 新增供销对象台账
     * @date 2021/5/21 10:30
     */
    @ApiOperation(value = "新增供销对象台账",  httpMethod = "POST")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "menu",value = "供|销的菜单名")
    })
    @PostMapping("/addsupplyMarketObject")
    Object addSupplyMarketObject(@RequestBody StandardSupplyMarketObject standardSupplyMarketObject) {
        standardSupplyMarketObjectService.addSupplyMarketObject(standardSupplyMarketObject, getUser());
        return success();
    }
 
    /**
     * @Description: 修改供销对象台账
     * @date 2021/5/21 10:30
     */
    @ApiOperation(value = "修改供销对象台账",httpMethod = "PUT")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "menu",value = "供|销的菜单名")
    })
    @PostMapping("/putsupplyMarketObject")
    Object modSupplyMarketObject(@RequestBody StandardSupplyMarketObject standardSupplyMarketObject) {
        standardSupplyMarketObjectService.modSupplyMarketObject(standardSupplyMarketObject, getUser());
        return success();
    }
 
 
    /**
     * @Description: 删除供销对象台账
     * @date 2021/5/21 10:30
     */
    @ApiOperation(value = "删除供销对象台账",httpMethod = "DELETE")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id",value = "供销对象台账id")
    })
    @PostMapping("/delsupplyMarketObject")
    Object delSupplyMarketObject(@RequestParam Long id) {
        standardSupplyMarketObjectService.delSupplyMarketObject(id, getUser());
        return success();
    }
 
    /**
    * @Description: 会议记录
    * @date 2021/5/21 14:04
    */
    @ApiOperation(value = "会议记录", notes = "分页查询", httpMethod = "POST")
    @PostMapping("/queryStandardConferenceRecord")
    Object queryStandardConferenceRecord(@RequestBody FilterObject filterObject) {
        Integer pageIndex = filterObject.getPageIndex();
        Integer pageSize = filterObject.getPageSize();
        IPage page = standardConferenceRecordService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
        return success(page);
    }
 
 
    /**
     * @Description: 新增会议记录
     * @date 2021/5/21 10:30
     */
    @ApiOperation(value = "新增会议记录",  httpMethod = "POST")
    @PostMapping("/addstandardConferenceRecord")
    Object addStandardConferenceRecord(@RequestBody StandardConferenceRecord standardConferenceRecord) {
        standardConferenceRecordService.addStandardConferenceRecord(standardConferenceRecord, getUser());
        return success();
    }
 
 
    /**
     * @Description: 修改会议记录
     * @date 2021/5/21 10:30
     */
    @ApiOperation(value = "修改会议记录",  httpMethod = "PUT")
    @PostMapping("/putstandardConferenceRecord")
    Object modStandardConferenceRecord(@RequestBody StandardConferenceRecord standardConferenceRecord) {
        standardConferenceRecordService.modStandardConferenceRecord(standardConferenceRecord, getUser());
        return success();
    }
 
 
    /**
     * @Description: 删除会议记录
     * @date 2021/5/21 10:30
     */
    @ApiOperation(value = "删除会议记录",  httpMethod = "DELETE")
    @PostMapping("/delstandardConferenceRecord")
    Object delStandardConferenceRecord(@RequestParam Long id) {
        standardConferenceRecordService.delStandardConferenceRecord(id, getUser());
        return success();
    }
 
 
    /**
    * @Description: 奖惩记录
    * @date 2021/5/21 15:16
    */
 
    @ApiOperation(value = "奖惩记录", notes = "分页查询", httpMethod = "POST")
    @PostMapping("/queryRecordAndPunishmentRecord")
    Object queryRecordAndPunishmentRecord(@RequestBody FilterObject filterObject) {
        Integer pageIndex = filterObject.getPageIndex();
        Integer pageSize = filterObject.getPageSize();
        IPage page = standardRewardRecordService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
        return success(page);
    }
 
 
    /**
     * @Description: 新增奖惩记录
     * @date 2021/5/21 15:16
     */
 
    @ApiOperation(value = "新增奖惩记录", httpMethod = "POST")
    @PostMapping("/addrecordAndPunishmentRecord")
    Object addRecordAndPunishmentRecord(@RequestBody StandardRewardRecord standardRewardRecord) {
        standardRewardRecordService.addRecordAndPunishmentRecord(standardRewardRecord,getUser());
        return success();
    }
 
 
 
    /**
     * @Description: 修改奖惩记录
     * @date 2021/5/21 15:16
     */
 
    @ApiOperation(value = "修改奖惩记录", httpMethod = "PUT")
    @PostMapping("/putrecordAndPunishmentRecord")
    Object modRecordAndPunishmentRecord(@RequestBody StandardRewardRecord standardRewardRecord) {
        standardRewardRecordService.modRecordAndPunishmentRecord(standardRewardRecord,getUser());
        return success();
    }
 
 
    /**
     * @Description: 删除奖惩记录
     * @date 2021/5/21 15:16
     */
 
    @ApiOperation(value = "删除奖惩记录", httpMethod = "DELETE")
    @PostMapping("/delrecordAndPunishmentRecord")
    Object modRecordAndPunishmentRecord(@RequestParam Long id) {
        standardRewardRecordService.delRecordAndPunishmentRecord(id,getUser());
        return success();
    }
}