From 04a334ab553119c82a3635e8444c64ad502135d0 Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Fri, 18 Oct 2024 09:30:55 +0800 Subject: [PATCH] =?UTF-8?q?[delete]=20=E5=88=A0=E9=99=A4=E6=97=A7=E7=89=88?= =?UTF-8?q?=E6=97=A0=E7=94=A8=E7=9A=84=E7=9B=98=E7=82=B9=E8=A1=A8warehousi?= =?UTF-8?q?ng=5Fcheck=5Finfo=E5=92=8C=E7=B3=BB=E7=BB=9F=E4=B8=AD=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E7=9A=84=E5=89=8D=E7=AB=AF=E6=89=80=E6=9C=89=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=92=8C=E5=90=8E=E7=AB=AF=E6=89=80=E6=9C=89=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WarehousingCheckInfoController.java | 130 -- .../domain/WarehousingCheckInfo.java | 188 --- .../mapper/WarehousingCheckInfoMapper.java | 61 - .../service/IWarehousingCheckInfoService.java | 69 - .../impl/WarehousingCheckInfoServiceImpl.java | 102 -- .../storehouse/WarehousingCheckInfoMapper.xml | 103 -- .../storehouse/warehousingCheckInfo/add.html | 1471 ---------------- .../storehouse/warehousingCheckInfo/edit.html | 1478 ----------------- .../warehousingCheckInfo.html | 154 -- 9 files changed, 3756 deletions(-) delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/WarehousingCheckInfoController.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/storehouse/domain/WarehousingCheckInfo.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/storehouse/mapper/WarehousingCheckInfoMapper.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/IWarehousingCheckInfoService.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/impl/WarehousingCheckInfoServiceImpl.java delete mode 100644 ruoyi-admin/src/main/resources/mapper/storehouse/WarehousingCheckInfoMapper.xml delete mode 100644 ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/add.html delete mode 100644 ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/edit.html delete mode 100644 ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/warehousingCheckInfo.html diff --git a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/WarehousingCheckInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/WarehousingCheckInfoController.java deleted file mode 100644 index ec2d1001..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/WarehousingCheckInfoController.java +++ /dev/null @@ -1,130 +0,0 @@ -package com.ruoyi.storehouse.controller; - -import com.ruoyi.ck.utils.Result; -import com.ruoyi.common.annotation.Log; -import com.ruoyi.common.core.controller.BaseController; -import com.ruoyi.common.core.domain.AjaxResult; -import com.ruoyi.common.core.page.TableDataInfo; -import com.ruoyi.common.enums.BusinessType; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.storehouse.domain.WarehousingCheckInfo; -import com.ruoyi.storehouse.service.IWarehousingCheckInfoService; -import org.apache.shiro.authz.annotation.RequiresPermissions; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.ui.ModelMap; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * 盘点Controller - * - * @author ruoyi - * @date 2023-05-16 - */ -@Controller -@RequestMapping("/storehouse/warehousingCheckInfo") -public class WarehousingCheckInfoController extends BaseController -{ - private String prefix = "storehouse/warehousingCheckInfo"; - - @Autowired - private IWarehousingCheckInfoService warehousingCheckInfoService; - - @RequiresPermissions("storehouse:warehousingCheckInfo:view") - @GetMapping() - public String warehousingCheckInfo() - { - return prefix + "/warehousingCheckInfo"; - } - - /** - * 查询盘点列表 - */ - @RequiresPermissions("storehouse:warehousingCheckInfo:list") - @PostMapping("/list") - @ResponseBody - public TableDataInfo list(WarehousingCheckInfo warehousingCheckInfo) - { - startPage(); - List list = warehousingCheckInfoService.selectWarehousingCheckInfoList(warehousingCheckInfo); - return getDataTable(list); - } - - /** - * 导出盘点列表 - */ - @RequiresPermissions("storehouse:warehousingCheckInfo:export") - @Log(title = "盘点", businessType = BusinessType.EXPORT) - @PostMapping("/export") - @ResponseBody - public AjaxResult export(WarehousingCheckInfo warehousingCheckInfo) - { - List list = warehousingCheckInfoService.selectWarehousingCheckInfoList(warehousingCheckInfo); - ExcelUtil util = new ExcelUtil(WarehousingCheckInfo.class); - return util.exportExcel(list, "盘点数据"); - } - - /** - * 新增盘点 - */ - @GetMapping("/add") - public String add() - { - return prefix + "/add"; - } - - /** - * 新增保存盘点 - */ - @RequiresPermissions("storehouse:warehousingCheckInfo:add") - @Log(title = "盘点", businessType = BusinessType.INSERT) - @PostMapping("/add") - @ResponseBody - public AjaxResult addSave(WarehousingCheckInfo warehousingCheckInfo) - { - return toAjax(warehousingCheckInfoService.insertWarehousingCheckInfo(warehousingCheckInfo)); - } - - /** - * 修改盘点 - */ - @GetMapping("/edit/{warehousingCheckInfoId}") - public String edit(@PathVariable("warehousingCheckInfoId") Long warehousingCheckInfoId, ModelMap mmap) - { - WarehousingCheckInfo warehousingCheckInfo = warehousingCheckInfoService.selectWarehousingCheckInfoById(warehousingCheckInfoId); - mmap.put("warehousingCheckInfo", warehousingCheckInfo); - return prefix + "/edit"; - } - - /** - * 修改保存盘点 - */ - @RequiresPermissions("storehouse:warehousingCheckInfo:edit") - @Log(title = "盘点", businessType = BusinessType.UPDATE) - @PostMapping("/edit") - @ResponseBody - public AjaxResult editSave(WarehousingCheckInfo warehousingCheckInfo) - { - return toAjax(warehousingCheckInfoService.updateWarehousingCheckInfo(warehousingCheckInfo)); - } - - /** - * 删除盘点 - */ - @RequiresPermissions("storehouse:warehousingCheckInfo:remove") - @Log(title = "盘点", businessType = BusinessType.DELETE) - @PostMapping( "/remove") - @ResponseBody - public AjaxResult remove(String ids) - { - return toAjax(warehousingCheckInfoService.deleteWarehousingCheckInfoByIds(ids)); - } - - @PostMapping("/getId") - @ResponseBody - public Result getId() throws Exception { - return Result.getSuccessResult(warehousingCheckInfoService.getId()); - } -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/domain/WarehousingCheckInfo.java b/ruoyi-admin/src/main/java/com/ruoyi/storehouse/domain/WarehousingCheckInfo.java deleted file mode 100644 index f4dd229b..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/domain/WarehousingCheckInfo.java +++ /dev/null @@ -1,188 +0,0 @@ -package com.ruoyi.storehouse.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; - -/** - * 盘点对象 warehousing_check_info - * - * @author ruoyi - * @date 2023-05-16 - */ -public class WarehousingCheckInfo extends BaseEntity -{ - private static final long serialVersionUID = 1L; - - /** 盘点id */ - private Long warehousingCheckInfoId; - - /** 盘点单号 */ - @Excel(name = "盘点单号") - private String warehousingCheckNumber; - - /** 盘点人名 */ - @Excel(name = "盘点人名") - private String warehousingCheckPerson; - - /** 仓库号 */ - @Excel(name = "仓库号") - private String stockNumber; - - /** 仓库名称 */ - @Excel(name = "仓库名称") - private String stockName; - - /** 盘点日期 */ - @Excel(name = "盘点日期") - private String warehousingCheckDate; - - /** 物料种类 */ - @Excel(name = "物料种类") - private String materialType; - - /** 更新否 */ - @Excel(name = "更新否") - private String updateFlag; - - /** 录入时间 */ - private String firstAddTime; - - /** 修改时间 */ - private String updateInfoTime; - - /** 备用一 */ - private String standbyOne; - - /** 备用二 */ - private String standbyTwo; - - public void setWarehousingCheckInfoId(Long warehousingCheckInfoId) - { - this.warehousingCheckInfoId = warehousingCheckInfoId; - } - - public Long getWarehousingCheckInfoId() - { - return warehousingCheckInfoId; - } - public void setWarehousingCheckNumber(String warehousingCheckNumber) - { - this.warehousingCheckNumber = warehousingCheckNumber; - } - - public String getWarehousingCheckNumber() - { - return warehousingCheckNumber; - } - public void setWarehousingCheckPerson(String warehousingCheckPerson) - { - this.warehousingCheckPerson = warehousingCheckPerson; - } - - public String getWarehousingCheckPerson() - { - return warehousingCheckPerson; - } - public void setStockNumber(String stockNumber) - { - this.stockNumber = stockNumber; - } - - public String getStockNumber() - { - return stockNumber; - } - public void setStockName(String stockName) - { - this.stockName = stockName; - } - - public String getStockName() - { - return stockName; - } - public void setWarehousingCheckDate(String warehousingCheckDate) - { - this.warehousingCheckDate = warehousingCheckDate; - } - - public String getWarehousingCheckDate() - { - return warehousingCheckDate; - } - public void setMaterialType(String materialType) - { - this.materialType = materialType; - } - - public String getMaterialType() - { - return materialType; - } - public void setUpdateFlag(String updateFlag) - { - this.updateFlag = updateFlag; - } - - public String getUpdateFlag() - { - return updateFlag; - } - public void setFirstAddTime(String firstAddTime) - { - this.firstAddTime = firstAddTime; - } - - public String getFirstAddTime() - { - return firstAddTime; - } - public void setUpdateInfoTime(String updateInfoTime) - { - this.updateInfoTime = updateInfoTime; - } - - public String getUpdateInfoTime() - { - return updateInfoTime; - } - public void setStandbyOne(String standbyOne) - { - this.standbyOne = standbyOne; - } - - public String getStandbyOne() - { - return standbyOne; - } - public void setStandbyTwo(String standbyTwo) - { - this.standbyTwo = standbyTwo; - } - - public String getStandbyTwo() - { - return standbyTwo; - } - - @Override - public String toString() { - return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("warehousingCheckInfoId", getWarehousingCheckInfoId()) - .append("warehousingCheckNumber", getWarehousingCheckNumber()) - .append("warehousingCheckPerson", getWarehousingCheckPerson()) - .append("stockNumber", getStockNumber()) - .append("stockName", getStockName()) - .append("warehousingCheckDate", getWarehousingCheckDate()) - .append("materialType", getMaterialType()) - .append("remark", getRemark()) - .append("updateFlag", getUpdateFlag()) - .append("firstAddTime", getFirstAddTime()) - .append("updateInfoTime", getUpdateInfoTime()) - .append("standbyOne", getStandbyOne()) - .append("standbyTwo", getStandbyTwo()) - .toString(); - } -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/mapper/WarehousingCheckInfoMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/storehouse/mapper/WarehousingCheckInfoMapper.java deleted file mode 100644 index 2b7c8f13..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/mapper/WarehousingCheckInfoMapper.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.ruoyi.storehouse.mapper; - -import java.util.List; -import com.ruoyi.storehouse.domain.WarehousingCheckInfo; - -/** - * 盘点Mapper接口 - * - * @author ruoyi - * @date 2023-05-16 - */ -public interface WarehousingCheckInfoMapper -{ - /** - * 查询盘点 - * - * @param warehousingCheckInfoId 盘点ID - * @return 盘点 - */ - public WarehousingCheckInfo selectWarehousingCheckInfoById(Long warehousingCheckInfoId); - - /** - * 查询盘点列表 - * - * @param warehousingCheckInfo 盘点 - * @return 盘点集合 - */ - public List selectWarehousingCheckInfoList(WarehousingCheckInfo warehousingCheckInfo); - - /** - * 新增盘点 - * - * @param warehousingCheckInfo 盘点 - * @return 结果 - */ - public int insertWarehousingCheckInfo(WarehousingCheckInfo warehousingCheckInfo); - - /** - * 修改盘点 - * - * @param warehousingCheckInfo 盘点 - * @return 结果 - */ - public int updateWarehousingCheckInfo(WarehousingCheckInfo warehousingCheckInfo); - - /** - * 删除盘点 - * - * @param warehousingCheckInfoId 盘点ID - * @return 结果 - */ - public int deleteWarehousingCheckInfoById(Long warehousingCheckInfoId); - - /** - * 批量删除盘点 - * - * @param warehousingCheckInfoIds 需要删除的数据ID - * @return 结果 - */ - public int deleteWarehousingCheckInfoByIds(String[] warehousingCheckInfoIds); -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/IWarehousingCheckInfoService.java b/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/IWarehousingCheckInfoService.java deleted file mode 100644 index c327fb26..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/IWarehousingCheckInfoService.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.ruoyi.storehouse.service; - -import com.ruoyi.storehouse.domain.WarehousingCheckInfo; - -import java.util.List; - -/** - * 盘点Service接口 - * - * @author ruoyi - * @date 2023-05-16 - */ -public interface IWarehousingCheckInfoService -{ - /** - * 查询盘点 - * - * @param warehousingCheckInfoId 盘点ID - * @return 盘点 - */ - public WarehousingCheckInfo selectWarehousingCheckInfoById(Long warehousingCheckInfoId); - - /** - * 查询盘点列表 - * - * @param warehousingCheckInfo 盘点 - * @return 盘点集合 - */ - public List selectWarehousingCheckInfoList(WarehousingCheckInfo warehousingCheckInfo); - - /** - * 新增盘点 - * - * @param warehousingCheckInfo 盘点 - * @return 结果 - */ - public int insertWarehousingCheckInfo(WarehousingCheckInfo warehousingCheckInfo); - - /** - * 修改盘点 - * - * @param warehousingCheckInfo 盘点 - * @return 结果 - */ - public int updateWarehousingCheckInfo(WarehousingCheckInfo warehousingCheckInfo); - - /** - * 批量删除盘点 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - public int deleteWarehousingCheckInfoByIds(String ids); - - /** - * 删除盘点信息 - * - * @param warehousingCheckInfoId 盘点ID - * @return 结果 - */ - public int deleteWarehousingCheckInfoById(Long warehousingCheckInfoId); - - /** - * 获取盘点单号 - * @return - */ - public String getId(); - -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/impl/WarehousingCheckInfoServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/impl/WarehousingCheckInfoServiceImpl.java deleted file mode 100644 index 3011cd62..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/impl/WarehousingCheckInfoServiceImpl.java +++ /dev/null @@ -1,102 +0,0 @@ -package com.ruoyi.storehouse.service.impl; - -import com.ruoyi.common.core.text.Convert; -import com.ruoyi.storehouse.domain.WarehousingCheckInfo; -import com.ruoyi.storehouse.mapper.WarehousingCheckInfoMapper; -import com.ruoyi.storehouse.service.IWarehousingCheckInfoService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.text.SimpleDateFormat; -import java.util.List; - -/** - * 盘点Service业务层处理 - * - * @author ruoyi - * @date 2023-05-16 - */ -@Service -public class WarehousingCheckInfoServiceImpl implements IWarehousingCheckInfoService -{ - @Autowired - private WarehousingCheckInfoMapper warehousingCheckInfoMapper; - - /** - * 查询盘点 - * - * @param warehousingCheckInfoId 盘点ID - * @return 盘点 - */ - @Override - public WarehousingCheckInfo selectWarehousingCheckInfoById(Long warehousingCheckInfoId) - { - return warehousingCheckInfoMapper.selectWarehousingCheckInfoById(warehousingCheckInfoId); - } - - /** - * 查询盘点列表 - * - * @param warehousingCheckInfo 盘点 - * @return 盘点 - */ - @Override - public List selectWarehousingCheckInfoList(WarehousingCheckInfo warehousingCheckInfo) - { - return warehousingCheckInfoMapper.selectWarehousingCheckInfoList(warehousingCheckInfo); - } - - /** - * 新增盘点 - * - * @param warehousingCheckInfo 盘点 - * @return 结果 - */ - @Override - public int insertWarehousingCheckInfo(WarehousingCheckInfo warehousingCheckInfo) - { - return warehousingCheckInfoMapper.insertWarehousingCheckInfo(warehousingCheckInfo); - } - - /** - * 修改盘点 - * - * @param warehousingCheckInfo 盘点 - * @return 结果 - */ - @Override - public int updateWarehousingCheckInfo(WarehousingCheckInfo warehousingCheckInfo) - { - return warehousingCheckInfoMapper.updateWarehousingCheckInfo(warehousingCheckInfo); - } - - /** - * 删除盘点对象 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - @Override - public int deleteWarehousingCheckInfoByIds(String ids) - { - return warehousingCheckInfoMapper.deleteWarehousingCheckInfoByIds(Convert.toStrArray(ids)); - } - - /** - * 删除盘点信息 - * - * @param warehousingCheckInfoId 盘点ID - * @return 结果 - */ - @Override - public int deleteWarehousingCheckInfoById(Long warehousingCheckInfoId) - { - return warehousingCheckInfoMapper.deleteWarehousingCheckInfoById(warehousingCheckInfoId); - } - - @Override - public String getId() { - String time = new SimpleDateFormat("yyyyMMddHHmmssSSS").format(System.currentTimeMillis()); - return "CH" + time.substring(2); - } -} diff --git a/ruoyi-admin/src/main/resources/mapper/storehouse/WarehousingCheckInfoMapper.xml b/ruoyi-admin/src/main/resources/mapper/storehouse/WarehousingCheckInfoMapper.xml deleted file mode 100644 index 7b838f0a..00000000 --- a/ruoyi-admin/src/main/resources/mapper/storehouse/WarehousingCheckInfoMapper.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - select warehousing_check_info_id, warehousing_check_number, warehousing_check_person, stock_number, stock_name, warehousing_check_date, material_type, remark, update_flag, first_add_time, update_info_time, standby_one, standby_two from warehousing_check_info - - - - - - - - insert into warehousing_check_info - - warehousing_check_number, - warehousing_check_person, - stock_number, - stock_name, - warehousing_check_date, - material_type, - remark, - update_flag, - standby_one, - standby_two, - first_add_time, - - - #{warehousingCheckNumber}, - #{warehousingCheckPerson}, - #{stockNumber}, - #{stockName}, - #{warehousingCheckDate}, - #{materialType}, - #{remark}, - #{updateFlag}, - #{standbyOne}, - #{standbyTwo}, - now(), - - - - - update warehousing_check_info - - warehousing_check_number = #{warehousingCheckNumber}, - warehousing_check_person = #{warehousingCheckPerson}, - stock_number = #{stockNumber}, - stock_name = #{stockName}, - warehousing_check_date = #{warehousingCheckDate}, - material_type = #{materialType}, - remark = #{remark}, - update_flag = #{updateFlag}, - standby_one = #{standbyOne}, - standby_two = #{standbyTwo}, - update_info_time = CONCAT_WS(',',NOW(),update_info_time), - - where warehousing_check_info_id = #{warehousingCheckInfoId} - - - - delete from warehousing_check_info where warehousing_check_info_id = #{warehousingCheckInfoId} - - - - delete from warehousing_check_info where warehousing_check_info_id in - - #{warehousingCheckInfoId} - - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/add.html b/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/add.html deleted file mode 100644 index a5f298b9..00000000 --- a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/add.html +++ /dev/null @@ -1,1471 +0,0 @@ - - - - - - - - - - - -
-
-
- -
- -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- -
-
-
- -
-
- - -
-
-
-
- -
- -
-
-
- -
- -
-
- -
-
- - -
-
-

-

物料信息

-  选择信息 - - - - - -
-
- -
- -
-
-
- -
-
-
-
- - - -
- - - - - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/edit.html b/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/edit.html deleted file mode 100644 index 42034954..00000000 --- a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/edit.html +++ /dev/null @@ -1,1478 +0,0 @@ - - - - - - - - - - - -
-
- -
- -
- -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- -
-
-
- -
-
- - -
-
-
-
- -
- -
-
-
- -
- -
-
- - - - - - - - -
-
- -
-
-

-

物料信息

-  选择物料 -  删除物料 - - - - - -
-
- -
- -
-
-
- -
-
-
-
- - - -
- - - - - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/warehousingCheckInfo.html b/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/warehousingCheckInfo.html deleted file mode 100644 index 8ced4781..00000000 --- a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/warehousingCheckInfo.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - -
-
-
-
-
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - - - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • -  搜索 -  重置 -
  • -
-
-
-
- - -
-
-
-
-
- - - - \ No newline at end of file