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