| | |
| | | map.put("45", "报废理由"); |
| | | map.put("46", "报废填报日期(yyyy-MM-dd HH:mm:ss)"); |
| | | map.put("47", "实际报废日期(yyyy-MM-dd HH:mm:ss)"); |
| | | map.put("48", "保养周期"); |
| | | String fileName = URLEncoder.encode("设备设施管理数据导入模板.xls", "UTF-8"); |
| | | response.setContentType("application/vnd.ms-excel"); |
| | | response.setHeader("Content-Disposition", "attachment;filename=" + fileName + ".xlsx"); |
| | |
| | | map.put("45", "报废理由"); |
| | | map.put("46", "报废填报日期(yyyy-MM-dd HH:mm:ss)"); |
| | | map.put("47", "实际报废日期(yyyy-MM-dd HH:mm:ss)"); |
| | | map.put("48", "保养周期"); |
| | | |
| | | String key = DateUtils.date2String(new Date(), DateUtils.PATTERN_ALLTIME_NOSIGN) ; |
| | | String fileName = URLEncoder.encode("设备设施管理"+key+".xls", "UTF-8"); |
| | |
| | | public void setAreaName(String areaName) { |
| | | this.areaName = areaName; |
| | | } |
| | | |
| | | //保养周期 |
| | | private String takecareCycle; |
| | | |
| | | public String getTakecareCycle() { |
| | | return takecareCycle; |
| | | } |
| | | |
| | | public void setTakecareCycle(String takecareCycle) { |
| | | this.takecareCycle = takecareCycle; |
| | | } |
| | | } |
| | |
| | | public void setMemo(String memo) { |
| | | this.memo = memo; |
| | | } |
| | | |
| | | } |
| | |
| | | @ExcelCell(index = 47) |
| | | private Timestamp actualDestoryDate; |
| | | |
| | | //保养周期 |
| | | @ExcelCell(index = 48) |
| | | private String takecareCycle; |
| | | |
| | | public String getTakecareCycle() { |
| | | return takecareCycle; |
| | | } |
| | | |
| | | public void setTakecareCycle(String takecareCycle) { |
| | | this.takecareCycle = takecareCycle; |
| | | } |
| | | |
| | | //类型/类别外键 |
| | | public Long getEquipmentTypeId() { |
| | |
| | | //要删除的检查标准 |
| | | private String delCheckStandardeDetails; |
| | | |
| | | |
| | | //保养周期 |
| | | private String takecareCycle; |
| | | |
| | | public String getTakecareCycle() { |
| | | return takecareCycle; |
| | | } |
| | | |
| | | public void setTakecareCycle(String takecareCycle) { |
| | | this.takecareCycle = takecareCycle; |
| | | } |
| | | |
| | | public String getLeadingPersonName() { |
| | | return leadingPersonName; |
| | | } |
| | |
| | | //区域名称 |
| | | private String areaName; |
| | | |
| | | |
| | | //保养周期 |
| | | private String takecareCycle; |
| | | |
| | | public String getTakecareCycle() { |
| | | return takecareCycle; |
| | | } |
| | | |
| | | public void setTakecareCycle(String takecareCycle) { |
| | | this.takecareCycle = takecareCycle; |
| | | } |
| | | |
| | | public Long getAreaId() { |
| | | return areaId; |
| | | } |
| | |
| | | @ExcelCell(index = 47) |
| | | private Timestamp actualDestoryDate; |
| | | |
| | | //保养周期 |
| | | @ExcelCell(index = 48) |
| | | private String takecareCycle; |
| | | |
| | | public String getTakecareCycle() { |
| | | return takecareCycle; |
| | | } |
| | | |
| | | public void setTakecareCycle(String takecareCycle) { |
| | | this.takecareCycle = takecareCycle; |
| | | } |
| | | |
| | | //ID |
| | | public Long getId() { |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.gkhy.safePlatform.equipment.entity.EquipmentInfo; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | /** |
| | |
| | | @Repository |
| | | public interface EquipmentInfoRepository extends BaseMapper<EquipmentInfo> { |
| | | |
| | | @Select("<script> select count(1) from equipment_info m INNER JOIN \n" + |
| | | "(select a.id,max(b.takecare_date) mdate from equipment_info a INNER JOIN equipment_takecare_detail b on a.id = b.equipment_id GROUP BY b.equipment_id) n \n" + |
| | | "on m.id = n.id where DATEDIFF(NOW(),n.mdate) >m.takecare_cycle</script> ") |
| | | Object countOverTime(); |
| | | } |
| | |
| | | .select("stop_status as stopStatus,count(0) as count") |
| | | .groupBy("stop_status"); |
| | | |
| | | return this.listMaps(wrapper); |
| | | List<Map<String, Object>> list = this.listMaps(wrapper); |
| | | |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("-1",equipmentInfoRepository.countOverTime());//超时未保养 |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | |
| | | Map<String,String> map = new LinkedHashMap<>(); |
| | | map.put("1","安全目标指标"); |
| | | map.put("2","目标指标编号"); |
| | | map.put("3","指标类型 1:年指标 2:月指标"); |
| | | map.put("3","指标类型 1:年指标 2:月指标 3:半年 4:季度"); |
| | | map.put("4","年度"); |
| | | map.put("5","指标值"); |
| | | map.put("6","指标级别 1:公司级 2:部门分厂级 3:工段班组级"); |
| | |
| | | return this.targetTypeService.queryAll(pageQuery); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询所有数据 |
| | | * |
| | | * @param criteria 查询实体 |
| | | * @return 所有数据 |
| | | */ |
| | | @PostMapping(value = "/page/listAll") |
| | | public ResultVO listAll(@RequestBody TargetTypeQueryCriteria criteria){ |
| | | return new ResultVO<>(ResultCodes.OK,this.targetTypeService.queryAll(criteria)); |
| | | } |
| | | |
| | | /** |
| | | * 通过主键查询单条数据 |
| | |
| | | //目标指标编号 |
| | | @Query(type = Query.Type.INNER_LIKE) |
| | | private String indexNum; |
| | | //指标类型 1:年指标 2:月指标 |
| | | //指标类型 1:年指标 2:月指标 3:半年 4:季度 |
| | | @Query() |
| | | private Integer targetType; |
| | | //分解状态 1:已分解 2:未分解 |