From 5cac892624db71c413dffd42de0b42eeba464614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=AB=E7=8C=ABguowen?= <9290821+guowen-the-cat@user.noreply.gitee.com> Date: Fri, 30 May 2025 17:16:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E5=BA=93=E5=AD=98=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E3=80=81=E9=A2=84=E8=AD=A6=E5=BA=93=E5=AD=98=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/ViewStockSecureController.java | 104 ++ .../domain/ViewStockSecure.java | 804 +++++++++++++++ .../mapper/ViewStockSecureMapper.java | 61 ++ .../service/IViewStockSecureService.java | 61 ++ .../impl/ViewStockSecureServiceImpl.java | 93 ++ .../ViewStockWarningController.java | 104 ++ .../domain/ViewStockWarning.java | 804 +++++++++++++++ .../mapper/ViewStockWarningMapper.java | 61 ++ .../service/IViewStockWarningService.java | 61 ++ .../impl/ViewStockWarningServiceImpl.java | 93 ++ .../mapper/search/ViewStockSecureMapper.xml | 313 ++++++ .../mapper/search/ViewStockWarningMapper.xml | 313 ++++++ ruoyi-ui/src/api/search/ViewStockSecure.js | 44 + ruoyi-ui/src/api/search/ViewStockWarning.js | 44 + .../views/search/ViewStockSecure/index.vue | 956 +++++++++++++++++ .../views/search/ViewStockWarning/index.vue | 972 ++++++++++++++++++ 16 files changed, 4888 insertions(+) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/controller/ViewStockSecureController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/domain/ViewStockSecure.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/mapper/ViewStockSecureMapper.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/service/IViewStockSecureService.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/service/impl/ViewStockSecureServiceImpl.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/controller/ViewStockWarningController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/domain/ViewStockWarning.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/mapper/ViewStockWarningMapper.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/service/IViewStockWarningService.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/service/impl/ViewStockWarningServiceImpl.java create mode 100644 ruoyi-admin/src/main/resources/mapper/search/ViewStockSecureMapper.xml create mode 100644 ruoyi-admin/src/main/resources/mapper/search/ViewStockWarningMapper.xml create mode 100644 ruoyi-ui/src/api/search/ViewStockSecure.js create mode 100644 ruoyi-ui/src/api/search/ViewStockWarning.js create mode 100644 ruoyi-ui/src/views/search/ViewStockSecure/index.vue create mode 100644 ruoyi-ui/src/views/search/ViewStockWarning/index.vue diff --git a/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/controller/ViewStockSecureController.java b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/controller/ViewStockSecureController.java new file mode 100644 index 0000000..faa427a --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/controller/ViewStockSecureController.java @@ -0,0 +1,104 @@ +package com.ruoyi.search.ViewStockSecure.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.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.search.ViewStockSecure.domain.ViewStockSecure; +import com.ruoyi.search.ViewStockSecure.service.IViewStockSecureService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 安全库存查询Controller + * + * @author gw + * @date 2025-05-30 + */ +@RestController +@RequestMapping("/search/ViewStockSecure") +public class ViewStockSecureController extends BaseController +{ + @Autowired + private IViewStockSecureService viewStockSecureService; + + /** + * 查询安全库存查询列表 + */ + @PreAuthorize("@ss.hasPermi('search:ViewStockSecure:list')") + @GetMapping("/list") + public TableDataInfo list(ViewStockSecure viewStockSecure) + { + startPage(); + List list = viewStockSecureService.selectViewStockSecureList(viewStockSecure); + return getDataTable(list); + } + + /** + * 导出安全库存查询列表 + */ + @PreAuthorize("@ss.hasPermi('search:ViewStockSecure:export')") + @Log(title = "安全库存查询", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, ViewStockSecure viewStockSecure) + { + List list = viewStockSecureService.selectViewStockSecureList(viewStockSecure); + ExcelUtil util = new ExcelUtil(ViewStockSecure.class); + util.exportExcel(response, list, "安全库存查询数据"); + } + + /** + * 获取安全库存查询详细信息 + */ + @PreAuthorize("@ss.hasPermi('search:ViewStockSecure:query')") + @GetMapping(value = "/{stockId}") + public AjaxResult getInfo(@PathVariable("stockId") String stockId) + { + return success(viewStockSecureService.selectViewStockSecureByStockId(stockId)); + } + + /** + * 新增安全库存查询 + */ + @PreAuthorize("@ss.hasPermi('search:ViewStockSecure:add')") + @Log(title = "安全库存查询", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody ViewStockSecure viewStockSecure) + { + return toAjax(viewStockSecureService.insertViewStockSecure(viewStockSecure)); + } + + /** + * 修改安全库存查询 + */ + @PreAuthorize("@ss.hasPermi('search:ViewStockSecure:edit')") + @Log(title = "安全库存查询", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody ViewStockSecure viewStockSecure) + { + return toAjax(viewStockSecureService.updateViewStockSecure(viewStockSecure)); + } + + /** + * 删除安全库存查询 + */ + @PreAuthorize("@ss.hasPermi('search:ViewStockSecure:remove')") + @Log(title = "安全库存查询", businessType = BusinessType.DELETE) + @DeleteMapping("/{stockIds}") + public AjaxResult remove(@PathVariable String[] stockIds) + { + return toAjax(viewStockSecureService.deleteViewStockSecureByStockIds(stockIds)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/domain/ViewStockSecure.java b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/domain/ViewStockSecure.java new file mode 100644 index 0000000..43922d1 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/domain/ViewStockSecure.java @@ -0,0 +1,804 @@ +package com.ruoyi.search.ViewStockSecure.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 安全库存查询对象 view_stock_secure + * + * @author gw + * @date 2025-05-30 + */ +public class ViewStockSecure extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 库存ID */ + @Excel(name = "库存ID") + private String stockId; + + /** 货位ID */ + @Excel(name = "货位ID") + private String cargoSpaceId; + + /** 库存状态 */ + @Excel(name = "库存状态") + private String stockStatus; + + /** 物料状态 */ + @Excel(name = "物料状态") + private String productStatus; + + /** 批次号 */ + @Excel(name = "批次号") + private String lotNo; + + /** 入库时间 */ + @Excel(name = "入库时间") + private String inDate; + + /** 回流时间 */ + @Excel(name = "回流时间") + private String backDate; + + /** 物料GUID */ + @Excel(name = "物料GUID") + private String productGuid; + + /** 库存数量 */ + @Excel(name = "库存数量") + private String quantity; + + /** 作业ID */ + @Excel(name = "作业ID") + private String jobId; + + /** 托盘条码 */ + @Excel(name = "托盘条码") + private String trayCode; + + /** 出库数量 */ + @Excel(name = "出库数量") + private String outQuantity; + + /** 入库子单ID */ + @Excel(name = "入库子单ID") + private String stockinDetailId; + + /** 入库主单 */ + @Excel(name = "入库主单") + private String stockinId; + + /** 入库类型 */ + @Excel(name = "入库类型") + private String inType; + + /** 入库班组ID */ + @Excel(name = "入库班组ID") + private String inClassId; + + /** 仓库ID */ + @Excel(name = "仓库ID") + private String warehouseId; + + /** 垛型ID */ + @Excel(name = "垛型ID") + private String stackingId; + + /** 库存预警 */ + @Excel(name = "库存预警") + private String spare1; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String spare2; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String spare3; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String spare4; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String spare5; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String spare6; + + /** 物料ID */ + @Excel(name = "物料ID") + private String productId; + + /** 仓库名称 */ + @Excel(name = "仓库名称") + private String warehouseName; + + /** 仓库地址 */ + @Excel(name = "仓库地址") + private String address; + + /** 仓库描述 */ + @Excel(name = "仓库描述") + private String cDesc; + + /** 仓库级别 */ + @Excel(name = "仓库级别") + private String warehouseKind; + + /** 仓库类型 */ + @Excel(name = "仓库类型") + private String warehouseType; + + /** 是否可用 */ + @Excel(name = "是否可用") + private String isCurrent; + + /** 物料名称 */ + @Excel(name = "物料名称") + private String productName; + + /** 规格 */ + @Excel(name = "规格") + private String spec; + + /** 品牌 */ + @Excel(name = "品牌") + private String cargoNo; + + /** 单位 */ + @Excel(name = "单位") + private String unit; + + /** 价格 */ + @Excel(name = "价格") + private String price; + + /** 货位名称 */ + @Excel(name = "货位名称") + private String cargoSpaceName; + + /** 巷道ID */ + @Excel(name = "巷道ID") + private String roadwayId; + + /** 货区ID */ + @Excel(name = "货区ID") + private String cargoAreaId; + + /** 货位类型 */ + @Excel(name = "货位类型") + private String theType; + + /** 货位类型名称 */ + @Excel(name = "货位类型名称") + private String theTypeName; + + /** 排 */ + @Excel(name = "排") + private Long thePlatoon; + + /** 列 */ + @Excel(name = "列") + private Long theColumn; + + /** 层 */ + @Excel(name = "层") + private Long theFloor; + + /** 货位状态 */ + @Excel(name = "货位状态") + private String cargoStatus; + + /** 是否锁定 */ + @Excel(name = "是否锁定") + private String locked; + + /** 货位高度 */ + @Excel(name = "货位高度") + private String cargoHight; + + /** 是否双伸 */ + @Excel(name = "是否双伸") + private String issDouble; + + /** 双货位分组编码 */ + @Excel(name = "双货位分组编码") + private String groupCodingNo; + + /** 双货位分组编码 */ + @Excel(name = "双货位分组编码") + private String groupCoding; + + /** 双货位标识 */ + @Excel(name = "双货位标识") + private String cargoSpaceLogo; + + /** 本仓库区域 */ + @Excel(name = "本仓库区域") + private String thisCargoArea; + + public void setStockId(String stockId) + { + this.stockId = stockId; + } + + public String getStockId() + { + return stockId; + } + + public void setCargoSpaceId(String cargoSpaceId) + { + this.cargoSpaceId = cargoSpaceId; + } + + public String getCargoSpaceId() + { + return cargoSpaceId; + } + + public void setStockStatus(String stockStatus) + { + this.stockStatus = stockStatus; + } + + public String getStockStatus() + { + return stockStatus; + } + + public void setProductStatus(String productStatus) + { + this.productStatus = productStatus; + } + + public String getProductStatus() + { + return productStatus; + } + + public void setLotNo(String lotNo) + { + this.lotNo = lotNo; + } + + public String getLotNo() + { + return lotNo; + } + + public void setInDate(String inDate) + { + this.inDate = inDate; + } + + public String getInDate() + { + return inDate; + } + + public void setBackDate(String backDate) + { + this.backDate = backDate; + } + + public String getBackDate() + { + return backDate; + } + + public void setProductGuid(String productGuid) + { + this.productGuid = productGuid; + } + + public String getProductGuid() + { + return productGuid; + } + + public void setQuantity(String quantity) + { + this.quantity = quantity; + } + + public String getQuantity() + { + return quantity; + } + + public void setJobId(String jobId) + { + this.jobId = jobId; + } + + public String getJobId() + { + return jobId; + } + + public void setTrayCode(String trayCode) + { + this.trayCode = trayCode; + } + + public String getTrayCode() + { + return trayCode; + } + + public void setOutQuantity(String outQuantity) + { + this.outQuantity = outQuantity; + } + + public String getOutQuantity() + { + return outQuantity; + } + + public void setStockinDetailId(String stockinDetailId) + { + this.stockinDetailId = stockinDetailId; + } + + public String getStockinDetailId() + { + return stockinDetailId; + } + + public void setStockinId(String stockinId) + { + this.stockinId = stockinId; + } + + public String getStockinId() + { + return stockinId; + } + + public void setInType(String inType) + { + this.inType = inType; + } + + public String getInType() + { + return inType; + } + + public void setInClassId(String inClassId) + { + this.inClassId = inClassId; + } + + public String getInClassId() + { + return inClassId; + } + + public void setWarehouseId(String warehouseId) + { + this.warehouseId = warehouseId; + } + + public String getWarehouseId() + { + return warehouseId; + } + + public void setStackingId(String stackingId) + { + this.stackingId = stackingId; + } + + public String getStackingId() + { + return stackingId; + } + + public void setSpare1(String spare1) + { + this.spare1 = spare1; + } + + public String getSpare1() + { + return spare1; + } + + public void setSpare2(String spare2) + { + this.spare2 = spare2; + } + + public String getSpare2() + { + return spare2; + } + + public void setSpare3(String spare3) + { + this.spare3 = spare3; + } + + public String getSpare3() + { + return spare3; + } + + public void setSpare4(String spare4) + { + this.spare4 = spare4; + } + + public String getSpare4() + { + return spare4; + } + + public void setSpare5(String spare5) + { + this.spare5 = spare5; + } + + public String getSpare5() + { + return spare5; + } + + public void setSpare6(String spare6) + { + this.spare6 = spare6; + } + + public String getSpare6() + { + return spare6; + } + + public void setProductId(String productId) + { + this.productId = productId; + } + + public String getProductId() + { + return productId; + } + + public void setWarehouseName(String warehouseName) + { + this.warehouseName = warehouseName; + } + + public String getWarehouseName() + { + return warehouseName; + } + + public void setAddress(String address) + { + this.address = address; + } + + public String getAddress() + { + return address; + } + + public void setcDesc(String cDesc) + { + this.cDesc = cDesc; + } + + public String getcDesc() + { + return cDesc; + } + + public void setWarehouseKind(String warehouseKind) + { + this.warehouseKind = warehouseKind; + } + + public String getWarehouseKind() + { + return warehouseKind; + } + + public void setWarehouseType(String warehouseType) + { + this.warehouseType = warehouseType; + } + + public String getWarehouseType() + { + return warehouseType; + } + + public void setIsCurrent(String isCurrent) + { + this.isCurrent = isCurrent; + } + + public String getIsCurrent() + { + return isCurrent; + } + + public void setProductName(String productName) + { + this.productName = productName; + } + + public String getProductName() + { + return productName; + } + + public void setSpec(String spec) + { + this.spec = spec; + } + + public String getSpec() + { + return spec; + } + + public void setCargoNo(String cargoNo) + { + this.cargoNo = cargoNo; + } + + public String getCargoNo() + { + return cargoNo; + } + + public void setUnit(String unit) + { + this.unit = unit; + } + + public String getUnit() + { + return unit; + } + + public void setPrice(String price) + { + this.price = price; + } + + public String getPrice() + { + return price; + } + + public void setCargoSpaceName(String cargoSpaceName) + { + this.cargoSpaceName = cargoSpaceName; + } + + public String getCargoSpaceName() + { + return cargoSpaceName; + } + + public void setRoadwayId(String roadwayId) + { + this.roadwayId = roadwayId; + } + + public String getRoadwayId() + { + return roadwayId; + } + + public void setCargoAreaId(String cargoAreaId) + { + this.cargoAreaId = cargoAreaId; + } + + public String getCargoAreaId() + { + return cargoAreaId; + } + + public void setTheType(String theType) + { + this.theType = theType; + } + + public String getTheType() + { + return theType; + } + + public void setTheTypeName(String theTypeName) + { + this.theTypeName = theTypeName; + } + + public String getTheTypeName() + { + return theTypeName; + } + + public void setThePlatoon(Long thePlatoon) + { + this.thePlatoon = thePlatoon; + } + + public Long getThePlatoon() + { + return thePlatoon; + } + + public void setTheColumn(Long theColumn) + { + this.theColumn = theColumn; + } + + public Long getTheColumn() + { + return theColumn; + } + + public void setTheFloor(Long theFloor) + { + this.theFloor = theFloor; + } + + public Long getTheFloor() + { + return theFloor; + } + + public void setCargoStatus(String cargoStatus) + { + this.cargoStatus = cargoStatus; + } + + public String getCargoStatus() + { + return cargoStatus; + } + + public void setLocked(String locked) + { + this.locked = locked; + } + + public String getLocked() + { + return locked; + } + + public void setCargoHight(String cargoHight) + { + this.cargoHight = cargoHight; + } + + public String getCargoHight() + { + return cargoHight; + } + + public void setIssDouble(String issDouble) + { + this.issDouble = issDouble; + } + + public String getIssDouble() + { + return issDouble; + } + + public void setGroupCodingNo(String groupCodingNo) + { + this.groupCodingNo = groupCodingNo; + } + + public String getGroupCodingNo() + { + return groupCodingNo; + } + + public void setGroupCoding(String groupCoding) + { + this.groupCoding = groupCoding; + } + + public String getGroupCoding() + { + return groupCoding; + } + + public void setCargoSpaceLogo(String cargoSpaceLogo) + { + this.cargoSpaceLogo = cargoSpaceLogo; + } + + public String getCargoSpaceLogo() + { + return cargoSpaceLogo; + } + + public void setThisCargoArea(String thisCargoArea) + { + this.thisCargoArea = thisCargoArea; + } + + public String getThisCargoArea() + { + return thisCargoArea; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("stockId", getStockId()) + .append("cargoSpaceId", getCargoSpaceId()) + .append("stockStatus", getStockStatus()) + .append("productStatus", getProductStatus()) + .append("lotNo", getLotNo()) + .append("inDate", getInDate()) + .append("backDate", getBackDate()) + .append("productGuid", getProductGuid()) + .append("quantity", getQuantity()) + .append("jobId", getJobId()) + .append("trayCode", getTrayCode()) + .append("outQuantity", getOutQuantity()) + .append("stockinDetailId", getStockinDetailId()) + .append("stockinId", getStockinId()) + .append("inType", getInType()) + .append("inClassId", getInClassId()) + .append("warehouseId", getWarehouseId()) + .append("stackingId", getStackingId()) + .append("spare1", getSpare1()) + .append("spare2", getSpare2()) + .append("spare3", getSpare3()) + .append("spare4", getSpare4()) + .append("spare5", getSpare5()) + .append("spare6", getSpare6()) + .append("productId", getProductId()) + .append("warehouseName", getWarehouseName()) + .append("address", getAddress()) + .append("cDesc", getcDesc()) + .append("warehouseKind", getWarehouseKind()) + .append("warehouseType", getWarehouseType()) + .append("isCurrent", getIsCurrent()) + .append("productName", getProductName()) + .append("spec", getSpec()) + .append("cargoNo", getCargoNo()) + .append("unit", getUnit()) + .append("price", getPrice()) + .append("remark", getRemark()) + .append("cargoSpaceName", getCargoSpaceName()) + .append("roadwayId", getRoadwayId()) + .append("cargoAreaId", getCargoAreaId()) + .append("theType", getTheType()) + .append("theTypeName", getTheTypeName()) + .append("thePlatoon", getThePlatoon()) + .append("theColumn", getTheColumn()) + .append("theFloor", getTheFloor()) + .append("cargoStatus", getCargoStatus()) + .append("locked", getLocked()) + .append("cargoHight", getCargoHight()) + .append("issDouble", getIssDouble()) + .append("groupCodingNo", getGroupCodingNo()) + .append("groupCoding", getGroupCoding()) + .append("cargoSpaceLogo", getCargoSpaceLogo()) + .append("thisCargoArea", getThisCargoArea()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/mapper/ViewStockSecureMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/mapper/ViewStockSecureMapper.java new file mode 100644 index 0000000..93a76da --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/mapper/ViewStockSecureMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.search.ViewStockSecure.mapper; + +import java.util.List; +import com.ruoyi.search.ViewStockSecure.domain.ViewStockSecure; + +/** + * 安全库存查询Mapper接口 + * + * @author gw + * @date 2025-05-30 + */ +public interface ViewStockSecureMapper +{ + /** + * 查询安全库存查询 + * + * @param stockId 安全库存查询主键 + * @return 安全库存查询 + */ + public ViewStockSecure selectViewStockSecureByStockId(String stockId); + + /** + * 查询安全库存查询列表 + * + * @param viewStockSecure 安全库存查询 + * @return 安全库存查询集合 + */ + public List selectViewStockSecureList(ViewStockSecure viewStockSecure); + + /** + * 新增安全库存查询 + * + * @param viewStockSecure 安全库存查询 + * @return 结果 + */ + public int insertViewStockSecure(ViewStockSecure viewStockSecure); + + /** + * 修改安全库存查询 + * + * @param viewStockSecure 安全库存查询 + * @return 结果 + */ + public int updateViewStockSecure(ViewStockSecure viewStockSecure); + + /** + * 删除安全库存查询 + * + * @param stockId 安全库存查询主键 + * @return 结果 + */ + public int deleteViewStockSecureByStockId(String stockId); + + /** + * 批量删除安全库存查询 + * + * @param stockIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteViewStockSecureByStockIds(String[] stockIds); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/service/IViewStockSecureService.java b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/service/IViewStockSecureService.java new file mode 100644 index 0000000..c6977b1 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/service/IViewStockSecureService.java @@ -0,0 +1,61 @@ +package com.ruoyi.search.ViewStockSecure.service; + +import java.util.List; +import com.ruoyi.search.ViewStockSecure.domain.ViewStockSecure; + +/** + * 安全库存查询Service接口 + * + * @author gw + * @date 2025-05-30 + */ +public interface IViewStockSecureService +{ + /** + * 查询安全库存查询 + * + * @param stockId 安全库存查询主键 + * @return 安全库存查询 + */ + public ViewStockSecure selectViewStockSecureByStockId(String stockId); + + /** + * 查询安全库存查询列表 + * + * @param viewStockSecure 安全库存查询 + * @return 安全库存查询集合 + */ + public List selectViewStockSecureList(ViewStockSecure viewStockSecure); + + /** + * 新增安全库存查询 + * + * @param viewStockSecure 安全库存查询 + * @return 结果 + */ + public int insertViewStockSecure(ViewStockSecure viewStockSecure); + + /** + * 修改安全库存查询 + * + * @param viewStockSecure 安全库存查询 + * @return 结果 + */ + public int updateViewStockSecure(ViewStockSecure viewStockSecure); + + /** + * 批量删除安全库存查询 + * + * @param stockIds 需要删除的安全库存查询主键集合 + * @return 结果 + */ + public int deleteViewStockSecureByStockIds(String[] stockIds); + + /** + * 删除安全库存查询信息 + * + * @param stockId 安全库存查询主键 + * @return 结果 + */ + public int deleteViewStockSecureByStockId(String stockId); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/service/impl/ViewStockSecureServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/service/impl/ViewStockSecureServiceImpl.java new file mode 100644 index 0000000..bd64d59 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockSecure/service/impl/ViewStockSecureServiceImpl.java @@ -0,0 +1,93 @@ +package com.ruoyi.search.ViewStockSecure.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.search.ViewStockSecure.mapper.ViewStockSecureMapper; +import com.ruoyi.search.ViewStockSecure.domain.ViewStockSecure; +import com.ruoyi.search.ViewStockSecure.service.IViewStockSecureService; + +/** + * 安全库存查询Service业务层处理 + * + * @author gw + * @date 2025-05-30 + */ +@Service +public class ViewStockSecureServiceImpl implements IViewStockSecureService +{ + @Autowired + private ViewStockSecureMapper viewStockSecureMapper; + + /** + * 查询安全库存查询 + * + * @param stockId 安全库存查询主键 + * @return 安全库存查询 + */ + @Override + public ViewStockSecure selectViewStockSecureByStockId(String stockId) + { + return viewStockSecureMapper.selectViewStockSecureByStockId(stockId); + } + + /** + * 查询安全库存查询列表 + * + * @param viewStockSecure 安全库存查询 + * @return 安全库存查询 + */ + @Override + public List selectViewStockSecureList(ViewStockSecure viewStockSecure) + { + return viewStockSecureMapper.selectViewStockSecureList(viewStockSecure); + } + + /** + * 新增安全库存查询 + * + * @param viewStockSecure 安全库存查询 + * @return 结果 + */ + @Override + public int insertViewStockSecure(ViewStockSecure viewStockSecure) + { + return viewStockSecureMapper.insertViewStockSecure(viewStockSecure); + } + + /** + * 修改安全库存查询 + * + * @param viewStockSecure 安全库存查询 + * @return 结果 + */ + @Override + public int updateViewStockSecure(ViewStockSecure viewStockSecure) + { + return viewStockSecureMapper.updateViewStockSecure(viewStockSecure); + } + + /** + * 批量删除安全库存查询 + * + * @param stockIds 需要删除的安全库存查询主键 + * @return 结果 + */ + @Override + public int deleteViewStockSecureByStockIds(String[] stockIds) + { + return viewStockSecureMapper.deleteViewStockSecureByStockIds(stockIds); + } + + /** + * 删除安全库存查询信息 + * + * @param stockId 安全库存查询主键 + * @return 结果 + */ + @Override + public int deleteViewStockSecureByStockId(String stockId) + { + return viewStockSecureMapper.deleteViewStockSecureByStockId(stockId); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/controller/ViewStockWarningController.java b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/controller/ViewStockWarningController.java new file mode 100644 index 0000000..d137925 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/controller/ViewStockWarningController.java @@ -0,0 +1,104 @@ +package com.ruoyi.search.ViewStockWarning.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.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.search.ViewStockWarning.domain.ViewStockWarning; +import com.ruoyi.search.ViewStockWarning.service.IViewStockWarningService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 预警库存查询Controller + * + * @author ruoyi + * @date 2025-05-30 + */ +@RestController +@RequestMapping("/search/ViewStockWarning") +public class ViewStockWarningController extends BaseController +{ + @Autowired + private IViewStockWarningService viewStockWarningService; + + /** + * 查询预警库存查询列表 + */ + @PreAuthorize("@ss.hasPermi('search:ViewStockWarning:list')") + @GetMapping("/list") + public TableDataInfo list(ViewStockWarning viewStockWarning) + { + startPage(); + List list = viewStockWarningService.selectViewStockWarningList(viewStockWarning); + return getDataTable(list); + } + + /** + * 导出预警库存查询列表 + */ + @PreAuthorize("@ss.hasPermi('search:ViewStockWarning:export')") + @Log(title = "预警库存查询", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, ViewStockWarning viewStockWarning) + { + List list = viewStockWarningService.selectViewStockWarningList(viewStockWarning); + ExcelUtil util = new ExcelUtil(ViewStockWarning.class); + util.exportExcel(response, list, "预警库存查询数据"); + } + + /** + * 获取预警库存查询详细信息 + */ + @PreAuthorize("@ss.hasPermi('search:ViewStockWarning:query')") + @GetMapping(value = "/{stockId}") + public AjaxResult getInfo(@PathVariable("stockId") String stockId) + { + return success(viewStockWarningService.selectViewStockWarningByStockId(stockId)); + } + + /** + * 新增预警库存查询 + */ + @PreAuthorize("@ss.hasPermi('search:ViewStockWarning:add')") + @Log(title = "预警库存查询", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody ViewStockWarning viewStockWarning) + { + return toAjax(viewStockWarningService.insertViewStockWarning(viewStockWarning)); + } + + /** + * 修改预警库存查询 + */ + @PreAuthorize("@ss.hasPermi('search:ViewStockWarning:edit')") + @Log(title = "预警库存查询", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody ViewStockWarning viewStockWarning) + { + return toAjax(viewStockWarningService.updateViewStockWarning(viewStockWarning)); + } + + /** + * 删除预警库存查询 + */ + @PreAuthorize("@ss.hasPermi('search:ViewStockWarning:remove')") + @Log(title = "预警库存查询", businessType = BusinessType.DELETE) + @DeleteMapping("/{stockIds}") + public AjaxResult remove(@PathVariable String[] stockIds) + { + return toAjax(viewStockWarningService.deleteViewStockWarningByStockIds(stockIds)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/domain/ViewStockWarning.java b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/domain/ViewStockWarning.java new file mode 100644 index 0000000..eea218e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/domain/ViewStockWarning.java @@ -0,0 +1,804 @@ +package com.ruoyi.search.ViewStockWarning.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 预警库存查询对象 view_stock_warning + * + * @author ruoyi + * @date 2025-05-30 + */ +public class ViewStockWarning extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 库存ID */ + @Excel(name = "库存ID") + private String stockId; + + /** 货位ID */ + @Excel(name = "货位ID") + private String cargoSpaceId; + + /** 库存状态 */ + @Excel(name = "库存状态") + private String stockStatus; + + /** 物料状态 */ + @Excel(name = "物料状态") + private String productStatus; + + /** 批次号 */ + @Excel(name = "批次号") + private String lotNo; + + /** 入库时间 */ + @Excel(name = "入库时间") + private String inDate; + + /** 回流时间 */ + @Excel(name = "回流时间") + private String backDate; + + /** 物料GUID */ + @Excel(name = "物料GUID") + private String productGuid; + + /** 库存数量 */ + @Excel(name = "库存数量") + private String quantity; + + /** 作业ID */ + @Excel(name = "作业ID") + private String jobId; + + /** 托盘条码 */ + @Excel(name = "托盘条码") + private String trayCode; + + /** 出库数量 */ + @Excel(name = "出库数量") + private String outQuantity; + + /** 入库子单ID */ + @Excel(name = "入库子单ID") + private String stockinDetailId; + + /** 入库主单 */ + @Excel(name = "入库主单") + private String stockinId; + + /** 入库类型 */ + @Excel(name = "入库类型") + private String inType; + + /** 入库班组ID */ + @Excel(name = "入库班组ID") + private String inClassId; + + /** 仓库ID */ + @Excel(name = "仓库ID") + private String warehouseId; + + /** 垛型ID */ + @Excel(name = "垛型ID") + private String stackingId; + + /** 预警标识 */ + @Excel(name = "预警标识") + private String spare1; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String spare2; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String spare3; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String spare4; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String spare5; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String spare6; + + /** 物料ID */ + @Excel(name = "物料ID") + private String productId; + + /** 仓库名称 */ + @Excel(name = "仓库名称") + private String warehouseName; + + /** 仓库地址 */ + @Excel(name = "仓库地址") + private String address; + + /** 仓库描述 */ + @Excel(name = "仓库描述") + private String cDesc; + + /** 仓库级别 */ + @Excel(name = "仓库级别") + private String warehouseKind; + + /** 仓库类型 */ + @Excel(name = "仓库类型") + private String warehouseType; + + /** 是否可用 */ + @Excel(name = "是否可用") + private String isCurrent; + + /** 物料名称 */ + @Excel(name = "物料名称") + private String productName; + + /** 规格 */ + @Excel(name = "规格") + private String spec; + + /** 品牌 */ + @Excel(name = "品牌") + private String cargoNo; + + /** 单位 */ + @Excel(name = "单位") + private String unit; + + /** 价格 */ + @Excel(name = "价格") + private String price; + + /** 货位名称 */ + @Excel(name = "货位名称") + private String cargoSpaceName; + + /** 巷道ID */ + @Excel(name = "巷道ID") + private String roadwayId; + + /** 货区ID */ + @Excel(name = "货区ID") + private String cargoAreaId; + + /** 货位类型 */ + @Excel(name = "货位类型") + private String theType; + + /** the_type_name: */ + @Excel(name = "the_type_name:") + private String theTypeName; + + /** 排 */ + @Excel(name = "排") + private Long thePlatoon; + + /** 列 */ + @Excel(name = "列") + private Long theColumn; + + /** 层 */ + @Excel(name = "层") + private Long theFloor; + + /** 货位状态 */ + @Excel(name = "货位状态") + private String cargoStatus; + + /** 是否锁定 */ + @Excel(name = "是否锁定") + private String locked; + + /** 货位高度 */ + @Excel(name = "货位高度") + private String cargoHight; + + /** 是否双伸 */ + @Excel(name = "是否双伸") + private String issDouble; + + /** 双货位分组编码 */ + @Excel(name = "双货位分组编码") + private String groupCodingNo; + + /** 双货位分组编码 */ + @Excel(name = "双货位分组编码") + private String groupCoding; + + /** 双货位标识 */ + @Excel(name = "双货位标识") + private String cargoSpaceLogo; + + /** 本仓库区域 */ + @Excel(name = "本仓库区域") + private String thisCargoArea; + + public void setStockId(String stockId) + { + this.stockId = stockId; + } + + public String getStockId() + { + return stockId; + } + + public void setCargoSpaceId(String cargoSpaceId) + { + this.cargoSpaceId = cargoSpaceId; + } + + public String getCargoSpaceId() + { + return cargoSpaceId; + } + + public void setStockStatus(String stockStatus) + { + this.stockStatus = stockStatus; + } + + public String getStockStatus() + { + return stockStatus; + } + + public void setProductStatus(String productStatus) + { + this.productStatus = productStatus; + } + + public String getProductStatus() + { + return productStatus; + } + + public void setLotNo(String lotNo) + { + this.lotNo = lotNo; + } + + public String getLotNo() + { + return lotNo; + } + + public void setInDate(String inDate) + { + this.inDate = inDate; + } + + public String getInDate() + { + return inDate; + } + + public void setBackDate(String backDate) + { + this.backDate = backDate; + } + + public String getBackDate() + { + return backDate; + } + + public void setProductGuid(String productGuid) + { + this.productGuid = productGuid; + } + + public String getProductGuid() + { + return productGuid; + } + + public void setQuantity(String quantity) + { + this.quantity = quantity; + } + + public String getQuantity() + { + return quantity; + } + + public void setJobId(String jobId) + { + this.jobId = jobId; + } + + public String getJobId() + { + return jobId; + } + + public void setTrayCode(String trayCode) + { + this.trayCode = trayCode; + } + + public String getTrayCode() + { + return trayCode; + } + + public void setOutQuantity(String outQuantity) + { + this.outQuantity = outQuantity; + } + + public String getOutQuantity() + { + return outQuantity; + } + + public void setStockinDetailId(String stockinDetailId) + { + this.stockinDetailId = stockinDetailId; + } + + public String getStockinDetailId() + { + return stockinDetailId; + } + + public void setStockinId(String stockinId) + { + this.stockinId = stockinId; + } + + public String getStockinId() + { + return stockinId; + } + + public void setInType(String inType) + { + this.inType = inType; + } + + public String getInType() + { + return inType; + } + + public void setInClassId(String inClassId) + { + this.inClassId = inClassId; + } + + public String getInClassId() + { + return inClassId; + } + + public void setWarehouseId(String warehouseId) + { + this.warehouseId = warehouseId; + } + + public String getWarehouseId() + { + return warehouseId; + } + + public void setStackingId(String stackingId) + { + this.stackingId = stackingId; + } + + public String getStackingId() + { + return stackingId; + } + + public void setSpare1(String spare1) + { + this.spare1 = spare1; + } + + public String getSpare1() + { + return spare1; + } + + public void setSpare2(String spare2) + { + this.spare2 = spare2; + } + + public String getSpare2() + { + return spare2; + } + + public void setSpare3(String spare3) + { + this.spare3 = spare3; + } + + public String getSpare3() + { + return spare3; + } + + public void setSpare4(String spare4) + { + this.spare4 = spare4; + } + + public String getSpare4() + { + return spare4; + } + + public void setSpare5(String spare5) + { + this.spare5 = spare5; + } + + public String getSpare5() + { + return spare5; + } + + public void setSpare6(String spare6) + { + this.spare6 = spare6; + } + + public String getSpare6() + { + return spare6; + } + + public void setProductId(String productId) + { + this.productId = productId; + } + + public String getProductId() + { + return productId; + } + + public void setWarehouseName(String warehouseName) + { + this.warehouseName = warehouseName; + } + + public String getWarehouseName() + { + return warehouseName; + } + + public void setAddress(String address) + { + this.address = address; + } + + public String getAddress() + { + return address; + } + + public void setcDesc(String cDesc) + { + this.cDesc = cDesc; + } + + public String getcDesc() + { + return cDesc; + } + + public void setWarehouseKind(String warehouseKind) + { + this.warehouseKind = warehouseKind; + } + + public String getWarehouseKind() + { + return warehouseKind; + } + + public void setWarehouseType(String warehouseType) + { + this.warehouseType = warehouseType; + } + + public String getWarehouseType() + { + return warehouseType; + } + + public void setIsCurrent(String isCurrent) + { + this.isCurrent = isCurrent; + } + + public String getIsCurrent() + { + return isCurrent; + } + + public void setProductName(String productName) + { + this.productName = productName; + } + + public String getProductName() + { + return productName; + } + + public void setSpec(String spec) + { + this.spec = spec; + } + + public String getSpec() + { + return spec; + } + + public void setCargoNo(String cargoNo) + { + this.cargoNo = cargoNo; + } + + public String getCargoNo() + { + return cargoNo; + } + + public void setUnit(String unit) + { + this.unit = unit; + } + + public String getUnit() + { + return unit; + } + + public void setPrice(String price) + { + this.price = price; + } + + public String getPrice() + { + return price; + } + + public void setCargoSpaceName(String cargoSpaceName) + { + this.cargoSpaceName = cargoSpaceName; + } + + public String getCargoSpaceName() + { + return cargoSpaceName; + } + + public void setRoadwayId(String roadwayId) + { + this.roadwayId = roadwayId; + } + + public String getRoadwayId() + { + return roadwayId; + } + + public void setCargoAreaId(String cargoAreaId) + { + this.cargoAreaId = cargoAreaId; + } + + public String getCargoAreaId() + { + return cargoAreaId; + } + + public void setTheType(String theType) + { + this.theType = theType; + } + + public String getTheType() + { + return theType; + } + + public void setTheTypeName(String theTypeName) + { + this.theTypeName = theTypeName; + } + + public String getTheTypeName() + { + return theTypeName; + } + + public void setThePlatoon(Long thePlatoon) + { + this.thePlatoon = thePlatoon; + } + + public Long getThePlatoon() + { + return thePlatoon; + } + + public void setTheColumn(Long theColumn) + { + this.theColumn = theColumn; + } + + public Long getTheColumn() + { + return theColumn; + } + + public void setTheFloor(Long theFloor) + { + this.theFloor = theFloor; + } + + public Long getTheFloor() + { + return theFloor; + } + + public void setCargoStatus(String cargoStatus) + { + this.cargoStatus = cargoStatus; + } + + public String getCargoStatus() + { + return cargoStatus; + } + + public void setLocked(String locked) + { + this.locked = locked; + } + + public String getLocked() + { + return locked; + } + + public void setCargoHight(String cargoHight) + { + this.cargoHight = cargoHight; + } + + public String getCargoHight() + { + return cargoHight; + } + + public void setIssDouble(String issDouble) + { + this.issDouble = issDouble; + } + + public String getIssDouble() + { + return issDouble; + } + + public void setGroupCodingNo(String groupCodingNo) + { + this.groupCodingNo = groupCodingNo; + } + + public String getGroupCodingNo() + { + return groupCodingNo; + } + + public void setGroupCoding(String groupCoding) + { + this.groupCoding = groupCoding; + } + + public String getGroupCoding() + { + return groupCoding; + } + + public void setCargoSpaceLogo(String cargoSpaceLogo) + { + this.cargoSpaceLogo = cargoSpaceLogo; + } + + public String getCargoSpaceLogo() + { + return cargoSpaceLogo; + } + + public void setThisCargoArea(String thisCargoArea) + { + this.thisCargoArea = thisCargoArea; + } + + public String getThisCargoArea() + { + return thisCargoArea; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("stockId", getStockId()) + .append("cargoSpaceId", getCargoSpaceId()) + .append("stockStatus", getStockStatus()) + .append("productStatus", getProductStatus()) + .append("lotNo", getLotNo()) + .append("inDate", getInDate()) + .append("backDate", getBackDate()) + .append("productGuid", getProductGuid()) + .append("quantity", getQuantity()) + .append("jobId", getJobId()) + .append("trayCode", getTrayCode()) + .append("outQuantity", getOutQuantity()) + .append("stockinDetailId", getStockinDetailId()) + .append("stockinId", getStockinId()) + .append("inType", getInType()) + .append("inClassId", getInClassId()) + .append("warehouseId", getWarehouseId()) + .append("stackingId", getStackingId()) + .append("spare1", getSpare1()) + .append("spare2", getSpare2()) + .append("spare3", getSpare3()) + .append("spare4", getSpare4()) + .append("spare5", getSpare5()) + .append("spare6", getSpare6()) + .append("productId", getProductId()) + .append("warehouseName", getWarehouseName()) + .append("address", getAddress()) + .append("cDesc", getcDesc()) + .append("warehouseKind", getWarehouseKind()) + .append("warehouseType", getWarehouseType()) + .append("isCurrent", getIsCurrent()) + .append("productName", getProductName()) + .append("spec", getSpec()) + .append("cargoNo", getCargoNo()) + .append("unit", getUnit()) + .append("price", getPrice()) + .append("remark", getRemark()) + .append("cargoSpaceName", getCargoSpaceName()) + .append("roadwayId", getRoadwayId()) + .append("cargoAreaId", getCargoAreaId()) + .append("theType", getTheType()) + .append("theTypeName", getTheTypeName()) + .append("thePlatoon", getThePlatoon()) + .append("theColumn", getTheColumn()) + .append("theFloor", getTheFloor()) + .append("cargoStatus", getCargoStatus()) + .append("locked", getLocked()) + .append("cargoHight", getCargoHight()) + .append("issDouble", getIssDouble()) + .append("groupCodingNo", getGroupCodingNo()) + .append("groupCoding", getGroupCoding()) + .append("cargoSpaceLogo", getCargoSpaceLogo()) + .append("thisCargoArea", getThisCargoArea()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/mapper/ViewStockWarningMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/mapper/ViewStockWarningMapper.java new file mode 100644 index 0000000..3f1bddf --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/mapper/ViewStockWarningMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.search.ViewStockWarning.mapper; + +import java.util.List; +import com.ruoyi.search.ViewStockWarning.domain.ViewStockWarning; + +/** + * 预警库存查询Mapper接口 + * + * @author ruoyi + * @date 2025-05-30 + */ +public interface ViewStockWarningMapper +{ + /** + * 查询预警库存查询 + * + * @param stockId 预警库存查询主键 + * @return 预警库存查询 + */ + public ViewStockWarning selectViewStockWarningByStockId(String stockId); + + /** + * 查询预警库存查询列表 + * + * @param viewStockWarning 预警库存查询 + * @return 预警库存查询集合 + */ + public List selectViewStockWarningList(ViewStockWarning viewStockWarning); + + /** + * 新增预警库存查询 + * + * @param viewStockWarning 预警库存查询 + * @return 结果 + */ + public int insertViewStockWarning(ViewStockWarning viewStockWarning); + + /** + * 修改预警库存查询 + * + * @param viewStockWarning 预警库存查询 + * @return 结果 + */ + public int updateViewStockWarning(ViewStockWarning viewStockWarning); + + /** + * 删除预警库存查询 + * + * @param stockId 预警库存查询主键 + * @return 结果 + */ + public int deleteViewStockWarningByStockId(String stockId); + + /** + * 批量删除预警库存查询 + * + * @param stockIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteViewStockWarningByStockIds(String[] stockIds); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/service/IViewStockWarningService.java b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/service/IViewStockWarningService.java new file mode 100644 index 0000000..1baedcf --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/service/IViewStockWarningService.java @@ -0,0 +1,61 @@ +package com.ruoyi.search.ViewStockWarning.service; + +import java.util.List; +import com.ruoyi.search.ViewStockWarning.domain.ViewStockWarning; + +/** + * 预警库存查询Service接口 + * + * @author ruoyi + * @date 2025-05-30 + */ +public interface IViewStockWarningService +{ + /** + * 查询预警库存查询 + * + * @param stockId 预警库存查询主键 + * @return 预警库存查询 + */ + public ViewStockWarning selectViewStockWarningByStockId(String stockId); + + /** + * 查询预警库存查询列表 + * + * @param viewStockWarning 预警库存查询 + * @return 预警库存查询集合 + */ + public List selectViewStockWarningList(ViewStockWarning viewStockWarning); + + /** + * 新增预警库存查询 + * + * @param viewStockWarning 预警库存查询 + * @return 结果 + */ + public int insertViewStockWarning(ViewStockWarning viewStockWarning); + + /** + * 修改预警库存查询 + * + * @param viewStockWarning 预警库存查询 + * @return 结果 + */ + public int updateViewStockWarning(ViewStockWarning viewStockWarning); + + /** + * 批量删除预警库存查询 + * + * @param stockIds 需要删除的预警库存查询主键集合 + * @return 结果 + */ + public int deleteViewStockWarningByStockIds(String[] stockIds); + + /** + * 删除预警库存查询信息 + * + * @param stockId 预警库存查询主键 + * @return 结果 + */ + public int deleteViewStockWarningByStockId(String stockId); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/service/impl/ViewStockWarningServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/service/impl/ViewStockWarningServiceImpl.java new file mode 100644 index 0000000..8cae769 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/search/ViewStockWarning/service/impl/ViewStockWarningServiceImpl.java @@ -0,0 +1,93 @@ +package com.ruoyi.search.ViewStockWarning.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.search.ViewStockWarning.mapper.ViewStockWarningMapper; +import com.ruoyi.search.ViewStockWarning.domain.ViewStockWarning; +import com.ruoyi.search.ViewStockWarning.service.IViewStockWarningService; + +/** + * 预警库存查询Service业务层处理 + * + * @author ruoyi + * @date 2025-05-30 + */ +@Service +public class ViewStockWarningServiceImpl implements IViewStockWarningService +{ + @Autowired + private ViewStockWarningMapper viewStockWarningMapper; + + /** + * 查询预警库存查询 + * + * @param stockId 预警库存查询主键 + * @return 预警库存查询 + */ + @Override + public ViewStockWarning selectViewStockWarningByStockId(String stockId) + { + return viewStockWarningMapper.selectViewStockWarningByStockId(stockId); + } + + /** + * 查询预警库存查询列表 + * + * @param viewStockWarning 预警库存查询 + * @return 预警库存查询 + */ + @Override + public List selectViewStockWarningList(ViewStockWarning viewStockWarning) + { + return viewStockWarningMapper.selectViewStockWarningList(viewStockWarning); + } + + /** + * 新增预警库存查询 + * + * @param viewStockWarning 预警库存查询 + * @return 结果 + */ + @Override + public int insertViewStockWarning(ViewStockWarning viewStockWarning) + { + return viewStockWarningMapper.insertViewStockWarning(viewStockWarning); + } + + /** + * 修改预警库存查询 + * + * @param viewStockWarning 预警库存查询 + * @return 结果 + */ + @Override + public int updateViewStockWarning(ViewStockWarning viewStockWarning) + { + return viewStockWarningMapper.updateViewStockWarning(viewStockWarning); + } + + /** + * 批量删除预警库存查询 + * + * @param stockIds 需要删除的预警库存查询主键 + * @return 结果 + */ + @Override + public int deleteViewStockWarningByStockIds(String[] stockIds) + { + return viewStockWarningMapper.deleteViewStockWarningByStockIds(stockIds); + } + + /** + * 删除预警库存查询信息 + * + * @param stockId 预警库存查询主键 + * @return 结果 + */ + @Override + public int deleteViewStockWarningByStockId(String stockId) + { + return viewStockWarningMapper.deleteViewStockWarningByStockId(stockId); + } +} diff --git a/ruoyi-admin/src/main/resources/mapper/search/ViewStockSecureMapper.xml b/ruoyi-admin/src/main/resources/mapper/search/ViewStockSecureMapper.xml new file mode 100644 index 0000000..5b07254 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/search/ViewStockSecureMapper.xml @@ -0,0 +1,313 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select stock_id, cargo_space_id, stock_status, product_status, lot_no, in_date, back_date, product_guid, quantity, job_id, tray_code, out_quantity, stockin_detail_id, stockin_id, in_type, in_class_id, warehouse_id, stacking_id, spare1, spare2, spare3, spare4, spare5, spare6, product_id, warehouse_name, address, c_desc, warehouse_kind, warehouse_type, is_current, product_name, spec, cargo_no, unit, price, remark, cargo_space_name, roadway_id, cargo_area_id, the_type, the_type_name, the_platoon, the_column, the_floor, cargo_status, locked, cargo_hight, iss_double, group_coding_no, group_coding, cargo_space_logo, this_cargo_area from view_stock_secure + + + + + + + + insert into view_stock_secure + + stock_id, + cargo_space_id, + stock_status, + product_status, + lot_no, + in_date, + back_date, + product_guid, + quantity, + job_id, + tray_code, + out_quantity, + stockin_detail_id, + stockin_id, + in_type, + in_class_id, + warehouse_id, + stacking_id, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + product_id, + warehouse_name, + address, + c_desc, + warehouse_kind, + warehouse_type, + is_current, + product_name, + spec, + cargo_no, + unit, + price, + remark, + cargo_space_name, + roadway_id, + cargo_area_id, + the_type, + the_type_name, + the_platoon, + the_column, + the_floor, + cargo_status, + locked, + cargo_hight, + iss_double, + group_coding_no, + group_coding, + cargo_space_logo, + this_cargo_area, + + + #{stockId}, + #{cargoSpaceId}, + #{stockStatus}, + #{productStatus}, + #{lotNo}, + #{inDate}, + #{backDate}, + #{productGuid}, + #{quantity}, + #{jobId}, + #{trayCode}, + #{outQuantity}, + #{stockinDetailId}, + #{stockinId}, + #{inType}, + #{inClassId}, + #{warehouseId}, + #{stackingId}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{productId}, + #{warehouseName}, + #{address}, + #{cDesc}, + #{warehouseKind}, + #{warehouseType}, + #{isCurrent}, + #{productName}, + #{spec}, + #{cargoNo}, + #{unit}, + #{price}, + #{remark}, + #{cargoSpaceName}, + #{roadwayId}, + #{cargoAreaId}, + #{theType}, + #{theTypeName}, + #{thePlatoon}, + #{theColumn}, + #{theFloor}, + #{cargoStatus}, + #{locked}, + #{cargoHight}, + #{issDouble}, + #{groupCodingNo}, + #{groupCoding}, + #{cargoSpaceLogo}, + #{thisCargoArea}, + + + + + update view_stock_secure + + cargo_space_id = #{cargoSpaceId}, + stock_status = #{stockStatus}, + product_status = #{productStatus}, + lot_no = #{lotNo}, + in_date = #{inDate}, + back_date = #{backDate}, + product_guid = #{productGuid}, + quantity = #{quantity}, + job_id = #{jobId}, + tray_code = #{trayCode}, + out_quantity = #{outQuantity}, + stockin_detail_id = #{stockinDetailId}, + stockin_id = #{stockinId}, + in_type = #{inType}, + in_class_id = #{inClassId}, + warehouse_id = #{warehouseId}, + stacking_id = #{stackingId}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + product_id = #{productId}, + warehouse_name = #{warehouseName}, + address = #{address}, + c_desc = #{cDesc}, + warehouse_kind = #{warehouseKind}, + warehouse_type = #{warehouseType}, + is_current = #{isCurrent}, + product_name = #{productName}, + spec = #{spec}, + cargo_no = #{cargoNo}, + unit = #{unit}, + price = #{price}, + remark = #{remark}, + cargo_space_name = #{cargoSpaceName}, + roadway_id = #{roadwayId}, + cargo_area_id = #{cargoAreaId}, + the_type = #{theType}, + the_type_name = #{theTypeName}, + the_platoon = #{thePlatoon}, + the_column = #{theColumn}, + the_floor = #{theFloor}, + cargo_status = #{cargoStatus}, + locked = #{locked}, + cargo_hight = #{cargoHight}, + iss_double = #{issDouble}, + group_coding_no = #{groupCodingNo}, + group_coding = #{groupCoding}, + cargo_space_logo = #{cargoSpaceLogo}, + this_cargo_area = #{thisCargoArea}, + + where stock_id = #{stockId} + + + + delete from view_stock_secure where stock_id = #{stockId} + + + + delete from view_stock_secure where stock_id in + + #{stockId} + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/mapper/search/ViewStockWarningMapper.xml b/ruoyi-admin/src/main/resources/mapper/search/ViewStockWarningMapper.xml new file mode 100644 index 0000000..ca164e1 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/search/ViewStockWarningMapper.xml @@ -0,0 +1,313 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select stock_id, cargo_space_id, stock_status, product_status, lot_no, in_date, back_date, product_guid, quantity, job_id, tray_code, out_quantity, stockin_detail_id, stockin_id, in_type, in_class_id, warehouse_id, stacking_id, spare1, spare2, spare3, spare4, spare5, spare6, product_id, warehouse_name, address, c_desc, warehouse_kind, warehouse_type, is_current, product_name, spec, cargo_no, unit, price, remark, cargo_space_name, roadway_id, cargo_area_id, the_type, the_type_name, the_platoon, the_column, the_floor, cargo_status, locked, cargo_hight, iss_double, group_coding_no, group_coding, cargo_space_logo, this_cargo_area from view_stock_warning + + + + + + + + insert into view_stock_warning + + stock_id, + cargo_space_id, + stock_status, + product_status, + lot_no, + in_date, + back_date, + product_guid, + quantity, + job_id, + tray_code, + out_quantity, + stockin_detail_id, + stockin_id, + in_type, + in_class_id, + warehouse_id, + stacking_id, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + product_id, + warehouse_name, + address, + c_desc, + warehouse_kind, + warehouse_type, + is_current, + product_name, + spec, + cargo_no, + unit, + price, + remark, + cargo_space_name, + roadway_id, + cargo_area_id, + the_type, + the_type_name, + the_platoon, + the_column, + the_floor, + cargo_status, + locked, + cargo_hight, + iss_double, + group_coding_no, + group_coding, + cargo_space_logo, + this_cargo_area, + + + #{stockId}, + #{cargoSpaceId}, + #{stockStatus}, + #{productStatus}, + #{lotNo}, + #{inDate}, + #{backDate}, + #{productGuid}, + #{quantity}, + #{jobId}, + #{trayCode}, + #{outQuantity}, + #{stockinDetailId}, + #{stockinId}, + #{inType}, + #{inClassId}, + #{warehouseId}, + #{stackingId}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{productId}, + #{warehouseName}, + #{address}, + #{cDesc}, + #{warehouseKind}, + #{warehouseType}, + #{isCurrent}, + #{productName}, + #{spec}, + #{cargoNo}, + #{unit}, + #{price}, + #{remark}, + #{cargoSpaceName}, + #{roadwayId}, + #{cargoAreaId}, + #{theType}, + #{theTypeName}, + #{thePlatoon}, + #{theColumn}, + #{theFloor}, + #{cargoStatus}, + #{locked}, + #{cargoHight}, + #{issDouble}, + #{groupCodingNo}, + #{groupCoding}, + #{cargoSpaceLogo}, + #{thisCargoArea}, + + + + + update view_stock_warning + + cargo_space_id = #{cargoSpaceId}, + stock_status = #{stockStatus}, + product_status = #{productStatus}, + lot_no = #{lotNo}, + in_date = #{inDate}, + back_date = #{backDate}, + product_guid = #{productGuid}, + quantity = #{quantity}, + job_id = #{jobId}, + tray_code = #{trayCode}, + out_quantity = #{outQuantity}, + stockin_detail_id = #{stockinDetailId}, + stockin_id = #{stockinId}, + in_type = #{inType}, + in_class_id = #{inClassId}, + warehouse_id = #{warehouseId}, + stacking_id = #{stackingId}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + product_id = #{productId}, + warehouse_name = #{warehouseName}, + address = #{address}, + c_desc = #{cDesc}, + warehouse_kind = #{warehouseKind}, + warehouse_type = #{warehouseType}, + is_current = #{isCurrent}, + product_name = #{productName}, + spec = #{spec}, + cargo_no = #{cargoNo}, + unit = #{unit}, + price = #{price}, + remark = #{remark}, + cargo_space_name = #{cargoSpaceName}, + roadway_id = #{roadwayId}, + cargo_area_id = #{cargoAreaId}, + the_type = #{theType}, + the_type_name = #{theTypeName}, + the_platoon = #{thePlatoon}, + the_column = #{theColumn}, + the_floor = #{theFloor}, + cargo_status = #{cargoStatus}, + locked = #{locked}, + cargo_hight = #{cargoHight}, + iss_double = #{issDouble}, + group_coding_no = #{groupCodingNo}, + group_coding = #{groupCoding}, + cargo_space_logo = #{cargoSpaceLogo}, + this_cargo_area = #{thisCargoArea}, + + where stock_id = #{stockId} + + + + delete from view_stock_warning where stock_id = #{stockId} + + + + delete from view_stock_warning where stock_id in + + #{stockId} + + + \ No newline at end of file diff --git a/ruoyi-ui/src/api/search/ViewStockSecure.js b/ruoyi-ui/src/api/search/ViewStockSecure.js new file mode 100644 index 0000000..dda7523 --- /dev/null +++ b/ruoyi-ui/src/api/search/ViewStockSecure.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询安全库存查询列表 +export function listViewStockSecure(query) { + return request({ + url: '/search/ViewStockSecure/list', + method: 'get', + params: query + }) +} + +// 查询安全库存查询详细 +export function getViewStockSecure(stockId) { + return request({ + url: '/search/ViewStockSecure/' + stockId, + method: 'get' + }) +} + +// 新增安全库存查询 +export function addViewStockSecure(data) { + return request({ + url: '/search/ViewStockSecure', + method: 'post', + data: data + }) +} + +// 修改安全库存查询 +export function updateViewStockSecure(data) { + return request({ + url: '/search/ViewStockSecure', + method: 'put', + data: data + }) +} + +// 删除安全库存查询 +export function delViewStockSecure(stockId) { + return request({ + url: '/search/ViewStockSecure/' + stockId, + method: 'delete' + }) +} diff --git a/ruoyi-ui/src/api/search/ViewStockWarning.js b/ruoyi-ui/src/api/search/ViewStockWarning.js new file mode 100644 index 0000000..db89d12 --- /dev/null +++ b/ruoyi-ui/src/api/search/ViewStockWarning.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询预警库存查询列表 +export function listViewStockWarning(query) { + return request({ + url: '/search/ViewStockWarning/list', + method: 'get', + params: query + }) +} + +// 查询预警库存查询详细 +export function getViewStockWarning(stockId) { + return request({ + url: '/search/ViewStockWarning/' + stockId, + method: 'get' + }) +} + +// 新增预警库存查询 +export function addViewStockWarning(data) { + return request({ + url: '/search/ViewStockWarning', + method: 'post', + data: data + }) +} + +// 修改预警库存查询 +export function updateViewStockWarning(data) { + return request({ + url: '/search/ViewStockWarning', + method: 'put', + data: data + }) +} + +// 删除预警库存查询 +export function delViewStockWarning(stockId) { + return request({ + url: '/search/ViewStockWarning/' + stockId, + method: 'delete' + }) +} diff --git a/ruoyi-ui/src/views/search/ViewStockSecure/index.vue b/ruoyi-ui/src/views/search/ViewStockSecure/index.vue new file mode 100644 index 0000000..d636eef --- /dev/null +++ b/ruoyi-ui/src/views/search/ViewStockSecure/index.vue @@ -0,0 +1,956 @@ + + + diff --git a/ruoyi-ui/src/views/search/ViewStockWarning/index.vue b/ruoyi-ui/src/views/search/ViewStockWarning/index.vue new file mode 100644 index 0000000..80dda2d --- /dev/null +++ b/ruoyi-ui/src/views/search/ViewStockWarning/index.vue @@ -0,0 +1,972 @@ + + +