From 79237c6b15c4b2be794a722f3d1ff4cfaa012f6b Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Wed, 23 Oct 2024 10:34:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A7=E7=89=88=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E7=9A=84bom=E5=8D=8A=E6=88=90=E5=93=81=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=20sys=5Fbom=5Fbcp=E5=92=8C=E7=B3=BB=E7=BB=9F=E4=B8=AD?= =?UTF-8?q?=E5=AF=B9=E5=BA=94=E7=9A=84=E5=89=8D=E7=AB=AF=E6=89=80=E6=9C=89?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=92=8C=E5=90=8E=E7=AB=AF=E6=89=80=E6=9C=89?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=20=E5=92=8C=E5=AF=B9=E5=BA=94=E7=9A=84?= =?UTF-8?q?=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/SysBomBcpController.java | 154 ----------- .../com/ruoyi/system/domain/SysBomBcp.java | 256 ------------------ .../ruoyi/system/mapper/SysBomBcpMapper.java | 61 ----- .../system/service/ISysBomBcpService.java | 61 ----- .../service/impl/SysBomBcpServiceImpl.java | 95 ------- .../mapper/system/SysBomBcpMapper.xml | 126 --------- .../templates/system/bomBcp/add.html | 99 ------- .../templates/system/bomBcp/bomBcp.html | 181 ------------- .../templates/system/bomBcp/edit.html | 100 ------- 9 files changed, 1133 deletions(-) delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysBomBcpController.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysBomBcp.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysBomBcpMapper.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysBomBcpService.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysBomBcpServiceImpl.java delete mode 100644 ruoyi-admin/src/main/resources/mapper/system/SysBomBcpMapper.xml delete mode 100644 ruoyi-admin/src/main/resources/templates/system/bomBcp/add.html delete mode 100644 ruoyi-admin/src/main/resources/templates/system/bomBcp/bomBcp.html delete mode 100644 ruoyi-admin/src/main/resources/templates/system/bomBcp/edit.html diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysBomBcpController.java b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysBomBcpController.java deleted file mode 100644 index aada22a0..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysBomBcpController.java +++ /dev/null @@ -1,154 +0,0 @@ -package com.ruoyi.system.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.system.domain.SysBomBcp; -import com.ruoyi.system.service.ISysBomBcpService; -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; -import java.util.Objects; - -import static com.ruoyi.common.core.domain.AjaxResult.Type.SUCCESS; - -/** - * bom半成品Controller - * - * @author ruoyi - * @date 2023-04-08 - */ -@Controller -@RequestMapping("/system/bomBcp") -public class SysBomBcpController extends BaseController -{ - private String prefix = "system/bomBcp"; - - @Autowired - private ISysBomBcpService sysBomBcpService; - - @RequiresPermissions("system:bomBcp:view") - @GetMapping() - public String bomBcp() - { - return prefix + "/bomBcp"; - } - - /** - * 查询bom半成品列表 - */ - @RequiresPermissions("system:bomBcp:list") - @PostMapping("/list") - @ResponseBody - public TableDataInfo list(SysBomBcp sysBomBcp) - { - startPage(); - List list = sysBomBcpService.selectSysBomBcpList(sysBomBcp); - return getDataTable(list); - } - - /** - * 导出bom半成品列表 - */ - @RequiresPermissions("system:bomBcp:export") - @Log(title = "bom半成品", businessType = BusinessType.EXPORT) - @PostMapping("/export") - @ResponseBody - public AjaxResult export(SysBomBcp sysBomBcp) - { - List list = sysBomBcpService.selectSysBomBcpList(sysBomBcp); - ExcelUtil util = new ExcelUtil(SysBomBcp.class); - return util.exportExcel(list, "bom半成品数据"); - } - - /** - * 新增bom半成品 - */ - @GetMapping("/add") - public String add() - { - return prefix + "/add"; - } - -// public AjaxResult addSave(SysBomBcp sysBomBcp) -// { -// System.out.println(sysBomBcp); -// return toAjax(sysBomBcpService.insertSysBomBcp(sysBomBcp)); -// } - /** - * 新增保存bom半成品 - */ - @RequiresPermissions("system:bomBcp:add") - @Log(title = "bom半成品", businessType = BusinessType.INSERT) - @PostMapping("/addEditSave") - @ResponseBody - public AjaxResult addEditSave(@RequestParam(value = "data") String data) - { - - // 反序列化 - List sysBomBcpList = JSONObject.parseArray(data, SysBomBcp.class); - System.out.println(sysBomBcpList); - - - for (int i=0;i selectSysBomBcpList(SysBomBcp sysBomBcp); - - /** - * 新增bom半成品 - * - * @param sysBomBcp bom半成品 - * @return 结果 - */ - public int insertSysBomBcp(SysBomBcp sysBomBcp); - - /** - * 修改bom半成品 - * - * @param sysBomBcp bom半成品 - * @return 结果 - */ - public int updateSysBomBcp(SysBomBcp sysBomBcp); - - /** - * 删除bom半成品 - * - * @param bomBcpId bom半成品ID - * @return 结果 - */ - public int deleteSysBomBcpById(Long bomBcpId); - - /** - * 批量删除bom半成品 - * - * @param bomBcpIds 需要删除的数据ID - * @return 结果 - */ - public int deleteSysBomBcpByIds(String[] bomBcpIds); -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysBomBcpService.java b/ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysBomBcpService.java deleted file mode 100644 index c8f8a8bd..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysBomBcpService.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.ruoyi.system.service; - -import java.util.List; -import com.ruoyi.system.domain.SysBomBcp; - -/** - * bom半成品Service接口 - * - * @author ruoyi - * @date 2023-04-08 - */ -public interface ISysBomBcpService -{ - /** - * 查询bom半成品 - * - * @param bomBcpId bom半成品ID - * @return bom半成品 - */ - public SysBomBcp selectSysBomBcpById(Long bomBcpId); - - /** - * 查询bom半成品列表 - * - * @param sysBomBcp bom半成品 - * @return bom半成品集合 - */ - public List selectSysBomBcpList(SysBomBcp sysBomBcp); - - /** - * 新增bom半成品 - * - * @param sysBomBcp bom半成品 - * @return 结果 - */ - public int insertSysBomBcp(SysBomBcp sysBomBcp); - - /** - * 修改bom半成品 - * - * @param sysBomBcp bom半成品 - * @return 结果 - */ - public int updateSysBomBcp(SysBomBcp sysBomBcp); - - /** - * 批量删除bom半成品 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - public int deleteSysBomBcpByIds(String ids); - - /** - * 删除bom半成品信息 - * - * @param bomBcpId bom半成品ID - * @return 结果 - */ - public int deleteSysBomBcpById(Long bomBcpId); -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysBomBcpServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysBomBcpServiceImpl.java deleted file mode 100644 index d94ef326..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysBomBcpServiceImpl.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.ruoyi.system.service.impl; - -import com.ruoyi.common.core.text.Convert; -import com.ruoyi.system.domain.SysBomBcp; -import com.ruoyi.system.mapper.SysBomBcpMapper; -import com.ruoyi.system.service.ISysBomBcpService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - * bom半成品Service业务层处理 - * - * @author ruoyi - * @date 2023-04-08 - */ -@Service -public class SysBomBcpServiceImpl implements ISysBomBcpService -{ - @Autowired - private SysBomBcpMapper sysBomBcpMapper; - - /** - * 查询bom半成品 - * - * @param bomBcpId bom半成品ID - * @return bom半成品 - */ - @Override - public SysBomBcp selectSysBomBcpById(Long bomBcpId) - { - return sysBomBcpMapper.selectSysBomBcpById(bomBcpId); - } - - /** - * 查询bom半成品列表 - * - * @param sysBomBcp bom半成品 - * @return bom半成品 - */ - @Override - public List selectSysBomBcpList(SysBomBcp sysBomBcp) - { - return sysBomBcpMapper.selectSysBomBcpList(sysBomBcp); - } - - /** - * 新增bom半成品 - * - * @param sysBomBcp bom半成品 - * @return 结果 - */ - @Override - public int insertSysBomBcp(SysBomBcp sysBomBcp) - { - return sysBomBcpMapper.insertSysBomBcp(sysBomBcp); - } - - /** - * 修改bom半成品 - * - * @param sysBomBcp bom半成品 - * @return 结果 - */ - @Override - public int updateSysBomBcp(SysBomBcp sysBomBcp) - { - return sysBomBcpMapper.updateSysBomBcp(sysBomBcp); - } - - /** - * 删除bom半成品对象 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - @Override - public int deleteSysBomBcpByIds(String ids) - { - return sysBomBcpMapper.deleteSysBomBcpByIds(Convert.toStrArray(ids)); - } - - /** - * 删除bom半成品信息 - * - * @param bomBcpId bom半成品ID - * @return 结果 - */ - @Override - public int deleteSysBomBcpById(Long bomBcpId) - { - return sysBomBcpMapper.deleteSysBomBcpById(bomBcpId); - } -} diff --git a/ruoyi-admin/src/main/resources/mapper/system/SysBomBcpMapper.xml b/ruoyi-admin/src/main/resources/mapper/system/SysBomBcpMapper.xml deleted file mode 100644 index 8dcd4388..00000000 --- a/ruoyi-admin/src/main/resources/mapper/system/SysBomBcpMapper.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - select bom_bcp_id, finish_product_code, version_number, bcp_code, bcp_name, bcp_version_number, - specification_model, inventory_unit, bcp_material_consumption, bcp_material_loss, customer_number, - finished_product_quantity, remarks, processing_category, standby_one, standby_two from sys_bom_bcp - - - - - - - - insert into sys_bom_bcp - - finish_product_code, - version_number, - bcp_code, - bcp_name, - bcp_version_number, - specification_model, - inventory_unit, - bcp_material_consumption, - bcp_material_loss, - customer_number, - finished_product_quantity, - remarks, - processing_category, - standby_one, - standby_two, - - - #{finishProductCode}, - #{versionNumber}, - #{bcpCode}, - #{bcpName}, - #{bcpVersionNumber}, - #{specificationModel}, - #{inventoryUnit}, - #{bcpMaterialConsumption}, - #{bcpMaterialLoss}, - #{customerNumber}, - #{finishedProductQuantity}, - #{remarks}, - #{processingCategory}, - #{standbyOne}, - #{standbyTwo}, - - - - - update sys_bom_bcp - - finish_product_code = #{finishProductCode}, - version_number = #{versionNumber}, - bcp_code = #{bcpCode}, - bcp_name = #{bcpName}, - bcp_version_number = #{bcpVersionNumber}, - specification_model = #{specificationModel}, - inventory_unit = #{inventoryUnit}, - bcp_material_consumption = #{bcpMaterialConsumption}, - bcp_material_loss = #{bcpMaterialLoss}, - customer_number = #{customerNumber}, - finished_product_quantity = #{finishedProductQuantity}, - remarks = #{remarks}, - processing_category = #{processingCategory}, - standby_one = #{standbyOne}, - standby_two = #{standbyTwo}, - - where bom_bcp_id = #{bomBcpId} - - - - delete from sys_bom_bcp where bom_bcp_id = #{bomBcpId} - - - - delete from sys_bom_bcp where bom_bcp_id in - - #{bomBcpId} - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/bomBcp/add.html b/ruoyi-admin/src/main/resources/templates/system/bomBcp/add.html deleted file mode 100644 index ea26ba19..00000000 --- a/ruoyi-admin/src/main/resources/templates/system/bomBcp/add.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/bomBcp/bomBcp.html b/ruoyi-admin/src/main/resources/templates/system/bomBcp/bomBcp.html deleted file mode 100644 index 604cab2a..00000000 --- a/ruoyi-admin/src/main/resources/templates/system/bomBcp/bomBcp.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - - -
-
-
-
-
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • -  搜索 -  重置 -
  • -
-
-
-
- - -
-
-
-
-
- - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/bomBcp/edit.html b/ruoyi-admin/src/main/resources/templates/system/bomBcp/edit.html deleted file mode 100644 index 6d73eb67..00000000 --- a/ruoyi-admin/src/main/resources/templates/system/bomBcp/edit.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - -
-
- -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - - - \ No newline at end of file