diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/qcfgjManage/QcfgjProductAllDockController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/qcfgjManage/QcfgjProductAllDockController.java new file mode 100644 index 00000000..6fab963b --- /dev/null +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/qcfgjManage/QcfgjProductAllDockController.java @@ -0,0 +1,98 @@ +package com.god.web.controller.qcfgjManage; + +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.qcfgjManage.domain.QcfgjProductAllDock; +import com.god.qcfgjManage.service.IQcfgjProductAllDockService; +import com.god.common.utils.poi.ExcelUtil; +import com.god.common.core.page.TableDataInfo; + +/** + * 产品数据信息对接Controller + * + * @author wangyan + * @date 2024-01-11 + */ +@RestController +@RequestMapping("/qcfgjManage/dock") +public class QcfgjProductAllDockController extends BaseController { + @Autowired + private IQcfgjProductAllDockService qcfgjProductAllDockService; + + /** + * 查询产品数据信息对接列表 + */ + @PreAuthorize("@ss.hasPermi('qcfgjManage:dock:list')") + @GetMapping("/list") + public TableDataInfo list(QcfgjProductAllDock qcfgjProductAllDock) { + startPage(); + List list = qcfgjProductAllDockService.selectQcfgjProductAllDockList(qcfgjProductAllDock); + return getDataTable(list); + } + + /** + * 导出产品数据信息对接列表 + */ + @PreAuthorize("@ss.hasPermi('qcfgjManage:dock:export')") + @Log(title = "产品数据信息对接", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, QcfgjProductAllDock qcfgjProductAllDock) { + List list = qcfgjProductAllDockService.selectQcfgjProductAllDockList(qcfgjProductAllDock); + ExcelUtil util = new ExcelUtil(QcfgjProductAllDock.class); + util.exportExcel(response, list, "产品数据信息对接数据"); + } + + /** + * 获取产品数据信息对接详细信息 + */ + @PreAuthorize("@ss.hasPermi('qcfgjManage:dock:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) { + return success(qcfgjProductAllDockService.selectQcfgjProductAllDockById(id)); + } + + /** + * 新增产品数据信息对接 + */ + @PreAuthorize("@ss.hasPermi('qcfgjManage:dock:add')") + @Log(title = "产品数据信息对接", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody QcfgjProductAllDock qcfgjProductAllDock) { + return toAjax(qcfgjProductAllDockService.insertQcfgjProductAllDock(qcfgjProductAllDock)); + } + + /** + * 修改产品数据信息对接 + */ + @PreAuthorize("@ss.hasPermi('qcfgjManage:dock:edit')") + @Log(title = "产品数据信息对接", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody QcfgjProductAllDock qcfgjProductAllDock) { + return toAjax(qcfgjProductAllDockService.updateQcfgjProductAllDock(qcfgjProductAllDock)); + } + + /** + * 删除产品数据信息对接 + */ + @PreAuthorize("@ss.hasPermi('qcfgjManage:dock:remove')") + @Log(title = "产品数据信息对接", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) { + return toAjax(qcfgjProductAllDockService.deleteQcfgjProductAllDockByIds(ids)); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/qcfgjManage/domain/QcfgjProductAllDock.java b/God-Vue-master/god-system/src/main/java/com/god/qcfgjManage/domain/QcfgjProductAllDock.java new file mode 100644 index 00000000..9852dc96 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/qcfgjManage/domain/QcfgjProductAllDock.java @@ -0,0 +1,192 @@ +package com.god.qcfgjManage.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; + +/** + * 产品数据信息对接对象 qcfgj_product_all_dock + * + * @author wangyan + * @date 2024-01-11 + */ +public class QcfgjProductAllDock extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private String id; + + /** 覆盖件名称 */ + @Excel(name = "覆盖件名称") + private String productName; + + /** 型号 */ + @Excel(name = "型号") + private String batchInfo; + + /** 长度 */ + @Excel(name = "长度") + private String lengthInfo; + + /** 宽度 */ + @Excel(name = "宽度") + private String wideInfo; + + /** 高度 */ + @Excel(name = "高度") + private String heightInfo; + + /** 角度 */ + @Excel(name = "角度") + private String angle; + + /** 标准要求 */ + @Excel(name = "标准要求") + private String standards; + + /** 图片信息 */ + @Excel(name = "图片信息") + private String imageInfo; + + /** 检测时间 */ + @Excel(name = "检测时间") + private String detectTime; + + /** 结果 */ + @Excel(name = "结果") + private String detectResult; + + /** 数据类型 */ + @Excel(name = "数据类型") + private String dataType; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setProductName(String productName) + { + this.productName = productName; + } + + public String getProductName() + { + return productName; + } + public void setBatchInfo(String batchInfo) + { + this.batchInfo = batchInfo; + } + + public String getBatchInfo() + { + return batchInfo; + } + public void setLengthInfo(String lengthInfo) + { + this.lengthInfo = lengthInfo; + } + + public String getLengthInfo() + { + return lengthInfo; + } + public void setWideInfo(String wideInfo) + { + this.wideInfo = wideInfo; + } + + public String getWideInfo() + { + return wideInfo; + } + public void setHeightInfo(String heightInfo) + { + this.heightInfo = heightInfo; + } + + public String getHeightInfo() + { + return heightInfo; + } + public void setAngle(String angle) + { + this.angle = angle; + } + + public String getAngle() + { + return angle; + } + public void setStandards(String standards) + { + this.standards = standards; + } + + public String getStandards() + { + return standards; + } + public void setImageInfo(String imageInfo) + { + this.imageInfo = imageInfo; + } + + public String getImageInfo() + { + return imageInfo; + } + public void setDetectTime(String detectTime) + { + this.detectTime = detectTime; + } + + public String getDetectTime() + { + return detectTime; + } + public void setDetectResult(String detectResult) + { + this.detectResult = detectResult; + } + + public String getDetectResult() + { + return detectResult; + } + public void setDataType(String dataType) + { + this.dataType = dataType; + } + + public String getDataType() + { + return dataType; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("productName", getProductName()) + .append("batchInfo", getBatchInfo()) + .append("lengthInfo", getLengthInfo()) + .append("wideInfo", getWideInfo()) + .append("heightInfo", getHeightInfo()) + .append("angle", getAngle()) + .append("standards", getStandards()) + .append("imageInfo", getImageInfo()) + .append("detectTime", getDetectTime()) + .append("detectResult", getDetectResult()) + .append("remark", getRemark()) + .append("dataType", getDataType()) + .toString(); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/qcfgjManage/mapper/QcfgjProductAllDockMapper.java b/God-Vue-master/god-system/src/main/java/com/god/qcfgjManage/mapper/QcfgjProductAllDockMapper.java new file mode 100644 index 00000000..119f7970 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/qcfgjManage/mapper/QcfgjProductAllDockMapper.java @@ -0,0 +1,61 @@ +package com.god.qcfgjManage.mapper; + +import java.util.List; +import com.god.qcfgjManage.domain.QcfgjProductAllDock; + +/** + * 产品数据信息对接Mapper接口 + * + * @author wangyan + * @date 2024-01-11 + */ +public interface QcfgjProductAllDockMapper +{ + /** + * 查询产品数据信息对接 + * + * @param id 产品数据信息对接主键 + * @return 产品数据信息对接 + */ + public QcfgjProductAllDock selectQcfgjProductAllDockById(String id); + + /** + * 查询产品数据信息对接列表 + * + * @param qcfgjProductAllDock 产品数据信息对接 + * @return 产品数据信息对接集合 + */ + public List selectQcfgjProductAllDockList(QcfgjProductAllDock qcfgjProductAllDock); + + /** + * 新增产品数据信息对接 + * + * @param qcfgjProductAllDock 产品数据信息对接 + * @return 结果 + */ + public int insertQcfgjProductAllDock(QcfgjProductAllDock qcfgjProductAllDock); + + /** + * 修改产品数据信息对接 + * + * @param qcfgjProductAllDock 产品数据信息对接 + * @return 结果 + */ + public int updateQcfgjProductAllDock(QcfgjProductAllDock qcfgjProductAllDock); + + /** + * 删除产品数据信息对接 + * + * @param id 产品数据信息对接主键 + * @return 结果 + */ + public int deleteQcfgjProductAllDockById(String id); + + /** + * 批量删除产品数据信息对接 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteQcfgjProductAllDockByIds(String[] ids); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/qcfgjManage/service/IQcfgjProductAllDockService.java b/God-Vue-master/god-system/src/main/java/com/god/qcfgjManage/service/IQcfgjProductAllDockService.java new file mode 100644 index 00000000..ac93918a --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/qcfgjManage/service/IQcfgjProductAllDockService.java @@ -0,0 +1,61 @@ +package com.god.qcfgjManage.service; + +import java.util.List; +import com.god.qcfgjManage.domain.QcfgjProductAllDock; + +/** + * 产品数据信息对接Service接口 + * + * @author wangyan + * @date 2024-01-11 + */ +public interface IQcfgjProductAllDockService +{ + /** + * 查询产品数据信息对接 + * + * @param id 产品数据信息对接主键 + * @return 产品数据信息对接 + */ + public QcfgjProductAllDock selectQcfgjProductAllDockById(String id); + + /** + * 查询产品数据信息对接列表 + * + * @param qcfgjProductAllDock 产品数据信息对接 + * @return 产品数据信息对接集合 + */ + public List selectQcfgjProductAllDockList(QcfgjProductAllDock qcfgjProductAllDock); + + /** + * 新增产品数据信息对接 + * + * @param qcfgjProductAllDock 产品数据信息对接 + * @return 结果 + */ + public int insertQcfgjProductAllDock(QcfgjProductAllDock qcfgjProductAllDock); + + /** + * 修改产品数据信息对接 + * + * @param qcfgjProductAllDock 产品数据信息对接 + * @return 结果 + */ + public int updateQcfgjProductAllDock(QcfgjProductAllDock qcfgjProductAllDock); + + /** + * 批量删除产品数据信息对接 + * + * @param ids 需要删除的产品数据信息对接主键集合 + * @return 结果 + */ + public int deleteQcfgjProductAllDockByIds(String[] ids); + + /** + * 删除产品数据信息对接信息 + * + * @param id 产品数据信息对接主键 + * @return 结果 + */ + public int deleteQcfgjProductAllDockById(String id); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/qcfgjManage/service/impl/QcfgjProductAllDockServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/qcfgjManage/service/impl/QcfgjProductAllDockServiceImpl.java new file mode 100644 index 00000000..399eb19d --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/qcfgjManage/service/impl/QcfgjProductAllDockServiceImpl.java @@ -0,0 +1,92 @@ +package com.god.qcfgjManage.service.impl; + +import java.util.List; + +import com.god.common.utils.StringUtils; +import com.god.common.utils.uuid.IdUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.god.qcfgjManage.mapper.QcfgjProductAllDockMapper; +import com.god.qcfgjManage.domain.QcfgjProductAllDock; +import com.god.qcfgjManage.service.IQcfgjProductAllDockService; + +/** + * 产品数据信息对接Service业务层处理 + * + * @author wangyan + * @date 2024-01-11 + */ +@Service +public class QcfgjProductAllDockServiceImpl implements IQcfgjProductAllDockService { + @Autowired + private QcfgjProductAllDockMapper qcfgjProductAllDockMapper; + + /** + * 查询产品数据信息对接 + * + * @param id 产品数据信息对接主键 + * @return 产品数据信息对接 + */ + @Override + public QcfgjProductAllDock selectQcfgjProductAllDockById(String id) { + return qcfgjProductAllDockMapper.selectQcfgjProductAllDockById(id); + } + + /** + * 查询产品数据信息对接列表 + * + * @param qcfgjProductAllDock 产品数据信息对接 + * @return 产品数据信息对接 + */ + @Override + public List selectQcfgjProductAllDockList(QcfgjProductAllDock qcfgjProductAllDock) { + return qcfgjProductAllDockMapper.selectQcfgjProductAllDockList(qcfgjProductAllDock); + } + + /** + * 新增产品数据信息对接 + * + * @param qcfgjProductAllDock 产品数据信息对接 + * @return 结果 + */ + @Override + public int insertQcfgjProductAllDock(QcfgjProductAllDock qcfgjProductAllDock) { + if (StringUtils.isBlank(qcfgjProductAllDock.getId())){ + qcfgjProductAllDock.setId(IdUtils.fastSimpleUUID()); + } + return qcfgjProductAllDockMapper.insertQcfgjProductAllDock(qcfgjProductAllDock); + } + + /** + * 修改产品数据信息对接 + * + * @param qcfgjProductAllDock 产品数据信息对接 + * @return 结果 + */ + @Override + public int updateQcfgjProductAllDock(QcfgjProductAllDock qcfgjProductAllDock) { + return qcfgjProductAllDockMapper.updateQcfgjProductAllDock(qcfgjProductAllDock); + } + + /** + * 批量删除产品数据信息对接 + * + * @param ids 需要删除的产品数据信息对接主键 + * @return 结果 + */ + @Override + public int deleteQcfgjProductAllDockByIds(String[] ids) { + return qcfgjProductAllDockMapper.deleteQcfgjProductAllDockByIds(ids); + } + + /** + * 删除产品数据信息对接信息 + * + * @param id 产品数据信息对接主键 + * @return 结果 + */ + @Override + public int deleteQcfgjProductAllDockById(String id) { + return qcfgjProductAllDockMapper.deleteQcfgjProductAllDockById(id); + } +} diff --git a/God-Vue-master/god-system/src/main/resources/mapper/qcfgjManage/QcfgjProductAllDockMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/qcfgjManage/QcfgjProductAllDockMapper.xml new file mode 100644 index 00000000..fc08ea6c --- /dev/null +++ b/God-Vue-master/god-system/src/main/resources/mapper/qcfgjManage/QcfgjProductAllDockMapper.xml @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + select id, product_name, batch_info, length_info, wide_info, height_info, angle, standards, image_info, detect_time, detect_result, remark, data_type from qcfgj_product_all_dock + + + + + + + + insert into qcfgj_product_all_dock + + id, + product_name, + batch_info, + length_info, + wide_info, + height_info, + angle, + standards, + image_info, + detect_time, + detect_result, + remark, + data_type, + + + #{id}, + #{productName}, + #{batchInfo}, + #{lengthInfo}, + #{wideInfo}, + #{heightInfo}, + #{angle}, + #{standards}, + #{imageInfo}, + #{detectTime}, + #{detectResult}, + #{remark}, + #{dataType}, + + + + + update qcfgj_product_all_dock + + product_name = #{productName}, + batch_info = #{batchInfo}, + length_info = #{lengthInfo}, + wide_info = #{wideInfo}, + height_info = #{heightInfo}, + angle = #{angle}, + standards = #{standards}, + image_info = #{imageInfo}, + detect_time = #{detectTime}, + detect_result = #{detectResult}, + remark = #{remark}, + data_type = #{dataType}, + + where id = #{id} + + + + delete from qcfgj_product_all_dock where id = #{id} + + + + delete from qcfgj_product_all_dock where id in + + #{id} + + + \ No newline at end of file diff --git a/god-ui/src/api/qcfgjManage/dock.js b/god-ui/src/api/qcfgjManage/dock.js new file mode 100644 index 00000000..b72c3e4e --- /dev/null +++ b/god-ui/src/api/qcfgjManage/dock.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询产品数据信息对接列表 +export function listDock(query) { + return request({ + url: '/qcfgjManage/dock/list', + method: 'get', + params: query + }) +} + +// 查询产品数据信息对接详细 +export function getDock(id) { + return request({ + url: '/qcfgjManage/dock/' + id, + method: 'get' + }) +} + +// 新增产品数据信息对接 +export function addDock(data) { + return request({ + url: '/qcfgjManage/dock', + method: 'post', + data: data + }) +} + +// 修改产品数据信息对接 +export function updateDock(data) { + return request({ + url: '/qcfgjManage/dock', + method: 'put', + data: data + }) +} + +// 删除产品数据信息对接 +export function delDock(id) { + return request({ + url: '/qcfgjManage/dock/' + id, + method: 'delete' + }) +} diff --git a/god-ui/src/views/qcfgjManage/aiModel/index.vue b/god-ui/src/views/qcfgjManage/aiModel/index.vue index 4467c67e..9e70badf 100644 --- a/god-ui/src/views/qcfgjManage/aiModel/index.vue +++ b/god-ui/src/views/qcfgjManage/aiModel/index.vue @@ -128,12 +128,12 @@ {{ parseTime(scope.row.detectTime, '{y}-{m}-{d}') }} - + diff --git a/god-ui/src/views/qcfgjManage/batch/index.vue b/god-ui/src/views/qcfgjManage/batch/index.vue index f3116bc2..36dcb599 100644 --- a/god-ui/src/views/qcfgjManage/batch/index.vue +++ b/god-ui/src/views/qcfgjManage/batch/index.vue @@ -156,7 +156,14 @@ - + + + diff --git a/god-ui/src/views/qcfgjManage/dock/index.vue b/god-ui/src/views/qcfgjManage/dock/index.vue new file mode 100644 index 00000000..dac45591 --- /dev/null +++ b/god-ui/src/views/qcfgjManage/dock/index.vue @@ -0,0 +1,394 @@ + + + diff --git a/god-ui/src/views/qcfgjManage/partClassify/index.vue b/god-ui/src/views/qcfgjManage/partClassify/index.vue new file mode 100644 index 00000000..aedc971e --- /dev/null +++ b/god-ui/src/views/qcfgjManage/partClassify/index.vue @@ -0,0 +1,394 @@ + + +