From 7a3d057db2a3bfd226b21907201bc71e0ed2356c Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Fri, 18 Oct 2024 10:26:01 +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=E5=85=A5=E5=BA=93=E7=89=A9=E6=96=99?= =?UTF-8?q?=E8=A1=A8warehousing=5Fin=5Fdetail=E5=92=8C=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E4=B8=AD=E5=AF=B9=E5=BA=94=E7=9A=84=E5=89=8D=E7=AB=AF=E6=89=80?= =?UTF-8?q?=E6=9C=89=E4=BB=A3=E7=A0=81=E5=92=8C=E5=90=8E=E7=AB=AF=E6=89=80?= =?UTF-8?q?=E6=9C=89=E4=BB=A3=E7=A0=81=20=E5=92=8C=E5=AF=B9=E5=BA=94?= =?UTF-8?q?=E7=9A=84=E7=B3=BB=E7=BB=9F=E8=8F=9C=E5=8D=95=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/OutboundDetailController.java | 2 - .../WarehousingInDetailController.java | 164 ------------- .../domain/WarehousingInDetail.java | 230 ------------------ .../mapper/WarehousingInDetailMapper.java | 62 ----- .../service/IWarehousingInDetailService.java | 61 ----- .../impl/WarehousingInDetailServiceImpl.java | 95 -------- .../storehouse/WarehousingInDetailMapper.xml | 112 --------- .../storehouse/warehousingInDetail/add.html | 105 -------- .../storehouse/warehousingInDetail/edit.html | 106 -------- .../warehousingInDetail.html | 153 ------------ 10 files changed, 1090 deletions(-) delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/WarehousingInDetailController.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/storehouse/domain/WarehousingInDetail.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/storehouse/mapper/WarehousingInDetailMapper.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/IWarehousingInDetailService.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/impl/WarehousingInDetailServiceImpl.java delete mode 100644 ruoyi-admin/src/main/resources/mapper/storehouse/WarehousingInDetailMapper.xml delete mode 100644 ruoyi-admin/src/main/resources/templates/storehouse/warehousingInDetail/add.html delete mode 100644 ruoyi-admin/src/main/resources/templates/storehouse/warehousingInDetail/edit.html delete mode 100644 ruoyi-admin/src/main/resources/templates/storehouse/warehousingInDetail/warehousingInDetail.html diff --git a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/OutboundDetailController.java b/ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/OutboundDetailController.java index 27b8055a..b01be5c0 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/OutboundDetailController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/OutboundDetailController.java @@ -1,11 +1,9 @@ package com.ruoyi.storehouse.controller; -import java.sql.SQLOutput; import java.util.List; import java.util.Objects; import com.alibaba.fastjson.JSONObject; -import com.ruoyi.storehouse.domain.WarehousingInDetail; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/WarehousingInDetailController.java b/ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/WarehousingInDetailController.java deleted file mode 100644 index ac5ee10e..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/WarehousingInDetailController.java +++ /dev/null @@ -1,164 +0,0 @@ -package com.ruoyi.storehouse.controller; - -import com.alibaba.fastjson.JSONObject; -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.WarehousingInDetail; -import com.ruoyi.storehouse.service.IWarehousingInDetailService; -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.Arrays; -import java.util.List; -import java.util.Objects; - -import static com.ruoyi.common.core.domain.AjaxResult.Type.SUCCESS; - -/** - * 入库物料Controller - * - * @author ruoyi - * @date 2023-04-27 - */ -@Controller -@RequestMapping("/storehouse/warehousingInDetail") -public class WarehousingInDetailController extends BaseController -{ - private String prefix = "storehouse/warehousingInDetail"; - - @Autowired - private IWarehousingInDetailService warehousingInDetailService; - - @RequiresPermissions("storehouse:warehousingInDetail:view") - @GetMapping() - public String warehousingInDetail() - { - return prefix + "/warehousingInDetail"; - } - - /** - * 查询入库物料列表 - */ - @RequiresPermissions("storehouse:warehousingInDetail:list") - @PostMapping("/list") - @ResponseBody - public TableDataInfo list(WarehousingInDetail warehousingInDetail) - { - startPage(); - List list = warehousingInDetailService.selectWarehousingInDetailList(warehousingInDetail); - return getDataTable(list); - } - - /** - * 导出入库物料列表 - */ - @RequiresPermissions("storehouse:warehousingInDetail:export") - @Log(title = "入库物料", businessType = BusinessType.EXPORT) - @PostMapping("/export") - @ResponseBody - public AjaxResult export(WarehousingInDetail warehousingInDetail) - { - List list = warehousingInDetailService.selectWarehousingInDetailList(warehousingInDetail); - ExcelUtil util = new ExcelUtil(WarehousingInDetail.class); - return util.exportExcel(list, "入库物料数据"); - } - - /** - * 新增入库物料 - */ - @GetMapping("/add") - public String add() - { - return prefix + "/add"; - } - - /** - * 新增保存入库物料 - */ - @RequiresPermissions("storehouse:warehousingInDetail:add") - @Log(title = "入库物料", businessType = BusinessType.INSERT) - @PostMapping("/add") - @ResponseBody - public AjaxResult addSave(WarehousingInDetail warehousingInDetail) - { - return toAjax(warehousingInDetailService.insertWarehousingInDetail(warehousingInDetail)); - } - - /** - * 修改入库物料 - */ - @GetMapping("/edit/{warehousingDetailId}") - public String edit(@PathVariable("warehousingDetailId") Long warehousingDetailId, ModelMap mmap) - { - WarehousingInDetail warehousingInDetail = warehousingInDetailService.selectWarehousingInDetailById(warehousingDetailId); - mmap.put("warehousingInDetail", warehousingInDetail); - return prefix + "/edit"; - } - - /** - * 修改保存入库物料 - */ - @RequiresPermissions("storehouse:warehousingInDetail:edit") - @Log(title = "入库物料", businessType = BusinessType.UPDATE) - @PostMapping("/edit") - @ResponseBody - public AjaxResult editSave(WarehousingInDetail warehousingInDetail) - { - return toAjax(warehousingInDetailService.updateWarehousingInDetail(warehousingInDetail)); - } - - /** - * 删除入库物料 - */ - @RequiresPermissions("storehouse:warehousingInDetail:remove") - @Log(title = "入库物料", businessType = BusinessType.DELETE) - @PostMapping( "/remove") - @ResponseBody - public AjaxResult remove(String ids) - { - return toAjax(warehousingInDetailService.deleteWarehousingInDetailByIds(ids)); - } - - - @PostMapping("/addEditSave") - @ResponseBody - public AjaxResult addEditSave(@RequestParam(value = "data") String data) - { - - // 反序列化 - List warehousingInDetailList = JSONObject.parseArray(data, WarehousingInDetail.class); - - - for (int i=0;i idList = Arrays.asList(ids.split(",")); - for (int i=0;i selectWarehousingInDetailList(WarehousingInDetail warehousingInDetail); - - /** - * 新增入库物料 - * - * @param warehousingInDetail 入库物料 - * @return 结果 - */ - public int insertWarehousingInDetail(WarehousingInDetail warehousingInDetail); - - /** - * 修改入库物料 - * - * @param warehousingInDetail 入库物料 - * @return 结果 - */ - public int updateWarehousingInDetail(WarehousingInDetail warehousingInDetail); - - /** - * 删除入库物料 - * - * @param warehousingDetailId 入库物料ID - * @return 结果 - */ - public int deleteWarehousingInDetailById(Long warehousingDetailId); - - /** - * 批量删除入库物料 - * - * @param warehousingDetailIds 需要删除的数据ID - * @return 结果 - */ - public int deleteWarehousingInDetailByIds(String[] warehousingDetailIds); -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/IWarehousingInDetailService.java b/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/IWarehousingInDetailService.java deleted file mode 100644 index 9d6147c1..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/IWarehousingInDetailService.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.ruoyi.storehouse.service; - -import java.util.List; -import com.ruoyi.storehouse.domain.WarehousingInDetail; - -/** - * 入库物料Service接口 - * - * @author ruoyi - * @date 2023-04-27 - */ -public interface IWarehousingInDetailService -{ - /** - * 查询入库物料 - * - * @param warehousingDetailId 入库物料ID - * @return 入库物料 - */ - public WarehousingInDetail selectWarehousingInDetailById(Long warehousingDetailId); - - /** - * 查询入库物料列表 - * - * @param warehousingInDetail 入库物料 - * @return 入库物料集合 - */ - public List selectWarehousingInDetailList(WarehousingInDetail warehousingInDetail); - - /** - * 新增入库物料 - * - * @param warehousingInDetail 入库物料 - * @return 结果 - */ - public int insertWarehousingInDetail(WarehousingInDetail warehousingInDetail); - - /** - * 修改入库物料 - * - * @param warehousingInDetail 入库物料 - * @return 结果 - */ - public int updateWarehousingInDetail(WarehousingInDetail warehousingInDetail); - - /** - * 批量删除入库物料 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - public int deleteWarehousingInDetailByIds(String ids); - - /** - * 删除入库物料信息 - * - * @param warehousingDetailId 入库物料ID - * @return 结果 - */ - public int deleteWarehousingInDetailById(Long warehousingDetailId); -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/impl/WarehousingInDetailServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/impl/WarehousingInDetailServiceImpl.java deleted file mode 100644 index 0991b644..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/impl/WarehousingInDetailServiceImpl.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.ruoyi.storehouse.service.impl; - -import com.ruoyi.common.core.text.Convert; -import com.ruoyi.storehouse.domain.WarehousingInDetail; -import com.ruoyi.storehouse.mapper.WarehousingInDetailMapper; -import com.ruoyi.storehouse.service.IWarehousingInDetailService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - * 入库物料Service业务层处理 - * - * @author ruoyi - * @date 2023-04-27 - */ -@Service -public class WarehousingInDetailServiceImpl implements IWarehousingInDetailService -{ - @Autowired - private WarehousingInDetailMapper warehousingInDetailMapper; - - /** - * 查询入库物料 - * - * @param warehousingDetailId 入库物料ID - * @return 入库物料 - */ - @Override - public WarehousingInDetail selectWarehousingInDetailById(Long warehousingDetailId) - { - return warehousingInDetailMapper.selectWarehousingInDetailById(warehousingDetailId); - } - - /** - * 查询入库物料列表 - * - * @param warehousingInDetail 入库物料 - * @return 入库物料 - */ - @Override - public List selectWarehousingInDetailList(WarehousingInDetail warehousingInDetail) - { - return warehousingInDetailMapper.selectWarehousingInDetailList(warehousingInDetail); - } - - /** - * 新增入库物料 - * - * @param warehousingInDetail 入库物料 - * @return 结果 - */ - @Override - public int insertWarehousingInDetail(WarehousingInDetail warehousingInDetail) - { - return warehousingInDetailMapper.insertWarehousingInDetail(warehousingInDetail); - } - - /** - * 修改入库物料 - * - * @param warehousingInDetail 入库物料 - * @return 结果 - */ - @Override - public int updateWarehousingInDetail(WarehousingInDetail warehousingInDetail) - { - return warehousingInDetailMapper.updateWarehousingInDetail(warehousingInDetail); - } - - /** - * 删除入库物料对象 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - @Override - public int deleteWarehousingInDetailByIds(String ids) - { - return warehousingInDetailMapper.deleteWarehousingInDetailByIds(Convert.toStrArray(ids)); - } - - /** - * 删除入库物料信息 - * - * @param warehousingDetailId 入库物料ID - * @return 结果 - */ - @Override - public int deleteWarehousingInDetailById(Long warehousingDetailId) - { - return warehousingInDetailMapper.deleteWarehousingInDetailById(warehousingDetailId); - } -} diff --git a/ruoyi-admin/src/main/resources/mapper/storehouse/WarehousingInDetailMapper.xml b/ruoyi-admin/src/main/resources/mapper/storehouse/WarehousingInDetailMapper.xml deleted file mode 100644 index 742cc408..00000000 --- a/ruoyi-admin/src/main/resources/mapper/storehouse/WarehousingInDetailMapper.xml +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - select warehousing_detail_id, warehousing_number, material_code, material_name, material_type, specification_model, type_machine, inventory_unit, warehousing_quantity, unit_price, amount_money, description, batch_number, manufacturer_batch_number, storage_location from warehousing_in_detail - - - - - - - - insert into warehousing_in_detail - - warehousing_number, - material_code, - material_name, - material_type, - specification_model, - type_machine, - inventory_unit, - warehousing_quantity, - unit_price, - amount_money, - description, - batch_number, - manufacturer_batch_number, - storage_location, - - - #{warehousingNumber}, - #{materialCode}, - #{materialName}, - #{materialType}, - #{specificationModel}, - #{typeMachine}, - #{inventoryUnit}, - #{warehousingQuantity}, - #{unitPrice}, - #{amountMoney}, - #{description}, - #{batchNumber}, - #{manufacturerBatchNumber}, - #{storageLocation}, - - - - - update warehousing_in_detail - - warehousing_number = #{warehousingNumber}, - material_code = #{materialCode}, - material_name = #{materialName}, - material_type = #{materialType}, - specification_model = #{specificationModel}, - type_machine = #{typeMachine}, - inventory_unit = #{inventoryUnit}, - warehousing_quantity = #{warehousingQuantity}, - unit_price = #{unitPrice}, - amount_money = #{amountMoney}, - description = #{description}, - batch_number = #{batchNumber}, - manufacturer_batch_number = #{manufacturerBatchNumber}, - storage_location = #{storageLocation}, - - where warehousing_detail_id = #{warehousingDetailId} - - - - delete from warehousing_in_detail where warehousing_detail_id = #{warehousingDetailId} - - - - delete from warehousing_in_detail where warehousing_detail_id in - - #{warehousingDetailId} - - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingInDetail/add.html b/ruoyi-admin/src/main/resources/templates/storehouse/warehousingInDetail/add.html deleted file mode 100644 index b38c3489..00000000 --- a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingInDetail/add.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingInDetail/edit.html b/ruoyi-admin/src/main/resources/templates/storehouse/warehousingInDetail/edit.html deleted file mode 100644 index f6ec3607..00000000 --- a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingInDetail/edit.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - -
-
- -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingInDetail/warehousingInDetail.html b/ruoyi-admin/src/main/resources/templates/storehouse/warehousingInDetail/warehousingInDetail.html deleted file mode 100644 index afa413e0..00000000 --- a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingInDetail/warehousingInDetail.html +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - -
-
-
-
-
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • -  搜索 -  重置 -
  • -
-
-
-
- - -
-
-
-
-
- - - - \ No newline at end of file