Przeglądaj źródła

员工附加分数据+通道日别高峰时段过检数据+站级时间段别总过检表

wangxx 1 miesiąc temu
rodzic
commit
5a1d25e7e2
21 zmienionych plików z 1218 dodań i 0 usunięć
  1. 99 0
      airport-admin/src/main/java/com/sundot/airport/web/controller/ledger/OperationLanePeakThroughputController.java
  2. 99 0
      airport-admin/src/main/java/com/sundot/airport/web/controller/ledger/OperationStationHourlyThroughputController.java
  3. 99 0
      airport-admin/src/main/java/com/sundot/airport/web/controller/ledger/ScoreEmployeeAdditionalController.java
  4. 74 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/OperationLanePeakThroughput.java
  5. 74 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/OperationStationHourlyThroughput.java
  6. 73 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/ScoreEmployeeAdditional.java
  7. 18 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/OperationLanePeakThroughputMapper.java
  8. 18 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/OperationStationHourlyThroughputMapper.java
  9. 18 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/ScoreEmployeeAdditionalMapper.java
  10. 50 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/service/IOperationLanePeakThroughputService.java
  11. 50 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/service/IOperationStationHourlyThroughputService.java
  12. 50 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/service/IScoreEmployeeAdditionalService.java
  13. 83 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/service/impl/OperationLanePeakThroughputServiceImpl.java
  14. 83 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/service/impl/OperationStationHourlyThroughputServiceImpl.java
  15. 83 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/service/impl/ScoreEmployeeAdditionalServiceImpl.java
  16. 52 0
      airport-ledger/src/main/resources/mapper/ledger/OperationLanePeakThroughputMapper.xml
  17. 52 0
      airport-ledger/src/main/resources/mapper/ledger/OperationStationHourlyThroughputMapper.xml
  18. 53 0
      airport-ledger/src/main/resources/mapper/ledger/ScoreEmployeeAdditionalMapper.xml
  19. 30 0
      sql/employee_additional_score.sql
  20. 30 0
      sql/lane_peak_throughput.sql
  21. 30 0
      sql/station_hourly_throughput.sql

+ 99 - 0
airport-admin/src/main/java/com/sundot/airport/web/controller/ledger/OperationLanePeakThroughputController.java

@@ -0,0 +1,99 @@
1
+package com.sundot.airport.web.controller.ledger;
2
+
3
+import java.util.List;
4
+import javax.servlet.http.HttpServletResponse;
5
+import org.springframework.security.access.prepost.PreAuthorize;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.web.bind.annotation.GetMapping;
8
+import org.springframework.web.bind.annotation.PostMapping;
9
+import org.springframework.web.bind.annotation.PutMapping;
10
+import org.springframework.web.bind.annotation.DeleteMapping;
11
+import org.springframework.web.bind.annotation.PathVariable;
12
+import org.springframework.web.bind.annotation.RequestBody;
13
+import org.springframework.web.bind.annotation.RequestMapping;
14
+import org.springframework.web.bind.annotation.RestController;
15
+import com.sundot.airport.common.annotation.Log;
16
+import com.sundot.airport.common.core.controller.BaseController;
17
+import com.sundot.airport.common.core.domain.AjaxResult;
18
+import com.sundot.airport.common.enums.BusinessType;
19
+import com.sundot.airport.ledger.domain.OperationLanePeakThroughput;
20
+import com.sundot.airport.ledger.service.IOperationLanePeakThroughputService;
21
+import com.sundot.airport.common.utils.poi.ExcelUtil;
22
+import com.sundot.airport.common.core.page.TableDataInfo;
23
+
24
+/**
25
+ * 通道日别高峰时段过检Controller
26
+ *
27
+ * @author ruoyi
28
+ * @date 2026-05-18
29
+ */
30
+@RestController
31
+@RequestMapping("/ledger/operationLanePeakThroughput")
32
+public class OperationLanePeakThroughputController extends BaseController {
33
+    @Autowired
34
+    private IOperationLanePeakThroughputService operationLanePeakThroughputService;
35
+
36
+    /**
37
+     * 查询通道日别高峰时段过检列表
38
+     */
39
+    @PreAuthorize("@ss.hasPermi('ledger:operationLanePeakThroughput:list')")
40
+    @GetMapping("/list")
41
+    public TableDataInfo list(OperationLanePeakThroughput operationLanePeakThroughput) {
42
+        startPage();
43
+        List<OperationLanePeakThroughput> list = operationLanePeakThroughputService.selectOperationLanePeakThroughputList(operationLanePeakThroughput);
44
+        return getDataTable(list);
45
+    }
46
+
47
+    /**
48
+     * 导出通道日别高峰时段过检列表
49
+     */
50
+    @PreAuthorize("@ss.hasPermi('ledger:operationLanePeakThroughput:export')")
51
+    @Log(title = "通道日别高峰时段过检", businessType = BusinessType.EXPORT)
52
+    @PostMapping("/export")
53
+    public void export(HttpServletResponse response, OperationLanePeakThroughput operationLanePeakThroughput) {
54
+        List<OperationLanePeakThroughput> list = operationLanePeakThroughputService.selectOperationLanePeakThroughputList(operationLanePeakThroughput);
55
+        ExcelUtil<OperationLanePeakThroughput> util = new ExcelUtil<OperationLanePeakThroughput>(OperationLanePeakThroughput.class);
56
+        util.exportExcel(response, list, "通道日别高峰时段过检数据");
57
+    }
58
+
59
+    /**
60
+     * 获取通道日别高峰时段过检详细信息
61
+     */
62
+    @PreAuthorize("@ss.hasPermi('ledger:operationLanePeakThroughput:query')")
63
+    @GetMapping(value = "/{id}")
64
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
65
+        return success(operationLanePeakThroughputService.getById(id));
66
+    }
67
+
68
+    /**
69
+     * 新增通道日别高峰时段过检
70
+     */
71
+    @PreAuthorize("@ss.hasPermi('ledger:operationLanePeakThroughput:add')")
72
+    @Log(title = "通道日别高峰时段过检", businessType = BusinessType.INSERT)
73
+    @PostMapping
74
+    public AjaxResult add(@RequestBody OperationLanePeakThroughput operationLanePeakThroughput) {
75
+        operationLanePeakThroughput.setCreateBy(getUsername());
76
+        return toAjax(operationLanePeakThroughputService.insertOperationLanePeakThroughput(operationLanePeakThroughput));
77
+    }
78
+
79
+    /**
80
+     * 修改通道日别高峰时段过检
81
+     */
82
+    @PreAuthorize("@ss.hasPermi('ledger:operationLanePeakThroughput:edit')")
83
+    @Log(title = "通道日别高峰时段过检", businessType = BusinessType.UPDATE)
84
+    @PutMapping
85
+    public AjaxResult edit(@RequestBody OperationLanePeakThroughput operationLanePeakThroughput) {
86
+        operationLanePeakThroughput.setUpdateBy(getUsername());
87
+        return toAjax(operationLanePeakThroughputService.updateOperationLanePeakThroughput(operationLanePeakThroughput));
88
+    }
89
+
90
+    /**
91
+     * 删除通道日别高峰时段过检
92
+     */
93
+    @PreAuthorize("@ss.hasPermi('ledger:operationLanePeakThroughput:remove')")
94
+    @Log(title = "通道日别高峰时段过检", businessType = BusinessType.DELETE)
95
+    @DeleteMapping("/{ids}")
96
+    public AjaxResult remove(@PathVariable Long[] ids) {
97
+        return toAjax(operationLanePeakThroughputService.deleteOperationLanePeakThroughputByIds(ids));
98
+    }
99
+}

+ 99 - 0
airport-admin/src/main/java/com/sundot/airport/web/controller/ledger/OperationStationHourlyThroughputController.java

@@ -0,0 +1,99 @@
1
+package com.sundot.airport.web.controller.ledger;
2
+
3
+import java.util.List;
4
+import javax.servlet.http.HttpServletResponse;
5
+import org.springframework.security.access.prepost.PreAuthorize;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.web.bind.annotation.GetMapping;
8
+import org.springframework.web.bind.annotation.PostMapping;
9
+import org.springframework.web.bind.annotation.PutMapping;
10
+import org.springframework.web.bind.annotation.DeleteMapping;
11
+import org.springframework.web.bind.annotation.PathVariable;
12
+import org.springframework.web.bind.annotation.RequestBody;
13
+import org.springframework.web.bind.annotation.RequestMapping;
14
+import org.springframework.web.bind.annotation.RestController;
15
+import com.sundot.airport.common.annotation.Log;
16
+import com.sundot.airport.common.core.controller.BaseController;
17
+import com.sundot.airport.common.core.domain.AjaxResult;
18
+import com.sundot.airport.common.enums.BusinessType;
19
+import com.sundot.airport.ledger.domain.OperationStationHourlyThroughput;
20
+import com.sundot.airport.ledger.service.IOperationStationHourlyThroughputService;
21
+import com.sundot.airport.common.utils.poi.ExcelUtil;
22
+import com.sundot.airport.common.core.page.TableDataInfo;
23
+
24
+/**
25
+ * 站级时间段别总过检Controller
26
+ *
27
+ * @author ruoyi
28
+ * @date 2026-05-18
29
+ */
30
+@RestController
31
+@RequestMapping("/ledger/operationStationHourlyThroughput")
32
+public class OperationStationHourlyThroughputController extends BaseController {
33
+    @Autowired
34
+    private IOperationStationHourlyThroughputService operationStationHourlyThroughputService;
35
+
36
+    /**
37
+     * 查询站级时间段别总过检列表
38
+     */
39
+    @PreAuthorize("@ss.hasPermi('ledger:operationStationHourlyThroughput:list')")
40
+    @GetMapping("/list")
41
+    public TableDataInfo list(OperationStationHourlyThroughput operationStationHourlyThroughput) {
42
+        startPage();
43
+        List<OperationStationHourlyThroughput> list = operationStationHourlyThroughputService.selectOperationStationHourlyThroughputList(operationStationHourlyThroughput);
44
+        return getDataTable(list);
45
+    }
46
+
47
+    /**
48
+     * 导出站级时间段别总过检列表
49
+     */
50
+    @PreAuthorize("@ss.hasPermi('ledger:operationStationHourlyThroughput:export')")
51
+    @Log(title = "站级时间段别总过检", businessType = BusinessType.EXPORT)
52
+    @PostMapping("/export")
53
+    public void export(HttpServletResponse response, OperationStationHourlyThroughput operationStationHourlyThroughput) {
54
+        List<OperationStationHourlyThroughput> list = operationStationHourlyThroughputService.selectOperationStationHourlyThroughputList(operationStationHourlyThroughput);
55
+        ExcelUtil<OperationStationHourlyThroughput> util = new ExcelUtil<OperationStationHourlyThroughput>(OperationStationHourlyThroughput.class);
56
+        util.exportExcel(response, list, "站级时间段别总过检数据");
57
+    }
58
+
59
+    /**
60
+     * 获取站级时间段别总过检详细信息
61
+     */
62
+    @PreAuthorize("@ss.hasPermi('ledger:operationStationHourlyThroughput:query')")
63
+    @GetMapping(value = "/{id}")
64
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
65
+        return success(operationStationHourlyThroughputService.getById(id));
66
+    }
67
+
68
+    /**
69
+     * 新增站级时间段别总过检
70
+     */
71
+    @PreAuthorize("@ss.hasPermi('ledger:operationStationHourlyThroughput:add')")
72
+    @Log(title = "站级时间段别总过检", businessType = BusinessType.INSERT)
73
+    @PostMapping
74
+    public AjaxResult add(@RequestBody OperationStationHourlyThroughput operationStationHourlyThroughput) {
75
+        operationStationHourlyThroughput.setCreateBy(getUsername());
76
+        return toAjax(operationStationHourlyThroughputService.insertOperationStationHourlyThroughput(operationStationHourlyThroughput));
77
+    }
78
+
79
+    /**
80
+     * 修改站级时间段别总过检
81
+     */
82
+    @PreAuthorize("@ss.hasPermi('ledger:operationStationHourlyThroughput:edit')")
83
+    @Log(title = "站级时间段别总过检", businessType = BusinessType.UPDATE)
84
+    @PutMapping
85
+    public AjaxResult edit(@RequestBody OperationStationHourlyThroughput operationStationHourlyThroughput) {
86
+        operationStationHourlyThroughput.setUpdateBy(getUsername());
87
+        return toAjax(operationStationHourlyThroughputService.updateOperationStationHourlyThroughput(operationStationHourlyThroughput));
88
+    }
89
+
90
+    /**
91
+     * 删除站级时间段别总过检
92
+     */
93
+    @PreAuthorize("@ss.hasPermi('ledger:operationStationHourlyThroughput:remove')")
94
+    @Log(title = "站级时间段别总过检", businessType = BusinessType.DELETE)
95
+    @DeleteMapping("/{ids}")
96
+    public AjaxResult remove(@PathVariable Long[] ids) {
97
+        return toAjax(operationStationHourlyThroughputService.deleteOperationStationHourlyThroughputByIds(ids));
98
+    }
99
+}

+ 99 - 0
airport-admin/src/main/java/com/sundot/airport/web/controller/ledger/ScoreEmployeeAdditionalController.java

@@ -0,0 +1,99 @@
1
+package com.sundot.airport.web.controller.ledger;
2
+
3
+import java.util.List;
4
+import javax.servlet.http.HttpServletResponse;
5
+import org.springframework.security.access.prepost.PreAuthorize;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.web.bind.annotation.GetMapping;
8
+import org.springframework.web.bind.annotation.PostMapping;
9
+import org.springframework.web.bind.annotation.PutMapping;
10
+import org.springframework.web.bind.annotation.DeleteMapping;
11
+import org.springframework.web.bind.annotation.PathVariable;
12
+import org.springframework.web.bind.annotation.RequestBody;
13
+import org.springframework.web.bind.annotation.RequestMapping;
14
+import org.springframework.web.bind.annotation.RestController;
15
+import com.sundot.airport.common.annotation.Log;
16
+import com.sundot.airport.common.core.controller.BaseController;
17
+import com.sundot.airport.common.core.domain.AjaxResult;
18
+import com.sundot.airport.common.enums.BusinessType;
19
+import com.sundot.airport.ledger.domain.ScoreEmployeeAdditional;
20
+import com.sundot.airport.ledger.service.IScoreEmployeeAdditionalService;
21
+import com.sundot.airport.common.utils.poi.ExcelUtil;
22
+import com.sundot.airport.common.core.page.TableDataInfo;
23
+
24
+/**
25
+ * 员工附加分Controller
26
+ *
27
+ * @author ruoyi
28
+ * @date 2026-05-18
29
+ */
30
+@RestController
31
+@RequestMapping("/ledger/scoreEmployeeAdditional")
32
+public class ScoreEmployeeAdditionalController extends BaseController {
33
+    @Autowired
34
+    private IScoreEmployeeAdditionalService scoreEmployeeAdditionalService;
35
+
36
+    /**
37
+     * 查询员工附加分列表
38
+     */
39
+    @PreAuthorize("@ss.hasPermi('ledger:scoreEmployeeAdditional:list')")
40
+    @GetMapping("/list")
41
+    public TableDataInfo list(ScoreEmployeeAdditional scoreEmployeeAdditional) {
42
+        startPage();
43
+        List<ScoreEmployeeAdditional> list = scoreEmployeeAdditionalService.selectScoreEmployeeAdditionalList(scoreEmployeeAdditional);
44
+        return getDataTable(list);
45
+    }
46
+
47
+    /**
48
+     * 导出员工附加分列表
49
+     */
50
+    @PreAuthorize("@ss.hasPermi('ledger:scoreEmployeeAdditional:export')")
51
+    @Log(title = "员工附加分", businessType = BusinessType.EXPORT)
52
+    @PostMapping("/export")
53
+    public void export(HttpServletResponse response, ScoreEmployeeAdditional scoreEmployeeAdditional) {
54
+        List<ScoreEmployeeAdditional> list = scoreEmployeeAdditionalService.selectScoreEmployeeAdditionalList(scoreEmployeeAdditional);
55
+        ExcelUtil<ScoreEmployeeAdditional> util = new ExcelUtil<ScoreEmployeeAdditional>(ScoreEmployeeAdditional.class);
56
+        util.exportExcel(response, list, "员工附加分数据");
57
+    }
58
+
59
+    /**
60
+     * 获取员工附加分详细信息
61
+     */
62
+    @PreAuthorize("@ss.hasPermi('ledger:scoreEmployeeAdditional:query')")
63
+    @GetMapping(value = "/{id}")
64
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
65
+        return success(scoreEmployeeAdditionalService.getById(id));
66
+    }
67
+
68
+    /**
69
+     * 新增员工附加分
70
+     */
71
+    @PreAuthorize("@ss.hasPermi('ledger:scoreEmployeeAdditional:add')")
72
+    @Log(title = "员工附加分", businessType = BusinessType.INSERT)
73
+    @PostMapping
74
+    public AjaxResult add(@RequestBody ScoreEmployeeAdditional scoreEmployeeAdditional) {
75
+        scoreEmployeeAdditional.setCreateBy(getUsername());
76
+        return toAjax(scoreEmployeeAdditionalService.insertScoreEmployeeAdditional(scoreEmployeeAdditional));
77
+    }
78
+
79
+    /**
80
+     * 修改员工附加分
81
+     */
82
+    @PreAuthorize("@ss.hasPermi('ledger:scoreEmployeeAdditional:edit')")
83
+    @Log(title = "员工附加分", businessType = BusinessType.UPDATE)
84
+    @PutMapping
85
+    public AjaxResult edit(@RequestBody ScoreEmployeeAdditional scoreEmployeeAdditional) {
86
+        scoreEmployeeAdditional.setUpdateBy(getUsername());
87
+        return toAjax(scoreEmployeeAdditionalService.updateScoreEmployeeAdditional(scoreEmployeeAdditional));
88
+    }
89
+
90
+    /**
91
+     * 删除员工附加分
92
+     */
93
+    @PreAuthorize("@ss.hasPermi('ledger:scoreEmployeeAdditional:remove')")
94
+    @Log(title = "员工附加分", businessType = BusinessType.DELETE)
95
+    @DeleteMapping("/{ids}")
96
+    public AjaxResult remove(@PathVariable Long[] ids) {
97
+        return toAjax(scoreEmployeeAdditionalService.deleteScoreEmployeeAdditionalByIds(ids));
98
+    }
99
+}

+ 74 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/OperationLanePeakThroughput.java

@@ -0,0 +1,74 @@
1
+package com.sundot.airport.ledger.domain;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import com.baomidou.mybatisplus.annotation.TableName;
7
+import com.fasterxml.jackson.annotation.JsonFormat;
8
+import com.sundot.airport.common.annotation.Excel;
9
+import com.sundot.airport.common.core.domain.BaseEntity;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+
13
+/**
14
+ * 通道日别高峰时段过检对象 operation_lane_peak_throughput
15
+ */
16
+@Data
17
+@EqualsAndHashCode(callSuper = true)
18
+@TableName("operation_lane_peak_throughput")
19
+public class OperationLanePeakThroughput extends BaseEntity {
20
+    private static final long serialVersionUID = 1L;
21
+
22
+    /** 主键 */
23
+    @TableId(type = IdType.AUTO)
24
+    private Long id;
25
+
26
+    /** 部门ID */
27
+    private Long deptId;
28
+
29
+    /** 部门名称 */
30
+    @Excel(name = "部门名称")
31
+    private String deptName;
32
+
33
+    /** 队室/班组ID */
34
+    private Long teamId;
35
+
36
+    /** 队室/班组 */
37
+    @Excel(name = "队室/班组")
38
+    private String teamName;
39
+
40
+    /** 通道/小组ID */
41
+    private Long groupId;
42
+
43
+    /** 通道/小组 */
44
+    @Excel(name = "通道/小组")
45
+    private String groupName;
46
+
47
+    /** 通道号 */
48
+    @Excel(name = "通道号")
49
+    private String laneId;
50
+
51
+    /** 记录日期 */
52
+    @JsonFormat(pattern = "yyyy-MM-dd")
53
+    @Excel(name = "记录日期", width = 20, dateFormat = "yyyy-MM-dd")
54
+    private java.util.Date recordDate;
55
+
56
+    /** 小时(记录高峰时段,以流量峰值前后半小时计算) */
57
+    @Excel(name = "小时")
58
+    private String hourOfDay;
59
+
60
+    /** 过检人数 */
61
+    @Excel(name = "过检人数")
62
+    private Integer throughput;
63
+
64
+    /** 过检率(保留字段,暂时不用) */
65
+    @Excel(name = "过检率")
66
+    private BigDecimal throughputRate;
67
+
68
+    /** 备注 */
69
+    @Excel(name = "备注")
70
+    private String remark;
71
+
72
+    /** 删除标志(0正常 2删除) */
73
+    private String delFlag;
74
+}

+ 74 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/OperationStationHourlyThroughput.java

@@ -0,0 +1,74 @@
1
+package com.sundot.airport.ledger.domain;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import com.baomidou.mybatisplus.annotation.TableName;
7
+import com.fasterxml.jackson.annotation.JsonFormat;
8
+import com.sundot.airport.common.annotation.Excel;
9
+import com.sundot.airport.common.core.domain.BaseEntity;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+
13
+/**
14
+ * 站级时间段别总过检对象 operation_station_hourly_throughput
15
+ */
16
+@Data
17
+@EqualsAndHashCode(callSuper = true)
18
+@TableName("operation_station_hourly_throughput")
19
+public class OperationStationHourlyThroughput extends BaseEntity {
20
+    private static final long serialVersionUID = 1L;
21
+
22
+    /** 主键 */
23
+    @TableId(type = IdType.AUTO)
24
+    private Long id;
25
+
26
+    /** 部门ID */
27
+    private Long deptId;
28
+
29
+    /** 部门名称 */
30
+    @Excel(name = "部门名称")
31
+    private String deptName;
32
+
33
+    /** 队室/班组ID */
34
+    private Long teamId;
35
+
36
+    /** 队室/班组 */
37
+    @Excel(name = "队室/班组")
38
+    private String teamName;
39
+
40
+    /** 通道/小组ID */
41
+    private Long groupId;
42
+
43
+    /** 通道/小组 */
44
+    @Excel(name = "通道/小组")
45
+    private String groupName;
46
+
47
+    /** 通道号 */
48
+    @Excel(name = "通道号")
49
+    private String laneId;
50
+
51
+    /** 记录日期(YYYYMMDD) */
52
+    @JsonFormat(pattern = "yyyyMMdd")
53
+    @Excel(name = "记录日期", width = 20, dateFormat = "yyyyMMdd")
54
+    private String recordDate;
55
+
56
+    /** 小时(0:00~1:00、1:00~2:00、23:00~24:00等) */
57
+    @Excel(name = "小时")
58
+    private String hourOfDay;
59
+
60
+    /** 过检人数 */
61
+    @Excel(name = "过检人数")
62
+    private Integer throughput;
63
+
64
+    /** 过检率 */
65
+    @Excel(name = "过检率")
66
+    private BigDecimal throughputRate;
67
+
68
+    /** 备注 */
69
+    @Excel(name = "备注")
70
+    private String remark;
71
+
72
+    /** 删除标志(0正常 2删除) */
73
+    private String delFlag;
74
+}

+ 73 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/ScoreEmployeeAdditional.java

@@ -0,0 +1,73 @@
1
+package com.sundot.airport.ledger.domain;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import com.baomidou.mybatisplus.annotation.TableName;
7
+import com.fasterxml.jackson.annotation.JsonFormat;
8
+import com.sundot.airport.common.annotation.Excel;
9
+import com.sundot.airport.common.core.domain.BaseEntity;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+
13
+/**
14
+ * 员工附加分对象 score_employee_additional
15
+ */
16
+@Data
17
+@EqualsAndHashCode(callSuper = true)
18
+@TableName("score_employee_additional")
19
+public class ScoreEmployeeAdditional extends BaseEntity {
20
+    private static final long serialVersionUID = 1L;
21
+
22
+    /** 主键 */
23
+    @TableId(type = IdType.AUTO)
24
+    private Long id;
25
+
26
+    /** 部门ID */
27
+    private Long deptId;
28
+
29
+    /** 部门名称 */
30
+    @Excel(name = "部门名称")
31
+    private String deptName;
32
+
33
+    /** 队室/班组ID */
34
+    private Long teamId;
35
+
36
+    /** 队室/班组 */
37
+    @Excel(name = "队室/班组")
38
+    private String teamName;
39
+
40
+    /** 通道/小组ID */
41
+    private Long groupId;
42
+
43
+    /** 通道/小组 */
44
+    @Excel(name = "通道/小组")
45
+    private String groupName;
46
+
47
+    /** 员工ID */
48
+    private Long userId;
49
+
50
+    /** 员工姓名 */
51
+    @Excel(name = "员工姓名")
52
+    private String userName;
53
+
54
+    /** 附加分所属月份 */
55
+    @JsonFormat(pattern = "yyyy-MM")
56
+    @Excel(name = "附加分所属月份", width = 20, dateFormat = "yyyy-MM")
57
+    private String monthOfRecord;
58
+
59
+    /** 类型:1-加分,2-减分 */
60
+    @Excel(name = "类型", readConverterExp = "1=加分,2=减分")
61
+    private Integer type;
62
+
63
+    /** 分值(员工画像附加分) */
64
+    @Excel(name = "分值")
65
+    private BigDecimal score;
66
+
67
+    /** 备注 */
68
+    @Excel(name = "备注")
69
+    private String remark;
70
+
71
+    /** 删除标志(0正常 2删除) */
72
+    private String delFlag;
73
+}

+ 18 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/OperationLanePeakThroughputMapper.java

@@ -0,0 +1,18 @@
1
+package com.sundot.airport.ledger.mapper;
2
+
3
+import java.util.List;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import com.sundot.airport.ledger.domain.OperationLanePeakThroughput;
6
+
7
+/**
8
+ * 通道日别高峰时段过检Mapper接口
9
+ */
10
+public interface OperationLanePeakThroughputMapper extends BaseMapper<OperationLanePeakThroughput> {
11
+    /**
12
+     * 查询通道日别高峰时段过检列表
13
+     *
14
+     * @param operationLanePeakThroughput 通道日别高峰时段过检
15
+     * @return 通道日别高峰时段过检集合
16
+     */
17
+    List<OperationLanePeakThroughput> selectOperationLanePeakThroughputList(OperationLanePeakThroughput operationLanePeakThroughput);
18
+}

+ 18 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/OperationStationHourlyThroughputMapper.java

@@ -0,0 +1,18 @@
1
+package com.sundot.airport.ledger.mapper;
2
+
3
+import java.util.List;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import com.sundot.airport.ledger.domain.OperationStationHourlyThroughput;
6
+
7
+/**
8
+ * 站级时间段别总过检Mapper接口
9
+ */
10
+public interface OperationStationHourlyThroughputMapper extends BaseMapper<OperationStationHourlyThroughput> {
11
+    /**
12
+     * 查询站级时间段别总过检列表
13
+     *
14
+     * @param operationStationHourlyThroughput 站级时间段别总过检
15
+     * @return 站级时间段别总过检集合
16
+     */
17
+    List<OperationStationHourlyThroughput> selectOperationStationHourlyThroughputList(OperationStationHourlyThroughput operationStationHourlyThroughput);
18
+}

+ 18 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/ScoreEmployeeAdditionalMapper.java

@@ -0,0 +1,18 @@
1
+package com.sundot.airport.ledger.mapper;
2
+
3
+import java.util.List;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import com.sundot.airport.ledger.domain.ScoreEmployeeAdditional;
6
+
7
+/**
8
+ * 员工附加分Mapper接口
9
+ */
10
+public interface ScoreEmployeeAdditionalMapper extends BaseMapper<ScoreEmployeeAdditional> {
11
+    /**
12
+     * 查询员工附加分列表
13
+     *
14
+     * @param scoreEmployeeAdditional 员工附加分
15
+     * @return 员工附加分集合
16
+     */
17
+    List<ScoreEmployeeAdditional> selectScoreEmployeeAdditionalList(ScoreEmployeeAdditional scoreEmployeeAdditional);
18
+}

+ 50 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/service/IOperationLanePeakThroughputService.java

@@ -0,0 +1,50 @@
1
+package com.sundot.airport.ledger.service;
2
+
3
+import java.util.List;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.sundot.airport.ledger.domain.OperationLanePeakThroughput;
6
+
7
+/**
8
+ * 通道日别高峰时段过检Service接口
9
+ */
10
+public interface IOperationLanePeakThroughputService extends IService<OperationLanePeakThroughput> {
11
+    /**
12
+     * 查询通道日别高峰时段过检列表
13
+     *
14
+     * @param operationLanePeakThroughput 通道日别高峰时段过检
15
+     * @return 通道日别高峰时段过检集合
16
+     */
17
+    List<OperationLanePeakThroughput> selectOperationLanePeakThroughputList(OperationLanePeakThroughput operationLanePeakThroughput);
18
+
19
+    /**
20
+     * 新增通道日别高峰时段过检
21
+     *
22
+     * @param operationLanePeakThroughput 通道日别高峰时段过检
23
+     * @return 结果
24
+     */
25
+    int insertOperationLanePeakThroughput(OperationLanePeakThroughput operationLanePeakThroughput);
26
+
27
+    /**
28
+     * 修改通道日别高峰时段过检
29
+     *
30
+     * @param operationLanePeakThroughput 通道日别高峰时段过检
31
+     * @return 结果
32
+     */
33
+    int updateOperationLanePeakThroughput(OperationLanePeakThroughput operationLanePeakThroughput);
34
+
35
+    /**
36
+     * 批量删除通道日别高峰时段过检
37
+     *
38
+     * @param ids 需要删除的通道日别高峰时段过检主键集合
39
+     * @return 结果
40
+     */
41
+    int deleteOperationLanePeakThroughputByIds(Long[] ids);
42
+
43
+    /**
44
+     * 删除通道日别高峰时段过检信息
45
+     *
46
+     * @param id 通道日别高峰时段过检主键
47
+     * @return 结果
48
+     */
49
+    int deleteOperationLanePeakThroughputById(Long id);
50
+}

+ 50 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/service/IOperationStationHourlyThroughputService.java

@@ -0,0 +1,50 @@
1
+package com.sundot.airport.ledger.service;
2
+
3
+import java.util.List;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.sundot.airport.ledger.domain.OperationStationHourlyThroughput;
6
+
7
+/**
8
+ * 站级时间段别总过检Service接口
9
+ */
10
+public interface IOperationStationHourlyThroughputService extends IService<OperationStationHourlyThroughput> {
11
+    /**
12
+     * 查询站级时间段别总过检列表
13
+     *
14
+     * @param operationStationHourlyThroughput 站级时间段别总过检
15
+     * @return 站级时间段别总过检集合
16
+     */
17
+    List<OperationStationHourlyThroughput> selectOperationStationHourlyThroughputList(OperationStationHourlyThroughput operationStationHourlyThroughput);
18
+
19
+    /**
20
+     * 新增站级时间段别总过检
21
+     *
22
+     * @param operationStationHourlyThroughput 站级时间段别总过检
23
+     * @return 结果
24
+     */
25
+    int insertOperationStationHourlyThroughput(OperationStationHourlyThroughput operationStationHourlyThroughput);
26
+
27
+    /**
28
+     * 修改站级时间段别总过检
29
+     *
30
+     * @param operationStationHourlyThroughput 站级时间段别总过检
31
+     * @return 结果
32
+     */
33
+    int updateOperationStationHourlyThroughput(OperationStationHourlyThroughput operationStationHourlyThroughput);
34
+
35
+    /**
36
+     * 批量删除站级时间段别总过检
37
+     *
38
+     * @param ids 需要删除的站级时间段别总过检主键集合
39
+     * @return 结果
40
+     */
41
+    int deleteOperationStationHourlyThroughputByIds(Long[] ids);
42
+
43
+    /**
44
+     * 删除站级时间段别总过检信息
45
+     *
46
+     * @param id 站级时间段别总过检主键
47
+     * @return 结果
48
+     */
49
+    int deleteOperationStationHourlyThroughputById(Long id);
50
+}

+ 50 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/service/IScoreEmployeeAdditionalService.java

@@ -0,0 +1,50 @@
1
+package com.sundot.airport.ledger.service;
2
+
3
+import java.util.List;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.sundot.airport.ledger.domain.ScoreEmployeeAdditional;
6
+
7
+/**
8
+ * 员工附加分Service接口
9
+ */
10
+public interface IScoreEmployeeAdditionalService extends IService<ScoreEmployeeAdditional> {
11
+    /**
12
+     * 查询员工附加分列表
13
+     *
14
+     * @param scoreEmployeeAdditional 员工附加分
15
+     * @return 员工附加分集合
16
+     */
17
+    List<ScoreEmployeeAdditional> selectScoreEmployeeAdditionalList(ScoreEmployeeAdditional scoreEmployeeAdditional);
18
+
19
+    /**
20
+     * 新增员工附加分
21
+     *
22
+     * @param scoreEmployeeAdditional 员工附加分
23
+     * @return 结果
24
+     */
25
+    int insertScoreEmployeeAdditional(ScoreEmployeeAdditional scoreEmployeeAdditional);
26
+
27
+    /**
28
+     * 修改员工附加分
29
+     *
30
+     * @param scoreEmployeeAdditional 员工附加分
31
+     * @return 结果
32
+     */
33
+    int updateScoreEmployeeAdditional(ScoreEmployeeAdditional scoreEmployeeAdditional);
34
+
35
+    /**
36
+     * 批量删除员工附加分
37
+     *
38
+     * @param ids 需要删除的员工附加分主键集合
39
+     * @return 结果
40
+     */
41
+    int deleteScoreEmployeeAdditionalByIds(Long[] ids);
42
+
43
+    /**
44
+     * 删除员工附加分信息
45
+     *
46
+     * @param id 员工附加分主键
47
+     * @return 结果
48
+     */
49
+    int deleteScoreEmployeeAdditionalById(Long id);
50
+}

+ 83 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/service/impl/OperationLanePeakThroughputServiceImpl.java

@@ -0,0 +1,83 @@
1
+package com.sundot.airport.ledger.service.impl;
2
+
3
+import java.util.List;
4
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
5
+import com.sundot.airport.common.utils.DateUtils;
6
+import com.sundot.airport.ledger.domain.OperationLanePeakThroughput;
7
+import com.sundot.airport.ledger.mapper.OperationLanePeakThroughputMapper;
8
+import com.sundot.airport.ledger.service.IOperationLanePeakThroughputService;
9
+import org.springframework.beans.factory.annotation.Autowired;
10
+import org.springframework.stereotype.Service;
11
+import org.springframework.transaction.annotation.Transactional;
12
+
13
+/**
14
+ * 通道日别高峰时段过检Service业务层处理
15
+ */
16
+@Service
17
+public class OperationLanePeakThroughputServiceImpl extends ServiceImpl<OperationLanePeakThroughputMapper, OperationLanePeakThroughput>
18
+        implements IOperationLanePeakThroughputService {
19
+
20
+    @Autowired
21
+    private OperationLanePeakThroughputMapper operationLanePeakThroughputMapper;
22
+
23
+    /**
24
+     * 查询通道日别高峰时段过检列表
25
+     *
26
+     * @param operationLanePeakThroughput 通道日别高峰时段过检
27
+     * @return 通道日别高峰时段过检
28
+     */
29
+    @Override
30
+    public List<OperationLanePeakThroughput> selectOperationLanePeakThroughputList(OperationLanePeakThroughput operationLanePeakThroughput) {
31
+        return operationLanePeakThroughputMapper.selectOperationLanePeakThroughputList(operationLanePeakThroughput);
32
+    }
33
+
34
+    /**
35
+     * 新增通道日别高峰时段过检
36
+     *
37
+     * @param operationLanePeakThroughput 通道日别高峰时段过检
38
+     * @return 结果
39
+     */
40
+    @Override
41
+    @Transactional(rollbackFor = Exception.class)
42
+    public int insertOperationLanePeakThroughput(OperationLanePeakThroughput operationLanePeakThroughput) {
43
+        operationLanePeakThroughput.setCreateTime(DateUtils.getNowDate());
44
+        return operationLanePeakThroughputMapper.insert(operationLanePeakThroughput);
45
+    }
46
+
47
+    /**
48
+     * 修改通道日别高峰时段过检
49
+     *
50
+     * @param operationLanePeakThroughput 通道日别高峰时段过检
51
+     * @return 结果
52
+     */
53
+    @Override
54
+    @Transactional(rollbackFor = Exception.class)
55
+    public int updateOperationLanePeakThroughput(OperationLanePeakThroughput operationLanePeakThroughput) {
56
+        operationLanePeakThroughput.setUpdateTime(DateUtils.getNowDate());
57
+        return operationLanePeakThroughputMapper.updateById(operationLanePeakThroughput);
58
+    }
59
+
60
+    /**
61
+     * 批量删除通道日别高峰时段过检
62
+     *
63
+     * @param ids 需要删除的通道日别高峰时段过检主键
64
+     * @return 结果
65
+     */
66
+    @Override
67
+    @Transactional(rollbackFor = Exception.class)
68
+    public int deleteOperationLanePeakThroughputByIds(Long[] ids) {
69
+        return operationLanePeakThroughputMapper.deleteBatchIds(java.util.Arrays.asList(ids));
70
+    }
71
+
72
+    /**
73
+     * 删除通道日别高峰时段过检信息
74
+     *
75
+     * @param id 通道日别高峰时段过检主键
76
+     * @return 结果
77
+     */
78
+    @Override
79
+    @Transactional(rollbackFor = Exception.class)
80
+    public int deleteOperationLanePeakThroughputById(Long id) {
81
+        return operationLanePeakThroughputMapper.deleteById(id);
82
+    }
83
+}

+ 83 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/service/impl/OperationStationHourlyThroughputServiceImpl.java

@@ -0,0 +1,83 @@
1
+package com.sundot.airport.ledger.service.impl;
2
+
3
+import java.util.List;
4
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
5
+import com.sundot.airport.common.utils.DateUtils;
6
+import com.sundot.airport.ledger.domain.OperationStationHourlyThroughput;
7
+import com.sundot.airport.ledger.mapper.OperationStationHourlyThroughputMapper;
8
+import com.sundot.airport.ledger.service.IOperationStationHourlyThroughputService;
9
+import org.springframework.beans.factory.annotation.Autowired;
10
+import org.springframework.stereotype.Service;
11
+import org.springframework.transaction.annotation.Transactional;
12
+
13
+/**
14
+ * 站级时间段别总过检Service业务层处理
15
+ */
16
+@Service
17
+public class OperationStationHourlyThroughputServiceImpl extends ServiceImpl<OperationStationHourlyThroughputMapper, OperationStationHourlyThroughput>
18
+        implements IOperationStationHourlyThroughputService {
19
+
20
+    @Autowired
21
+    private OperationStationHourlyThroughputMapper operationStationHourlyThroughputMapper;
22
+
23
+    /**
24
+     * 查询站级时间段别总过检列表
25
+     *
26
+     * @param operationStationHourlyThroughput 站级时间段别总过检
27
+     * @return 站级时间段别总过检
28
+     */
29
+    @Override
30
+    public List<OperationStationHourlyThroughput> selectOperationStationHourlyThroughputList(OperationStationHourlyThroughput operationStationHourlyThroughput) {
31
+        return operationStationHourlyThroughputMapper.selectOperationStationHourlyThroughputList(operationStationHourlyThroughput);
32
+    }
33
+
34
+    /**
35
+     * 新增站级时间段别总过检
36
+     *
37
+     * @param operationStationHourlyThroughput 站级时间段别总过检
38
+     * @return 结果
39
+     */
40
+    @Override
41
+    @Transactional(rollbackFor = Exception.class)
42
+    public int insertOperationStationHourlyThroughput(OperationStationHourlyThroughput operationStationHourlyThroughput) {
43
+        operationStationHourlyThroughput.setCreateTime(DateUtils.getNowDate());
44
+        return operationStationHourlyThroughputMapper.insert(operationStationHourlyThroughput);
45
+    }
46
+
47
+    /**
48
+     * 修改站级时间段别总过检
49
+     *
50
+     * @param operationStationHourlyThroughput 站级时间段别总过检
51
+     * @return 结果
52
+     */
53
+    @Override
54
+    @Transactional(rollbackFor = Exception.class)
55
+    public int updateOperationStationHourlyThroughput(OperationStationHourlyThroughput operationStationHourlyThroughput) {
56
+        operationStationHourlyThroughput.setUpdateTime(DateUtils.getNowDate());
57
+        return operationStationHourlyThroughputMapper.updateById(operationStationHourlyThroughput);
58
+    }
59
+
60
+    /**
61
+     * 批量删除站级时间段别总过检
62
+     *
63
+     * @param ids 需要删除的站级时间段别总过检主键
64
+     * @return 结果
65
+     */
66
+    @Override
67
+    @Transactional(rollbackFor = Exception.class)
68
+    public int deleteOperationStationHourlyThroughputByIds(Long[] ids) {
69
+        return operationStationHourlyThroughputMapper.deleteBatchIds(java.util.Arrays.asList(ids));
70
+    }
71
+
72
+    /**
73
+     * 删除站级时间段别总过检信息
74
+     *
75
+     * @param id 站级时间段别总过检主键
76
+     * @return 结果
77
+     */
78
+    @Override
79
+    @Transactional(rollbackFor = Exception.class)
80
+    public int deleteOperationStationHourlyThroughputById(Long id) {
81
+        return operationStationHourlyThroughputMapper.deleteById(id);
82
+    }
83
+}

+ 83 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/service/impl/ScoreEmployeeAdditionalServiceImpl.java

@@ -0,0 +1,83 @@
1
+package com.sundot.airport.ledger.service.impl;
2
+
3
+import java.util.List;
4
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
5
+import com.sundot.airport.common.utils.DateUtils;
6
+import com.sundot.airport.ledger.domain.ScoreEmployeeAdditional;
7
+import com.sundot.airport.ledger.mapper.ScoreEmployeeAdditionalMapper;
8
+import com.sundot.airport.ledger.service.IScoreEmployeeAdditionalService;
9
+import org.springframework.beans.factory.annotation.Autowired;
10
+import org.springframework.stereotype.Service;
11
+import org.springframework.transaction.annotation.Transactional;
12
+
13
+/**
14
+ * 员工附加分Service业务层处理
15
+ */
16
+@Service
17
+public class ScoreEmployeeAdditionalServiceImpl extends ServiceImpl<ScoreEmployeeAdditionalMapper, ScoreEmployeeAdditional>
18
+        implements IScoreEmployeeAdditionalService {
19
+
20
+    @Autowired
21
+    private ScoreEmployeeAdditionalMapper scoreEmployeeAdditionalMapper;
22
+
23
+    /**
24
+     * 查询员工附加分列表
25
+     *
26
+     * @param scoreEmployeeAdditional 员工附加分
27
+     * @return 员工附加分
28
+     */
29
+    @Override
30
+    public List<ScoreEmployeeAdditional> selectScoreEmployeeAdditionalList(ScoreEmployeeAdditional scoreEmployeeAdditional) {
31
+        return scoreEmployeeAdditionalMapper.selectScoreEmployeeAdditionalList(scoreEmployeeAdditional);
32
+    }
33
+
34
+    /**
35
+     * 新增员工附加分
36
+     *
37
+     * @param scoreEmployeeAdditional 员工附加分
38
+     * @return 结果
39
+     */
40
+    @Override
41
+    @Transactional(rollbackFor = Exception.class)
42
+    public int insertScoreEmployeeAdditional(ScoreEmployeeAdditional scoreEmployeeAdditional) {
43
+        scoreEmployeeAdditional.setCreateTime(DateUtils.getNowDate());
44
+        return scoreEmployeeAdditionalMapper.insert(scoreEmployeeAdditional);
45
+    }
46
+
47
+    /**
48
+     * 修改员工附加分
49
+     *
50
+     * @param scoreEmployeeAdditional 员工附加分
51
+     * @return 结果
52
+     */
53
+    @Override
54
+    @Transactional(rollbackFor = Exception.class)
55
+    public int updateScoreEmployeeAdditional(ScoreEmployeeAdditional scoreEmployeeAdditional) {
56
+        scoreEmployeeAdditional.setUpdateTime(DateUtils.getNowDate());
57
+        return scoreEmployeeAdditionalMapper.updateById(scoreEmployeeAdditional);
58
+    }
59
+
60
+    /**
61
+     * 批量删除员工附加分
62
+     *
63
+     * @param ids 需要删除的员工附加分主键
64
+     * @return 结果
65
+     */
66
+    @Override
67
+    @Transactional(rollbackFor = Exception.class)
68
+    public int deleteScoreEmployeeAdditionalByIds(Long[] ids) {
69
+        return scoreEmployeeAdditionalMapper.deleteBatchIds(java.util.Arrays.asList(ids));
70
+    }
71
+
72
+    /**
73
+     * 删除员工附加分信息
74
+     *
75
+     * @param id 员工附加分主键
76
+     * @return 结果
77
+     */
78
+    @Override
79
+    @Transactional(rollbackFor = Exception.class)
80
+    public int deleteScoreEmployeeAdditionalById(Long id) {
81
+        return scoreEmployeeAdditionalMapper.deleteById(id);
82
+    }
83
+}

+ 52 - 0
airport-ledger/src/main/resources/mapper/ledger/OperationLanePeakThroughputMapper.xml

@@ -0,0 +1,52 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.sundot.airport.ledger.mapper.OperationLanePeakThroughputMapper">
6
+    
7
+    <resultMap type="OperationLanePeakThroughput" id="OperationLanePeakThroughputResult">
8
+        <id     property="id"              column="id"              />
9
+        <result property="deptId"          column="dept_id"         />
10
+        <result property="deptName"        column="dept_name"       />
11
+        <result property="teamId"          column="team_id"         />
12
+        <result property="teamName"        column="team_name"       />
13
+        <result property="groupId"         column="group_id"        />
14
+        <result property="groupName"       column="group_name"      />
15
+        <result property="laneId"          column="lane_id"         />
16
+        <result property="recordDate"      column="record_date"     />
17
+        <result property="hourOfDay"       column="hour_of_day"     />
18
+        <result property="throughput"      column="throughput"      />
19
+        <result property="throughputRate"  column="throughput_rate" />
20
+        <result property="remark"          column="remark"          />
21
+        <result property="createBy"        column="create_by"       />
22
+        <result property="createTime"      column="create_time"     />
23
+        <result property="updateBy"        column="update_by"       />
24
+        <result property="updateTime"      column="update_time"     />
25
+        <result property="delFlag"         column="del_flag"        />
26
+    </resultMap>
27
+
28
+    <sql id="selectOperationLanePeakThroughputVo">
29
+        select id, dept_id, dept_name, team_id, team_name, group_id, group_name, 
30
+               lane_id, record_date, hour_of_day, throughput, throughput_rate, remark, 
31
+               create_by, create_time, update_by, update_time, del_flag
32
+        from operation_lane_peak_throughput
33
+    </sql>
34
+
35
+    <select id="selectOperationLanePeakThroughputList" parameterType="OperationLanePeakThroughput" resultMap="OperationLanePeakThroughputResult">
36
+        <include refid="selectOperationLanePeakThroughputVo"/>
37
+        <where>  
38
+            del_flag = '0'
39
+            <if test="deptId != null "> and dept_id = #{deptId}</if>
40
+            <if test="deptName != null  and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
41
+            <if test="teamId != null "> and team_id = #{teamId}</if>
42
+            <if test="teamName != null  and teamName != ''"> and team_name like concat('%', #{teamName}, '%')</if>
43
+            <if test="groupId != null "> and group_id = #{groupId}</if>
44
+            <if test="groupName != null  and groupName != ''"> and group_name like concat('%', #{groupName}, '%')</if>
45
+            <if test="laneId != null  and laneId != ''"> and lane_id = #{laneId}</if>
46
+            <if test="recordDate != null "> and record_date = #{recordDate}</if>
47
+            <if test="hourOfDay != null  and hourOfDay != ''"> and hour_of_day = #{hourOfDay}</if>
48
+        </where>
49
+        order by record_date desc, create_time desc
50
+    </select>
51
+
52
+</mapper>

+ 52 - 0
airport-ledger/src/main/resources/mapper/ledger/OperationStationHourlyThroughputMapper.xml

@@ -0,0 +1,52 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.sundot.airport.ledger.mapper.OperationStationHourlyThroughputMapper">
6
+    
7
+    <resultMap type="OperationStationHourlyThroughput" id="OperationStationHourlyThroughputResult">
8
+        <id     property="id"              column="id"              />
9
+        <result property="deptId"          column="dept_id"         />
10
+        <result property="deptName"        column="dept_name"       />
11
+        <result property="teamId"          column="team_id"         />
12
+        <result property="teamName"        column="team_name"       />
13
+        <result property="groupId"         column="group_id"        />
14
+        <result property="groupName"       column="group_name"      />
15
+        <result property="laneId"          column="lane_id"         />
16
+        <result property="recordDate"      column="record_date"     />
17
+        <result property="hourOfDay"       column="hour_of_day"     />
18
+        <result property="throughput"      column="throughput"      />
19
+        <result property="throughputRate"  column="throughput_rate" />
20
+        <result property="remark"          column="remark"          />
21
+        <result property="createBy"        column="create_by"       />
22
+        <result property="createTime"      column="create_time"     />
23
+        <result property="updateBy"        column="update_by"       />
24
+        <result property="updateTime"      column="update_time"     />
25
+        <result property="delFlag"         column="del_flag"        />
26
+    </resultMap>
27
+
28
+    <sql id="selectOperationStationHourlyThroughputVo">
29
+        select id, dept_id, dept_name, team_id, team_name, group_id, group_name, 
30
+               lane_id, record_date, hour_of_day, throughput, throughput_rate, remark, 
31
+               create_by, create_time, update_by, update_time, del_flag
32
+        from operation_station_hourly_throughput
33
+    </sql>
34
+
35
+    <select id="selectOperationStationHourlyThroughputList" parameterType="OperationStationHourlyThroughput" resultMap="OperationStationHourlyThroughputResult">
36
+        <include refid="selectOperationStationHourlyThroughputVo"/>
37
+        <where>  
38
+            del_flag = '0'
39
+            <if test="deptId != null "> and dept_id = #{deptId}</if>
40
+            <if test="deptName != null  and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
41
+            <if test="teamId != null "> and team_id = #{teamId}</if>
42
+            <if test="teamName != null  and teamName != ''"> and team_name like concat('%', #{teamName}, '%')</if>
43
+            <if test="groupId != null "> and group_id = #{groupId}</if>
44
+            <if test="groupName != null  and groupName != ''"> and group_name like concat('%', #{groupName}, '%')</if>
45
+            <if test="laneId != null  and laneId != ''"> and lane_id = #{laneId}</if>
46
+            <if test="recordDate != null  and recordDate != ''"> and record_date = #{recordDate}</if>
47
+            <if test="hourOfDay != null  and hourOfDay != ''"> and hour_of_day = #{hourOfDay}</if>
48
+        </where>
49
+        order by record_date desc, create_time desc
50
+    </select>
51
+
52
+</mapper>

+ 53 - 0
airport-ledger/src/main/resources/mapper/ledger/ScoreEmployeeAdditionalMapper.xml

@@ -0,0 +1,53 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.sundot.airport.ledger.mapper.ScoreEmployeeAdditionalMapper">
6
+    
7
+    <resultMap type="ScoreEmployeeAdditional" id="ScoreEmployeeAdditionalResult">
8
+        <id     property="id"              column="id"              />
9
+        <result property="deptId"          column="dept_id"         />
10
+        <result property="deptName"        column="dept_name"       />
11
+        <result property="teamId"          column="team_id"         />
12
+        <result property="teamName"        column="team_name"       />
13
+        <result property="groupId"         column="group_id"        />
14
+        <result property="groupName"       column="group_name"      />
15
+        <result property="userId"          column="user_id"         />
16
+        <result property="userName"        column="user_name"       />
17
+        <result property="monthOfRecord"   column="month_of_record" />
18
+        <result property="type"            column="type"            />
19
+        <result property="score"           column="score"           />
20
+        <result property="remark"          column="remark"          />
21
+        <result property="createBy"        column="create_by"       />
22
+        <result property="createTime"      column="create_time"     />
23
+        <result property="updateBy"        column="update_by"       />
24
+        <result property="updateTime"      column="update_time"     />
25
+        <result property="delFlag"         column="del_flag"        />
26
+    </resultMap>
27
+
28
+    <sql id="selectScoreEmployeeAdditionalVo">
29
+        select id, dept_id, dept_name, team_id, team_name, group_id, group_name, 
30
+               user_id, user_name, month_of_record, type, score, remark, 
31
+               create_by, create_time, update_by, update_time, del_flag
32
+        from score_employee_additional
33
+    </sql>
34
+
35
+    <select id="selectScoreEmployeeAdditionalList" parameterType="ScoreEmployeeAdditional" resultMap="ScoreEmployeeAdditionalResult">
36
+        <include refid="selectScoreEmployeeAdditionalVo"/>
37
+        <where>  
38
+            del_flag = '0'
39
+            <if test="deptId != null "> and dept_id = #{deptId}</if>
40
+            <if test="deptName != null  and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
41
+            <if test="teamId != null "> and team_id = #{teamId}</if>
42
+            <if test="teamName != null  and teamName != ''"> and team_name like concat('%', #{teamName}, '%')</if>
43
+            <if test="groupId != null "> and group_id = #{groupId}</if>
44
+            <if test="groupName != null  and groupName != ''"> and group_name like concat('%', #{groupName}, '%')</if>
45
+            <if test="userId != null "> and user_id = #{userId}</if>
46
+            <if test="userName != null  and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
47
+            <if test="monthOfRecord != null  and monthOfRecord != ''"> and month_of_record = #{monthOfRecord}</if>
48
+            <if test="type != null "> and type = #{type}</if>
49
+        </where>
50
+        order by create_time desc
51
+    </select>
52
+
53
+</mapper>

+ 30 - 0
sql/employee_additional_score.sql

@@ -0,0 +1,30 @@
1
+-- ----------------------------
2
+-- 员工附加分表
3
+-- ----------------------------
4
+DROP TABLE IF EXISTS `score_employee_additional`;
5
+CREATE TABLE `score_employee_additional` (
6
+  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
7
+  `dept_id` bigint(20) DEFAULT NULL COMMENT '部门ID',
8
+  `dept_name` varchar(100) DEFAULT NULL COMMENT '部门名称',
9
+  `team_id` bigint(20) DEFAULT NULL COMMENT '队室/班组ID',
10
+  `team_name` varchar(100) DEFAULT NULL COMMENT '队室/班组',
11
+  `group_id` bigint(20) DEFAULT NULL COMMENT '通道/小组ID',
12
+  `group_name` varchar(100) DEFAULT NULL COMMENT '通道/小组',
13
+  `user_id` bigint(20) DEFAULT NULL COMMENT '员工ID',
14
+  `user_name` varchar(100) DEFAULT NULL COMMENT '员工姓名',
15
+  `month_of_record` varchar(20) DEFAULT NULL COMMENT '附加分所属月份',
16
+  `type` tinyint(4) DEFAULT NULL COMMENT '类型:1-加分,2-减分',
17
+  `score` decimal(10,2) DEFAULT NULL COMMENT '分值(员工画像附加分)',
18
+  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
19
+  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
20
+  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
21
+  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
22
+  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
23
+  `del_flag` char(1) DEFAULT '0' COMMENT '删除标志(0正常 2删除)',
24
+  PRIMARY KEY (`id`),
25
+  KEY `idx_dept_id` (`dept_id`),
26
+  KEY `idx_team_id` (`team_id`),
27
+  KEY `idx_group_id` (`group_id`),
28
+  KEY `idx_user_id` (`user_id`),
29
+  KEY `idx_month_of_record` (`month_of_record`)
30
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='员工附加分表';

+ 30 - 0
sql/lane_peak_throughput.sql

@@ -0,0 +1,30 @@
1
+-- ----------------------------
2
+-- 通道日别高峰时段过检表
3
+-- ----------------------------
4
+DROP TABLE IF EXISTS `operation_lane_peak_throughput`;
5
+CREATE TABLE `operation_lane_peak_throughput` (
6
+  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
7
+  `dept_id` bigint(20) DEFAULT NULL COMMENT '部门ID',
8
+  `dept_name` varchar(100) DEFAULT NULL COMMENT '部门名称',
9
+  `team_id` bigint(20) DEFAULT NULL COMMENT '队室/班组ID',
10
+  `team_name` varchar(100) DEFAULT NULL COMMENT '队室/班组',
11
+  `group_id` bigint(20) DEFAULT NULL COMMENT '通道/小组ID',
12
+  `group_name` varchar(100) DEFAULT NULL COMMENT '通道/小组',
13
+  `lane_id` varchar(50) DEFAULT NULL COMMENT '通道号',
14
+  `record_date` date DEFAULT NULL COMMENT '记录日期',
15
+  `hour_of_day` varchar(20) DEFAULT NULL COMMENT '小时',
16
+  `throughput` int(11) DEFAULT NULL COMMENT '过检人数',
17
+  `throughput_rate` decimal(10,2) DEFAULT NULL COMMENT '过检率',
18
+  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
19
+  `create_by` varchar(64) DEFAULT '' COMMENT '创建者ID',
20
+  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
21
+  `update_by` varchar(64) DEFAULT '' COMMENT '更新者ID',
22
+  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
23
+  `del_flag` char(1) DEFAULT '0' COMMENT '删除标志(0正常 2删除)',
24
+  PRIMARY KEY (`id`),
25
+  KEY `idx_dept_id` (`dept_id`),
26
+  KEY `idx_team_id` (`team_id`),
27
+  KEY `idx_group_id` (`group_id`),
28
+  KEY `idx_lane_id` (`lane_id`),
29
+  KEY `idx_record_date` (`record_date`)
30
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='通道日别高峰时段过检表';

+ 30 - 0
sql/station_hourly_throughput.sql

@@ -0,0 +1,30 @@
1
+-- ----------------------------
2
+-- 站级时间段别总过检表
3
+-- ----------------------------
4
+DROP TABLE IF EXISTS `operation_station_hourly_throughput`;
5
+CREATE TABLE `operation_station_hourly_throughput` (
6
+  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
7
+  `dept_id` bigint(20) DEFAULT NULL COMMENT '部门ID',
8
+  `dept_name` varchar(100) DEFAULT NULL COMMENT '部门名称',
9
+  `team_id` bigint(20) DEFAULT NULL COMMENT '队室/班组ID',
10
+  `team_name` varchar(100) DEFAULT NULL COMMENT '队室/班组',
11
+  `group_id` bigint(20) DEFAULT NULL COMMENT '通道/小组ID',
12
+  `group_name` varchar(100) DEFAULT NULL COMMENT '通道/小组',
13
+  `lane_id` varchar(50) DEFAULT NULL COMMENT '通道号',
14
+  `record_date` varchar(8) DEFAULT NULL COMMENT '记录日期(YYYYMMDD)',
15
+  `hour_of_day` varchar(20) DEFAULT NULL COMMENT '小时(0:00~1:00、1:00~2:00、23:00~24:00等)',
16
+  `throughput` int(11) DEFAULT NULL COMMENT '过检人数',
17
+  `throughput_rate` decimal(10,2) DEFAULT NULL COMMENT '过检率',
18
+  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
19
+  `create_by` varchar(64) DEFAULT '' COMMENT '创建者ID',
20
+  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
21
+  `update_by` varchar(64) DEFAULT '' COMMENT '更新者ID',
22
+  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
23
+  `del_flag` char(1) DEFAULT '0' COMMENT '删除标志(0正常 2删除)',
24
+  PRIMARY KEY (`id`),
25
+  KEY `idx_dept_id` (`dept_id`),
26
+  KEY `idx_team_id` (`team_id`),
27
+  KEY `idx_group_id` (`group_id`),
28
+  KEY `idx_lane_id` (`lane_id`),
29
+  KEY `idx_record_date` (`record_date`)
30
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='站级时间段别总过检表';