diff --git a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/WarehousingCheckDetailController.java b/ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/WarehousingCheckDetailController.java deleted file mode 100644 index 92e05330..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/WarehousingCheckDetailController.java +++ /dev/null @@ -1,173 +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.WarehousingCheckDetail; -import com.ruoyi.storehouse.service.IWarehousingCheckDetailService; -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-05-24 - */ -@Controller -@RequestMapping("/storehouse/warehousingCheckDetail") -public class WarehousingCheckDetailController extends BaseController -{ - private String prefix = "storehouse/warehousingCheckDetail"; - - @Autowired - private IWarehousingCheckDetailService warehousingCheckDetailService; - - @RequiresPermissions("storehouse:warehousingCheckDetail:view") - @GetMapping() - public String warehousingCheckDetail() - { - return prefix + "/warehousingCheckDetail"; - } - - /** - * 查询盘点物料列表 - */ - @RequiresPermissions("storehouse:warehousingCheckDetail:list") - @PostMapping("/list") - @ResponseBody - public TableDataInfo list(WarehousingCheckDetail warehousingCheckDetail) - { - startPage(); - List list = warehousingCheckDetailService.selectWarehousingCheckDetailList(warehousingCheckDetail); - return getDataTable(list); - } - - /** - * 导出盘点物料列表 - */ - @RequiresPermissions("storehouse:warehousingCheckDetail:export") - @Log(title = "盘点物料", businessType = BusinessType.EXPORT) - @PostMapping("/export") - @ResponseBody - public AjaxResult export(WarehousingCheckDetail warehousingCheckDetail) - { - List list = warehousingCheckDetailService.selectWarehousingCheckDetailList(warehousingCheckDetail); - ExcelUtil util = new ExcelUtil(WarehousingCheckDetail.class); - return util.exportExcel(list, "盘点物料数据"); - } - - /** - * 新增盘点物料 - */ - @GetMapping("/add") - public String add() - { - return prefix + "/add"; - } - - /** - * 新增保存盘点物料 - */ - @RequiresPermissions("storehouse:warehousingCheckDetail:add") - @Log(title = "盘点物料", businessType = BusinessType.INSERT) - @PostMapping("/add") - @ResponseBody - public AjaxResult addSave(WarehousingCheckDetail warehousingCheckDetail) - { - return toAjax(warehousingCheckDetailService.insertWarehousingCheckDetail(warehousingCheckDetail)); - } - - /** - * 修改盘点物料 - */ - @GetMapping("/edit/{warehousingCheckDetailId}") - public String edit(@PathVariable("warehousingCheckDetailId") Long warehousingCheckDetailId, ModelMap mmap) - { - WarehousingCheckDetail warehousingCheckDetail = warehousingCheckDetailService.selectWarehousingCheckDetailById(warehousingCheckDetailId); - mmap.put("warehousingCheckDetail", warehousingCheckDetail); - return prefix + "/edit"; - } - - /** - * 修改保存盘点物料 - */ - @RequiresPermissions("storehouse:warehousingCheckDetail:edit") - @Log(title = "盘点物料", businessType = BusinessType.UPDATE) - @PostMapping("/edit") - @ResponseBody - public AjaxResult editSave(WarehousingCheckDetail warehousingCheckDetail) - { - return toAjax(warehousingCheckDetailService.updateWarehousingCheckDetail(warehousingCheckDetail)); - } - - /** - * 删除盘点物料 - */ - @RequiresPermissions("storehouse:warehousingCheckDetail:remove") - @Log(title = "盘点物料", businessType = BusinessType.DELETE) - @PostMapping( "/remove") - @ResponseBody - public AjaxResult remove(String ids) - { - return toAjax(warehousingCheckDetailService.deleteWarehousingCheckDetailByIds(ids)); - } - - - /** - * 新增保存领料物料 - */ - @RequiresPermissions("storehouse:warehousingCheckDetail:add") - @Log(title = "盘点物料", businessType = BusinessType.INSERT) - @PostMapping("/addEditSave") - @ResponseBody - public AjaxResult addEditSave(@RequestParam(value = "data") String data) - { -// 反序列化 - List warehousingCheckDetailList = JSONObject.parseArray(data, WarehousingCheckDetail.class); - - - for (int i=0;i idList = Arrays.asList(ids.split(",")); - for (int i=0;i selectWarehousingCheckDetailList(WarehousingCheckDetail warehousingCheckDetail); - - /** - * 新增盘点物料 - * - * @param warehousingCheckDetail 盘点物料 - * @return 结果 - */ - public int insertWarehousingCheckDetail(WarehousingCheckDetail warehousingCheckDetail); - - /** - * 修改盘点物料 - * - * @param warehousingCheckDetail 盘点物料 - * @return 结果 - */ - public int updateWarehousingCheckDetail(WarehousingCheckDetail warehousingCheckDetail); - - /** - * 删除盘点物料 - * - * @param warehousingCheckDetailId 盘点物料ID - * @return 结果 - */ - public int deleteWarehousingCheckDetailById(Long warehousingCheckDetailId); - - /** - * 批量删除盘点物料 - * - * @param warehousingCheckDetailIds 需要删除的数据ID - * @return 结果 - */ - public int deleteWarehousingCheckDetailByIds(String[] warehousingCheckDetailIds); -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/IWarehousingCheckDetailService.java b/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/IWarehousingCheckDetailService.java deleted file mode 100644 index 6cc9eeb0..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/IWarehousingCheckDetailService.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.ruoyi.storehouse.service; - -import java.util.List; -import com.ruoyi.storehouse.domain.WarehousingCheckDetail; - -/** - * 盘点物料Service接口 - * - * @author ruoyi - * @date 2023-05-24 - */ -public interface IWarehousingCheckDetailService -{ - /** - * 查询盘点物料 - * - * @param warehousingCheckDetailId 盘点物料ID - * @return 盘点物料 - */ - public WarehousingCheckDetail selectWarehousingCheckDetailById(Long warehousingCheckDetailId); - - /** - * 查询盘点物料列表 - * - * @param warehousingCheckDetail 盘点物料 - * @return 盘点物料集合 - */ - public List selectWarehousingCheckDetailList(WarehousingCheckDetail warehousingCheckDetail); - - /** - * 新增盘点物料 - * - * @param warehousingCheckDetail 盘点物料 - * @return 结果 - */ - public int insertWarehousingCheckDetail(WarehousingCheckDetail warehousingCheckDetail); - - /** - * 修改盘点物料 - * - * @param warehousingCheckDetail 盘点物料 - * @return 结果 - */ - public int updateWarehousingCheckDetail(WarehousingCheckDetail warehousingCheckDetail); - - /** - * 批量删除盘点物料 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - public int deleteWarehousingCheckDetailByIds(String ids); - - /** - * 删除盘点物料信息 - * - * @param warehousingCheckDetailId 盘点物料ID - * @return 结果 - */ - public int deleteWarehousingCheckDetailById(Long warehousingCheckDetailId); -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/impl/WarehousingCheckDetailServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/impl/WarehousingCheckDetailServiceImpl.java deleted file mode 100644 index 347934ea..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/impl/WarehousingCheckDetailServiceImpl.java +++ /dev/null @@ -1,94 +0,0 @@ -package com.ruoyi.storehouse.service.impl; - -import java.util.List; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import com.ruoyi.storehouse.mapper.WarehousingCheckDetailMapper; -import com.ruoyi.storehouse.domain.WarehousingCheckDetail; -import com.ruoyi.storehouse.service.IWarehousingCheckDetailService; -import com.ruoyi.common.core.text.Convert; - -/** - * 盘点物料Service业务层处理 - * - * @author ruoyi - * @date 2023-05-24 - */ -@Service -public class WarehousingCheckDetailServiceImpl implements IWarehousingCheckDetailService -{ - @Autowired - private WarehousingCheckDetailMapper warehousingCheckDetailMapper; - - /** - * 查询盘点物料 - * - * @param warehousingCheckDetailId 盘点物料ID - * @return 盘点物料 - */ - @Override - public WarehousingCheckDetail selectWarehousingCheckDetailById(Long warehousingCheckDetailId) - { - return warehousingCheckDetailMapper.selectWarehousingCheckDetailById(warehousingCheckDetailId); - } - - /** - * 查询盘点物料列表 - * - * @param warehousingCheckDetail 盘点物料 - * @return 盘点物料 - */ - @Override - public List selectWarehousingCheckDetailList(WarehousingCheckDetail warehousingCheckDetail) - { - return warehousingCheckDetailMapper.selectWarehousingCheckDetailList(warehousingCheckDetail); - } - - /** - * 新增盘点物料 - * - * @param warehousingCheckDetail 盘点物料 - * @return 结果 - */ - @Override - public int insertWarehousingCheckDetail(WarehousingCheckDetail warehousingCheckDetail) - { - return warehousingCheckDetailMapper.insertWarehousingCheckDetail(warehousingCheckDetail); - } - - /** - * 修改盘点物料 - * - * @param warehousingCheckDetail 盘点物料 - * @return 结果 - */ - @Override - public int updateWarehousingCheckDetail(WarehousingCheckDetail warehousingCheckDetail) - { - return warehousingCheckDetailMapper.updateWarehousingCheckDetail(warehousingCheckDetail); - } - - /** - * 删除盘点物料对象 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - @Override - public int deleteWarehousingCheckDetailByIds(String ids) - { - return warehousingCheckDetailMapper.deleteWarehousingCheckDetailByIds(Convert.toStrArray(ids)); - } - - /** - * 删除盘点物料信息 - * - * @param warehousingCheckDetailId 盘点物料ID - * @return 结果 - */ - @Override - public int deleteWarehousingCheckDetailById(Long warehousingCheckDetailId) - { - return warehousingCheckDetailMapper.deleteWarehousingCheckDetailById(warehousingCheckDetailId); - } -} diff --git a/ruoyi-admin/src/main/resources/mapper/storehouse/WarehousingCheckDetailMapper.xml b/ruoyi-admin/src/main/resources/mapper/storehouse/WarehousingCheckDetailMapper.xml deleted file mode 100644 index ce536053..00000000 --- a/ruoyi-admin/src/main/resources/mapper/storehouse/WarehousingCheckDetailMapper.xml +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - - - - - - - - - - - - - - select warehousing_check_detail_id, warehousing_check_number, material_code, material_name, specification_model, inventory_unit, check_quantity, stock_quantity, description, storage_location, batch_number from warehousing_check_detail - - - - - - - - insert into warehousing_check_detail - - warehousing_check_number, - material_code, - material_name, - specification_model, - inventory_unit, - check_quantity, - stock_quantity, - description, - storage_location, - batch_number, - - - #{warehousingCheckNumber}, - #{materialCode}, - #{materialName}, - #{specificationModel}, - #{inventoryUnit}, - #{checkQuantity}, - #{stockQuantity}, - #{description}, - #{storageLocation}, - #{batchNumber}, - - - - - update warehousing_check_detail - - warehousing_check_number = #{warehousingCheckNumber}, - material_code = #{materialCode}, - material_name = #{materialName}, - specification_model = #{specificationModel}, - inventory_unit = #{inventoryUnit}, - check_quantity = #{checkQuantity}, - stock_quantity = #{stockQuantity}, - description = #{description}, - storage_location = #{storageLocation}, - batch_number = #{batchNumber}, - - where warehousing_check_detail_id = #{warehousingCheckDetailId} - - - - delete from warehousing_check_detail where warehousing_check_detail_id = #{warehousingCheckDetailId} - - - - delete from warehousing_check_detail where warehousing_check_detail_id in - - #{warehousingCheckDetailId} - - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckDetail/add.html b/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckDetail/add.html deleted file mode 100644 index a891bfec..00000000 --- a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckDetail/add.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckDetail/edit.html b/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckDetail/edit.html deleted file mode 100644 index 3805fbbc..00000000 --- a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckDetail/edit.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - -
-
- -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckDetail/warehousingCheckDetail.html b/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckDetail/warehousingCheckDetail.html deleted file mode 100644 index 2c9d87db..00000000 --- a/ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckDetail/warehousingCheckDetail.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - -
-
-
-
-
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • -  搜索 -  重置 -
  • -
-
-
-
- - -
-
-
-
-
- - - - \ No newline at end of file