diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/constructionMachinery/GcjxDeviceReportController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/constructionMachinery/GcjxDeviceReportController.java new file mode 100644 index 00000000..2596ca82 --- /dev/null +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/constructionMachinery/GcjxDeviceReportController.java @@ -0,0 +1,155 @@ +package com.god.web.controller.constructionMachinery; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.god.common.annotation.Log; +import com.god.common.core.controller.BaseController; +import com.god.common.core.domain.AjaxResult; +import com.god.common.enums.BusinessType; +import com.god.constructionMachinery.domain.GcjxDeviceReport; +import com.god.constructionMachinery.service.IGcjxDeviceReportService; +import com.god.common.utils.poi.ExcelUtil; +import com.god.common.core.page.TableDataInfo; + +/** + * 工程机械-报表中心Controller + * + * @author god + * @date 2023-12-04 + */ +@RestController +@RequestMapping("/constructionMachinery/devicereport") +public class GcjxDeviceReportController extends BaseController +{ + @Autowired + private IGcjxDeviceReportService gcjxDeviceReportService; + + /** + * 查询工程机械-报表中心列表 + */ + // @PreAuthorize("@ss.hasPermi('constructionMachinery:devicereport:list')") + @GetMapping("/list") + public TableDataInfo list(GcjxDeviceReport gcjxDeviceReport) + { + startPage(); + List list = gcjxDeviceReportService.selectGcjxDeviceReportList(gcjxDeviceReport); + return getDataTable(list); + } + + @GetMapping("/listWeek") + public TableDataInfo listWeek(GcjxDeviceReport gcjxDeviceReport) + { + startPage(); + List list = gcjxDeviceReportService.selectGcjxDeviceReportListByWeek(gcjxDeviceReport); + return getDataTable(list); + } + + @GetMapping("/listMonth") + public TableDataInfo listMonth(GcjxDeviceReport gcjxDeviceReport) + { + startPage(); + List list = gcjxDeviceReportService.selectGcjxDeviceReportListByMonth(gcjxDeviceReport); + return getDataTable(list); + } + + @GetMapping("/listYear") + public TableDataInfo listYear(GcjxDeviceReport gcjxDeviceReport) + { + startPage(); + List list = gcjxDeviceReportService.selectGcjxDeviceReportListByYear(gcjxDeviceReport); + return getDataTable(list); + } + + /** + * 导出工程机械-报表中心列表 + */ + // @PreAuthorize("@ss.hasPermi('constructionMachinery:devicereport:export')") + @Log(title = "工程机械-报表中心", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, GcjxDeviceReport gcjxDeviceReport) + { + List list = gcjxDeviceReportService.selectGcjxDeviceReportList(gcjxDeviceReport); + ExcelUtil util = new ExcelUtil(GcjxDeviceReport.class); + util.exportExcel(response, list, "工程机械-报表中心数据"); + } + + @Log(title = "工程机械-报表中心", businessType = BusinessType.EXPORT) + @PostMapping("/exportWeek") + public void exportWeek(HttpServletResponse response, GcjxDeviceReport gcjxDeviceReport) + { + List list = gcjxDeviceReportService.selectGcjxDeviceReportListByWeek(gcjxDeviceReport); + ExcelUtil util = new ExcelUtil(GcjxDeviceReport.class); + util.exportExcel(response, list, "工程机械-报表中心数据"); + } + + @Log(title = "工程机械-报表中心", businessType = BusinessType.EXPORT) + @PostMapping("/exportMonth") + public void exportMonth(HttpServletResponse response, GcjxDeviceReport gcjxDeviceReport) + { + List list = gcjxDeviceReportService.selectGcjxDeviceReportListByMonth(gcjxDeviceReport); + ExcelUtil util = new ExcelUtil(GcjxDeviceReport.class); + util.exportExcel(response, list, "工程机械-报表中心数据"); + } + + @Log(title = "工程机械-报表中心", businessType = BusinessType.EXPORT) + @PostMapping("/exportYear") + public void exportYear(HttpServletResponse response, GcjxDeviceReport gcjxDeviceReport) + { + List list = gcjxDeviceReportService.selectGcjxDeviceReportListByYear(gcjxDeviceReport); + ExcelUtil util = new ExcelUtil(GcjxDeviceReport.class); + util.exportExcel(response, list, "工程机械-报表中心数据"); + } + + /** + * 获取工程机械-报表中心详细信息 + */ + // @PreAuthorize("@ss.hasPermi('constructionMachinery:devicereport:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) + { + return success(gcjxDeviceReportService.selectGcjxDeviceReportById(id)); + } + + /** + * 新增工程机械-报表中心 + */ + // @PreAuthorize("@ss.hasPermi('constructionMachinery:devicereport:add')") + @Log(title = "工程机械-报表中心", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody GcjxDeviceReport gcjxDeviceReport) + { + return toAjax(gcjxDeviceReportService.insertGcjxDeviceReport(gcjxDeviceReport)); + } + + /** + * 修改工程机械-报表中心 + */ + // @PreAuthorize("@ss.hasPermi('constructionMachinery:devicereport:edit')") + @Log(title = "工程机械-报表中心", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody GcjxDeviceReport gcjxDeviceReport) + { + return toAjax(gcjxDeviceReportService.updateGcjxDeviceReport(gcjxDeviceReport)); + } + + /** + * 删除工程机械-报表中心 + */ + //@PreAuthorize("@ss.hasPermi('constructionMachinery:devicereport:remove')") + @Log(title = "工程机械-报表中心", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) + { + return toAjax(gcjxDeviceReportService.deleteGcjxDeviceReportByIds(ids)); + } +} diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/deviceInfo/GcjxDeviceManageController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/deviceInfo/GcjxDeviceManageController.java new file mode 100644 index 00000000..46f1b026 --- /dev/null +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/deviceInfo/GcjxDeviceManageController.java @@ -0,0 +1,92 @@ +package com.god.web.controller.deviceInfo; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; + +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.god.common.annotation.Log; +import com.god.common.core.controller.BaseController; +import com.god.common.core.domain.AjaxResult; +import com.god.common.enums.BusinessType; +import com.god.deviceInfo.domain.GcjxDeviceManage; +import com.god.deviceInfo.service.IGcjxDeviceManageService; +import com.god.common.utils.poi.ExcelUtil; +import com.god.common.core.page.TableDataInfo; + +/** + * 设备管理Controller + * + * @author limuyang + * @date 2023-12-04 + */ +@RestController +@RequestMapping("/deviceInfo/deviceManage") +public class GcjxDeviceManageController extends BaseController { + @Autowired + private IGcjxDeviceManageService gcjxDeviceManageService; + + /** + * 查询设备管理列表 + */ + @GetMapping("/list") + public TableDataInfo list(GcjxDeviceManage gcjxDeviceManage) { + startPage(); + List list = gcjxDeviceManageService.selectGcjxDeviceManageList(gcjxDeviceManage); + return getDataTable(list); + } + + /** + * 导出设备管理列表 + */ + @Log(title = "设备管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, GcjxDeviceManage gcjxDeviceManage) { + List list = gcjxDeviceManageService.selectGcjxDeviceManageList(gcjxDeviceManage); + ExcelUtil util = new ExcelUtil(GcjxDeviceManage.class); + util.exportExcel(response, list, "设备管理数据"); + } + + /** + * 获取设备管理详细信息 + */ + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) { + return success(gcjxDeviceManageService.selectGcjxDeviceManageById(id)); + } + + /** + * 新增设备管理 + */ + @Log(title = "设备管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody GcjxDeviceManage gcjxDeviceManage) { + return toAjax(gcjxDeviceManageService.insertGcjxDeviceManage(gcjxDeviceManage)); + } + + /** + * 修改设备管理 + */ + @Log(title = "设备管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody GcjxDeviceManage gcjxDeviceManage) { + return toAjax(gcjxDeviceManageService.updateGcjxDeviceManage(gcjxDeviceManage)); + } + + /** + * 删除设备管理 + */ + @Log(title = "设备管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) { + return toAjax(gcjxDeviceManageService.deleteGcjxDeviceManageByIds(ids)); + } +} diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/dimension/GcjxEqLookController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/dimension/GcjxEqLookController.java new file mode 100644 index 00000000..60fc4738 --- /dev/null +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/dimension/GcjxEqLookController.java @@ -0,0 +1,98 @@ +package com.god.web.controller.dimension; + +import com.god.common.annotation.Log; +import com.god.common.core.controller.BaseController; +import com.god.common.core.domain.AjaxResult; +import com.god.common.core.page.TableDataInfo; +import com.god.common.enums.BusinessType; +import com.god.common.utils.poi.ExcelUtil; +import com.god.dimension.domain.GcjxEqLook; +import com.god.dimension.service.IGcjxEqLookService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 设备对象分析Controller + * + * @author Lxz + * @date 2023-12-04 + */ +@RestController +@RequestMapping("/dimension/gcjxEqLook") +public class GcjxEqLookController extends BaseController +{ + @Autowired + private IGcjxEqLookService gcjxEqLookService; + + /** + * 查询设备对象分析列表 + */ + @PreAuthorize("@ss.hasPermi('dimension:gcjxEqLook:list')") + @GetMapping("/list") + public TableDataInfo list(GcjxEqLook gcjxEqLook) + { + startPage(); + List list = gcjxEqLookService.selectGcjxEqLookList(gcjxEqLook); + return getDataTable(list); + } + + /** + * 导出设备对象分析列表 + */ + @PreAuthorize("@ss.hasPermi('dimension:gcjxEqLook:export')") + @Log(title = "设备对象分析", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, GcjxEqLook gcjxEqLook) + { + List list = gcjxEqLookService.selectGcjxEqLookList(gcjxEqLook); + ExcelUtil util = new ExcelUtil(GcjxEqLook.class); + util.exportExcel(response, list, "设备对象分析数据"); + } + + /** + * 获取设备对象分析详细信息 + */ + @PreAuthorize("@ss.hasPermi('dimension:gcjxEqLook:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) + { + return success(gcjxEqLookService.selectGcjxEqLookById(id)); + } + + /** + * 新增设备对象分析 + */ + @PreAuthorize("@ss.hasPermi('dimension:gcjxEqLook:add')") + @Log(title = "设备对象分析", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody GcjxEqLook gcjxEqLook) + { + return toAjax(gcjxEqLookService.insertGcjxEqLook(gcjxEqLook)); + } + + /** + * 修改设备对象分析 + */ + @PreAuthorize("@ss.hasPermi('dimension:gcjxEqLook:edit')") + @Log(title = "设备对象分析", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody GcjxEqLook gcjxEqLook) + { + return toAjax(gcjxEqLookService.updateGcjxEqLook(gcjxEqLook)); + } + + /** + * 删除设备对象分析 + */ + @PreAuthorize("@ss.hasPermi('dimension:gcjxEqLook:remove')") + @Log(title = "设备对象分析", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) + { + return toAjax(gcjxEqLookService.deleteGcjxEqLookByIds(ids)); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/constructionMachinery/domain/GcjxDeviceReport.java b/God-Vue-master/god-system/src/main/java/com/god/constructionMachinery/domain/GcjxDeviceReport.java new file mode 100644 index 00000000..d39e1a58 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/constructionMachinery/domain/GcjxDeviceReport.java @@ -0,0 +1,182 @@ +package com.god.constructionMachinery.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.god.common.annotation.Excel; +import com.god.common.core.domain.BaseEntity; + +/** + * 工程机械-报表中心对象 gcjx_device_report + * + * @author god + * @date 2023-12-04 + */ +public class GcjxDeviceReport extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private String id; + + /** 设备编号 */ + @Excel(name = "设备编号") + private String deviceCode; + + /** 设备名称 */ + @Excel(name = "设备名称") + private String deviceName; + + /** 日期 */ + @Excel(name = "日期") + private String deviceDate; + + /** 周 */ + @Excel(name = "周") + private String deviceWeek; + + /** 月 */ + @Excel(name = "月") + private String deviceMonth; + + /** 年 */ + @Excel(name = "年") + private String deviceYear; + + /** 运行时长 */ + @Excel(name = "运行时长") + private String runningTime; + + /** 油耗 */ + @Excel(name = "油耗") + private String deviceFuel; + + /** 维修次数 */ + @Excel(name = "维修次数") + private String repairNumber; + + private String startDate; + private String endDate; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setDeviceCode(String deviceCode) + { + this.deviceCode = deviceCode; + } + + public String getDeviceCode() + { + return deviceCode; + } + public void setDeviceName(String deviceName) + { + this.deviceName = deviceName; + } + + public String getDeviceName() + { + return deviceName; + } + public void setDeviceDate(String deviceDate) + { + this.deviceDate = deviceDate; + } + + public String getDeviceDate() + { + return deviceDate; + } + public void setDeviceWeek(String deviceWeek) + { + this.deviceWeek = deviceWeek; + } + + public String getDeviceWeek() + { + return deviceWeek; + } + public void setDeviceMonth(String deviceMonth) + { + this.deviceMonth = deviceMonth; + } + + public String getDeviceMonth() + { + return deviceMonth; + } + public void setDeviceYear(String deviceYear) + { + this.deviceYear = deviceYear; + } + + public String getDeviceYear() + { + return deviceYear; + } + public void setRunningTime(String runningTime) + { + this.runningTime = runningTime; + } + + public String getRunningTime() + { + return runningTime; + } + public void setDeviceFuel(String deviceFuel) + { + this.deviceFuel = deviceFuel; + } + + public String getDeviceFuel() + { + return deviceFuel; + } + public void setRepairNumber(String repairNumber) + { + this.repairNumber = repairNumber; + } + + public String getRepairNumber() + { + return repairNumber; + } + + public String getStartDate() { + return startDate; + } + + public void setStartDate(String startDate) { + this.startDate = startDate; + } + + public String getEndDate() { + return endDate; + } + + public void setEndDate(String endDate) { + this.endDate = endDate; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("deviceCode", getDeviceCode()) + .append("deviceName", getDeviceName()) + .append("deviceDate", getDeviceDate()) + .append("deviceWeek", getDeviceWeek()) + .append("deviceMonth", getDeviceMonth()) + .append("deviceYear", getDeviceYear()) + .append("runningTime", getRunningTime()) + .append("deviceFuel", getDeviceFuel()) + .append("repairNumber", getRepairNumber()) + .toString(); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/constructionMachinery/mapper/GcjxDeviceReportMapper.java b/God-Vue-master/god-system/src/main/java/com/god/constructionMachinery/mapper/GcjxDeviceReportMapper.java new file mode 100644 index 00000000..3197ddf6 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/constructionMachinery/mapper/GcjxDeviceReportMapper.java @@ -0,0 +1,64 @@ +package com.god.constructionMachinery.mapper; + +import java.util.List; +import com.god.constructionMachinery.domain.GcjxDeviceReport; + +/** + * 工程机械-报表中心Mapper接口 + * + * @author god + * @date 2023-12-04 + */ +public interface GcjxDeviceReportMapper +{ + /** + * 查询工程机械-报表中心 + * + * @param id 工程机械-报表中心主键 + * @return 工程机械-报表中心 + */ + public GcjxDeviceReport selectGcjxDeviceReportById(String id); + + /** + * 查询工程机械-报表中心列表 + * + * @param gcjxDeviceReport 工程机械-报表中心 + * @return 工程机械-报表中心集合 + */ + public List selectGcjxDeviceReportList(GcjxDeviceReport gcjxDeviceReport); + public List selectGcjxDeviceReportListByYear(GcjxDeviceReport gcjxDeviceReport); + public List selectGcjxDeviceReportListByMonth(GcjxDeviceReport gcjxDeviceReport); + public List selectGcjxDeviceReportListByWeek(GcjxDeviceReport gcjxDeviceReport); + + /** + * 新增工程机械-报表中心 + * + * @param gcjxDeviceReport 工程机械-报表中心 + * @return 结果 + */ + public int insertGcjxDeviceReport(GcjxDeviceReport gcjxDeviceReport); + + /** + * 修改工程机械-报表中心 + * + * @param gcjxDeviceReport 工程机械-报表中心 + * @return 结果 + */ + public int updateGcjxDeviceReport(GcjxDeviceReport gcjxDeviceReport); + + /** + * 删除工程机械-报表中心 + * + * @param id 工程机械-报表中心主键 + * @return 结果 + */ + public int deleteGcjxDeviceReportById(String id); + + /** + * 批量删除工程机械-报表中心 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteGcjxDeviceReportByIds(String[] ids); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/constructionMachinery/service/IGcjxDeviceReportService.java b/God-Vue-master/god-system/src/main/java/com/god/constructionMachinery/service/IGcjxDeviceReportService.java new file mode 100644 index 00000000..99164b75 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/constructionMachinery/service/IGcjxDeviceReportService.java @@ -0,0 +1,64 @@ +package com.god.constructionMachinery.service; + +import java.util.List; +import com.god.constructionMachinery.domain.GcjxDeviceReport; + +/** + * 工程机械-报表中心Service接口 + * + * @author god + * @date 2023-12-04 + */ +public interface IGcjxDeviceReportService +{ + /** + * 查询工程机械-报表中心 + * + * @param id 工程机械-报表中心主键 + * @return 工程机械-报表中心 + */ + public GcjxDeviceReport selectGcjxDeviceReportById(String id); + + /** + * 查询工程机械-报表中心列表 + * + * @param gcjxDeviceReport 工程机械-报表中心 + * @return 工程机械-报表中心集合 + */ + public List selectGcjxDeviceReportList(GcjxDeviceReport gcjxDeviceReport); + public List selectGcjxDeviceReportListByYear(GcjxDeviceReport gcjxDeviceReport); + public List selectGcjxDeviceReportListByMonth(GcjxDeviceReport gcjxDeviceReport); + public List selectGcjxDeviceReportListByWeek(GcjxDeviceReport gcjxDeviceReport); + + /** + * 新增工程机械-报表中心 + * + * @param gcjxDeviceReport 工程机械-报表中心 + * @return 结果 + */ + public int insertGcjxDeviceReport(GcjxDeviceReport gcjxDeviceReport); + + /** + * 修改工程机械-报表中心 + * + * @param gcjxDeviceReport 工程机械-报表中心 + * @return 结果 + */ + public int updateGcjxDeviceReport(GcjxDeviceReport gcjxDeviceReport); + + /** + * 批量删除工程机械-报表中心 + * + * @param ids 需要删除的工程机械-报表中心主键集合 + * @return 结果 + */ + public int deleteGcjxDeviceReportByIds(String[] ids); + + /** + * 删除工程机械-报表中心信息 + * + * @param id 工程机械-报表中心主键 + * @return 结果 + */ + public int deleteGcjxDeviceReportById(String id); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/constructionMachinery/service/impl/GcjxDeviceReportServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/constructionMachinery/service/impl/GcjxDeviceReportServiceImpl.java new file mode 100644 index 00000000..5321af5f --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/constructionMachinery/service/impl/GcjxDeviceReportServiceImpl.java @@ -0,0 +1,111 @@ +package com.god.constructionMachinery.service.impl; + +import java.util.List; + +import com.god.common.utils.uuid.IdUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.god.constructionMachinery.mapper.GcjxDeviceReportMapper; +import com.god.constructionMachinery.domain.GcjxDeviceReport; +import com.god.constructionMachinery.service.IGcjxDeviceReportService; + +/** + * 工程机械-报表中心Service业务层处理 + * + * @author god + * @date 2023-12-04 + */ +@Service +public class GcjxDeviceReportServiceImpl implements IGcjxDeviceReportService +{ + @Autowired + private GcjxDeviceReportMapper gcjxDeviceReportMapper; + + /** + * 查询工程机械-报表中心 + * + * @param id 工程机械-报表中心主键 + * @return 工程机械-报表中心 + */ + @Override + public GcjxDeviceReport selectGcjxDeviceReportById(String id) + { + return gcjxDeviceReportMapper.selectGcjxDeviceReportById(id); + } + + /** + * 查询工程机械-报表中心列表 + * + * @param gcjxDeviceReport 工程机械-报表中心 + * @return 工程机械-报表中心 + */ + @Override + public List selectGcjxDeviceReportList(GcjxDeviceReport gcjxDeviceReport) + { + return gcjxDeviceReportMapper.selectGcjxDeviceReportList(gcjxDeviceReport); + } + + @Override + public List selectGcjxDeviceReportListByYear(GcjxDeviceReport gcjxDeviceReport) { + return gcjxDeviceReportMapper.selectGcjxDeviceReportListByYear(gcjxDeviceReport); + } + + @Override + public List selectGcjxDeviceReportListByMonth(GcjxDeviceReport gcjxDeviceReport) { + return gcjxDeviceReportMapper.selectGcjxDeviceReportListByMonth(gcjxDeviceReport); + } + + @Override + public List selectGcjxDeviceReportListByWeek(GcjxDeviceReport gcjxDeviceReport) { + return gcjxDeviceReportMapper.selectGcjxDeviceReportListByWeek(gcjxDeviceReport); + } + + /** + * 新增工程机械-报表中心 + * + * @param gcjxDeviceReport 工程机械-报表中心 + * @return 结果 + */ + @Override + public int insertGcjxDeviceReport(GcjxDeviceReport gcjxDeviceReport) + { + gcjxDeviceReport.setId(IdUtils.fastUUID()); + return gcjxDeviceReportMapper.insertGcjxDeviceReport(gcjxDeviceReport); + } + + /** + * 修改工程机械-报表中心 + * + * @param gcjxDeviceReport 工程机械-报表中心 + * @return 结果 + */ + @Override + public int updateGcjxDeviceReport(GcjxDeviceReport gcjxDeviceReport) + { + return gcjxDeviceReportMapper.updateGcjxDeviceReport(gcjxDeviceReport); + } + + /** + * 批量删除工程机械-报表中心 + * + * @param ids 需要删除的工程机械-报表中心主键 + * @return 结果 + */ + @Override + public int deleteGcjxDeviceReportByIds(String[] ids) + { + return gcjxDeviceReportMapper.deleteGcjxDeviceReportByIds(ids); + } + + /** + * 删除工程机械-报表中心信息 + * + * @param id 工程机械-报表中心主键 + * @return 结果 + */ + @Override + public int deleteGcjxDeviceReportById(String id) + { + return gcjxDeviceReportMapper.deleteGcjxDeviceReportById(id); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/deviceInfo/domain/GcjxDeviceManage.java b/God-Vue-master/god-system/src/main/java/com/god/deviceInfo/domain/GcjxDeviceManage.java new file mode 100644 index 00000000..3929419a --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/deviceInfo/domain/GcjxDeviceManage.java @@ -0,0 +1,260 @@ +package com.god.deviceInfo.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.god.common.annotation.Excel; +import com.god.common.core.domain.BaseEntity; + +/** + * 设备管理对象 gcjx_device_manage + * + * @author limuyang + * @date 2023-12-04 + */ +public class GcjxDeviceManage extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * 主键id + */ + private String id; + + /** + * 设备编码 + */ + @Excel(name = "设备编码") + private String deviceCode; + + /** + * 设备名称 + */ + @Excel(name = "设备名称") + private String deviceName; + + /** + * 设备类型 + */ + @Excel(name = "设备类型") + private String deviceType; + + /** + * 设备状态 + */ + @Excel(name = "设备状态") + private String deviceStatus; + + /** + * 设备品牌 + */ + @Excel(name = "设备品牌") + private String deviceBrand; + + /** + * 是否故障 + */ + @Excel(name = "是否故障") + private String isFault; + + /** + * 故障类型 + */ + @Excel(name = "故障类型") + private String faultType; + + /** + * 故障描述 + */ + @Excel(name = "故障描述") + private String faultDetail; + + /** + * 维保人员 + */ + @Excel(name = "维保人员") + private String maintenancePerson; + + /** + * 维保时间 + */ + @Excel(name = "维保时间") + private String maintenanceTime; + + /** + * 维保任务 + */ + @Excel(name = "维保任务") + private String maintenanceTask; + + /** + * 经度 + */ + @Excel(name = "经度") + private String longitude; + + /** + * 纬度 + */ + @Excel(name = "纬度") + private String latitude; + + /** + * 工作时间 + */ + @Excel(name = "工作时间") + private String workTime; + + /** + * 接口名称 + */ + private String interfaceType; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setDeviceCode(String deviceCode) { + this.deviceCode = deviceCode; + } + + public String getDeviceCode() { + return deviceCode; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceStatus(String deviceStatus) { + this.deviceStatus = deviceStatus; + } + + public String getDeviceStatus() { + return deviceStatus; + } + + public void setDeviceBrand(String deviceBrand) { + this.deviceBrand = deviceBrand; + } + + public String getDeviceBrand() { + return deviceBrand; + } + + public void setIsFault(String isFault) { + this.isFault = isFault; + } + + public String getIsFault() { + return isFault; + } + + public void setFaultType(String faultType) { + this.faultType = faultType; + } + + public String getFaultType() { + return faultType; + } + + public void setFaultDetail(String faultDetail) { + this.faultDetail = faultDetail; + } + + public String getFaultDetail() { + return faultDetail; + } + + public void setMaintenancePerson(String maintenancePerson) { + this.maintenancePerson = maintenancePerson; + } + + public String getMaintenancePerson() { + return maintenancePerson; + } + + public void setMaintenanceTime(String maintenanceTime) { + this.maintenanceTime = maintenanceTime; + } + + public String getMaintenanceTime() { + return maintenanceTime; + } + + public void setMaintenanceTask(String maintenanceTask) { + this.maintenanceTask = maintenanceTask; + } + + public String getMaintenanceTask() { + return maintenanceTask; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLatitude() { + return latitude; + } + + public void setWorkTime(String workTime) { + this.workTime = workTime; + } + + public String getWorkTime() { + return workTime; + } + + public void setInterfaceType(String interfaceType) { + this.interfaceType = interfaceType; + } + + public String getInterfaceType() { + return interfaceType; + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("deviceCode", getDeviceCode()) + .append("deviceName", getDeviceName()) + .append("deviceType", getDeviceType()) + .append("deviceStatus", getDeviceStatus()) + .append("deviceBrand", getDeviceBrand()) + .append("isFault", getIsFault()) + .append("faultType", getFaultType()) + .append("faultDetail", getFaultDetail()) + .append("maintenancePerson", getMaintenancePerson()) + .append("maintenanceTime", getMaintenanceTime()) + .append("maintenanceTask", getMaintenanceTask()) + .append("longitude", getLongitude()) + .append("latitude", getLatitude()) + .append("workTime", getWorkTime()) + .append("interfaceType", getInterfaceType()) + .toString(); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/deviceInfo/mapper/GcjxDeviceManageMapper.java b/God-Vue-master/god-system/src/main/java/com/god/deviceInfo/mapper/GcjxDeviceManageMapper.java new file mode 100644 index 00000000..6ab99342 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/deviceInfo/mapper/GcjxDeviceManageMapper.java @@ -0,0 +1,61 @@ +package com.god.deviceInfo.mapper; + +import java.util.List; + +import com.god.deviceInfo.domain.GcjxDeviceManage; + +/** + * 设备管理Mapper接口 + * + * @author limuyang + * @date 2023-12-04 + */ +public interface GcjxDeviceManageMapper { + /** + * 查询设备管理 + * + * @param id 设备管理主键 + * @return 设备管理 + */ + public GcjxDeviceManage selectGcjxDeviceManageById(String id); + + /** + * 查询设备管理列表 + * + * @param gcjxDeviceManage 设备管理 + * @return 设备管理集合 + */ + public List selectGcjxDeviceManageList(GcjxDeviceManage gcjxDeviceManage); + + /** + * 新增设备管理 + * + * @param gcjxDeviceManage 设备管理 + * @return 结果 + */ + public int insertGcjxDeviceManage(GcjxDeviceManage gcjxDeviceManage); + + /** + * 修改设备管理 + * + * @param gcjxDeviceManage 设备管理 + * @return 结果 + */ + public int updateGcjxDeviceManage(GcjxDeviceManage gcjxDeviceManage); + + /** + * 删除设备管理 + * + * @param id 设备管理主键 + * @return 结果 + */ + public int deleteGcjxDeviceManageById(String id); + + /** + * 批量删除设备管理 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteGcjxDeviceManageByIds(String[] ids); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/deviceInfo/service/IGcjxDeviceManageService.java b/God-Vue-master/god-system/src/main/java/com/god/deviceInfo/service/IGcjxDeviceManageService.java new file mode 100644 index 00000000..9d78d946 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/deviceInfo/service/IGcjxDeviceManageService.java @@ -0,0 +1,61 @@ +package com.god.deviceInfo.service; + +import java.util.List; + +import com.god.deviceInfo.domain.GcjxDeviceManage; + +/** + * 设备管理Service接口 + * + * @author limuyang + * @date 2023-12-04 + */ +public interface IGcjxDeviceManageService { + /** + * 查询设备管理 + * + * @param id 设备管理主键 + * @return 设备管理 + */ + public GcjxDeviceManage selectGcjxDeviceManageById(String id); + + /** + * 查询设备管理列表 + * + * @param gcjxDeviceManage 设备管理 + * @return 设备管理集合 + */ + public List selectGcjxDeviceManageList(GcjxDeviceManage gcjxDeviceManage); + + /** + * 新增设备管理 + * + * @param gcjxDeviceManage 设备管理 + * @return 结果 + */ + public int insertGcjxDeviceManage(GcjxDeviceManage gcjxDeviceManage); + + /** + * 修改设备管理 + * + * @param gcjxDeviceManage 设备管理 + * @return 结果 + */ + public int updateGcjxDeviceManage(GcjxDeviceManage gcjxDeviceManage); + + /** + * 批量删除设备管理 + * + * @param ids 需要删除的设备管理主键集合 + * @return 结果 + */ + public int deleteGcjxDeviceManageByIds(String[] ids); + + /** + * 删除设备管理信息 + * + * @param id 设备管理主键 + * @return 结果 + */ + public int deleteGcjxDeviceManageById(String id); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/deviceInfo/service/impl/GcjxDeviceManageServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/deviceInfo/service/impl/GcjxDeviceManageServiceImpl.java new file mode 100644 index 00000000..e41c8755 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/deviceInfo/service/impl/GcjxDeviceManageServiceImpl.java @@ -0,0 +1,94 @@ +package com.god.deviceInfo.service.impl; + +import java.util.List; + +import com.god.common.utils.DateUtils; +import com.god.common.utils.uuid.IdUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.god.deviceInfo.mapper.GcjxDeviceManageMapper; +import com.god.deviceInfo.domain.GcjxDeviceManage; +import com.god.deviceInfo.service.IGcjxDeviceManageService; + +/** + * 设备管理Service业务层处理 + * + * @author limuyang + * @date 2023-12-04 + */ +@Service +public class GcjxDeviceManageServiceImpl implements IGcjxDeviceManageService { + @Autowired + private GcjxDeviceManageMapper gcjxDeviceManageMapper; + + /** + * 查询设备管理 + * + * @param id 设备管理主键 + * @return 设备管理 + */ + @Override + public GcjxDeviceManage selectGcjxDeviceManageById(String id) { + return gcjxDeviceManageMapper.selectGcjxDeviceManageById(id); + } + + /** + * 查询设备管理列表 + * + * @param gcjxDeviceManage 设备管理 + * @return 设备管理 + */ + @Override + public List selectGcjxDeviceManageList(GcjxDeviceManage gcjxDeviceManage) { + return gcjxDeviceManageMapper.selectGcjxDeviceManageList(gcjxDeviceManage); + } + + /** + * 新增设备管理 + * + * @param gcjxDeviceManage 设备管理 + * @return 结果 + */ + @Override + public int insertGcjxDeviceManage(GcjxDeviceManage gcjxDeviceManage) { + gcjxDeviceManage.setId(IdUtils.fastUUID()); + String time = DateUtils.getTime(); + gcjxDeviceManage.setWorkTime(time); + return gcjxDeviceManageMapper.insertGcjxDeviceManage(gcjxDeviceManage); + } + + /** + * 修改设备管理 + * + * @param gcjxDeviceManage 设备管理 + * @return 结果 + */ + @Override + public int updateGcjxDeviceManage(GcjxDeviceManage gcjxDeviceManage) { + String time = DateUtils.getTime(); + gcjxDeviceManage.setWorkTime(time); + return gcjxDeviceManageMapper.updateGcjxDeviceManage(gcjxDeviceManage); + } + + /** + * 批量删除设备管理 + * + * @param ids 需要删除的设备管理主键 + * @return 结果 + */ + @Override + public int deleteGcjxDeviceManageByIds(String[] ids) { + return gcjxDeviceManageMapper.deleteGcjxDeviceManageByIds(ids); + } + + /** + * 删除设备管理信息 + * + * @param id 设备管理主键 + * @return 结果 + */ + @Override + public int deleteGcjxDeviceManageById(String id) { + return gcjxDeviceManageMapper.deleteGcjxDeviceManageById(id); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/dimension/domain/GcjxEqLook.java b/God-Vue-master/god-system/src/main/java/com/god/dimension/domain/GcjxEqLook.java new file mode 100644 index 00000000..4ed8fef0 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/dimension/domain/GcjxEqLook.java @@ -0,0 +1,135 @@ +package com.god.dimension.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.god.common.annotation.Excel; +import com.god.common.core.domain.BaseEntity; + +/** + * 设备对象分析对象 gcjx_eq_look + * + * @author Lxz + * @date 2023-12-04 + */ +public class GcjxEqLook extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private String id; + + /** 设备编号 */ + @Excel(name = "设备编号") + private String eqNum; + + /** 设备名称 */ + @Excel(name = "设备名称") + private String eqName; + + /** 设备类型 */ + @Excel(name = "设备类型") + private String eqType; + + /** 日期 */ + @Excel(name = "日期") + private String dateTime; + + /** 工作时长(h) */ + @Excel(name = "工作时长", readConverterExp = "h=") + private String workTime; + + /** 油耗(L) */ + @Excel(name = "油耗", readConverterExp = "L=") + private String oilConsumption; + + /** 维修次数 */ + @Excel(name = "维修次数") + private String maintenance; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setEqNum(String eqNum) + { + this.eqNum = eqNum; + } + + public String getEqNum() + { + return eqNum; + } + public void setEqName(String eqName) + { + this.eqName = eqName; + } + + public String getEqName() + { + return eqName; + } + public void setEqType(String eqType) + { + this.eqType = eqType; + } + + public String getEqType() + { + return eqType; + } + public void setDateTime(String dateTime) + { + this.dateTime = dateTime; + } + + public String getDateTime() + { + return dateTime; + } + public void setWorkTime(String workTime) + { + this.workTime = workTime; + } + + public String getWorkTime() + { + return workTime; + } + public void setOilConsumption(String oilConsumption) + { + this.oilConsumption = oilConsumption; + } + + public String getOilConsumption() + { + return oilConsumption; + } + public void setMaintenance(String maintenance) + { + this.maintenance = maintenance; + } + + public String getMaintenance() + { + return maintenance; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("eqNum", getEqNum()) + .append("eqName", getEqName()) + .append("eqType", getEqType()) + .append("dateTime", getDateTime()) + .append("workTime", getWorkTime()) + .append("oilConsumption", getOilConsumption()) + .append("maintenance", getMaintenance()) + .toString(); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/dimension/mapper/GcjxEqLookMapper.java b/God-Vue-master/god-system/src/main/java/com/god/dimension/mapper/GcjxEqLookMapper.java new file mode 100644 index 00000000..a2403cf8 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/dimension/mapper/GcjxEqLookMapper.java @@ -0,0 +1,64 @@ +package com.god.dimension.mapper; + +import com.god.dimension.domain.GcjxEqLook; + +import java.util.List; + +/** + * 设备对象分析Mapper接口 + * + * @author Lxz + * @date 2023-12-04 + */ +public interface GcjxEqLookMapper +{ + /** + * 查询设备对象分析 + * + * @param id 设备对象分析主键 + * @return 设备对象分析 + */ + public GcjxEqLook selectGcjxEqLookById(String id); + + /** + * 查询设备对象分析列表 + * + * @param gcjxEqLook 设备对象分析 + * @return 设备对象分析集合 + */ + public List selectGcjxEqLookList(GcjxEqLook gcjxEqLook); + + /** + * 新增设备对象分析 + * + * @param gcjxEqLook 设备对象分析 + * @return 结果 + */ + public int insertGcjxEqLook(GcjxEqLook gcjxEqLook); + + /** + * 修改设备对象分析 + * + * @param gcjxEqLook 设备对象分析 + * @return 结果 + */ + public int updateGcjxEqLook(GcjxEqLook gcjxEqLook); + + /** + * 删除设备对象分析 + * + * @param id 设备对象分析主键 + * @return 结果 + */ + public int deleteGcjxEqLookById(String id); + + /** + * 批量删除设备对象分析 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteGcjxEqLookByIds(String[] ids); + + String getMaxSnByPrefix(String yyyyMM); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/dimension/service/IGcjxEqLookService.java b/God-Vue-master/god-system/src/main/java/com/god/dimension/service/IGcjxEqLookService.java new file mode 100644 index 00000000..588c4dfb --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/dimension/service/IGcjxEqLookService.java @@ -0,0 +1,62 @@ +package com.god.dimension.service; + +import com.god.dimension.domain.GcjxEqLook; + +import java.util.List; + +/** + * 设备对象分析Service接口 + * + * @author Lxz + * @date 2023-12-04 + */ +public interface IGcjxEqLookService +{ + /** + * 查询设备对象分析 + * + * @param id 设备对象分析主键 + * @return 设备对象分析 + */ + public GcjxEqLook selectGcjxEqLookById(String id); + + /** + * 查询设备对象分析列表 + * + * @param gcjxEqLook 设备对象分析 + * @return 设备对象分析集合 + */ + public List selectGcjxEqLookList(GcjxEqLook gcjxEqLook); + + /** + * 新增设备对象分析 + * + * @param gcjxEqLook 设备对象分析 + * @return 结果 + */ + public int insertGcjxEqLook(GcjxEqLook gcjxEqLook); + + /** + * 修改设备对象分析 + * + * @param gcjxEqLook 设备对象分析 + * @return 结果 + */ + public int updateGcjxEqLook(GcjxEqLook gcjxEqLook); + + /** + * 批量删除设备对象分析 + * + * @param ids 需要删除的设备对象分析主键集合 + * @return 结果 + */ + public int deleteGcjxEqLookByIds(String[] ids); + + /** + * 删除设备对象分析信息 + * + * @param id 设备对象分析主键 + * @return 结果 + */ + public int deleteGcjxEqLookById(String id); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/dimension/service/impl/GcjxEqLookServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/dimension/service/impl/GcjxEqLookServiceImpl.java new file mode 100644 index 00000000..3db83cb2 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/dimension/service/impl/GcjxEqLookServiceImpl.java @@ -0,0 +1,104 @@ +package com.god.dimension.service.impl; + +import com.god.common.utils.serialNumber.SerialNumberService; +import com.god.common.utils.uuid.IdUtils; +import com.god.dimension.domain.GcjxEqLook; +import com.god.dimension.mapper.GcjxEqLookMapper; +import com.god.dimension.service.IGcjxEqLookService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.List; + +/** + * 设备对象分析Service业务层处理 + * + * @author Lxz + * @date 2023-12-04 + */ +@Service +public class GcjxEqLookServiceImpl implements IGcjxEqLookService +{ + @Resource + private GcjxEqLookMapper gcjxEqLookMapper; + @Resource + private SerialNumberService serialNumberService; + + /** + * 查询设备对象分析 + * + * @param id 设备对象分析主键 + * @return 设备对象分析 + */ + @Override + public GcjxEqLook selectGcjxEqLookById(String id) + { + return gcjxEqLookMapper.selectGcjxEqLookById(id); + } + + /** + * 查询设备对象分析列表 + * + * @param gcjxEqLook 设备对象分析 + * @return 设备对象分析 + */ + @Override + public List selectGcjxEqLookList(GcjxEqLook gcjxEqLook) + { + return gcjxEqLookMapper.selectGcjxEqLookList(gcjxEqLook); + } + + /** + * 新增设备对象分析 + * + * @param gcjxEqLook 设备对象分析 + * @return 结果 + */ + @Override + public int insertGcjxEqLook(GcjxEqLook gcjxEqLook) + { + gcjxEqLook.setId(IdUtils.fastUUID()); + gcjxEqLook.setEqNum(serialNumberService.generateSn("SBBH", 3, + gcjxEqLookMapper.getMaxSnByPrefix("SBBH" + new SimpleDateFormat("yyyyMM") + .format(new Date())))); + return gcjxEqLookMapper.insertGcjxEqLook(gcjxEqLook); + } + + /** + * 修改设备对象分析 + * + * @param gcjxEqLook 设备对象分析 + * @return 结果 + */ + @Override + public int updateGcjxEqLook(GcjxEqLook gcjxEqLook) + { + return gcjxEqLookMapper.updateGcjxEqLook(gcjxEqLook); + } + + /** + * 批量删除设备对象分析 + * + * @param ids 需要删除的设备对象分析主键 + * @return 结果 + */ + @Override + public int deleteGcjxEqLookByIds(String[] ids) + { + return gcjxEqLookMapper.deleteGcjxEqLookByIds(ids); + } + + /** + * 删除设备对象分析信息 + * + * @param id 设备对象分析主键 + * @return 结果 + */ + @Override + public int deleteGcjxEqLookById(String id) + { + return gcjxEqLookMapper.deleteGcjxEqLookById(id); + } +} diff --git a/God-Vue-master/god-system/src/main/resources/mapper/constructionMachinery/GcjxDeviceReportMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/constructionMachinery/GcjxDeviceReportMapper.xml new file mode 100644 index 00000000..35cf4564 --- /dev/null +++ b/God-Vue-master/god-system/src/main/resources/mapper/constructionMachinery/GcjxDeviceReportMapper.xml @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + select id, device_code, device_name, device_date, device_week, device_month, device_year, running_time, device_fuel, repair_number from gcjx_device_report + + + + + + + + + + + + + + insert into gcjx_device_report + + id, + device_code, + device_name, + device_date, + device_week, + device_month, + device_year, + running_time, + device_fuel, + repair_number, + + + #{id}, + #{deviceCode}, + #{deviceName}, + #{deviceDate}, + #{deviceWeek}, + #{deviceMonth}, + #{deviceYear}, + #{runningTime}, + #{deviceFuel}, + #{repairNumber}, + + + + + update gcjx_device_report + + device_code = #{deviceCode}, + device_name = #{deviceName}, + device_date = #{deviceDate}, + device_week = #{deviceWeek}, + device_month = #{deviceMonth}, + device_year = #{deviceYear}, + running_time = #{runningTime}, + device_fuel = #{deviceFuel}, + repair_number = #{repairNumber}, + + where id = #{id} + + + + delete from gcjx_device_report where id = #{id} + + + + delete from gcjx_device_report where id in + + #{id} + + + \ No newline at end of file diff --git a/God-Vue-master/god-system/src/main/resources/mapper/deviceInfo/GcjxDeviceManageMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/deviceInfo/GcjxDeviceManageMapper.xml new file mode 100644 index 00000000..03d0e1c8 --- /dev/null +++ b/God-Vue-master/god-system/src/main/resources/mapper/deviceInfo/GcjxDeviceManageMapper.xml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + select id, device_code, device_name, device_type, device_status, device_brand, is_fault, fault_type, fault_detail, maintenance_person, maintenance_time, maintenance_task, longitude, latitude, work_time, interface_type from gcjx_device_manage + + + + + + + + insert into gcjx_device_manage + + id, + device_code, + device_name, + device_type, + device_status, + device_brand, + is_fault, + fault_type, + fault_detail, + maintenance_person, + maintenance_time, + maintenance_task, + longitude, + latitude, + work_time, + interface_type, + + + #{id}, + #{deviceCode}, + #{deviceName}, + #{deviceType}, + #{deviceStatus}, + #{deviceBrand}, + #{isFault}, + #{faultType}, + #{faultDetail}, + #{maintenancePerson}, + #{maintenanceTime}, + #{maintenanceTask}, + #{longitude}, + #{latitude}, + #{workTime}, + #{interfaceType}, + + + + + update gcjx_device_manage + + device_code = #{deviceCode}, + device_name = #{deviceName}, + device_type = #{deviceType}, + device_status = #{deviceStatus}, + device_brand = #{deviceBrand}, + is_fault = #{isFault}, + fault_type = #{faultType}, + fault_detail = #{faultDetail}, + maintenance_person = #{maintenancePerson}, + maintenance_time = #{maintenanceTime}, + maintenance_task = #{maintenanceTask}, + longitude = #{longitude}, + latitude = #{latitude}, + work_time = #{workTime}, + interface_type = #{interfaceType}, + + where id = #{id} + + + + delete from gcjx_device_manage where id = #{id} + + + + delete from gcjx_device_manage where id in + + #{id} + + + \ No newline at end of file diff --git a/God-Vue-master/god-system/src/main/resources/mapper/dimension/GcjxEqLookMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/dimension/GcjxEqLookMapper.xml new file mode 100644 index 00000000..74cbbb58 --- /dev/null +++ b/God-Vue-master/god-system/src/main/resources/mapper/dimension/GcjxEqLookMapper.xml @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + select id, + eq_num, + eq_name, + eq_type, + date_time, + work_time, + oil_consumption, + maintenance + from gcjx_eq_look + + + + + + + + + insert into gcjx_eq_look + + id + , + eq_num + , + eq_name + , + eq_type + , + date_time + , + work_time + , + oil_consumption + , + maintenance + , + + + #{id} + , + #{eqNum} + , + #{eqName} + , + #{eqType} + , + #{dateTime} + , + #{workTime} + , + #{oilConsumption} + , + #{maintenance} + , + + + + + update gcjx_eq_look + + eq_num + = + #{eqNum}, + eq_name + = + #{eqName}, + eq_type + = + #{eqType}, + date_time + = + #{dateTime}, + work_time + = + #{workTime}, + oil_consumption + = + #{oilConsumption}, + maintenance + = + #{maintenance}, + + where id = #{id} + + + + delete + from gcjx_eq_look + where id = #{id} + + + + delete from gcjx_eq_look where id in + + #{id} + + + diff --git a/god-ui/public/images/gongcheng-bg.png b/god-ui/public/images/gongcheng-bg.png new file mode 100644 index 00000000..39c27ae5 Binary files /dev/null and b/god-ui/public/images/gongcheng-bg.png differ diff --git a/god-ui/src/api/constructionMachinery/devicereport.js b/god-ui/src/api/constructionMachinery/devicereport.js new file mode 100644 index 00000000..f63790d3 --- /dev/null +++ b/god-ui/src/api/constructionMachinery/devicereport.js @@ -0,0 +1,65 @@ +import request from '@/utils/request' + +// 查询工程机械-报表中心列表 +export function listDevicereport(query) { + return request({ + url: '/constructionMachinery/devicereport/list', + method: 'get', + params: query + }) +} +export function listDevicereportWeek(query) { + return request({ + url: '/constructionMachinery/devicereport/listWeek', + method: 'get', + params: query + }) +} +export function listDevicereportMonth(query) { + return request({ + url: '/constructionMachinery/devicereport/listMonth', + method: 'get', + params: query + }) +} +export function listDevicereportYear(query) { + return request({ + url: '/constructionMachinery/devicereport/listYear', + method: 'get', + params: query + }) +} + +// 查询工程机械-报表中心详细 +export function getDevicereport(id) { + return request({ + url: '/constructionMachinery/devicereport/' + id, + method: 'get' + }) +} + +// 新增工程机械-报表中心 +export function addDevicereport(data) { + return request({ + url: '/constructionMachinery/devicereport', + method: 'post', + data: data + }) +} + +// 修改工程机械-报表中心 +export function updateDevicereport(data) { + return request({ + url: '/constructionMachinery/devicereport', + method: 'put', + data: data + }) +} + +// 删除工程机械-报表中心 +export function delDevicereport(id) { + return request({ + url: '/constructionMachinery/devicereport/' + id, + method: 'delete' + }) +} diff --git a/god-ui/src/api/deviceInfo/deviceManage.js b/god-ui/src/api/deviceInfo/deviceManage.js new file mode 100644 index 00000000..c832b9cc --- /dev/null +++ b/god-ui/src/api/deviceInfo/deviceManage.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询设备管理列表 +export function listDeviceManage(query) { + return request({ + url: '/deviceInfo/deviceManage/list', + method: 'get', + params: query + }) +} + +// 查询设备管理详细 +export function getDeviceManage(id) { + return request({ + url: '/deviceInfo/deviceManage/' + id, + method: 'get' + }) +} + +// 新增设备管理 +export function addDeviceManage(data) { + return request({ + url: '/deviceInfo/deviceManage', + method: 'post', + data: data + }) +} + +// 修改设备管理 +export function updateDeviceManage(data) { + return request({ + url: '/deviceInfo/deviceManage', + method: 'put', + data: data + }) +} + +// 删除设备管理 +export function delDeviceManage(id) { + return request({ + url: '/deviceInfo/deviceManage/' + id, + method: 'delete' + }) +} diff --git a/god-ui/src/api/dimension/gcjxEqLook.js b/god-ui/src/api/dimension/gcjxEqLook.js new file mode 100644 index 00000000..88042995 --- /dev/null +++ b/god-ui/src/api/dimension/gcjxEqLook.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询设备对象分析列表 +export function listGcjxEqLook(query) { + return request({ + url: '/dimension/gcjxEqLook/list', + method: 'get', + params: query + }) +} + +// 查询设备对象分析详细 +export function getGcjxEqLook(id) { + return request({ + url: '/dimension/gcjxEqLook/' + id, + method: 'get' + }) +} + +// 新增设备对象分析 +export function addGcjxEqLook(data) { + return request({ + url: '/dimension/gcjxEqLook', + method: 'post', + data: data + }) +} + +// 修改设备对象分析 +export function updateGcjxEqLook(data) { + return request({ + url: '/dimension/gcjxEqLook', + method: 'put', + data: data + }) +} + +// 删除设备对象分析 +export function delGcjxEqLook(id) { + return request({ + url: '/dimension/gcjxEqLook/' + id, + method: 'delete' + }) +} diff --git a/god-ui/src/layout/components/Navbar.vue b/god-ui/src/layout/components/Navbar.vue index 1fab647e..b3dacd5a 100644 --- a/god-ui/src/layout/components/Navbar.vue +++ b/god-ui/src/layout/components/Navbar.vue @@ -7,7 +7,7 @@