diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/hydraulicImplement/controller/HhHydraulicProgressReportController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/hydraulicImplement/controller/HhHydraulicProgressReportController.java new file mode 100644 index 00000000..01789911 --- /dev/null +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/hydraulicImplement/controller/HhHydraulicProgressReportController.java @@ -0,0 +1,104 @@ +package com.god.web.controller.hydraulicImplement.controller; + +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.hydraulicImplement.domain.HhHydraulicProgressReport; +import com.god.hydraulicImplement.service.IHhHydraulicProgressReportService; +import com.god.common.utils.poi.ExcelUtil; +import com.god.common.core.page.TableDataInfo; + +/** + * 项目进度汇报Controller + * + * @author god + * @date 2023-12-14 + */ +@RestController +@RequestMapping("/hydraulicImplement/implement") +public class HhHydraulicProgressReportController extends BaseController +{ + @Autowired + private IHhHydraulicProgressReportService hhHydraulicProgressReportService; + + /** + * 查询项目进度汇报列表 + */ + @PreAuthorize("@ss.hasPermi('hydraulicImplement:implement:list')") + @GetMapping("/list") + public TableDataInfo list(HhHydraulicProgressReport hhHydraulicProgressReport) + { + startPage(); + List list = hhHydraulicProgressReportService.selectHhHydraulicProgressReportList(hhHydraulicProgressReport); + return getDataTable(list); + } + + /** + * 导出项目进度汇报列表 + */ + @PreAuthorize("@ss.hasPermi('hydraulicImplement:implement:export')") + @Log(title = "项目进度汇报", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HhHydraulicProgressReport hhHydraulicProgressReport) + { + List list = hhHydraulicProgressReportService.selectHhHydraulicProgressReportList(hhHydraulicProgressReport); + ExcelUtil util = new ExcelUtil(HhHydraulicProgressReport.class); + util.exportExcel(response, list, "项目进度汇报数据"); + } + + /** + * 获取项目进度汇报详细信息 + */ + @PreAuthorize("@ss.hasPermi('hydraulicImplement:implement:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) + { + return success(hhHydraulicProgressReportService.selectHhHydraulicProgressReportById(id)); + } + + /** + * 新增项目进度汇报 + */ + @PreAuthorize("@ss.hasPermi('hydraulicImplement:implement:add')") + @Log(title = "项目进度汇报", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HhHydraulicProgressReport hhHydraulicProgressReport) + { + return toAjax(hhHydraulicProgressReportService.insertHhHydraulicProgressReport(hhHydraulicProgressReport)); + } + + /** + * 修改项目进度汇报 + */ + @PreAuthorize("@ss.hasPermi('hydraulicImplement:implement:edit')") + @Log(title = "项目进度汇报", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HhHydraulicProgressReport hhHydraulicProgressReport) + { + return toAjax(hhHydraulicProgressReportService.updateHhHydraulicProgressReport(hhHydraulicProgressReport)); + } + + /** + * 删除项目进度汇报 + */ + @PreAuthorize("@ss.hasPermi('hydraulicImplement:implement:remove')") + @Log(title = "项目进度汇报", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) + { + return toAjax(hhHydraulicProgressReportService.deleteHhHydraulicProgressReportByIds(ids)); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/hydraulicImplement/domain/HhHydraulicProgressReport.java b/God-Vue-master/god-system/src/main/java/com/god/hydraulicImplement/domain/HhHydraulicProgressReport.java new file mode 100644 index 00000000..b212b00e --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/hydraulicImplement/domain/HhHydraulicProgressReport.java @@ -0,0 +1,233 @@ +package com.god.hydraulicImplement.domain; + +import com.god.common.core.domain.GodEntity; +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; + +/** + * 项目进度汇报对象 hh_hydraulic_progress_report + * + * @author god + * @date 2023-12-14 + */ +public class HhHydraulicProgressReport extends GodEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键id */ + private String id; + + /** 项目名称 */ + @Excel(name = "项目名称") + private String projectName; + + /** 项目编码 */ + @Excel(name = "项目编码") + private String projectCode; + + /** 汇报日期 */ + @Excel(name = "汇报日期") + private String reportDate; + + /** 任务名称 */ + @Excel(name = "任务名称") + private String taskName; + + /** 汇报类型 */ + @Excel(name = "汇报类型") + private String reportType; + + /** 实际开始日期 */ + @Excel(name = "实际开始日期") + private String startDate; + + /** 实际结束日期 */ + @Excel(name = "实际结束日期") + private String endDate; + + /** 实际工期 */ + @Excel(name = "实际工期") + private String duration; + + /** 工程进度 */ + @Excel(name = "工程进度") + private String projectProgress; + + /** 本次完成工程量 */ + @Excel(name = "本次完成工程量") + private String engineerQuantity; + + /** 已完成工程进度 */ + @Excel(name = "已完成工程进度") + private String finishProgress; + + /** 汇报人 */ + @Excel(name = "汇报人") + private String reportPersonnel; + + /** 所属系统 */ + @Excel(name = "所属系统") + private String sourceSys; + + /** 接口类型 */ + @Excel(name = "接口类型") + private String interfaceType; + + public String getReportPersonnel() { + return reportPersonnel; + } + + public void setReportPersonnel(String reportPersonnel) { + this.reportPersonnel = reportPersonnel; + } + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setProjectName(String projectName) + { + this.projectName = projectName; + } + + public String getProjectName() + { + return projectName; + } + public void setProjectCode(String projectCode) + { + this.projectCode = projectCode; + } + + public String getProjectCode() + { + return projectCode; + } + public void setReportDate(String reportDate) + { + this.reportDate = reportDate; + } + + public String getReportDate() + { + return reportDate; + } + public void setTaskName(String taskName) + { + this.taskName = taskName; + } + + public String getTaskName() + { + return taskName; + } + public void setReportType(String reportType) + { + this.reportType = reportType; + } + + public String getReportType() + { + return reportType; + } + public void setStartDate(String startDate) + { + this.startDate = startDate; + } + + public String getStartDate() + { + return startDate; + } + public void setEndDate(String endDate) + { + this.endDate = endDate; + } + + public String getEndDate() + { + return endDate; + } + public void setDuration(String duration) + { + this.duration = duration; + } + + public String getDuration() + { + return duration; + } + public void setProjectProgress(String projectProgress) + { + this.projectProgress = projectProgress; + } + + public String getProjectProgress() + { + return projectProgress; + } + public void setEngineerQuantity(String engineerQuantity) + { + this.engineerQuantity = engineerQuantity; + } + + public String getEngineerQuantity() + { + return engineerQuantity; + } + public void setFinishProgress(String finishProgress) + { + this.finishProgress = finishProgress; + } + + public String getFinishProgress() + { + return finishProgress; + } + public void setSourceSys(String sourceSys) + { + this.sourceSys = sourceSys; + } + + public String getSourceSys() + { + return sourceSys; + } + 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("projectName", getProjectName()) + .append("projectCode", getProjectCode()) + .append("reportDate", getReportDate()) + .append("taskName", getTaskName()) + .append("reportType", getReportType()) + .append("startDate", getStartDate()) + .append("endDate", getEndDate()) + .append("duration", getDuration()) + .append("projectProgress", getProjectProgress()) + .append("engineerQuantity", getEngineerQuantity()) + .append("finishProgress", getFinishProgress()) + .append("sourceSys", getSourceSys()) + .append("interfaceType", getInterfaceType()) + .append("createTime", getCreateTime()) + .toString(); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/hydraulicImplement/mapper/HhHydraulicProgressReportMapper.java b/God-Vue-master/god-system/src/main/java/com/god/hydraulicImplement/mapper/HhHydraulicProgressReportMapper.java new file mode 100644 index 00000000..3d171945 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/hydraulicImplement/mapper/HhHydraulicProgressReportMapper.java @@ -0,0 +1,61 @@ +package com.god.hydraulicImplement.mapper; + +import java.util.List; +import com.god.hydraulicImplement.domain.HhHydraulicProgressReport; + +/** + * 项目进度汇报Mapper接口 + * + * @author god + * @date 2023-12-14 + */ +public interface HhHydraulicProgressReportMapper +{ + /** + * 查询项目进度汇报 + * + * @param id 项目进度汇报主键 + * @return 项目进度汇报 + */ + public HhHydraulicProgressReport selectHhHydraulicProgressReportById(String id); + + /** + * 查询项目进度汇报列表 + * + * @param hhHydraulicProgressReport 项目进度汇报 + * @return 项目进度汇报集合 + */ + public List selectHhHydraulicProgressReportList(HhHydraulicProgressReport hhHydraulicProgressReport); + + /** + * 新增项目进度汇报 + * + * @param hhHydraulicProgressReport 项目进度汇报 + * @return 结果 + */ + public int insertHhHydraulicProgressReport(HhHydraulicProgressReport hhHydraulicProgressReport); + + /** + * 修改项目进度汇报 + * + * @param hhHydraulicProgressReport 项目进度汇报 + * @return 结果 + */ + public int updateHhHydraulicProgressReport(HhHydraulicProgressReport hhHydraulicProgressReport); + + /** + * 删除项目进度汇报 + * + * @param id 项目进度汇报主键 + * @return 结果 + */ + public int deleteHhHydraulicProgressReportById(String id); + + /** + * 批量删除项目进度汇报 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHhHydraulicProgressReportByIds(String[] ids); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/hydraulicImplement/service/IHhHydraulicProgressReportService.java b/God-Vue-master/god-system/src/main/java/com/god/hydraulicImplement/service/IHhHydraulicProgressReportService.java new file mode 100644 index 00000000..28acc42d --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/hydraulicImplement/service/IHhHydraulicProgressReportService.java @@ -0,0 +1,61 @@ +package com.god.hydraulicImplement.service; + +import java.util.List; +import com.god.hydraulicImplement.domain.HhHydraulicProgressReport; + +/** + * 项目进度汇报Service接口 + * + * @author god + * @date 2023-12-14 + */ +public interface IHhHydraulicProgressReportService +{ + /** + * 查询项目进度汇报 + * + * @param id 项目进度汇报主键 + * @return 项目进度汇报 + */ + public HhHydraulicProgressReport selectHhHydraulicProgressReportById(String id); + + /** + * 查询项目进度汇报列表 + * + * @param hhHydraulicProgressReport 项目进度汇报 + * @return 项目进度汇报集合 + */ + public List selectHhHydraulicProgressReportList(HhHydraulicProgressReport hhHydraulicProgressReport); + + /** + * 新增项目进度汇报 + * + * @param hhHydraulicProgressReport 项目进度汇报 + * @return 结果 + */ + public int insertHhHydraulicProgressReport(HhHydraulicProgressReport hhHydraulicProgressReport); + + /** + * 修改项目进度汇报 + * + * @param hhHydraulicProgressReport 项目进度汇报 + * @return 结果 + */ + public int updateHhHydraulicProgressReport(HhHydraulicProgressReport hhHydraulicProgressReport); + + /** + * 批量删除项目进度汇报 + * + * @param ids 需要删除的项目进度汇报主键集合 + * @return 结果 + */ + public int deleteHhHydraulicProgressReportByIds(String[] ids); + + /** + * 删除项目进度汇报信息 + * + * @param id 项目进度汇报主键 + * @return 结果 + */ + public int deleteHhHydraulicProgressReportById(String id); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/hydraulicImplement/service/impl/HhHydraulicProgressReportServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/hydraulicImplement/service/impl/HhHydraulicProgressReportServiceImpl.java new file mode 100644 index 00000000..e7bcacd6 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/hydraulicImplement/service/impl/HhHydraulicProgressReportServiceImpl.java @@ -0,0 +1,97 @@ +package com.god.hydraulicImplement.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.hydraulicImplement.mapper.HhHydraulicProgressReportMapper; +import com.god.hydraulicImplement.domain.HhHydraulicProgressReport; +import com.god.hydraulicImplement.service.IHhHydraulicProgressReportService; + +/** + * 项目进度汇报Service业务层处理 + * + * @author god + * @date 2023-12-14 + */ +@Service +public class HhHydraulicProgressReportServiceImpl implements IHhHydraulicProgressReportService +{ + @Autowired + private HhHydraulicProgressReportMapper hhHydraulicProgressReportMapper; + + /** + * 查询项目进度汇报 + * + * @param id 项目进度汇报主键 + * @return 项目进度汇报 + */ + @Override + public HhHydraulicProgressReport selectHhHydraulicProgressReportById(String id) + { + return hhHydraulicProgressReportMapper.selectHhHydraulicProgressReportById(id); + } + + /** + * 查询项目进度汇报列表 + * + * @param hhHydraulicProgressReport 项目进度汇报 + * @return 项目进度汇报 + */ + @Override + public List selectHhHydraulicProgressReportList(HhHydraulicProgressReport hhHydraulicProgressReport) + { + return hhHydraulicProgressReportMapper.selectHhHydraulicProgressReportList(hhHydraulicProgressReport); + } + + /** + * 新增项目进度汇报 + * + * @param hhHydraulicProgressReport 项目进度汇报 + * @return 结果 + */ + @Override + public int insertHhHydraulicProgressReport(HhHydraulicProgressReport hhHydraulicProgressReport) + { + hhHydraulicProgressReport.setId(IdUtils.fastSimpleUUID()); + hhHydraulicProgressReport.setCreateTime(DateUtils.getTime()); + return hhHydraulicProgressReportMapper.insertHhHydraulicProgressReport(hhHydraulicProgressReport); + } + + /** + * 修改项目进度汇报 + * + * @param hhHydraulicProgressReport 项目进度汇报 + * @return 结果 + */ + @Override + public int updateHhHydraulicProgressReport(HhHydraulicProgressReport hhHydraulicProgressReport) + { + return hhHydraulicProgressReportMapper.updateHhHydraulicProgressReport(hhHydraulicProgressReport); + } + + /** + * 批量删除项目进度汇报 + * + * @param ids 需要删除的项目进度汇报主键 + * @return 结果 + */ + @Override + public int deleteHhHydraulicProgressReportByIds(String[] ids) + { + return hhHydraulicProgressReportMapper.deleteHhHydraulicProgressReportByIds(ids); + } + + /** + * 删除项目进度汇报信息 + * + * @param id 项目进度汇报主键 + * @return 结果 + */ + @Override + public int deleteHhHydraulicProgressReportById(String id) + { + return hhHydraulicProgressReportMapper.deleteHhHydraulicProgressReportById(id); + } +} diff --git a/God-Vue-master/god-system/src/main/resources/mapper/hydraulicImplement/HhHydraulicProgressReportMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/hydraulicImplement/HhHydraulicProgressReportMapper.xml new file mode 100644 index 00000000..165be1c0 --- /dev/null +++ b/God-Vue-master/god-system/src/main/resources/mapper/hydraulicImplement/HhHydraulicProgressReportMapper.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + select id, project_name, project_code, report_date, task_name, report_type, start_date, end_date, duration, project_progress, engineer_quantity, finish_progress, report_personnel, source_sys, interface_type, create_time from hh_hydraulic_progress_report + + + + + + + + insert into hh_hydraulic_progress_report + + id, + project_name, + project_code, + report_date, + task_name, + report_type, + start_date, + end_date, + duration, + project_progress, + engineer_quantity, + finish_progress, + report_personnel, + source_sys, + interface_type, + create_time, + + + #{id}, + #{projectName}, + #{projectCode}, + #{reportDate}, + #{taskName}, + #{reportType}, + #{startDate}, + #{endDate}, + #{duration}, + #{projectProgress}, + #{engineerQuantity}, + #{finishProgress}, + #{reportPersonnel}, + #{sourceSys}, + #{interfaceType}, + #{createTime}, + + + + + update hh_hydraulic_progress_report + + project_name = #{projectName}, + project_code = #{projectCode}, + report_date = #{reportDate}, + task_name = #{taskName}, + report_type = #{reportType}, + start_date = #{startDate}, + end_date = #{endDate}, + duration = #{duration}, + project_progress = #{projectProgress}, + engineer_quantity = #{engineerQuantity}, + finish_progress = #{finishProgress}, + report_personnel = #{reportPersonnel}, + source_sys = #{sourceSys}, + interface_type = #{interfaceType}, + create_time = #{createTime}, + + where id = #{id} + + + + delete from hh_hydraulic_progress_report where id = #{id} + + + + delete from hh_hydraulic_progress_report where id in + + #{id} + + + \ No newline at end of file diff --git a/God-Vue-master/god-system/src/main/resources/mapper/wmsSaleOrder/WmsSaleOrderInfoMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/wmsSaleOrder/WmsSaleOrderInfoMapper.xml index 858ddd4d..e4b0af44 100644 --- a/God-Vue-master/god-system/src/main/resources/mapper/wmsSaleOrder/WmsSaleOrderInfoMapper.xml +++ b/God-Vue-master/god-system/src/main/resources/mapper/wmsSaleOrder/WmsSaleOrderInfoMapper.xml @@ -87,7 +87,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"