kangwei:设备分析补充:维护费用 保养费用 基建维修费用
正在显示
3 个修改的文件
包含
31 行增加
和
1 行删除
... | @@ -13,6 +13,7 @@ import lombok.Data; | ... | @@ -13,6 +13,7 @@ import lombok.Data; |
13 | import lombok.EqualsAndHashCode; | 13 | import lombok.EqualsAndHashCode; |
14 | import lombok.experimental.Accessors; | 14 | import lombok.experimental.Accessors; |
15 | import com.fasterxml.jackson.annotation.JsonFormat; | 15 | import com.fasterxml.jackson.annotation.JsonFormat; |
16 | import netscape.javascript.JSUtil; | ||
16 | import org.springframework.format.annotation.DateTimeFormat; | 17 | import org.springframework.format.annotation.DateTimeFormat; |
17 | import org.jeecgframework.poi.excel.annotation.Excel; | 18 | import org.jeecgframework.poi.excel.annotation.Excel; |
18 | 19 | ||
... | @@ -59,4 +60,9 @@ public class EquipmentInfoDuration { | ... | @@ -59,4 +60,9 @@ public class EquipmentInfoDuration { |
59 | @Excel(name = "累计总时长", width = 15) | 60 | @Excel(name = "累计总时长", width = 15) |
60 | @ApiModelProperty(value = "累计总时长") | 61 | @ApiModelProperty(value = "累计总时长") |
61 | private Double totalDuration; | 62 | private Double totalDuration; |
63 | |||
64 | |||
65 | @TableField(exist=false) | ||
66 | @ApiModelProperty(value = "设备运行比例") | ||
67 | private String sbyxRate; | ||
62 | } | 68 | } | ... | ... |
... | @@ -65,8 +65,11 @@ public class ProductionEquipmentServiceImpl implements IProductionEquipmentServi | ... | @@ -65,8 +65,11 @@ public class ProductionEquipmentServiceImpl implements IProductionEquipmentServi |
65 | Double maintainCost = 0.00; | 65 | Double maintainCost = 0.00; |
66 | Double totalCost = 0.00; | 66 | Double totalCost = 0.00; |
67 | Double costRing = 0.00; | 67 | Double costRing = 0.00; |
68 | Double dxjgCost = 0d; | 68 | Double dxjgCost = 0d; //大修 |
69 | 69 | ||
70 | Double sbwhCost = 0d; //维护费用 | ||
71 | Double sbbyCost = 0d;//保养费用 | ||
72 | Double jjwxCost = 0d; //基建维修费用 | ||
70 | //ab总数 | 73 | //ab总数 |
71 | Integer ABEquipmentNum = 0; | 74 | Integer ABEquipmentNum = 0; |
72 | if (reportStatisticsDTO.getTimeUnit() != null && reportStatisticsDTO.getTimeUnit() == 3) { | 75 | if (reportStatisticsDTO.getTimeUnit() != null && reportStatisticsDTO.getTimeUnit() == 3) { |
... | @@ -219,6 +222,12 @@ public class ProductionEquipmentServiceImpl implements IProductionEquipmentServi | ... | @@ -219,6 +222,12 @@ public class ProductionEquipmentServiceImpl implements IProductionEquipmentServi |
219 | //维护维修费用 | 222 | //维护维修费用 |
220 | //大修费用 | 223 | //大修费用 |
221 | dxjgCost = productionEquipmentMapper.getMaintainCostByMaintenanceType("dxjg",reportStatisticsDTO.getTime() + YEAR_START, reportStatisticsDTO.getTime() + YEAR_END); | 224 | dxjgCost = productionEquipmentMapper.getMaintainCostByMaintenanceType("dxjg",reportStatisticsDTO.getTime() + YEAR_START, reportStatisticsDTO.getTime() + YEAR_END); |
225 | |||
226 | sbwhCost = productionEquipmentMapper.getMaintainCostByMaintenanceType("sbwh",reportStatisticsDTO.getTime() + YEAR_START, reportStatisticsDTO.getTime() + YEAR_END);; //维护费用 | ||
227 | sbbyCost = productionEquipmentMapper.getMaintainCostByMaintenanceType("sbby",reportStatisticsDTO.getTime() + YEAR_START, reportStatisticsDTO.getTime() + YEAR_END);;//保养费用 | ||
228 | jjwxCost = productionEquipmentMapper.getMaintainCostByMaintenanceType("jjwx",reportStatisticsDTO.getTime() + YEAR_START, reportStatisticsDTO.getTime() + YEAR_END);; //基建维修费用 | ||
229 | |||
230 | |||
222 | //维修费 | 231 | //维修费 |
223 | repairCost = productionEquipmentMapper.getRepairCost(reportStatisticsDTO.getTime() + YEAR_START, reportStatisticsDTO.getTime() + YEAR_END); | 232 | repairCost = productionEquipmentMapper.getRepairCost(reportStatisticsDTO.getTime() + YEAR_START, reportStatisticsDTO.getTime() + YEAR_END); |
224 | //保养费 | 233 | //保养费 |
... | @@ -259,6 +268,10 @@ public class ProductionEquipmentServiceImpl implements IProductionEquipmentServi | ... | @@ -259,6 +268,10 @@ public class ProductionEquipmentServiceImpl implements IProductionEquipmentServi |
259 | productionEquipmentVO.setRepairCompleteRingRate(bigDecimal3.toString() + "%"); | 268 | productionEquipmentVO.setRepairCompleteRingRate(bigDecimal3.toString() + "%"); |
260 | //大修技改费用 | 269 | //大修技改费用 |
261 | productionEquipmentVO.setDxCost(dxjgCost+""); | 270 | productionEquipmentVO.setDxCost(dxjgCost+""); |
271 | productionEquipmentVO.setSbbyCost(sbbyCost+"");//维护费用 | ||
272 | productionEquipmentVO.setSbwhCost(sbwhCost+"");//维护费用 | ||
273 | productionEquipmentVO.setJjwxCost(jjwxCost+"");//基建维修费用 | ||
274 | |||
262 | //维护维修费用 | 275 | //维护维修费用 |
263 | productionEquipmentVO.setRepairMaintainCost(JSUtils.divide(totalCost,10000)); | 276 | productionEquipmentVO.setRepairMaintainCost(JSUtils.divide(totalCost,10000)); |
264 | //维修费用 | 277 | //维修费用 | ... | ... |
1 | package com.skua.modules.equipment.vo; | 1 | package com.skua.modules.equipment.vo; |
2 | 2 | ||
3 | import io.swagger.annotations.ApiModelProperty; | ||
3 | import lombok.Data; | 4 | import lombok.Data; |
4 | 5 | ||
5 | /*************************** | 6 | /*************************** |
... | @@ -47,6 +48,16 @@ public class ProductionEquipmentVO { | ... | @@ -47,6 +48,16 @@ public class ProductionEquipmentVO { |
47 | private String maintainCost; | 48 | private String maintainCost; |
48 | 49 | ||
49 | //大修费用 | 50 | //大修费用 |
51 | @ApiModelProperty(value = "大修费用") | ||
50 | private String dxCost; | 52 | private String dxCost; |
51 | 53 | ||
54 | @ApiModelProperty(value = "维护费用") | ||
55 | private String sbwhCost; | ||
56 | |||
57 | @ApiModelProperty(value = "保养费用") | ||
58 | private String sbbyCost; | ||
59 | |||
60 | @ApiModelProperty(value = "基建维修费用") | ||
61 | private String jjwxCost; | ||
62 | |||
52 | } | 63 | } | ... | ... |
-
请 注册 或 登录 后发表评论