瀏覽代碼

设备移交、费用、维修表

lamphua 1 年之前
父節點
當前提交
28b047f8a8
共有 21 個檔案被更改,包括 1298 行新增76 行删除
  1. 97
    0
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcDeviceHandoverController.java
  2. 97
    0
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcDeviceScrapController.java
  3. 22
    7
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcDeviceExpense.java
  4. 153
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcDeviceHandover.java
  5. 126
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcDeviceScrap.java
  6. 15
    15
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcDeviceExpenseMapper.java
  7. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcDeviceHandoverMapper.java
  8. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcDeviceScrapMapper.java
  9. 16
    16
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcDeviceExpenseService.java
  10. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcDeviceHandoverService.java
  11. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcDeviceScrapService.java
  12. 16
    16
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcDeviceExpenseServiceImpl.java
  13. 93
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcDeviceHandoverServiceImpl.java
  14. 93
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcDeviceScrapServiceImpl.java
  15. 11
    5
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcDeviceExpenseMapper.xml
  16. 97
    0
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcDeviceHandoverMapper.xml
  17. 87
    0
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcDeviceScrapMapper.xml
  18. 38
    12
      oa-back/sql/sql.sql
  19. 5
    5
      oa-ui/src/api/oa/device/deviceExpense.js
  20. 44
    0
      oa-ui/src/api/oa/device/deviceHandover.js
  21. 44
    0
      oa-ui/src/api/oa/device/deviceScrap.js

+ 97
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcDeviceHandoverController.java 查看文件

1
+package com.ruoyi.web.controller.oa;
2
+
3
+import java.util.List;
4
+import javax.servlet.http.HttpServletResponse;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.ruoyi.common.annotation.Log;
15
+import com.ruoyi.common.core.controller.BaseController;
16
+import com.ruoyi.common.core.domain.AjaxResult;
17
+import com.ruoyi.common.enums.BusinessType;
18
+import com.ruoyi.oa.domain.CmcDeviceHandover;
19
+import com.ruoyi.oa.service.ICmcDeviceHandoverService;
20
+import com.ruoyi.common.utils.poi.ExcelUtil;
21
+import com.ruoyi.common.core.page.TableDataInfo;
22
+
23
+/**
24
+ * cmc设备移交Controller
25
+ * 
26
+ * @author cmc
27
+ * @date 2024-05-21
28
+ */
29
+@RestController
30
+@RequestMapping("/oa/deviceHandover")
31
+public class CmcDeviceHandoverController extends BaseController
32
+{
33
+    @Autowired
34
+    private ICmcDeviceHandoverService cmcDeviceHandoverService;
35
+
36
+    /**
37
+     * 查询cmc设备移交列表
38
+     */
39
+    @GetMapping("/list")
40
+    public TableDataInfo list(CmcDeviceHandover cmcDeviceHandover)
41
+    {
42
+        startPage();
43
+        List<CmcDeviceHandover> list = cmcDeviceHandoverService.selectCmcDeviceHandoverList(cmcDeviceHandover);
44
+        return getDataTable(list);
45
+    }
46
+
47
+    /**
48
+     * 导出cmc设备移交列表
49
+     */
50
+    @Log(title = "cmc设备移交", businessType = BusinessType.EXPORT)
51
+    @PostMapping("/export")
52
+    public void export(HttpServletResponse response, CmcDeviceHandover cmcDeviceHandover)
53
+    {
54
+        List<CmcDeviceHandover> list = cmcDeviceHandoverService.selectCmcDeviceHandoverList(cmcDeviceHandover);
55
+        ExcelUtil<CmcDeviceHandover> util = new ExcelUtil<CmcDeviceHandover>(CmcDeviceHandover.class);
56
+        util.exportExcel(response, list, "cmc设备移交数据");
57
+    }
58
+
59
+    /**
60
+     * 获取cmc设备移交详细信息
61
+     */
62
+    @GetMapping(value = "/{deviceHandoverId}")
63
+    public AjaxResult getInfo(@PathVariable("deviceHandoverId") String deviceHandoverId)
64
+    {
65
+        return success(cmcDeviceHandoverService.selectCmcDeviceHandoverByDeviceHandoverId(deviceHandoverId));
66
+    }
67
+
68
+    /**
69
+     * 新增cmc设备移交
70
+     */
71
+    @Log(title = "cmc设备移交", businessType = BusinessType.INSERT)
72
+    @PostMapping
73
+    public AjaxResult add(@RequestBody CmcDeviceHandover cmcDeviceHandover)
74
+    {
75
+        return toAjax(cmcDeviceHandoverService.insertCmcDeviceHandover(cmcDeviceHandover));
76
+    }
77
+
78
+    /**
79
+     * 修改cmc设备移交
80
+     */
81
+    @Log(title = "cmc设备移交", businessType = BusinessType.UPDATE)
82
+    @PutMapping
83
+    public AjaxResult edit(@RequestBody CmcDeviceHandover cmcDeviceHandover)
84
+    {
85
+        return toAjax(cmcDeviceHandoverService.updateCmcDeviceHandover(cmcDeviceHandover));
86
+    }
87
+
88
+    /**
89
+     * 删除cmc设备移交
90
+     */
91
+    @Log(title = "cmc设备移交", businessType = BusinessType.DELETE)
92
+	@DeleteMapping("/{deviceHandoverIds}")
93
+    public AjaxResult remove(@PathVariable String[] deviceHandoverIds)
94
+    {
95
+        return toAjax(cmcDeviceHandoverService.deleteCmcDeviceHandoverByDeviceHandoverIds(deviceHandoverIds));
96
+    }
97
+}

+ 97
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcDeviceScrapController.java 查看文件

1
+package com.ruoyi.web.controller.oa;
2
+
3
+import java.util.List;
4
+import javax.servlet.http.HttpServletResponse;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.ruoyi.common.annotation.Log;
15
+import com.ruoyi.common.core.controller.BaseController;
16
+import com.ruoyi.common.core.domain.AjaxResult;
17
+import com.ruoyi.common.enums.BusinessType;
18
+import com.ruoyi.oa.domain.CmcDeviceScrap;
19
+import com.ruoyi.oa.service.ICmcDeviceScrapService;
20
+import com.ruoyi.common.utils.poi.ExcelUtil;
21
+import com.ruoyi.common.core.page.TableDataInfo;
22
+
23
+/**
24
+ * cmc设备报废Controller
25
+ * 
26
+ * @author cmc
27
+ * @date 2024-05-21
28
+ */
29
+@RestController
30
+@RequestMapping("/oa/deviceScrap")
31
+public class CmcDeviceScrapController extends BaseController
32
+{
33
+    @Autowired
34
+    private ICmcDeviceScrapService cmcDeviceScrapService;
35
+
36
+    /**
37
+     * 查询cmc设备报废列表
38
+     */
39
+    @GetMapping("/list")
40
+    public TableDataInfo list(CmcDeviceScrap cmcDeviceScrap)
41
+    {
42
+        startPage();
43
+        List<CmcDeviceScrap> list = cmcDeviceScrapService.selectCmcDeviceScrapList(cmcDeviceScrap);
44
+        return getDataTable(list);
45
+    }
46
+
47
+    /**
48
+     * 导出cmc设备报废列表
49
+     */
50
+    @Log(title = "cmc设备报废", businessType = BusinessType.EXPORT)
51
+    @PostMapping("/export")
52
+    public void export(HttpServletResponse response, CmcDeviceScrap cmcDeviceScrap)
53
+    {
54
+        List<CmcDeviceScrap> list = cmcDeviceScrapService.selectCmcDeviceScrapList(cmcDeviceScrap);
55
+        ExcelUtil<CmcDeviceScrap> util = new ExcelUtil<CmcDeviceScrap>(CmcDeviceScrap.class);
56
+        util.exportExcel(response, list, "cmc设备报废数据");
57
+    }
58
+
59
+    /**
60
+     * 获取cmc设备报废详细信息
61
+     */
62
+    @GetMapping(value = "/{deviceScrapId}")
63
+    public AjaxResult getInfo(@PathVariable("deviceScrapId") String deviceScrapId)
64
+    {
65
+        return success(cmcDeviceScrapService.selectCmcDeviceScrapByDeviceScrapId(deviceScrapId));
66
+    }
67
+
68
+    /**
69
+     * 新增cmc设备报废
70
+     */
71
+    @Log(title = "cmc设备报废", businessType = BusinessType.INSERT)
72
+    @PostMapping
73
+    public AjaxResult add(@RequestBody CmcDeviceScrap cmcDeviceScrap)
74
+    {
75
+        return toAjax(cmcDeviceScrapService.insertCmcDeviceScrap(cmcDeviceScrap));
76
+    }
77
+
78
+    /**
79
+     * 修改cmc设备报废
80
+     */
81
+    @Log(title = "cmc设备报废", businessType = BusinessType.UPDATE)
82
+    @PutMapping
83
+    public AjaxResult edit(@RequestBody CmcDeviceScrap cmcDeviceScrap)
84
+    {
85
+        return toAjax(cmcDeviceScrapService.updateCmcDeviceScrap(cmcDeviceScrap));
86
+    }
87
+
88
+    /**
89
+     * 删除cmc设备报废
90
+     */
91
+    @Log(title = "cmc设备报废", businessType = BusinessType.DELETE)
92
+	@DeleteMapping("/{deviceScrapIds}")
93
+    public AjaxResult remove(@PathVariable String[] deviceScrapIds)
94
+    {
95
+        return toAjax(cmcDeviceScrapService.deleteCmcDeviceScrapByDeviceScrapIds(deviceScrapIds));
96
+    }
97
+}

+ 22
- 7
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcDeviceExpense.java 查看文件

9
 import com.ruoyi.common.core.domain.BaseEntity;
9
 import com.ruoyi.common.core.domain.BaseEntity;
10
 
10
 
11
 /**
11
 /**
12
- * cmc仪器费用对象 cmc_device_expense
12
+ * cmc设备费用对象 cmc_device_expense
13
  * 
13
  * 
14
  * @author cmc
14
  * @author cmc
15
- * @date 2024-05-20
15
+ * @date 2024-05-21
16
  */
16
  */
17
 public class CmcDeviceExpense extends BaseEntity
17
 public class CmcDeviceExpense extends BaseEntity
18
 {
18
 {
19
     private static final long serialVersionUID = 1L;
19
     private static final long serialVersionUID = 1L;
20
 
20
 
21
-    /** 仪器费用id */
21
+    /** 设备费用id */
22
     private String deviceExpenseId;
22
     private String deviceExpenseId;
23
 
23
 
24
-    /** 仪器id */
25
-    @Excel(name = "仪器id")
24
+    /** 设备id */
25
+    @Excel(name = "设备id")
26
     private Long deviceId;
26
     private Long deviceId;
27
 
27
 
28
+    /** 负责人id */
29
+    @Excel(name = "负责人id")
30
+    private Long userId;
31
+
28
     /** 费用类型(0检定费、1维修保养费) */
32
     /** 费用类型(0检定费、1维修保养费) */
29
     @Excel(name = "费用类型", readConverterExp = "0=检定费、1维修保养费")
33
     @Excel(name = "费用类型", readConverterExp = "0=检定费、1维修保养费")
30
     private String expenseType;
34
     private String expenseType;
39
     private Date occurDate;
43
     private Date occurDate;
40
 
44
 
41
     /** 附件 */
45
     /** 附件 */
46
+    @Excel(name = "附件")
42
     private String document;
47
     private String document;
43
 
48
 
44
     public void setDeviceExpenseId(String deviceExpenseId) 
49
     public void setDeviceExpenseId(String deviceExpenseId) 
59
     {
64
     {
60
         return deviceId;
65
         return deviceId;
61
     }
66
     }
67
+    public void setUserId(Long userId) 
68
+    {
69
+        this.userId = userId;
70
+    }
71
+
72
+    public Long getUserId() 
73
+    {
74
+        return userId;
75
+    }
62
     public void setExpenseType(String expenseType) 
76
     public void setExpenseType(String expenseType) 
63
     {
77
     {
64
         this.expenseType = expenseType;
78
         this.expenseType = expenseType;
86
     {
100
     {
87
         return occurDate;
101
         return occurDate;
88
     }
102
     }
89
-    public void setDocument(String document)
103
+    public void setDocument(String document) 
90
     {
104
     {
91
         this.document = document;
105
         this.document = document;
92
     }
106
     }
93
 
107
 
94
-    public String getDocument()
108
+    public String getDocument() 
95
     {
109
     {
96
         return document;
110
         return document;
97
     }
111
     }
101
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
115
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
102
             .append("deviceExpenseId", getDeviceExpenseId())
116
             .append("deviceExpenseId", getDeviceExpenseId())
103
             .append("deviceId", getDeviceId())
117
             .append("deviceId", getDeviceId())
118
+            .append("userId", getUserId())
104
             .append("expenseType", getExpenseType())
119
             .append("expenseType", getExpenseType())
105
             .append("expense", getExpense())
120
             .append("expense", getExpense())
106
             .append("occurDate", getOccurDate())
121
             .append("occurDate", getOccurDate())

+ 153
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcDeviceHandover.java 查看文件

1
+package com.ruoyi.oa.domain;
2
+
3
+import java.util.Date;
4
+import com.fasterxml.jackson.annotation.JsonFormat;
5
+import org.apache.commons.lang3.builder.ToStringBuilder;
6
+import org.apache.commons.lang3.builder.ToStringStyle;
7
+import com.ruoyi.common.annotation.Excel;
8
+import com.ruoyi.common.core.domain.BaseEntity;
9
+
10
+/**
11
+ * cmc设备移交对象 cmc_device_handover
12
+ * 
13
+ * @author cmc
14
+ * @date 2024-05-21
15
+ */
16
+public class CmcDeviceHandover extends BaseEntity
17
+{
18
+    private static final long serialVersionUID = 1L;
19
+
20
+    /** 设备移交id */
21
+    private String deviceHandoverId;
22
+
23
+    /** 设备id */
24
+    @Excel(name = "设备id")
25
+    private Long deviceId;
26
+
27
+    /** 移交部门id */
28
+    @Excel(name = "移交部门id")
29
+    private Long handoverDept;
30
+
31
+    /** 移交人id */
32
+    @Excel(name = "移交人id")
33
+    private Long handoverUser;
34
+
35
+    /** 移交日期 */
36
+    @JsonFormat(pattern = "yyyy-MM-dd")
37
+    @Excel(name = "移交日期", width = 30, dateFormat = "yyyy-MM-dd")
38
+    private Date handoverDate;
39
+
40
+    /** 接收部门id */
41
+    @Excel(name = "接收部门id")
42
+    private Long receiveDept;
43
+
44
+    /** 接收人id */
45
+    @Excel(name = "接收人id")
46
+    private Long receiveUser;
47
+
48
+    /** 设备软件说明 */
49
+    @Excel(name = "设备软件说明")
50
+    private String description;
51
+
52
+    /** 交接原因 */
53
+    @Excel(name = "交接原因")
54
+    private String reason;
55
+
56
+    public void setDeviceHandoverId(String deviceHandoverId) 
57
+    {
58
+        this.deviceHandoverId = deviceHandoverId;
59
+    }
60
+
61
+    public String getDeviceHandoverId() 
62
+    {
63
+        return deviceHandoverId;
64
+    }
65
+    public void setDeviceId(Long deviceId) 
66
+    {
67
+        this.deviceId = deviceId;
68
+    }
69
+
70
+    public Long getDeviceId() 
71
+    {
72
+        return deviceId;
73
+    }
74
+    public void setHandoverDept(Long handoverDept) 
75
+    {
76
+        this.handoverDept = handoverDept;
77
+    }
78
+
79
+    public Long getHandoverDept() 
80
+    {
81
+        return handoverDept;
82
+    }
83
+    public void setHandoverUser(Long handoverUser) 
84
+    {
85
+        this.handoverUser = handoverUser;
86
+    }
87
+
88
+    public Long getHandoverUser() 
89
+    {
90
+        return handoverUser;
91
+    }
92
+    public void setHandoverDate(Date handoverDate) 
93
+    {
94
+        this.handoverDate = handoverDate;
95
+    }
96
+
97
+    public Date getHandoverDate() 
98
+    {
99
+        return handoverDate;
100
+    }
101
+    public void setReceiveDept(Long receiveDept) 
102
+    {
103
+        this.receiveDept = receiveDept;
104
+    }
105
+
106
+    public Long getReceiveDept() 
107
+    {
108
+        return receiveDept;
109
+    }
110
+    public void setReceiveUser(Long receiveUser) 
111
+    {
112
+        this.receiveUser = receiveUser;
113
+    }
114
+
115
+    public Long getReceiveUser() 
116
+    {
117
+        return receiveUser;
118
+    }
119
+    public void setDescription(String description) 
120
+    {
121
+        this.description = description;
122
+    }
123
+
124
+    public String getDescription() 
125
+    {
126
+        return description;
127
+    }
128
+    public void setReason(String reason) 
129
+    {
130
+        this.reason = reason;
131
+    }
132
+
133
+    public String getReason() 
134
+    {
135
+        return reason;
136
+    }
137
+
138
+    @Override
139
+    public String toString() {
140
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
141
+            .append("deviceHandoverId", getDeviceHandoverId())
142
+            .append("deviceId", getDeviceId())
143
+            .append("handoverDept", getHandoverDept())
144
+            .append("handoverUser", getHandoverUser())
145
+            .append("handoverDate", getHandoverDate())
146
+            .append("receiveDept", getReceiveDept())
147
+            .append("receiveUser", getReceiveUser())
148
+            .append("description", getDescription())
149
+            .append("reason", getReason())
150
+            .append("remark", getRemark())
151
+            .toString();
152
+    }
153
+}

+ 126
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcDeviceScrap.java 查看文件

1
+package com.ruoyi.oa.domain;
2
+
3
+import java.math.BigDecimal;
4
+import java.util.Date;
5
+import com.fasterxml.jackson.annotation.JsonFormat;
6
+import org.apache.commons.lang3.builder.ToStringBuilder;
7
+import org.apache.commons.lang3.builder.ToStringStyle;
8
+import com.ruoyi.common.annotation.Excel;
9
+import com.ruoyi.common.core.domain.BaseEntity;
10
+
11
+/**
12
+ * cmc设备报废对象 cmc_device_scrap
13
+ * 
14
+ * @author cmc
15
+ * @date 2024-05-21
16
+ */
17
+public class CmcDeviceScrap extends BaseEntity
18
+{
19
+    private static final long serialVersionUID = 1L;
20
+
21
+    /** 设备报废id */
22
+    private String deviceScrapId;
23
+
24
+    /** 设备id */
25
+    @Excel(name = "设备id")
26
+    private Long deviceId;
27
+
28
+    /** 原价值 */
29
+    @Excel(name = "原价值")
30
+    private BigDecimal cost;
31
+
32
+    /** 报废日期 */
33
+    @JsonFormat(pattern = "yyyy-MM-dd")
34
+    @Excel(name = "报废日期", width = 30, dateFormat = "yyyy-MM-dd")
35
+    private Date scrapDate;
36
+
37
+    /** 报废原因 */
38
+    @Excel(name = "报废原因")
39
+    private String reason;
40
+
41
+    /** 处理结果 */
42
+    @Excel(name = "处理结果")
43
+    private String deal;
44
+
45
+    /** 附件 */
46
+    @Excel(name = "附件")
47
+    private String document;
48
+
49
+    public void setDeviceScrapId(String deviceScrapId) 
50
+    {
51
+        this.deviceScrapId = deviceScrapId;
52
+    }
53
+
54
+    public String getDeviceScrapId() 
55
+    {
56
+        return deviceScrapId;
57
+    }
58
+    public void setDeviceId(Long deviceId) 
59
+    {
60
+        this.deviceId = deviceId;
61
+    }
62
+
63
+    public Long getDeviceId() 
64
+    {
65
+        return deviceId;
66
+    }
67
+    public void setCost(BigDecimal cost) 
68
+    {
69
+        this.cost = cost;
70
+    }
71
+
72
+    public BigDecimal getCost() 
73
+    {
74
+        return cost;
75
+    }
76
+    public void setScrapDate(Date scrapDate) 
77
+    {
78
+        this.scrapDate = scrapDate;
79
+    }
80
+
81
+    public Date getScrapDate() 
82
+    {
83
+        return scrapDate;
84
+    }
85
+    public void setReason(String reason) 
86
+    {
87
+        this.reason = reason;
88
+    }
89
+
90
+    public String getReason() 
91
+    {
92
+        return reason;
93
+    }
94
+    public void setDeal(String deal) 
95
+    {
96
+        this.deal = deal;
97
+    }
98
+
99
+    public String getDeal() 
100
+    {
101
+        return deal;
102
+    }
103
+    public void setDocument(String document) 
104
+    {
105
+        this.document = document;
106
+    }
107
+
108
+    public String getDocument() 
109
+    {
110
+        return document;
111
+    }
112
+
113
+    @Override
114
+    public String toString() {
115
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
116
+            .append("deviceScrapId", getDeviceScrapId())
117
+            .append("deviceId", getDeviceId())
118
+            .append("cost", getCost())
119
+            .append("scrapDate", getScrapDate())
120
+            .append("reason", getReason())
121
+            .append("deal", getDeal())
122
+            .append("remark", getRemark())
123
+            .append("document", getDocument())
124
+            .toString();
125
+    }
126
+}

+ 15
- 15
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcDeviceExpenseMapper.java 查看文件

4
 import com.ruoyi.oa.domain.CmcDeviceExpense;
4
 import com.ruoyi.oa.domain.CmcDeviceExpense;
5
 
5
 
6
 /**
6
 /**
7
- * cmc仪器费用Mapper接口
7
+ * cmc设备费用Mapper接口
8
  * 
8
  * 
9
  * @author cmc
9
  * @author cmc
10
- * @date 2024-05-20
10
+ * @date 2024-05-21
11
  */
11
  */
12
 public interface CmcDeviceExpenseMapper 
12
 public interface CmcDeviceExpenseMapper 
13
 {
13
 {
14
     /**
14
     /**
15
-     * 查询cmc仪器费用
15
+     * 查询cmc设备费用
16
      * 
16
      * 
17
-     * @param deviceExpenseId cmc仪器费用主键
18
-     * @return cmc仪器费用
17
+     * @param deviceExpenseId cmc设备费用主键
18
+     * @return cmc设备费用
19
      */
19
      */
20
     public CmcDeviceExpense selectCmcDeviceExpenseByDeviceExpenseId(String deviceExpenseId);
20
     public CmcDeviceExpense selectCmcDeviceExpenseByDeviceExpenseId(String deviceExpenseId);
21
 
21
 
22
     /**
22
     /**
23
-     * 查询cmc仪器费用列表
23
+     * 查询cmc设备费用列表
24
      * 
24
      * 
25
-     * @param cmcDeviceExpense cmc仪器费用
26
-     * @return cmc仪器费用集合
25
+     * @param cmcDeviceExpense cmc设备费用
26
+     * @return cmc设备费用集合
27
      */
27
      */
28
     public List<CmcDeviceExpense> selectCmcDeviceExpenseList(CmcDeviceExpense cmcDeviceExpense);
28
     public List<CmcDeviceExpense> selectCmcDeviceExpenseList(CmcDeviceExpense cmcDeviceExpense);
29
 
29
 
30
     /**
30
     /**
31
-     * 新增cmc仪器费用
31
+     * 新增cmc设备费用
32
      * 
32
      * 
33
-     * @param cmcDeviceExpense cmc仪器费用
33
+     * @param cmcDeviceExpense cmc设备费用
34
      * @return 结果
34
      * @return 结果
35
      */
35
      */
36
     public int insertCmcDeviceExpense(CmcDeviceExpense cmcDeviceExpense);
36
     public int insertCmcDeviceExpense(CmcDeviceExpense cmcDeviceExpense);
37
 
37
 
38
     /**
38
     /**
39
-     * 修改cmc仪器费用
39
+     * 修改cmc设备费用
40
      * 
40
      * 
41
-     * @param cmcDeviceExpense cmc仪器费用
41
+     * @param cmcDeviceExpense cmc设备费用
42
      * @return 结果
42
      * @return 结果
43
      */
43
      */
44
     public int updateCmcDeviceExpense(CmcDeviceExpense cmcDeviceExpense);
44
     public int updateCmcDeviceExpense(CmcDeviceExpense cmcDeviceExpense);
45
 
45
 
46
     /**
46
     /**
47
-     * 删除cmc仪器费用
47
+     * 删除cmc设备费用
48
      * 
48
      * 
49
-     * @param deviceExpenseId cmc仪器费用主键
49
+     * @param deviceExpenseId cmc设备费用主键
50
      * @return 结果
50
      * @return 结果
51
      */
51
      */
52
     public int deleteCmcDeviceExpenseByDeviceExpenseId(String deviceExpenseId);
52
     public int deleteCmcDeviceExpenseByDeviceExpenseId(String deviceExpenseId);
53
 
53
 
54
     /**
54
     /**
55
-     * 批量删除cmc仪器费用
55
+     * 批量删除cmc设备费用
56
      * 
56
      * 
57
      * @param deviceExpenseIds 需要删除的数据主键集合
57
      * @param deviceExpenseIds 需要删除的数据主键集合
58
      * @return 结果
58
      * @return 结果

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcDeviceHandoverMapper.java 查看文件

1
+package com.ruoyi.oa.mapper;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcDeviceHandover;
5
+
6
+/**
7
+ * cmc设备移交Mapper接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-05-21
11
+ */
12
+public interface CmcDeviceHandoverMapper 
13
+{
14
+    /**
15
+     * 查询cmc设备移交
16
+     * 
17
+     * @param deviceHandoverId cmc设备移交主键
18
+     * @return cmc设备移交
19
+     */
20
+    public CmcDeviceHandover selectCmcDeviceHandoverByDeviceHandoverId(String deviceHandoverId);
21
+
22
+    /**
23
+     * 查询cmc设备移交列表
24
+     * 
25
+     * @param cmcDeviceHandover cmc设备移交
26
+     * @return cmc设备移交集合
27
+     */
28
+    public List<CmcDeviceHandover> selectCmcDeviceHandoverList(CmcDeviceHandover cmcDeviceHandover);
29
+
30
+    /**
31
+     * 新增cmc设备移交
32
+     * 
33
+     * @param cmcDeviceHandover cmc设备移交
34
+     * @return 结果
35
+     */
36
+    public int insertCmcDeviceHandover(CmcDeviceHandover cmcDeviceHandover);
37
+
38
+    /**
39
+     * 修改cmc设备移交
40
+     * 
41
+     * @param cmcDeviceHandover cmc设备移交
42
+     * @return 结果
43
+     */
44
+    public int updateCmcDeviceHandover(CmcDeviceHandover cmcDeviceHandover);
45
+
46
+    /**
47
+     * 删除cmc设备移交
48
+     * 
49
+     * @param deviceHandoverId cmc设备移交主键
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcDeviceHandoverByDeviceHandoverId(String deviceHandoverId);
53
+
54
+    /**
55
+     * 批量删除cmc设备移交
56
+     * 
57
+     * @param deviceHandoverIds 需要删除的数据主键集合
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcDeviceHandoverByDeviceHandoverIds(String[] deviceHandoverIds);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcDeviceScrapMapper.java 查看文件

1
+package com.ruoyi.oa.mapper;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcDeviceScrap;
5
+
6
+/**
7
+ * cmc设备报废Mapper接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-05-21
11
+ */
12
+public interface CmcDeviceScrapMapper 
13
+{
14
+    /**
15
+     * 查询cmc设备报废
16
+     * 
17
+     * @param deviceScrapId cmc设备报废主键
18
+     * @return cmc设备报废
19
+     */
20
+    public CmcDeviceScrap selectCmcDeviceScrapByDeviceScrapId(String deviceScrapId);
21
+
22
+    /**
23
+     * 查询cmc设备报废列表
24
+     * 
25
+     * @param cmcDeviceScrap cmc设备报废
26
+     * @return cmc设备报废集合
27
+     */
28
+    public List<CmcDeviceScrap> selectCmcDeviceScrapList(CmcDeviceScrap cmcDeviceScrap);
29
+
30
+    /**
31
+     * 新增cmc设备报废
32
+     * 
33
+     * @param cmcDeviceScrap cmc设备报废
34
+     * @return 结果
35
+     */
36
+    public int insertCmcDeviceScrap(CmcDeviceScrap cmcDeviceScrap);
37
+
38
+    /**
39
+     * 修改cmc设备报废
40
+     * 
41
+     * @param cmcDeviceScrap cmc设备报废
42
+     * @return 结果
43
+     */
44
+    public int updateCmcDeviceScrap(CmcDeviceScrap cmcDeviceScrap);
45
+
46
+    /**
47
+     * 删除cmc设备报废
48
+     * 
49
+     * @param deviceScrapId cmc设备报废主键
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcDeviceScrapByDeviceScrapId(String deviceScrapId);
53
+
54
+    /**
55
+     * 批量删除cmc设备报废
56
+     * 
57
+     * @param deviceScrapIds 需要删除的数据主键集合
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcDeviceScrapByDeviceScrapIds(String[] deviceScrapIds);
61
+}

+ 16
- 16
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcDeviceExpenseService.java 查看文件

4
 import com.ruoyi.oa.domain.CmcDeviceExpense;
4
 import com.ruoyi.oa.domain.CmcDeviceExpense;
5
 
5
 
6
 /**
6
 /**
7
- * cmc仪器费用Service接口
7
+ * cmc设备费用Service接口
8
  * 
8
  * 
9
  * @author cmc
9
  * @author cmc
10
- * @date 2024-05-20
10
+ * @date 2024-05-21
11
  */
11
  */
12
 public interface ICmcDeviceExpenseService 
12
 public interface ICmcDeviceExpenseService 
13
 {
13
 {
14
     /**
14
     /**
15
-     * 查询cmc仪器费用
15
+     * 查询cmc设备费用
16
      * 
16
      * 
17
-     * @param deviceExpenseId cmc仪器费用主键
18
-     * @return cmc仪器费用
17
+     * @param deviceExpenseId cmc设备费用主键
18
+     * @return cmc设备费用
19
      */
19
      */
20
     public CmcDeviceExpense selectCmcDeviceExpenseByDeviceExpenseId(String deviceExpenseId);
20
     public CmcDeviceExpense selectCmcDeviceExpenseByDeviceExpenseId(String deviceExpenseId);
21
 
21
 
22
     /**
22
     /**
23
-     * 查询cmc仪器费用列表
23
+     * 查询cmc设备费用列表
24
      * 
24
      * 
25
-     * @param cmcDeviceExpense cmc仪器费用
26
-     * @return cmc仪器费用集合
25
+     * @param cmcDeviceExpense cmc设备费用
26
+     * @return cmc设备费用集合
27
      */
27
      */
28
     public List<CmcDeviceExpense> selectCmcDeviceExpenseList(CmcDeviceExpense cmcDeviceExpense);
28
     public List<CmcDeviceExpense> selectCmcDeviceExpenseList(CmcDeviceExpense cmcDeviceExpense);
29
 
29
 
30
     /**
30
     /**
31
-     * 新增cmc仪器费用
31
+     * 新增cmc设备费用
32
      * 
32
      * 
33
-     * @param cmcDeviceExpense cmc仪器费用
33
+     * @param cmcDeviceExpense cmc设备费用
34
      * @return 结果
34
      * @return 结果
35
      */
35
      */
36
     public int insertCmcDeviceExpense(CmcDeviceExpense cmcDeviceExpense);
36
     public int insertCmcDeviceExpense(CmcDeviceExpense cmcDeviceExpense);
37
 
37
 
38
     /**
38
     /**
39
-     * 修改cmc仪器费用
39
+     * 修改cmc设备费用
40
      * 
40
      * 
41
-     * @param cmcDeviceExpense cmc仪器费用
41
+     * @param cmcDeviceExpense cmc设备费用
42
      * @return 结果
42
      * @return 结果
43
      */
43
      */
44
     public int updateCmcDeviceExpense(CmcDeviceExpense cmcDeviceExpense);
44
     public int updateCmcDeviceExpense(CmcDeviceExpense cmcDeviceExpense);
45
 
45
 
46
     /**
46
     /**
47
-     * 批量删除cmc仪器费用
47
+     * 批量删除cmc设备费用
48
      * 
48
      * 
49
-     * @param deviceExpenseIds 需要删除的cmc仪器费用主键集合
49
+     * @param deviceExpenseIds 需要删除的cmc设备费用主键集合
50
      * @return 结果
50
      * @return 结果
51
      */
51
      */
52
     public int deleteCmcDeviceExpenseByDeviceExpenseIds(String[] deviceExpenseIds);
52
     public int deleteCmcDeviceExpenseByDeviceExpenseIds(String[] deviceExpenseIds);
53
 
53
 
54
     /**
54
     /**
55
-     * 删除cmc仪器费用信息
55
+     * 删除cmc设备费用信息
56
      * 
56
      * 
57
-     * @param deviceExpenseId cmc仪器费用主键
57
+     * @param deviceExpenseId cmc设备费用主键
58
      * @return 结果
58
      * @return 结果
59
      */
59
      */
60
     public int deleteCmcDeviceExpenseByDeviceExpenseId(String deviceExpenseId);
60
     public int deleteCmcDeviceExpenseByDeviceExpenseId(String deviceExpenseId);

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcDeviceHandoverService.java 查看文件

1
+package com.ruoyi.oa.service;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcDeviceHandover;
5
+
6
+/**
7
+ * cmc设备移交Service接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-05-21
11
+ */
12
+public interface ICmcDeviceHandoverService 
13
+{
14
+    /**
15
+     * 查询cmc设备移交
16
+     * 
17
+     * @param deviceHandoverId cmc设备移交主键
18
+     * @return cmc设备移交
19
+     */
20
+    public CmcDeviceHandover selectCmcDeviceHandoverByDeviceHandoverId(String deviceHandoverId);
21
+
22
+    /**
23
+     * 查询cmc设备移交列表
24
+     * 
25
+     * @param cmcDeviceHandover cmc设备移交
26
+     * @return cmc设备移交集合
27
+     */
28
+    public List<CmcDeviceHandover> selectCmcDeviceHandoverList(CmcDeviceHandover cmcDeviceHandover);
29
+
30
+    /**
31
+     * 新增cmc设备移交
32
+     * 
33
+     * @param cmcDeviceHandover cmc设备移交
34
+     * @return 结果
35
+     */
36
+    public int insertCmcDeviceHandover(CmcDeviceHandover cmcDeviceHandover);
37
+
38
+    /**
39
+     * 修改cmc设备移交
40
+     * 
41
+     * @param cmcDeviceHandover cmc设备移交
42
+     * @return 结果
43
+     */
44
+    public int updateCmcDeviceHandover(CmcDeviceHandover cmcDeviceHandover);
45
+
46
+    /**
47
+     * 批量删除cmc设备移交
48
+     * 
49
+     * @param deviceHandoverIds 需要删除的cmc设备移交主键集合
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcDeviceHandoverByDeviceHandoverIds(String[] deviceHandoverIds);
53
+
54
+    /**
55
+     * 删除cmc设备移交信息
56
+     * 
57
+     * @param deviceHandoverId cmc设备移交主键
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcDeviceHandoverByDeviceHandoverId(String deviceHandoverId);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcDeviceScrapService.java 查看文件

1
+package com.ruoyi.oa.service;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcDeviceScrap;
5
+
6
+/**
7
+ * cmc设备报废Service接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-05-21
11
+ */
12
+public interface ICmcDeviceScrapService 
13
+{
14
+    /**
15
+     * 查询cmc设备报废
16
+     * 
17
+     * @param deviceScrapId cmc设备报废主键
18
+     * @return cmc设备报废
19
+     */
20
+    public CmcDeviceScrap selectCmcDeviceScrapByDeviceScrapId(String deviceScrapId);
21
+
22
+    /**
23
+     * 查询cmc设备报废列表
24
+     * 
25
+     * @param cmcDeviceScrap cmc设备报废
26
+     * @return cmc设备报废集合
27
+     */
28
+    public List<CmcDeviceScrap> selectCmcDeviceScrapList(CmcDeviceScrap cmcDeviceScrap);
29
+
30
+    /**
31
+     * 新增cmc设备报废
32
+     * 
33
+     * @param cmcDeviceScrap cmc设备报废
34
+     * @return 结果
35
+     */
36
+    public int insertCmcDeviceScrap(CmcDeviceScrap cmcDeviceScrap);
37
+
38
+    /**
39
+     * 修改cmc设备报废
40
+     * 
41
+     * @param cmcDeviceScrap cmc设备报废
42
+     * @return 结果
43
+     */
44
+    public int updateCmcDeviceScrap(CmcDeviceScrap cmcDeviceScrap);
45
+
46
+    /**
47
+     * 批量删除cmc设备报废
48
+     * 
49
+     * @param deviceScrapIds 需要删除的cmc设备报废主键集合
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcDeviceScrapByDeviceScrapIds(String[] deviceScrapIds);
53
+
54
+    /**
55
+     * 删除cmc设备报废信息
56
+     * 
57
+     * @param deviceScrapId cmc设备报废主键
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcDeviceScrapByDeviceScrapId(String deviceScrapId);
61
+}

+ 16
- 16
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcDeviceExpenseServiceImpl.java 查看文件

8
 import com.ruoyi.oa.service.ICmcDeviceExpenseService;
8
 import com.ruoyi.oa.service.ICmcDeviceExpenseService;
9
 
9
 
10
 /**
10
 /**
11
- * cmc仪器费用Service业务层处理
11
+ * cmc设备费用Service业务层处理
12
  * 
12
  * 
13
  * @author cmc
13
  * @author cmc
14
- * @date 2024-05-20
14
+ * @date 2024-05-21
15
  */
15
  */
16
 @Service
16
 @Service
17
 public class CmcDeviceExpenseServiceImpl implements ICmcDeviceExpenseService 
17
 public class CmcDeviceExpenseServiceImpl implements ICmcDeviceExpenseService 
20
     private CmcDeviceExpenseMapper cmcDeviceExpenseMapper;
20
     private CmcDeviceExpenseMapper cmcDeviceExpenseMapper;
21
 
21
 
22
     /**
22
     /**
23
-     * 查询cmc仪器费用
23
+     * 查询cmc设备费用
24
      * 
24
      * 
25
-     * @param deviceExpenseId cmc仪器费用主键
26
-     * @return cmc仪器费用
25
+     * @param deviceExpenseId cmc设备费用主键
26
+     * @return cmc设备费用
27
      */
27
      */
28
     @Override
28
     @Override
29
     public CmcDeviceExpense selectCmcDeviceExpenseByDeviceExpenseId(String deviceExpenseId)
29
     public CmcDeviceExpense selectCmcDeviceExpenseByDeviceExpenseId(String deviceExpenseId)
32
     }
32
     }
33
 
33
 
34
     /**
34
     /**
35
-     * 查询cmc仪器费用列表
35
+     * 查询cmc设备费用列表
36
      * 
36
      * 
37
-     * @param cmcDeviceExpense cmc仪器费用
38
-     * @return cmc仪器费用
37
+     * @param cmcDeviceExpense cmc设备费用
38
+     * @return cmc设备费用
39
      */
39
      */
40
     @Override
40
     @Override
41
     public List<CmcDeviceExpense> selectCmcDeviceExpenseList(CmcDeviceExpense cmcDeviceExpense)
41
     public List<CmcDeviceExpense> selectCmcDeviceExpenseList(CmcDeviceExpense cmcDeviceExpense)
44
     }
44
     }
45
 
45
 
46
     /**
46
     /**
47
-     * 新增cmc仪器费用
47
+     * 新增cmc设备费用
48
      * 
48
      * 
49
-     * @param cmcDeviceExpense cmc仪器费用
49
+     * @param cmcDeviceExpense cmc设备费用
50
      * @return 结果
50
      * @return 结果
51
      */
51
      */
52
     @Override
52
     @Override
56
     }
56
     }
57
 
57
 
58
     /**
58
     /**
59
-     * 修改cmc仪器费用
59
+     * 修改cmc设备费用
60
      * 
60
      * 
61
-     * @param cmcDeviceExpense cmc仪器费用
61
+     * @param cmcDeviceExpense cmc设备费用
62
      * @return 结果
62
      * @return 结果
63
      */
63
      */
64
     @Override
64
     @Override
68
     }
68
     }
69
 
69
 
70
     /**
70
     /**
71
-     * 批量删除cmc仪器费用
71
+     * 批量删除cmc设备费用
72
      * 
72
      * 
73
-     * @param deviceExpenseIds 需要删除的cmc仪器费用主键
73
+     * @param deviceExpenseIds 需要删除的cmc设备费用主键
74
      * @return 结果
74
      * @return 结果
75
      */
75
      */
76
     @Override
76
     @Override
80
     }
80
     }
81
 
81
 
82
     /**
82
     /**
83
-     * 删除cmc仪器费用信息
83
+     * 删除cmc设备费用信息
84
      * 
84
      * 
85
-     * @param deviceExpenseId cmc仪器费用主键
85
+     * @param deviceExpenseId cmc设备费用主键
86
      * @return 结果
86
      * @return 结果
87
      */
87
      */
88
     @Override
88
     @Override

+ 93
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcDeviceHandoverServiceImpl.java 查看文件

1
+package com.ruoyi.oa.service.impl;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.ruoyi.oa.mapper.CmcDeviceHandoverMapper;
7
+import com.ruoyi.oa.domain.CmcDeviceHandover;
8
+import com.ruoyi.oa.service.ICmcDeviceHandoverService;
9
+
10
+/**
11
+ * cmc设备移交Service业务层处理
12
+ * 
13
+ * @author cmc
14
+ * @date 2024-05-21
15
+ */
16
+@Service
17
+public class CmcDeviceHandoverServiceImpl implements ICmcDeviceHandoverService 
18
+{
19
+    @Autowired
20
+    private CmcDeviceHandoverMapper cmcDeviceHandoverMapper;
21
+
22
+    /**
23
+     * 查询cmc设备移交
24
+     * 
25
+     * @param deviceHandoverId cmc设备移交主键
26
+     * @return cmc设备移交
27
+     */
28
+    @Override
29
+    public CmcDeviceHandover selectCmcDeviceHandoverByDeviceHandoverId(String deviceHandoverId)
30
+    {
31
+        return cmcDeviceHandoverMapper.selectCmcDeviceHandoverByDeviceHandoverId(deviceHandoverId);
32
+    }
33
+
34
+    /**
35
+     * 查询cmc设备移交列表
36
+     * 
37
+     * @param cmcDeviceHandover cmc设备移交
38
+     * @return cmc设备移交
39
+     */
40
+    @Override
41
+    public List<CmcDeviceHandover> selectCmcDeviceHandoverList(CmcDeviceHandover cmcDeviceHandover)
42
+    {
43
+        return cmcDeviceHandoverMapper.selectCmcDeviceHandoverList(cmcDeviceHandover);
44
+    }
45
+
46
+    /**
47
+     * 新增cmc设备移交
48
+     * 
49
+     * @param cmcDeviceHandover cmc设备移交
50
+     * @return 结果
51
+     */
52
+    @Override
53
+    public int insertCmcDeviceHandover(CmcDeviceHandover cmcDeviceHandover)
54
+    {
55
+        return cmcDeviceHandoverMapper.insertCmcDeviceHandover(cmcDeviceHandover);
56
+    }
57
+
58
+    /**
59
+     * 修改cmc设备移交
60
+     * 
61
+     * @param cmcDeviceHandover cmc设备移交
62
+     * @return 结果
63
+     */
64
+    @Override
65
+    public int updateCmcDeviceHandover(CmcDeviceHandover cmcDeviceHandover)
66
+    {
67
+        return cmcDeviceHandoverMapper.updateCmcDeviceHandover(cmcDeviceHandover);
68
+    }
69
+
70
+    /**
71
+     * 批量删除cmc设备移交
72
+     * 
73
+     * @param deviceHandoverIds 需要删除的cmc设备移交主键
74
+     * @return 结果
75
+     */
76
+    @Override
77
+    public int deleteCmcDeviceHandoverByDeviceHandoverIds(String[] deviceHandoverIds)
78
+    {
79
+        return cmcDeviceHandoverMapper.deleteCmcDeviceHandoverByDeviceHandoverIds(deviceHandoverIds);
80
+    }
81
+
82
+    /**
83
+     * 删除cmc设备移交信息
84
+     * 
85
+     * @param deviceHandoverId cmc设备移交主键
86
+     * @return 结果
87
+     */
88
+    @Override
89
+    public int deleteCmcDeviceHandoverByDeviceHandoverId(String deviceHandoverId)
90
+    {
91
+        return cmcDeviceHandoverMapper.deleteCmcDeviceHandoverByDeviceHandoverId(deviceHandoverId);
92
+    }
93
+}

+ 93
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcDeviceScrapServiceImpl.java 查看文件

1
+package com.ruoyi.oa.service.impl;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.ruoyi.oa.mapper.CmcDeviceScrapMapper;
7
+import com.ruoyi.oa.domain.CmcDeviceScrap;
8
+import com.ruoyi.oa.service.ICmcDeviceScrapService;
9
+
10
+/**
11
+ * cmc设备报废Service业务层处理
12
+ * 
13
+ * @author cmc
14
+ * @date 2024-05-21
15
+ */
16
+@Service
17
+public class CmcDeviceScrapServiceImpl implements ICmcDeviceScrapService 
18
+{
19
+    @Autowired
20
+    private CmcDeviceScrapMapper cmcDeviceScrapMapper;
21
+
22
+    /**
23
+     * 查询cmc设备报废
24
+     * 
25
+     * @param deviceScrapId cmc设备报废主键
26
+     * @return cmc设备报废
27
+     */
28
+    @Override
29
+    public CmcDeviceScrap selectCmcDeviceScrapByDeviceScrapId(String deviceScrapId)
30
+    {
31
+        return cmcDeviceScrapMapper.selectCmcDeviceScrapByDeviceScrapId(deviceScrapId);
32
+    }
33
+
34
+    /**
35
+     * 查询cmc设备报废列表
36
+     * 
37
+     * @param cmcDeviceScrap cmc设备报废
38
+     * @return cmc设备报废
39
+     */
40
+    @Override
41
+    public List<CmcDeviceScrap> selectCmcDeviceScrapList(CmcDeviceScrap cmcDeviceScrap)
42
+    {
43
+        return cmcDeviceScrapMapper.selectCmcDeviceScrapList(cmcDeviceScrap);
44
+    }
45
+
46
+    /**
47
+     * 新增cmc设备报废
48
+     * 
49
+     * @param cmcDeviceScrap cmc设备报废
50
+     * @return 结果
51
+     */
52
+    @Override
53
+    public int insertCmcDeviceScrap(CmcDeviceScrap cmcDeviceScrap)
54
+    {
55
+        return cmcDeviceScrapMapper.insertCmcDeviceScrap(cmcDeviceScrap);
56
+    }
57
+
58
+    /**
59
+     * 修改cmc设备报废
60
+     * 
61
+     * @param cmcDeviceScrap cmc设备报废
62
+     * @return 结果
63
+     */
64
+    @Override
65
+    public int updateCmcDeviceScrap(CmcDeviceScrap cmcDeviceScrap)
66
+    {
67
+        return cmcDeviceScrapMapper.updateCmcDeviceScrap(cmcDeviceScrap);
68
+    }
69
+
70
+    /**
71
+     * 批量删除cmc设备报废
72
+     * 
73
+     * @param deviceScrapIds 需要删除的cmc设备报废主键
74
+     * @return 结果
75
+     */
76
+    @Override
77
+    public int deleteCmcDeviceScrapByDeviceScrapIds(String[] deviceScrapIds)
78
+    {
79
+        return cmcDeviceScrapMapper.deleteCmcDeviceScrapByDeviceScrapIds(deviceScrapIds);
80
+    }
81
+
82
+    /**
83
+     * 删除cmc设备报废信息
84
+     * 
85
+     * @param deviceScrapId cmc设备报废主键
86
+     * @return 结果
87
+     */
88
+    @Override
89
+    public int deleteCmcDeviceScrapByDeviceScrapId(String deviceScrapId)
90
+    {
91
+        return cmcDeviceScrapMapper.deleteCmcDeviceScrapByDeviceScrapId(deviceScrapId);
92
+    }
93
+}

+ 11
- 5
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcDeviceExpenseMapper.xml 查看文件

7
     <resultMap type="CmcDeviceExpense" id="CmcDeviceExpenseResult">
7
     <resultMap type="CmcDeviceExpense" id="CmcDeviceExpenseResult">
8
         <result property="deviceExpenseId"    column="device_expense_id"    />
8
         <result property="deviceExpenseId"    column="device_expense_id"    />
9
         <result property="deviceId"    column="device_id"    />
9
         <result property="deviceId"    column="device_id"    />
10
+        <result property="userId"    column="user_id"    />
10
         <result property="expenseType"    column="expense_type"    />
11
         <result property="expenseType"    column="expense_type"    />
11
         <result property="expense"    column="expense"    />
12
         <result property="expense"    column="expense"    />
12
         <result property="occurDate"    column="occur_date"    />
13
         <result property="occurDate"    column="occur_date"    />
13
-        <result property="document"    column="document"    />
14
         <result property="remark"    column="remark"    />
14
         <result property="remark"    column="remark"    />
15
+        <result property="document"    column="document"    />
15
     </resultMap>
16
     </resultMap>
16
 
17
 
17
     <sql id="selectCmcDeviceExpenseVo">
18
     <sql id="selectCmcDeviceExpenseVo">
18
-        select device_expense_id, device_id, expense_type, expense, occur_date, document, remark from cmc_device_expense
19
+        select device_expense_id, device_id, user_id, expense_type, expense, occur_date, remark, document from cmc_device_expense
19
     </sql>
20
     </sql>
20
 
21
 
21
     <select id="selectCmcDeviceExpenseList" parameterType="CmcDeviceExpense" resultMap="CmcDeviceExpenseResult">
22
     <select id="selectCmcDeviceExpenseList" parameterType="CmcDeviceExpense" resultMap="CmcDeviceExpenseResult">
22
         <include refid="selectCmcDeviceExpenseVo"/>
23
         <include refid="selectCmcDeviceExpenseVo"/>
23
         <where>  
24
         <where>  
24
             <if test="deviceId != null "> and device_id = #{deviceId}</if>
25
             <if test="deviceId != null "> and device_id = #{deviceId}</if>
26
+            <if test="userId != null "> and user_id = #{userId}</if>
25
             <if test="expenseType != null  and expenseType != ''"> and expense_type = #{expenseType}</if>
27
             <if test="expenseType != null  and expenseType != ''"> and expense_type = #{expenseType}</if>
26
             <if test="expense != null "> and expense = #{expense}</if>
28
             <if test="expense != null "> and expense = #{expense}</if>
27
             <if test="occurDate != null "> and occur_date = #{occurDate}</if>
29
             <if test="occurDate != null "> and occur_date = #{occurDate}</if>
30
+            <if test="document != null  and document != ''"> and document = #{document}</if>
28
         </where>
31
         </where>
29
     </select>
32
     </select>
30
     
33
     
38
         <trim prefix="(" suffix=")" suffixOverrides=",">
41
         <trim prefix="(" suffix=")" suffixOverrides=",">
39
             <if test="deviceExpenseId != null">device_expense_id,</if>
42
             <if test="deviceExpenseId != null">device_expense_id,</if>
40
             <if test="deviceId != null">device_id,</if>
43
             <if test="deviceId != null">device_id,</if>
44
+            <if test="userId != null">user_id,</if>
41
             <if test="expenseType != null">expense_type,</if>
45
             <if test="expenseType != null">expense_type,</if>
42
             <if test="expense != null">expense,</if>
46
             <if test="expense != null">expense,</if>
43
             <if test="occurDate != null">occur_date,</if>
47
             <if test="occurDate != null">occur_date,</if>
44
-            <if test="document != null">document,</if>
45
             <if test="remark != null">remark,</if>
48
             <if test="remark != null">remark,</if>
49
+            <if test="document != null">document,</if>
46
          </trim>
50
          </trim>
47
         <trim prefix="values (" suffix=")" suffixOverrides=",">
51
         <trim prefix="values (" suffix=")" suffixOverrides=",">
48
             <if test="deviceExpenseId != null">#{deviceExpenseId},</if>
52
             <if test="deviceExpenseId != null">#{deviceExpenseId},</if>
49
             <if test="deviceId != null">#{deviceId},</if>
53
             <if test="deviceId != null">#{deviceId},</if>
54
+            <if test="userId != null">#{userId},</if>
50
             <if test="expenseType != null">#{expenseType},</if>
55
             <if test="expenseType != null">#{expenseType},</if>
51
             <if test="expense != null">#{expense},</if>
56
             <if test="expense != null">#{expense},</if>
52
             <if test="occurDate != null">#{occurDate},</if>
57
             <if test="occurDate != null">#{occurDate},</if>
53
-            <if test="document != null">#{document},</if>
54
             <if test="remark != null">#{remark},</if>
58
             <if test="remark != null">#{remark},</if>
59
+            <if test="document != null">#{document},</if>
55
          </trim>
60
          </trim>
56
     </insert>
61
     </insert>
57
 
62
 
59
         update cmc_device_expense
64
         update cmc_device_expense
60
         <trim prefix="SET" suffixOverrides=",">
65
         <trim prefix="SET" suffixOverrides=",">
61
             <if test="deviceId != null">device_id = #{deviceId},</if>
66
             <if test="deviceId != null">device_id = #{deviceId},</if>
67
+            <if test="userId != null">user_id = #{userId},</if>
62
             <if test="expenseType != null">expense_type = #{expenseType},</if>
68
             <if test="expenseType != null">expense_type = #{expenseType},</if>
63
             <if test="expense != null">expense = #{expense},</if>
69
             <if test="expense != null">expense = #{expense},</if>
64
             <if test="occurDate != null">occur_date = #{occurDate},</if>
70
             <if test="occurDate != null">occur_date = #{occurDate},</if>
65
-            <if test="document != null">document = #{document},</if>
66
             <if test="remark != null">remark = #{remark},</if>
71
             <if test="remark != null">remark = #{remark},</if>
72
+            <if test="document != null">document = #{document},</if>
67
         </trim>
73
         </trim>
68
         where device_expense_id = #{deviceExpenseId}
74
         where device_expense_id = #{deviceExpenseId}
69
     </update>
75
     </update>

+ 97
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcDeviceHandoverMapper.xml 查看文件

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.ruoyi.oa.mapper.CmcDeviceHandoverMapper">
6
+    
7
+    <resultMap type="CmcDeviceHandover" id="CmcDeviceHandoverResult">
8
+        <result property="deviceHandoverId"    column="device_handover_id"    />
9
+        <result property="deviceId"    column="device_id"    />
10
+        <result property="handoverDept"    column="handover_dept"    />
11
+        <result property="handoverUser"    column="handover_user"    />
12
+        <result property="handoverDate"    column="handover_date"    />
13
+        <result property="receiveDept"    column="receive_dept"    />
14
+        <result property="receiveUser"    column="receive_user"    />
15
+        <result property="description"    column="description"    />
16
+        <result property="reason"    column="reason"    />
17
+        <result property="remark"    column="remark"    />
18
+    </resultMap>
19
+
20
+    <sql id="selectCmcDeviceHandoverVo">
21
+        select device_handover_id, device_id, handover_dept, handover_user, handover_date, receive_dept, receive_user, description, reason, remark from cmc_device_handover
22
+    </sql>
23
+
24
+    <select id="selectCmcDeviceHandoverList" parameterType="CmcDeviceHandover" resultMap="CmcDeviceHandoverResult">
25
+        <include refid="selectCmcDeviceHandoverVo"/>
26
+        <where>  
27
+            <if test="deviceId != null "> and device_id = #{deviceId}</if>
28
+            <if test="handoverDept != null "> and handover_dept = #{handoverDept}</if>
29
+            <if test="handoverUser != null "> and handover_user = #{handoverUser}</if>
30
+            <if test="handoverDate != null "> and handover_date = #{handoverDate}</if>
31
+            <if test="receiveDept != null "> and receive_dept = #{receiveDept}</if>
32
+            <if test="receiveUser != null "> and receive_user = #{receiveUser}</if>
33
+            <if test="description != null  and description != ''"> and description = #{description}</if>
34
+            <if test="reason != null  and reason != ''"> and reason = #{reason}</if>
35
+        </where>
36
+    </select>
37
+    
38
+    <select id="selectCmcDeviceHandoverByDeviceHandoverId" parameterType="String" resultMap="CmcDeviceHandoverResult">
39
+        <include refid="selectCmcDeviceHandoverVo"/>
40
+        where device_handover_id = #{deviceHandoverId}
41
+    </select>
42
+        
43
+    <insert id="insertCmcDeviceHandover" parameterType="CmcDeviceHandover">
44
+        insert into cmc_device_handover
45
+        <trim prefix="(" suffix=")" suffixOverrides=",">
46
+            <if test="deviceHandoverId != null">device_handover_id,</if>
47
+            <if test="deviceId != null">device_id,</if>
48
+            <if test="handoverDept != null">handover_dept,</if>
49
+            <if test="handoverUser != null">handover_user,</if>
50
+            <if test="handoverDate != null">handover_date,</if>
51
+            <if test="receiveDept != null">receive_dept,</if>
52
+            <if test="receiveUser != null">receive_user,</if>
53
+            <if test="description != null">description,</if>
54
+            <if test="reason != null">reason,</if>
55
+            <if test="remark != null">remark,</if>
56
+         </trim>
57
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
58
+            <if test="deviceHandoverId != null">#{deviceHandoverId},</if>
59
+            <if test="deviceId != null">#{deviceId},</if>
60
+            <if test="handoverDept != null">#{handoverDept},</if>
61
+            <if test="handoverUser != null">#{handoverUser},</if>
62
+            <if test="handoverDate != null">#{handoverDate},</if>
63
+            <if test="receiveDept != null">#{receiveDept},</if>
64
+            <if test="receiveUser != null">#{receiveUser},</if>
65
+            <if test="description != null">#{description},</if>
66
+            <if test="reason != null">#{reason},</if>
67
+            <if test="remark != null">#{remark},</if>
68
+         </trim>
69
+    </insert>
70
+
71
+    <update id="updateCmcDeviceHandover" parameterType="CmcDeviceHandover">
72
+        update cmc_device_handover
73
+        <trim prefix="SET" suffixOverrides=",">
74
+            <if test="deviceId != null">device_id = #{deviceId},</if>
75
+            <if test="handoverDept != null">handover_dept = #{handoverDept},</if>
76
+            <if test="handoverUser != null">handover_user = #{handoverUser},</if>
77
+            <if test="handoverDate != null">handover_date = #{handoverDate},</if>
78
+            <if test="receiveDept != null">receive_dept = #{receiveDept},</if>
79
+            <if test="receiveUser != null">receive_user = #{receiveUser},</if>
80
+            <if test="description != null">description = #{description},</if>
81
+            <if test="reason != null">reason = #{reason},</if>
82
+            <if test="remark != null">remark = #{remark},</if>
83
+        </trim>
84
+        where device_handover_id = #{deviceHandoverId}
85
+    </update>
86
+
87
+    <delete id="deleteCmcDeviceHandoverByDeviceHandoverId" parameterType="String">
88
+        delete from cmc_device_handover where device_handover_id = #{deviceHandoverId}
89
+    </delete>
90
+
91
+    <delete id="deleteCmcDeviceHandoverByDeviceHandoverIds" parameterType="String">
92
+        delete from cmc_device_handover where device_handover_id in 
93
+        <foreach item="deviceHandoverId" collection="array" open="(" separator="," close=")">
94
+            #{deviceHandoverId}
95
+        </foreach>
96
+    </delete>
97
+</mapper>

+ 87
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcDeviceScrapMapper.xml 查看文件

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.ruoyi.oa.mapper.CmcDeviceScrapMapper">
6
+    
7
+    <resultMap type="CmcDeviceScrap" id="CmcDeviceScrapResult">
8
+        <result property="deviceScrapId"    column="device_scrap_id"    />
9
+        <result property="deviceId"    column="device_id"    />
10
+        <result property="cost"    column="cost"    />
11
+        <result property="scrapDate"    column="scrap_date"    />
12
+        <result property="reason"    column="reason"    />
13
+        <result property="deal"    column="deal"    />
14
+        <result property="remark"    column="remark"    />
15
+        <result property="document"    column="document"    />
16
+    </resultMap>
17
+
18
+    <sql id="selectCmcDeviceScrapVo">
19
+        select device_scrap_id, device_id, cost, scrap_date, reason, deal, remark, document from cmc_device_scrap
20
+    </sql>
21
+
22
+    <select id="selectCmcDeviceScrapList" parameterType="CmcDeviceScrap" resultMap="CmcDeviceScrapResult">
23
+        <include refid="selectCmcDeviceScrapVo"/>
24
+        <where>  
25
+            <if test="deviceId != null "> and device_id = #{deviceId}</if>
26
+            <if test="cost != null "> and cost = #{cost}</if>
27
+            <if test="scrapDate != null "> and scrap_date = #{scrapDate}</if>
28
+            <if test="reason != null  and reason != ''"> and reason = #{reason}</if>
29
+            <if test="deal != null  and deal != ''"> and deal = #{deal}</if>
30
+            <if test="document != null  and document != ''"> and document = #{document}</if>
31
+        </where>
32
+    </select>
33
+    
34
+    <select id="selectCmcDeviceScrapByDeviceScrapId" parameterType="String" resultMap="CmcDeviceScrapResult">
35
+        <include refid="selectCmcDeviceScrapVo"/>
36
+        where device_scrap_id = #{deviceScrapId}
37
+    </select>
38
+        
39
+    <insert id="insertCmcDeviceScrap" parameterType="CmcDeviceScrap">
40
+        insert into cmc_device_scrap
41
+        <trim prefix="(" suffix=")" suffixOverrides=",">
42
+            <if test="deviceScrapId != null">device_scrap_id,</if>
43
+            <if test="deviceId != null">device_id,</if>
44
+            <if test="cost != null">cost,</if>
45
+            <if test="scrapDate != null">scrap_date,</if>
46
+            <if test="reason != null">reason,</if>
47
+            <if test="deal != null">deal,</if>
48
+            <if test="remark != null">remark,</if>
49
+            <if test="document != null">document,</if>
50
+         </trim>
51
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
52
+            <if test="deviceScrapId != null">#{deviceScrapId},</if>
53
+            <if test="deviceId != null">#{deviceId},</if>
54
+            <if test="cost != null">#{cost},</if>
55
+            <if test="scrapDate != null">#{scrapDate},</if>
56
+            <if test="reason != null">#{reason},</if>
57
+            <if test="deal != null">#{deal},</if>
58
+            <if test="remark != null">#{remark},</if>
59
+            <if test="document != null">#{document},</if>
60
+         </trim>
61
+    </insert>
62
+
63
+    <update id="updateCmcDeviceScrap" parameterType="CmcDeviceScrap">
64
+        update cmc_device_scrap
65
+        <trim prefix="SET" suffixOverrides=",">
66
+            <if test="deviceId != null">device_id = #{deviceId},</if>
67
+            <if test="cost != null">cost = #{cost},</if>
68
+            <if test="scrapDate != null">scrap_date = #{scrapDate},</if>
69
+            <if test="reason != null">reason = #{reason},</if>
70
+            <if test="deal != null">deal = #{deal},</if>
71
+            <if test="remark != null">remark = #{remark},</if>
72
+            <if test="document != null">document = #{document},</if>
73
+        </trim>
74
+        where device_scrap_id = #{deviceScrapId}
75
+    </update>
76
+
77
+    <delete id="deleteCmcDeviceScrapByDeviceScrapId" parameterType="String">
78
+        delete from cmc_device_scrap where device_scrap_id = #{deviceScrapId}
79
+    </delete>
80
+
81
+    <delete id="deleteCmcDeviceScrapByDeviceScrapIds" parameterType="String">
82
+        delete from cmc_device_scrap where device_scrap_id in 
83
+        <foreach item="deviceScrapId" collection="array" open="(" separator="," close=")">
84
+            #{deviceScrapId}
85
+        </foreach>
86
+    </delete>
87
+</mapper>

+ 38
- 12
oa-back/sql/sql.sql 查看文件

6185
 INSERT INTO `cmc_device` VALUES (597, 'Z024', NULL, '办公桌', '办公设备', NULL, 0.00, NULL, NULL, NULL, NULL, 'C304A', '', 114);
6185
 INSERT INTO `cmc_device` VALUES (597, 'Z024', NULL, '办公桌', '办公设备', NULL, 0.00, NULL, NULL, NULL, NULL, 'C304A', '', 114);
6186
 INSERT INTO `cmc_device` VALUES (598, 'ZLJ01', NULL, '制冷机', '办公设备', NULL, 0.00, NULL, NULL, '骆驼', NULL, 'C301会议室', '', 104);
6186
 INSERT INTO `cmc_device` VALUES (598, 'ZLJ01', NULL, '制冷机', '办公设备', NULL, 0.00, NULL, NULL, '骆驼', NULL, 'C301会议室', '', 104);
6187
 
6187
 
6188
+-- ----------------------------
6189
+-- 28、cmc设备移交表
6190
+-- ----------------------------
6191
+drop table if exists `cmc_device_handover`;
6192
+create table `cmc_device_handover`  (
6193
+  `device_handover_id`	char(19)		not null 		comment '设备移交id',
6194
+  `device_id` 			int 			default null 	comment '设备id',
6195
+  `handover_dept` 		bigint 			default null 	comment '移交部门id',
6196
+  `handover_user` 		bigint 			default null 	comment '移交人id',
6197
+  `handover_date`		date			default null 	comment '移交日期',
6198
+  `receive_dept` 		bigint 			default null 	comment '接收部门id',
6199
+  `receive_user` 		bigint 			default null 	comment '接收人id',
6200
+  `description`			varchar(255)	default null 	comment '设备软件说明',
6201
+  `reason`				varchar(255)	default null 	comment '交接原因',
6202
+  `remark`				varchar(255)	default null 	comment '备注',
6203
+  primary key (`device_handover_id`)
6204
+) engine = innodb comment = 'cmc设备移交表';
6205
+
6206
+-- ----------------------------
6207
+-- 初始化-设备移交表数据
6208
+-- ----------------------------
6209
+
6188
 -- ----------------------------
6210
 -- ----------------------------
6189
 -- 29、cmc设备审批表
6211
 -- 29、cmc设备审批表
6190
 -- ----------------------------
6212
 -- ----------------------------
9409
 INSERT INTO `cmc_price_remark` VALUES (22, '内业-坐标转换', '⑴坐标转换、电子沙盘制作,按工作前核准的内业工天结算。');
9431
 INSERT INTO `cmc_price_remark` VALUES (22, '内业-坐标转换', '⑴坐标转换、电子沙盘制作,按工作前核准的内业工天结算。');
9410
 
9432
 
9411
 -- ----------------------------
9433
 -- ----------------------------
9434
+-- 62、cmc设备费用表
9412
 -- ----------------------------
9435
 -- ----------------------------
9413
 drop table if exists `cmc_device_expense`;
9436
 drop table if exists `cmc_device_expense`;
9414
 create table `cmc_device_expense`  (
9437
 create table `cmc_device_expense`  (
9415
-  `device_expense_id`	char(19)		not null 		comment '仪器费用id',
9416
-  `device_id` 			int 			default null 	comment '仪器id',
9438
+  `device_expense_id`	char(19)		not null 		comment '设备费用id',
9439
+  `device_id` 			int 			default null 	comment '设备id',
9440
+  `user_id` 			bigint 			default null 	comment '负责人id',
9417
   `expense_type`		char(1) 		default null 	comment '费用类型(0检定费、1维修保养费)',
9441
   `expense_type`		char(1) 		default null 	comment '费用类型(0检定费、1维修保养费)',
9418
   `expense`				decimal(10, 2) 	default null 	comment '费用金额',
9442
   `expense`				decimal(10, 2) 	default null 	comment '费用金额',
9419
   `occur_date`			date			default null 	comment '发生日期',
9443
   `occur_date`			date			default null 	comment '发生日期',
9420
   `remark`				varchar(255)	default null 	comment '备注',
9444
   `remark`				varchar(255)	default null 	comment '备注',
9421
   `document`			varchar(255)	default null 	comment '附件',
9445
   `document`			varchar(255)	default null 	comment '附件',
9422
   primary key (`device_expense_id`)
9446
   primary key (`device_expense_id`)
9423
-) engine = innodb comment = 'cmc仪器费用表';
9447
+) engine = innodb comment = 'cmc设备费用表';
9424
 
9448
 
9425
 -- ----------------------------
9449
 -- ----------------------------
9426
 -- 初始化-仪器费用表数据
9450
 -- 初始化-仪器费用表数据
9427
 -- ----------------------------
9451
 -- ----------------------------
9428
 
9452
 
9429
 -- ----------------------------
9453
 -- ----------------------------
9454
+-- 63、cmc设备报废表
9430
 -- ----------------------------
9455
 -- ----------------------------
9431
-drop table if exists `cmc_device_expense`;
9432
-create table `cmc_device_expense`  (
9433
-  `device_expense_id`	char(19)		not null 		comment '仪器费用id',
9434
-  `device_id` 			int 			default null 	comment '仪器id',
9435
-  `expense_type`		char(1) 		default null 	comment '费用类型(0检定费、1维修保养费)',
9436
-  `expense`				decimal(10, 2) 	default null 	comment '费用金额',
9437
-  `occur_date`			date			default null 	comment '发生日期',
9456
+drop table if exists `cmc_device_scrap`;
9457
+create table `cmc_device_scrap`  (
9458
+  `device_scrap_id`		char(19)		not null 		comment '设备报废id',
9459
+  `device_id` 			int 			default null 	comment '设备id',
9460
+  `cost`				decimal(10, 2) 	default null 	comment '原价值',
9461
+  `scrap_date`			date			default null 	comment '报废日期',
9462
+  `reason`				varchar(255)	default null 	comment '报废原因',
9463
+  `deal`				varchar(255)	default null 	comment '处理结果',
9438
   `remark`				varchar(255)	default null 	comment '备注',
9464
   `remark`				varchar(255)	default null 	comment '备注',
9439
   `document`			varchar(255)	default null 	comment '附件',
9465
   `document`			varchar(255)	default null 	comment '附件',
9440
-  primary key (`device_expense_id`)
9441
-) engine = innodb comment = 'cmc仪器报废表';
9466
+  primary key (`device_scrap_id`)
9467
+) engine = innodb comment = 'cmc设备报废表';
9442
 
9468
 
9443
 -- ----------------------------
9469
 -- ----------------------------
9444
 -- 初始化-仪器报废表数据
9470
 -- 初始化-仪器报废表数据

+ 5
- 5
oa-ui/src/api/oa/device/deviceExpense.js 查看文件

1
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
 
2
 
3
-// 查询cmc仪器费用列表
3
+// 查询cmc设备费用列表
4
 export function listDeviceExpense(query) {
4
 export function listDeviceExpense(query) {
5
   return request({
5
   return request({
6
     url: '/oa/deviceExpense/list',
6
     url: '/oa/deviceExpense/list',
9
   })
9
   })
10
 }
10
 }
11
 
11
 
12
-// 查询cmc仪器费用详细
12
+// 查询cmc设备费用详细
13
 export function getDeviceExpense(deviceExpenseId) {
13
 export function getDeviceExpense(deviceExpenseId) {
14
   return request({
14
   return request({
15
     url: '/oa/deviceExpense/' + deviceExpenseId,
15
     url: '/oa/deviceExpense/' + deviceExpenseId,
17
   })
17
   })
18
 }
18
 }
19
 
19
 
20
-// 新增cmc仪器费用
20
+// 新增cmc设备费用
21
 export function addDeviceExpense(data) {
21
 export function addDeviceExpense(data) {
22
   return request({
22
   return request({
23
     url: '/oa/deviceExpense',
23
     url: '/oa/deviceExpense',
26
   })
26
   })
27
 }
27
 }
28
 
28
 
29
-// 修改cmc仪器费用
29
+// 修改cmc设备费用
30
 export function updateDeviceExpense(data) {
30
 export function updateDeviceExpense(data) {
31
   return request({
31
   return request({
32
     url: '/oa/deviceExpense',
32
     url: '/oa/deviceExpense',
35
   })
35
   })
36
 }
36
 }
37
 
37
 
38
-// 删除cmc仪器费用
38
+// 删除cmc设备费用
39
 export function delDeviceExpense(deviceExpenseId) {
39
 export function delDeviceExpense(deviceExpenseId) {
40
   return request({
40
   return request({
41
     url: '/oa/deviceExpense/' + deviceExpenseId,
41
     url: '/oa/deviceExpense/' + deviceExpenseId,

+ 44
- 0
oa-ui/src/api/oa/device/deviceHandover.js 查看文件

1
+import request from '@/utils/request'
2
+
3
+// 查询cmc设备移交列表
4
+export function listDeviceHandover(query) {
5
+  return request({
6
+    url: '/oa/deviceHandover/list',
7
+    method: 'get',
8
+    params: query
9
+  })
10
+}
11
+
12
+// 查询cmc设备移交详细
13
+export function getDeviceHandover(deviceHandoverId) {
14
+  return request({
15
+    url: '/oa/deviceHandover/' + deviceHandoverId,
16
+    method: 'get'
17
+  })
18
+}
19
+
20
+// 新增cmc设备移交
21
+export function addDeviceHandover(data) {
22
+  return request({
23
+    url: '/oa/deviceHandover',
24
+    method: 'post',
25
+    data: data
26
+  })
27
+}
28
+
29
+// 修改cmc设备移交
30
+export function updateDeviceHandover(data) {
31
+  return request({
32
+    url: '/oa/deviceHandover',
33
+    method: 'put',
34
+    data: data
35
+  })
36
+}
37
+
38
+// 删除cmc设备移交
39
+export function delDeviceHandover(deviceHandoverId) {
40
+  return request({
41
+    url: '/oa/deviceHandover/' + deviceHandoverId,
42
+    method: 'delete'
43
+  })
44
+}

+ 44
- 0
oa-ui/src/api/oa/device/deviceScrap.js 查看文件

1
+import request from '@/utils/request'
2
+
3
+// 查询cmc设备报废列表
4
+export function listDeviceScrap(query) {
5
+  return request({
6
+    url: '/oa/deviceScrap/list',
7
+    method: 'get',
8
+    params: query
9
+  })
10
+}
11
+
12
+// 查询cmc设备报废详细
13
+export function getDeviceScrap(deviceScrapId) {
14
+  return request({
15
+    url: '/oa/deviceScrap/' + deviceScrapId,
16
+    method: 'get'
17
+  })
18
+}
19
+
20
+// 新增cmc设备报废
21
+export function addDeviceScrap(data) {
22
+  return request({
23
+    url: '/oa/deviceScrap',
24
+    method: 'post',
25
+    data: data
26
+  })
27
+}
28
+
29
+// 修改cmc设备报废
30
+export function updateDeviceScrap(data) {
31
+  return request({
32
+    url: '/oa/deviceScrap',
33
+    method: 'put',
34
+    data: data
35
+  })
36
+}
37
+
38
+// 删除cmc设备报废
39
+export function delDeviceScrap(deviceScrapId) {
40
+  return request({
41
+    url: '/oa/deviceScrap/' + deviceScrapId,
42
+    method: 'delete'
43
+  })
44
+}

Loading…
取消
儲存