From 680ec0e2b1ae9990d47bb89fa44bf8c5f6141ad2 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Tue, 18 Jul 2023 13:38:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/BaseBomItemsTController.java | 97 ++++ .../wms/controller/BaseProductController.java | 97 ++++ .../BaseProductGroupsTController.java | 97 ++++ .../controller/BaseSupplierController.java | 97 ++++ .../wms/controller/SysCustomerController.java | 97 ++++ .../controller/SysMachineryController.java | 97 ++++ .../java/com/op/wms/domain/BaseBomItemsT.java | 278 +++++++++++ .../java/com/op/wms/domain/BaseProduct.java | 470 ++++++++++++++++++ .../com/op/wms/domain/BaseProductGroupsT.java | 146 ++++++ .../java/com/op/wms/domain/BaseSupplier.java | 279 +++++++++++ .../java/com/op/wms/domain/SysCustomer.java | 315 ++++++++++++ .../java/com/op/wms/domain/SysMachinery.java | 219 ++++++++ .../op/wms/mapper/BaseBomItemsTMapper.java | 61 +++ .../wms/mapper/BaseProductGroupsTMapper.java | 61 +++ .../com/op/wms/mapper/BaseProductMapper.java | 61 +++ .../com/op/wms/mapper/BaseSupplierMapper.java | 61 +++ .../com/op/wms/mapper/SysCustomerMapper.java | 61 +++ .../com/op/wms/mapper/SysMachineryMapper.java | 61 +++ .../op/wms/service/IBaseBomItemsTService.java | 60 +++ .../service/IBaseProductGroupsTService.java | 60 +++ .../op/wms/service/IBaseProductService.java | 60 +++ .../op/wms/service/IBaseSupplierService.java | 60 +++ .../op/wms/service/ISysCustomerService.java | 60 +++ .../op/wms/service/ISysMachineryService.java | 60 +++ .../wms/service/impl/BaseAreaServiceImpl.java | 8 + .../impl/BaseBomItemsTServiceImpl.java | 99 ++++ .../service/impl/BaseLocationServiceImpl.java | 8 + .../impl/BaseProductGroupsTServiceImpl.java | 100 ++++ .../service/impl/BaseProductServiceImpl.java | 100 ++++ .../service/impl/BaseShiftsTServiceImpl.java | 7 + .../service/impl/BaseSupplierServiceImpl.java | 100 ++++ .../service/impl/BaseTeamTServiceImpl.java | 7 + .../impl/BaseWarehouseServiceImpl.java | 8 + .../service/impl/SysCustomerServiceImpl.java | 100 ++++ .../service/impl/SysFactoryServiceImpl.java | 8 + .../service/impl/SysMachineryServiceImpl.java | 100 ++++ .../mapper/wms/BaseBomItemsTMapper.xml | 169 +++++++ .../mapper/wms/BaseProductGroupsTMapper.xml | 114 +++++ .../mapper/wms/BaseProductMapper.xml | 248 +++++++++ .../mapper/wms/BaseSupplierMapper.xml | 173 +++++++ .../mapper/wms/SysCustomerMapper.xml | 186 +++++++ .../mapper/wms/SysMachineryMapper.xml | 146 ++++++ 42 files changed, 4696 insertions(+) create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/controller/BaseBomItemsTController.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/controller/BaseProductController.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/controller/BaseProductGroupsTController.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/controller/BaseSupplierController.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/controller/SysCustomerController.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/controller/SysMachineryController.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/domain/BaseBomItemsT.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/domain/BaseProduct.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/domain/BaseProductGroupsT.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/domain/BaseSupplier.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/domain/SysCustomer.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/domain/SysMachinery.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/mapper/BaseBomItemsTMapper.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/mapper/BaseProductGroupsTMapper.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/mapper/BaseProductMapper.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/mapper/BaseSupplierMapper.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/mapper/SysCustomerMapper.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/mapper/SysMachineryMapper.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/service/IBaseBomItemsTService.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/service/IBaseProductGroupsTService.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/service/IBaseProductService.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/service/IBaseSupplierService.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/service/ISysCustomerService.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/service/ISysMachineryService.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseBomItemsTServiceImpl.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseProductGroupsTServiceImpl.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseProductServiceImpl.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseSupplierServiceImpl.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/service/impl/SysCustomerServiceImpl.java create mode 100644 op-modules/op-wms/src/main/java/com/op/wms/service/impl/SysMachineryServiceImpl.java create mode 100644 op-modules/op-wms/src/main/resources/mapper/wms/BaseBomItemsTMapper.xml create mode 100644 op-modules/op-wms/src/main/resources/mapper/wms/BaseProductGroupsTMapper.xml create mode 100644 op-modules/op-wms/src/main/resources/mapper/wms/BaseProductMapper.xml create mode 100644 op-modules/op-wms/src/main/resources/mapper/wms/BaseSupplierMapper.xml create mode 100644 op-modules/op-wms/src/main/resources/mapper/wms/SysCustomerMapper.xml create mode 100644 op-modules/op-wms/src/main/resources/mapper/wms/SysMachineryMapper.xml diff --git a/op-modules/op-wms/src/main/java/com/op/wms/controller/BaseBomItemsTController.java b/op-modules/op-wms/src/main/java/com/op/wms/controller/BaseBomItemsTController.java new file mode 100644 index 00000000..7c0deeca --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/controller/BaseBomItemsTController.java @@ -0,0 +1,97 @@ +package com.op.wms.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.op.common.log.annotation.Log; +import com.op.common.log.enums.BusinessType; +import com.op.common.security.annotation.RequiresPermissions; +import com.op.wms.domain.BaseBomItemsT; +import com.op.wms.service.IBaseBomItemsTService; +import com.op.common.core.web.controller.BaseController; +import com.op.common.core.web.domain.AjaxResult; +import com.op.common.core.utils.poi.ExcelUtil; +import com.op.common.core.web.page.TableDataInfo; + +/** + * 物料BOM管理Controller + * + * @author Open Platform + * @date 2023-07-18 + */ +@RestController +@RequestMapping("/bom") +public class BaseBomItemsTController extends BaseController { + @Autowired + private IBaseBomItemsTService baseBomItemsTService; + + /** + * 查询物料BOM管理列表 + */ + @RequiresPermissions("wms:bom:list") + @GetMapping("/list") + public TableDataInfo list(BaseBomItemsT baseBomItemsT) { + startPage(); + List list = baseBomItemsTService.selectBaseBomItemsTList(baseBomItemsT); + return getDataTable(list); + } + + /** + * 导出物料BOM管理列表 + */ + @RequiresPermissions("wms:bom:export") + @Log(title = "物料BOM管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BaseBomItemsT baseBomItemsT) { + List list = baseBomItemsTService.selectBaseBomItemsTList(baseBomItemsT); + ExcelUtil util = new ExcelUtil(BaseBomItemsT.class); + util.exportExcel(response, list, "物料BOM管理数据"); + } + + /** + * 获取物料BOM管理详细信息 + */ + @RequiresPermissions("wms:bom:query") + @GetMapping(value = "/{bomItemId}") + public AjaxResult getInfo(@PathVariable("bomItemId") String bomItemId) { + return success(baseBomItemsTService.selectBaseBomItemsTByBomItemId(bomItemId)); + } + + /** + * 新增物料BOM管理 + */ + @RequiresPermissions("wms:bom:add") + @Log(title = "物料BOM管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BaseBomItemsT baseBomItemsT) { + return toAjax(baseBomItemsTService.insertBaseBomItemsT(baseBomItemsT)); + } + + /** + * 修改物料BOM管理 + */ + @RequiresPermissions("wms:bom:edit") + @Log(title = "物料BOM管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BaseBomItemsT baseBomItemsT) { + return toAjax(baseBomItemsTService.updateBaseBomItemsT(baseBomItemsT)); + } + + /** + * 删除物料BOM管理 + */ + @RequiresPermissions("wms:bom:remove") + @Log(title = "物料BOM管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{bomItemIds}") + public AjaxResult remove(@PathVariable String[] bomItemIds) { + return toAjax(baseBomItemsTService.deleteBaseBomItemsTByBomItemIds(bomItemIds)); + } +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/controller/BaseProductController.java b/op-modules/op-wms/src/main/java/com/op/wms/controller/BaseProductController.java new file mode 100644 index 00000000..743fd0da --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/controller/BaseProductController.java @@ -0,0 +1,97 @@ +package com.op.wms.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.op.common.log.annotation.Log; +import com.op.common.log.enums.BusinessType; +import com.op.common.security.annotation.RequiresPermissions; +import com.op.wms.domain.BaseProduct; +import com.op.wms.service.IBaseProductService; +import com.op.common.core.web.controller.BaseController; +import com.op.common.core.web.domain.AjaxResult; +import com.op.common.core.utils.poi.ExcelUtil; +import com.op.common.core.web.page.TableDataInfo; + +/** + * 物料信息Controller + * + * @author Open Platform + * @date 2023-07-18 + */ +@RestController +@RequestMapping("/product") +public class BaseProductController extends BaseController { + @Autowired + private IBaseProductService baseProductService; + + /** + * 查询物料信息列表 + */ + @RequiresPermissions("wms:product:list") + @GetMapping("/list") + public TableDataInfo list(BaseProduct baseProduct) { + startPage(); + List list = baseProductService.selectBaseProductList(baseProduct); + return getDataTable(list); + } + + /** + * 导出物料信息列表 + */ + @RequiresPermissions("wms:product:export") + @Log(title = "物料信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BaseProduct baseProduct) { + List list = baseProductService.selectBaseProductList(baseProduct); + ExcelUtil util = new ExcelUtil(BaseProduct.class); + util.exportExcel(response, list, "物料信息数据"); + } + + /** + * 获取物料信息详细信息 + */ + @RequiresPermissions("wms:product:query") + @GetMapping(value = "/{productId}") + public AjaxResult getInfo(@PathVariable("productId") String productId) { + return success(baseProductService.selectBaseProductByProductId(productId)); + } + + /** + * 新增物料信息 + */ + @RequiresPermissions("wms:product:add") + @Log(title = "物料信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BaseProduct baseProduct) { + return toAjax(baseProductService.insertBaseProduct(baseProduct)); + } + + /** + * 修改物料信息 + */ + @RequiresPermissions("wms:product:edit") + @Log(title = "物料信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BaseProduct baseProduct) { + return toAjax(baseProductService.updateBaseProduct(baseProduct)); + } + + /** + * 删除物料信息 + */ + @RequiresPermissions("wms:product:remove") + @Log(title = "物料信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{productIds}") + public AjaxResult remove(@PathVariable String[] productIds) { + return toAjax(baseProductService.deleteBaseProductByProductIds(productIds)); + } +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/controller/BaseProductGroupsTController.java b/op-modules/op-wms/src/main/java/com/op/wms/controller/BaseProductGroupsTController.java new file mode 100644 index 00000000..daef46fa --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/controller/BaseProductGroupsTController.java @@ -0,0 +1,97 @@ +package com.op.wms.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.op.common.log.annotation.Log; +import com.op.common.log.enums.BusinessType; +import com.op.common.security.annotation.RequiresPermissions; +import com.op.wms.domain.BaseProductGroupsT; +import com.op.wms.service.IBaseProductGroupsTService; +import com.op.common.core.web.controller.BaseController; +import com.op.common.core.web.domain.AjaxResult; +import com.op.common.core.utils.poi.ExcelUtil; +import com.op.common.core.web.page.TableDataInfo; + +/** + * 物料分组Controller + * + * @author Open Platform + * @date 2023-07-18 + */ +@RestController +@RequestMapping("/productGroups") +public class BaseProductGroupsTController extends BaseController { + @Autowired + private IBaseProductGroupsTService baseProductGroupsTService; + + /** + * 查询物料分组列表 + */ + @RequiresPermissions("wms:productGroups:list") + @GetMapping("/list") + public TableDataInfo list(BaseProductGroupsT baseProductGroupsT) { + startPage(); + List list = baseProductGroupsTService.selectBaseProductGroupsTList(baseProductGroupsT); + return getDataTable(list); + } + + /** + * 导出物料分组列表 + */ + @RequiresPermissions("wms:productGroups:export") + @Log(title = "物料分组", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BaseProductGroupsT baseProductGroupsT) { + List list = baseProductGroupsTService.selectBaseProductGroupsTList(baseProductGroupsT); + ExcelUtil util = new ExcelUtil(BaseProductGroupsT.class); + util.exportExcel(response, list, "物料分组数据"); + } + + /** + * 获取物料分组详细信息 + */ + @RequiresPermissions("wms:productGroups:query") + @GetMapping(value = "/{pgId}") + public AjaxResult getInfo(@PathVariable("pgId") String pgId) { + return success(baseProductGroupsTService.selectBaseProductGroupsTByPgId(pgId)); + } + + /** + * 新增物料分组 + */ + @RequiresPermissions("wms:productGroups:add") + @Log(title = "物料分组", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BaseProductGroupsT baseProductGroupsT) { + return toAjax(baseProductGroupsTService.insertBaseProductGroupsT(baseProductGroupsT)); + } + + /** + * 修改物料分组 + */ + @RequiresPermissions("wms:productGroups:edit") + @Log(title = "物料分组", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BaseProductGroupsT baseProductGroupsT) { + return toAjax(baseProductGroupsTService.updateBaseProductGroupsT(baseProductGroupsT)); + } + + /** + * 删除物料分组 + */ + @RequiresPermissions("wms:productGroups:remove") + @Log(title = "物料分组", businessType = BusinessType.DELETE) + @DeleteMapping("/{pgIds}") + public AjaxResult remove(@PathVariable String[] pgIds) { + return toAjax(baseProductGroupsTService.deleteBaseProductGroupsTByPgIds(pgIds)); + } +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/controller/BaseSupplierController.java b/op-modules/op-wms/src/main/java/com/op/wms/controller/BaseSupplierController.java new file mode 100644 index 00000000..2ad7d8a8 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/controller/BaseSupplierController.java @@ -0,0 +1,97 @@ +package com.op.wms.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.op.common.log.annotation.Log; +import com.op.common.log.enums.BusinessType; +import com.op.common.security.annotation.RequiresPermissions; +import com.op.wms.domain.BaseSupplier; +import com.op.wms.service.IBaseSupplierService; +import com.op.common.core.web.controller.BaseController; +import com.op.common.core.web.domain.AjaxResult; +import com.op.common.core.utils.poi.ExcelUtil; +import com.op.common.core.web.page.TableDataInfo; + +/** + * 供应商管理Controller + * + * @author Open Platform + * @date 2023-07-18 + */ +@RestController +@RequestMapping("/supplier") +public class BaseSupplierController extends BaseController { + @Autowired + private IBaseSupplierService baseSupplierService; + + /** + * 查询供应商管理列表 + */ + @RequiresPermissions("wms:supplier:list") + @GetMapping("/list") + public TableDataInfo list(BaseSupplier baseSupplier) { + startPage(); + List list = baseSupplierService.selectBaseSupplierList(baseSupplier); + return getDataTable(list); + } + + /** + * 导出供应商管理列表 + */ + @RequiresPermissions("wms:supplier:export") + @Log(title = "供应商管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BaseSupplier baseSupplier) { + List list = baseSupplierService.selectBaseSupplierList(baseSupplier); + ExcelUtil util = new ExcelUtil(BaseSupplier.class); + util.exportExcel(response, list, "供应商管理数据"); + } + + /** + * 获取供应商管理详细信息 + */ + @RequiresPermissions("wms:supplier:query") + @GetMapping(value = "/{supplierId}") + public AjaxResult getInfo(@PathVariable("supplierId") String supplierId) { + return success(baseSupplierService.selectBaseSupplierBySupplierId(supplierId)); + } + + /** + * 新增供应商管理 + */ + @RequiresPermissions("wms:supplier:add") + @Log(title = "供应商管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BaseSupplier baseSupplier) { + return toAjax(baseSupplierService.insertBaseSupplier(baseSupplier)); + } + + /** + * 修改供应商管理 + */ + @RequiresPermissions("wms:supplier:edit") + @Log(title = "供应商管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BaseSupplier baseSupplier) { + return toAjax(baseSupplierService.updateBaseSupplier(baseSupplier)); + } + + /** + * 删除供应商管理 + */ + @RequiresPermissions("wms:supplier:remove") + @Log(title = "供应商管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{supplierIds}") + public AjaxResult remove(@PathVariable String[] supplierIds) { + return toAjax(baseSupplierService.deleteBaseSupplierBySupplierIds(supplierIds)); + } +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/controller/SysCustomerController.java b/op-modules/op-wms/src/main/java/com/op/wms/controller/SysCustomerController.java new file mode 100644 index 00000000..7b5d2ba0 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/controller/SysCustomerController.java @@ -0,0 +1,97 @@ +package com.op.wms.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.op.common.log.annotation.Log; +import com.op.common.log.enums.BusinessType; +import com.op.common.security.annotation.RequiresPermissions; +import com.op.wms.domain.SysCustomer; +import com.op.wms.service.ISysCustomerService; +import com.op.common.core.web.controller.BaseController; +import com.op.common.core.web.domain.AjaxResult; +import com.op.common.core.utils.poi.ExcelUtil; +import com.op.common.core.web.page.TableDataInfo; + +/** + * 客户管理Controller + * + * @author Open Platform + * @date 2023-07-18 + */ +@RestController +@RequestMapping("/customer") +public class SysCustomerController extends BaseController { + @Autowired + private ISysCustomerService sysCustomerService; + + /** + * 查询客户管理列表 + */ + @RequiresPermissions("wms:customer:list") + @GetMapping("/list") + public TableDataInfo list(SysCustomer sysCustomer) { + startPage(); + List list = sysCustomerService.selectSysCustomerList(sysCustomer); + return getDataTable(list); + } + + /** + * 导出客户管理列表 + */ + @RequiresPermissions("wms:customer:export") + @Log(title = "客户管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, SysCustomer sysCustomer) { + List list = sysCustomerService.selectSysCustomerList(sysCustomer); + ExcelUtil util = new ExcelUtil(SysCustomer.class); + util.exportExcel(response, list, "客户管理数据"); + } + + /** + * 获取客户管理详细信息 + */ + @RequiresPermissions("wms:customer:query") + @GetMapping(value = "/{clientId}") + public AjaxResult getInfo(@PathVariable("clientId") Long clientId) { + return success(sysCustomerService.selectSysCustomerByClientId(clientId)); + } + + /** + * 新增客户管理 + */ + @RequiresPermissions("wms:customer:add") + @Log(title = "客户管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody SysCustomer sysCustomer) { + return toAjax(sysCustomerService.insertSysCustomer(sysCustomer)); + } + + /** + * 修改客户管理 + */ + @RequiresPermissions("wms:customer:edit") + @Log(title = "客户管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody SysCustomer sysCustomer) { + return toAjax(sysCustomerService.updateSysCustomer(sysCustomer)); + } + + /** + * 删除客户管理 + */ + @RequiresPermissions("wms:customer:remove") + @Log(title = "客户管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{clientIds}") + public AjaxResult remove(@PathVariable Long[] clientIds) { + return toAjax(sysCustomerService.deleteSysCustomerByClientIds(clientIds)); + } +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/controller/SysMachineryController.java b/op-modules/op-wms/src/main/java/com/op/wms/controller/SysMachineryController.java new file mode 100644 index 00000000..bf27579b --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/controller/SysMachineryController.java @@ -0,0 +1,97 @@ +package com.op.wms.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.op.common.log.annotation.Log; +import com.op.common.log.enums.BusinessType; +import com.op.common.security.annotation.RequiresPermissions; +import com.op.wms.domain.SysMachinery; +import com.op.wms.service.ISysMachineryService; +import com.op.common.core.web.controller.BaseController; +import com.op.common.core.web.domain.AjaxResult; +import com.op.common.core.utils.poi.ExcelUtil; +import com.op.common.core.web.page.TableDataInfo; + +/** + * 机台管理Controller + * + * @author Open Platform + * @date 2023-07-18 + */ +@RestController +@RequestMapping("/machinery") +public class SysMachineryController extends BaseController { + @Autowired + private ISysMachineryService sysMachineryService; + + /** + * 查询机台管理列表 + */ + @RequiresPermissions("wms:machinery:list") + @GetMapping("/list") + public TableDataInfo list(SysMachinery sysMachinery) { + startPage(); + List list = sysMachineryService.selectSysMachineryList(sysMachinery); + return getDataTable(list); + } + + /** + * 导出机台管理列表 + */ + @RequiresPermissions("wms:machinery:export") + @Log(title = "机台管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, SysMachinery sysMachinery) { + List list = sysMachineryService.selectSysMachineryList(sysMachinery); + ExcelUtil util = new ExcelUtil(SysMachinery.class); + util.exportExcel(response, list, "机台管理数据"); + } + + /** + * 获取机台管理详细信息 + */ + @RequiresPermissions("wms:machinery:query") + @GetMapping(value = "/{machineryId}") + public AjaxResult getInfo(@PathVariable("machineryId") Long machineryId) { + return success(sysMachineryService.selectSysMachineryByMachineryId(machineryId)); + } + + /** + * 新增机台管理 + */ + @RequiresPermissions("wms:machinery:add") + @Log(title = "机台管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody SysMachinery sysMachinery) { + return toAjax(sysMachineryService.insertSysMachinery(sysMachinery)); + } + + /** + * 修改机台管理 + */ + @RequiresPermissions("wms:machinery:edit") + @Log(title = "机台管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody SysMachinery sysMachinery) { + return toAjax(sysMachineryService.updateSysMachinery(sysMachinery)); + } + + /** + * 删除机台管理 + */ + @RequiresPermissions("wms:machinery:remove") + @Log(title = "机台管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{machineryIds}") + public AjaxResult remove(@PathVariable Long[] machineryIds) { + return toAjax(sysMachineryService.deleteSysMachineryByMachineryIds(machineryIds)); + } +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseBomItemsT.java b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseBomItemsT.java new file mode 100644 index 00000000..bf99ba64 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseBomItemsT.java @@ -0,0 +1,278 @@ +package com.op.wms.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.op.common.core.annotation.Excel; +import com.op.common.core.web.domain.BaseEntity; + +/** + * 物料BOM管理对象 base_bom_items_t + * + * @author Open Platform + * @date 2023-07-18 + */ +public class BaseBomItemsT extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** BOM配方组成主键 */ + private String bomItemId; + + /** BOM配方组成描述 */ + @Excel(name = "BOM配方组成描述") + private String bomItemDesc; + + /** BOM配方组成序号 */ + @Excel(name = "BOM配方组成序号") + private Long bomFormulationOrder; + + /** BOM配方主键 */ + @Excel(name = "BOM配方主键") + private String bomFormulationId; + + /** 产品主键 */ + @Excel(name = "产品主键") + private String prodId; + + /** 数量 */ + @Excel(name = "数量") + private Long Quantity; + + /** 精度 */ + @Excel(name = "精度") + private Long Precision; + + /** 计量单位主键 */ + @Excel(name = "计量单位主键") + private String euId; + + /** 最低偏差 */ + @Excel(name = "最低偏差") + private Long lowerTolerance; + + /** 最低偏差精度 */ + @Excel(name = "最低偏差精度") + private Long lowerTolerancePrecision; + + /** 最高偏差 */ + @Excel(name = "最高偏差") + private Long upperTolerance; + + /** 最高偏差精度 */ + @Excel(name = "最高偏差精度") + private Long upperTolerancePrecision; + + /** 可用标识 */ + @Excel(name = "可用标识") + private String Active; + + /** 工厂主键 */ + @Excel(name = "工厂主键") + private String siteId; + + /** 工厂编码 */ + @Excel(name = "工厂编码") + private String siteCode; + + /** 企业主键 */ + @Excel(name = "企业主键") + private String enterpriseId; + + /** 企业编码 */ + @Excel(name = "企业编码") + private String enterpriseCode; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String FactoryNo; + + /** 采购类型 */ + @Excel(name = "采购类型") + private String BESKZ; + + /** 特殊采购类型 */ + @Excel(name = "特殊采购类型") + private String SOBSL; + + /** 层级 */ + @Excel(name = "层级") + private String STUFE; + + public void setBomItemId(String bomItemId) { + this.bomItemId = bomItemId; + } + + public String getBomItemId() { + return bomItemId; + } + public void setBomItemDesc(String bomItemDesc) { + this.bomItemDesc = bomItemDesc; + } + + public String getBomItemDesc() { + return bomItemDesc; + } + public void setBomFormulationOrder(Long bomFormulationOrder) { + this.bomFormulationOrder = bomFormulationOrder; + } + + public Long getBomFormulationOrder() { + return bomFormulationOrder; + } + public void setBomFormulationId(String bomFormulationId) { + this.bomFormulationId = bomFormulationId; + } + + public String getBomFormulationId() { + return bomFormulationId; + } + public void setProdId(String prodId) { + this.prodId = prodId; + } + + public String getProdId() { + return prodId; + } + public void setQuantity(Long Quantity) { + this.Quantity = Quantity; + } + + public Long getQuantity() { + return Quantity; + } + public void setPrecision(Long Precision) { + this.Precision = Precision; + } + + public Long getPrecision() { + return Precision; + } + public void setEuId(String euId) { + this.euId = euId; + } + + public String getEuId() { + return euId; + } + public void setLowerTolerance(Long lowerTolerance) { + this.lowerTolerance = lowerTolerance; + } + + public Long getLowerTolerance() { + return lowerTolerance; + } + public void setLowerTolerancePrecision(Long lowerTolerancePrecision) { + this.lowerTolerancePrecision = lowerTolerancePrecision; + } + + public Long getLowerTolerancePrecision() { + return lowerTolerancePrecision; + } + public void setUpperTolerance(Long upperTolerance) { + this.upperTolerance = upperTolerance; + } + + public Long getUpperTolerance() { + return upperTolerance; + } + public void setUpperTolerancePrecision(Long upperTolerancePrecision) { + this.upperTolerancePrecision = upperTolerancePrecision; + } + + public Long getUpperTolerancePrecision() { + return upperTolerancePrecision; + } + public void setActive(String Active) { + this.Active = Active; + } + + public String getActive() { + return Active; + } + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public String getSiteId() { + return siteId; + } + public void setSiteCode(String siteCode) { + this.siteCode = siteCode; + } + + public String getSiteCode() { + return siteCode; + } + public void setEnterpriseId(String enterpriseId) { + this.enterpriseId = enterpriseId; + } + + public String getEnterpriseId() { + return enterpriseId; + } + public void setEnterpriseCode(String enterpriseCode) { + this.enterpriseCode = enterpriseCode; + } + + public String getEnterpriseCode() { + return enterpriseCode; + } + public void setFactoryNo(String FactoryNo) { + this.FactoryNo = FactoryNo; + } + + public String getFactoryNo() { + return FactoryNo; + } + public void setBESKZ(String BESKZ) { + this.BESKZ = BESKZ; + } + + public String getBESKZ() { + return BESKZ; + } + public void setSOBSL(String SOBSL) { + this.SOBSL = SOBSL; + } + + public String getSOBSL() { + return SOBSL; + } + public void setSTUFE(String STUFE) { + this.STUFE = STUFE; + } + + public String getSTUFE() { + return STUFE; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("bomItemId", getBomItemId()) + .append("bomItemDesc", getBomItemDesc()) + .append("bomFormulationOrder", getBomFormulationOrder()) + .append("bomFormulationId", getBomFormulationId()) + .append("prodId", getProdId()) + .append("Quantity", getQuantity()) + .append("Precision", getPrecision()) + .append("euId", getEuId()) + .append("lowerTolerance", getLowerTolerance()) + .append("lowerTolerancePrecision", getLowerTolerancePrecision()) + .append("upperTolerance", getUpperTolerance()) + .append("upperTolerancePrecision", getUpperTolerancePrecision()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("Active", getActive()) + .append("siteId", getSiteId()) + .append("siteCode", getSiteCode()) + .append("enterpriseId", getEnterpriseId()) + .append("enterpriseCode", getEnterpriseCode()) + .append("FactoryNo", getFactoryNo()) + .append("BESKZ", getBESKZ()) + .append("SOBSL", getSOBSL()) + .append("STUFE", getSTUFE()) + .toString(); + } +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseProduct.java b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseProduct.java new file mode 100644 index 00000000..33251f7b --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseProduct.java @@ -0,0 +1,470 @@ +package com.op.wms.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.op.common.core.annotation.Excel; +import com.op.common.core.web.domain.BaseEntity; + +/** + * 物料信息对象 base_product + * + * @author Open Platform + * @date 2023-07-18 + */ +public class BaseProduct extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** 主键ID */ + private String productId; + + /** 产品代码 */ + @Excel(name = "产品代码") + private String productCode; + + /** 中文描述 */ + @Excel(name = "中文描述") + private String productDescZh; + + /** 英文描述 */ + @Excel(name = "英文描述") + private String productDescEn; + + /** 序列号规则代码 */ + @Excel(name = "序列号规则代码") + private String ruleCode; + + /** 旧物料号 */ + @Excel(name = "旧物料号") + private String oldProductCode; + + /** 散件物料号 */ + @Excel(name = "散件物料号") + private String partsProductCode; + + /** 69码 */ + @Excel(name = "69码") + private String skuBarcode; + + /** 长 */ + @Excel(name = "长") + private BigDecimal length; + + /** 宽 */ + @Excel(name = "宽") + private BigDecimal width; + + /** 高 */ + @Excel(name = "高") + private BigDecimal height; + + /** 毛重 */ + @Excel(name = "毛重") + private BigDecimal grossWeight; + + /** 净重 */ + @Excel(name = "净重") + private BigDecimal netWeight; + + /** 皮重 */ + @Excel(name = "皮重") + private BigDecimal tareWeight; + + /** 体积 */ + @Excel(name = "体积") + private BigDecimal volume; + + /** 单价 */ + @Excel(name = "单价") + private BigDecimal unitPrice; + + /** 产品组 */ + @Excel(name = "产品组") + private String productGroup; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String productGroupName; + + /** 用户自定义1 */ + @Excel(name = "用户自定义1") + private String userDefined1; + + /** 用户自定义2 */ + @Excel(name = "用户自定义2") + private String userDefined2; + + /** 用户自定义3 */ + @Excel(name = "用户自定义3") + private String userDefined3; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String userDefined4; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String userDefined5; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String userDefined6; + + /** 工厂编码 */ + @Excel(name = "工厂编码") + private String factoryCode; + + /** 激活标记 */ + @Excel(name = "激活标记") + private String activeFlag; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String syncFlag; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String primaryUom; + + /** $column.columnComment */ + private String delFlag; + + /** 订单单位 */ + @Excel(name = "订单单位") + private String bstme; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private BigDecimal basicOrder; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private BigDecimal convOrder; + + /** 发货单位 */ + @Excel(name = "发货单位") + private String ausme; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private BigDecimal basicIssue; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private BigDecimal convIssue; + + /** 是否补料(0否 */ + @Excel(name = "是否补料", readConverterExp = "是否补料(0否") + private String appendFlag; + + /** 补料比例 */ + @Excel(name = "补料比例") + private String appendPercent; + + public void setProductId(String productId) { + this.productId = productId; + } + + public String getProductId() { + return productId; + } + public void setProductCode(String productCode) { + this.productCode = productCode; + } + + public String getProductCode() { + return productCode; + } + public void setProductDescZh(String productDescZh) { + this.productDescZh = productDescZh; + } + + public String getProductDescZh() { + return productDescZh; + } + public void setProductDescEn(String productDescEn) { + this.productDescEn = productDescEn; + } + + public String getProductDescEn() { + return productDescEn; + } + public void setRuleCode(String ruleCode) { + this.ruleCode = ruleCode; + } + + public String getRuleCode() { + return ruleCode; + } + public void setOldProductCode(String oldProductCode) { + this.oldProductCode = oldProductCode; + } + + public String getOldProductCode() { + return oldProductCode; + } + public void setPartsProductCode(String partsProductCode) { + this.partsProductCode = partsProductCode; + } + + public String getPartsProductCode() { + return partsProductCode; + } + public void setSkuBarcode(String skuBarcode) { + this.skuBarcode = skuBarcode; + } + + public String getSkuBarcode() { + return skuBarcode; + } + public void setLength(BigDecimal length) { + this.length = length; + } + + public BigDecimal getLength() { + return length; + } + public void setWidth(BigDecimal width) { + this.width = width; + } + + public BigDecimal getWidth() { + return width; + } + public void setHeight(BigDecimal height) { + this.height = height; + } + + public BigDecimal getHeight() { + return height; + } + public void setGrossWeight(BigDecimal grossWeight) { + this.grossWeight = grossWeight; + } + + public BigDecimal getGrossWeight() { + return grossWeight; + } + public void setNetWeight(BigDecimal netWeight) { + this.netWeight = netWeight; + } + + public BigDecimal getNetWeight() { + return netWeight; + } + public void setTareWeight(BigDecimal tareWeight) { + this.tareWeight = tareWeight; + } + + public BigDecimal getTareWeight() { + return tareWeight; + } + public void setVolume(BigDecimal volume) { + this.volume = volume; + } + + public BigDecimal getVolume() { + return volume; + } + public void setUnitPrice(BigDecimal unitPrice) { + this.unitPrice = unitPrice; + } + + public BigDecimal getUnitPrice() { + return unitPrice; + } + public void setProductGroup(String productGroup) { + this.productGroup = productGroup; + } + + public String getProductGroup() { + return productGroup; + } + public void setProductGroupName(String productGroupName) { + this.productGroupName = productGroupName; + } + + public String getProductGroupName() { + return productGroupName; + } + public void setUserDefined1(String userDefined1) { + this.userDefined1 = userDefined1; + } + + public String getUserDefined1() { + return userDefined1; + } + public void setUserDefined2(String userDefined2) { + this.userDefined2 = userDefined2; + } + + public String getUserDefined2() { + return userDefined2; + } + public void setUserDefined3(String userDefined3) { + this.userDefined3 = userDefined3; + } + + public String getUserDefined3() { + return userDefined3; + } + public void setUserDefined4(String userDefined4) { + this.userDefined4 = userDefined4; + } + + public String getUserDefined4() { + return userDefined4; + } + public void setUserDefined5(String userDefined5) { + this.userDefined5 = userDefined5; + } + + public String getUserDefined5() { + return userDefined5; + } + public void setUserDefined6(String userDefined6) { + this.userDefined6 = userDefined6; + } + + public String getUserDefined6() { + return userDefined6; + } + public void setFactoryCode(String factoryCode) { + this.factoryCode = factoryCode; + } + + public String getFactoryCode() { + return factoryCode; + } + public void setActiveFlag(String activeFlag) { + this.activeFlag = activeFlag; + } + + public String getActiveFlag() { + return activeFlag; + } + public void setSyncFlag(String syncFlag) { + this.syncFlag = syncFlag; + } + + public String getSyncFlag() { + return syncFlag; + } + public void setPrimaryUom(String primaryUom) { + this.primaryUom = primaryUom; + } + + public String getPrimaryUom() { + return primaryUom; + } + public void setDelFlag(String delFlag) { + this.delFlag = delFlag; + } + + public String getDelFlag() { + return delFlag; + } + public void setBstme(String bstme) { + this.bstme = bstme; + } + + public String getBstme() { + return bstme; + } + public void setBasicOrder(BigDecimal basicOrder) { + this.basicOrder = basicOrder; + } + + public BigDecimal getBasicOrder() { + return basicOrder; + } + public void setConvOrder(BigDecimal convOrder) { + this.convOrder = convOrder; + } + + public BigDecimal getConvOrder() { + return convOrder; + } + public void setAusme(String ausme) { + this.ausme = ausme; + } + + public String getAusme() { + return ausme; + } + public void setBasicIssue(BigDecimal basicIssue) { + this.basicIssue = basicIssue; + } + + public BigDecimal getBasicIssue() { + return basicIssue; + } + public void setConvIssue(BigDecimal convIssue) { + this.convIssue = convIssue; + } + + public BigDecimal getConvIssue() { + return convIssue; + } + public void setAppendFlag(String appendFlag) { + this.appendFlag = appendFlag; + } + + public String getAppendFlag() { + return appendFlag; + } + public void setAppendPercent(String appendPercent) { + this.appendPercent = appendPercent; + } + + public String getAppendPercent() { + return appendPercent; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("productId", getProductId()) + .append("productCode", getProductCode()) + .append("productDescZh", getProductDescZh()) + .append("productDescEn", getProductDescEn()) + .append("ruleCode", getRuleCode()) + .append("oldProductCode", getOldProductCode()) + .append("partsProductCode", getPartsProductCode()) + .append("skuBarcode", getSkuBarcode()) + .append("length", getLength()) + .append("width", getWidth()) + .append("height", getHeight()) + .append("grossWeight", getGrossWeight()) + .append("netWeight", getNetWeight()) + .append("tareWeight", getTareWeight()) + .append("volume", getVolume()) + .append("unitPrice", getUnitPrice()) + .append("productGroup", getProductGroup()) + .append("productGroupName", getProductGroupName()) + .append("userDefined1", getUserDefined1()) + .append("userDefined2", getUserDefined2()) + .append("userDefined3", getUserDefined3()) + .append("userDefined4", getUserDefined4()) + .append("userDefined5", getUserDefined5()) + .append("userDefined6", getUserDefined6()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("factoryCode", getFactoryCode()) + .append("activeFlag", getActiveFlag()) + .append("syncFlag", getSyncFlag()) + .append("primaryUom", getPrimaryUom()) + .append("delFlag", getDelFlag()) + .append("bstme", getBstme()) + .append("basicOrder", getBasicOrder()) + .append("convOrder", getConvOrder()) + .append("ausme", getAusme()) + .append("basicIssue", getBasicIssue()) + .append("convIssue", getConvIssue()) + .append("appendFlag", getAppendFlag()) + .append("appendPercent", getAppendPercent()) + .toString(); + } +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseProductGroupsT.java b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseProductGroupsT.java new file mode 100644 index 00000000..db3f3809 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseProductGroupsT.java @@ -0,0 +1,146 @@ +package com.op.wms.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.op.common.core.annotation.Excel; +import com.op.common.core.web.domain.BaseEntity; + +/** + * 物料分组对象 base_product_groups_t + * + * @author Open Platform + * @date 2023-07-18 + */ +public class BaseProductGroupsT extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** 产品分组主键 */ + private String pgId; + + /** 产品分组编码 */ + @Excel(name = "产品分组编码") + private String pgCode; + + /** 产品分组简称 */ + @Excel(name = "产品分组简称") + private String pgDesc; + + /** 产品分组通用名称 */ + @Excel(name = "产品分组通用名称") + private String pgDescGlobal; + + /** 产品分组扩展名称 */ + @Excel(name = "产品分组扩展名称") + private String pgDescExtended; + + /** 可用标识 */ + @Excel(name = "可用标识") + private String Active; + + /** 企业主键 */ + @Excel(name = "企业主键") + private String enterpriseId; + + /** 企业编码 */ + @Excel(name = "企业编码") + private String enterpriseCode; + + /** 工厂主键 */ + @Excel(name = "工厂主键") + private String siteId; + + /** 工厂编码 */ + @Excel(name = "工厂编码") + private String siteCode; + + public void setPgId(String pgId) { + this.pgId = pgId; + } + + public String getPgId() { + return pgId; + } + public void setPgCode(String pgCode) { + this.pgCode = pgCode; + } + + public String getPgCode() { + return pgCode; + } + public void setPgDesc(String pgDesc) { + this.pgDesc = pgDesc; + } + + public String getPgDesc() { + return pgDesc; + } + public void setPgDescGlobal(String pgDescGlobal) { + this.pgDescGlobal = pgDescGlobal; + } + + public String getPgDescGlobal() { + return pgDescGlobal; + } + public void setPgDescExtended(String pgDescExtended) { + this.pgDescExtended = pgDescExtended; + } + + public String getPgDescExtended() { + return pgDescExtended; + } + public void setActive(String Active) { + this.Active = Active; + } + + public String getActive() { + return Active; + } + public void setEnterpriseId(String enterpriseId) { + this.enterpriseId = enterpriseId; + } + + public String getEnterpriseId() { + return enterpriseId; + } + public void setEnterpriseCode(String enterpriseCode) { + this.enterpriseCode = enterpriseCode; + } + + public String getEnterpriseCode() { + return enterpriseCode; + } + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public String getSiteId() { + return siteId; + } + public void setSiteCode(String siteCode) { + this.siteCode = siteCode; + } + + public String getSiteCode() { + return siteCode; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("pgId", getPgId()) + .append("pgCode", getPgCode()) + .append("pgDesc", getPgDesc()) + .append("pgDescGlobal", getPgDescGlobal()) + .append("pgDescExtended", getPgDescExtended()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("Active", getActive()) + .append("enterpriseId", getEnterpriseId()) + .append("enterpriseCode", getEnterpriseCode()) + .append("siteId", getSiteId()) + .append("siteCode", getSiteCode()) + .toString(); + } +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseSupplier.java b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseSupplier.java new file mode 100644 index 00000000..ecb3db80 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseSupplier.java @@ -0,0 +1,279 @@ +package com.op.wms.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.op.common.core.annotation.Excel; +import com.op.common.core.web.domain.BaseEntity; + +/** + * 供应商管理对象 base_supplier + * + * @author Open Platform + * @date 2023-07-18 + */ +public class BaseSupplier extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** 主键uuid */ + private String supplierId; + + /** 供应商代码 */ + @Excel(name = "供应商代码") + private String supplierCode; + + /** 中文描述 */ + @Excel(name = "中文描述") + private String zhDesc; + + /** 英文描述 */ + @Excel(name = "英文描述") + private String enDesc; + + /** 供应商类型 */ + @Excel(name = "供应商类型") + private String supplierType; + + /** 账号 */ + @Excel(name = "账号") + private String accountNumber; + + /** 证照编码 */ + @Excel(name = "证照编码") + private String licenceNumber; + + /** 经营范围 */ + @Excel(name = "经营范围") + private String businessScope; + + /** 省 */ + @Excel(name = "省") + private String province; + + /** 市 */ + @Excel(name = "市") + private String city; + + /** 区 */ + @Excel(name = "区") + private String area; + + /** 详细地址 */ + @Excel(name = "详细地址") + private String address; + + /** 邮编 */ + @Excel(name = "邮编") + private String postcode; + + /** 联系人 */ + @Excel(name = "联系人") + private String contact; + + /** 联系人电话 */ + @Excel(name = "联系人电话") + private String contactPhone; + + /** 联系人职务 */ + @Excel(name = "联系人职务") + private String contactPosition; + + /** 联系人电子邮件 */ + @Excel(name = "联系人电子邮件") + private String contactEmail; + + /** 激活标记 */ + @Excel(name = "激活标记") + private String activeFlag; + + /** 用户自定义1--国家 */ + @Excel(name = "用户自定义1--国家") + private String userDefined1; + + /** 用户自定义2--税号 */ + @Excel(name = "用户自定义2--税号") + private String userDefined2; + + /** 用户自定义3 */ + @Excel(name = "用户自定义3") + private String userDefined3; + + public void setSupplierId(String supplierId) { + this.supplierId = supplierId; + } + + public String getSupplierId() { + return supplierId; + } + public void setSupplierCode(String supplierCode) { + this.supplierCode = supplierCode; + } + + public String getSupplierCode() { + return supplierCode; + } + public void setZhDesc(String zhDesc) { + this.zhDesc = zhDesc; + } + + public String getZhDesc() { + return zhDesc; + } + public void setEnDesc(String enDesc) { + this.enDesc = enDesc; + } + + public String getEnDesc() { + return enDesc; + } + public void setSupplierType(String supplierType) { + this.supplierType = supplierType; + } + + public String getSupplierType() { + return supplierType; + } + public void setAccountNumber(String accountNumber) { + this.accountNumber = accountNumber; + } + + public String getAccountNumber() { + return accountNumber; + } + public void setLicenceNumber(String licenceNumber) { + this.licenceNumber = licenceNumber; + } + + public String getLicenceNumber() { + return licenceNumber; + } + public void setBusinessScope(String businessScope) { + this.businessScope = businessScope; + } + + public String getBusinessScope() { + return businessScope; + } + public void setProvince(String province) { + this.province = province; + } + + public String getProvince() { + return province; + } + public void setCity(String city) { + this.city = city; + } + + public String getCity() { + return city; + } + public void setArea(String area) { + this.area = area; + } + + public String getArea() { + return area; + } + public void setAddress(String address) { + this.address = address; + } + + public String getAddress() { + return address; + } + public void setPostcode(String postcode) { + this.postcode = postcode; + } + + public String getPostcode() { + return postcode; + } + public void setContact(String contact) { + this.contact = contact; + } + + public String getContact() { + return contact; + } + public void setContactPhone(String contactPhone) { + this.contactPhone = contactPhone; + } + + public String getContactPhone() { + return contactPhone; + } + public void setContactPosition(String contactPosition) { + this.contactPosition = contactPosition; + } + + public String getContactPosition() { + return contactPosition; + } + public void setContactEmail(String contactEmail) { + this.contactEmail = contactEmail; + } + + public String getContactEmail() { + return contactEmail; + } + public void setActiveFlag(String activeFlag) { + this.activeFlag = activeFlag; + } + + public String getActiveFlag() { + return activeFlag; + } + public void setUserDefined1(String userDefined1) { + this.userDefined1 = userDefined1; + } + + public String getUserDefined1() { + return userDefined1; + } + public void setUserDefined2(String userDefined2) { + this.userDefined2 = userDefined2; + } + + public String getUserDefined2() { + return userDefined2; + } + public void setUserDefined3(String userDefined3) { + this.userDefined3 = userDefined3; + } + + public String getUserDefined3() { + return userDefined3; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("supplierId", getSupplierId()) + .append("supplierCode", getSupplierCode()) + .append("zhDesc", getZhDesc()) + .append("enDesc", getEnDesc()) + .append("supplierType", getSupplierType()) + .append("accountNumber", getAccountNumber()) + .append("licenceNumber", getLicenceNumber()) + .append("businessScope", getBusinessScope()) + .append("province", getProvince()) + .append("city", getCity()) + .append("area", getArea()) + .append("address", getAddress()) + .append("postcode", getPostcode()) + .append("contact", getContact()) + .append("contactPhone", getContactPhone()) + .append("contactPosition", getContactPosition()) + .append("contactEmail", getContactEmail()) + .append("activeFlag", getActiveFlag()) + .append("userDefined1", getUserDefined1()) + .append("userDefined2", getUserDefined2()) + .append("userDefined3", getUserDefined3()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/domain/SysCustomer.java b/op-modules/op-wms/src/main/java/com/op/wms/domain/SysCustomer.java new file mode 100644 index 00000000..1b5e887a --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/domain/SysCustomer.java @@ -0,0 +1,315 @@ +package com.op.wms.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.op.common.core.annotation.Excel; +import com.op.common.core.web.domain.BaseEntity; + +/** + * 客户管理对象 sys_customer + * + * @author Open Platform + * @date 2023-07-18 + */ +public class SysCustomer extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** 客户ID */ + private Long clientId; + + /** 客户编码 */ + @Excel(name = "客户编码") + private String clientCode; + + /** 客户名称 */ + @Excel(name = "客户名称") + private String clientName; + + /** 客户简称 */ + @Excel(name = "客户简称") + private String clientNick; + + /** 客户英文名称 */ + @Excel(name = "客户英文名称") + private String clientEn; + + /** 客户简介 */ + @Excel(name = "客户简介") + private String clientDes; + + /** 客户LOGO地址 */ + @Excel(name = "客户LOGO地址") + private String clientLogo; + + /** 客户类型 */ + @Excel(name = "客户类型") + private String clientType; + + /** 客户地址 */ + @Excel(name = "客户地址") + private String address; + + /** 客户官网地址 */ + @Excel(name = "客户官网地址") + private String website; + + /** 客户邮箱地址 */ + @Excel(name = "客户邮箱地址") + private String email; + + /** 客户电话 */ + @Excel(name = "客户电话") + private String tel; + + /** 联系人1 */ + @Excel(name = "联系人1") + private String contact1; + + /** 联系人1-电话 */ + @Excel(name = "联系人1-电话") + private String contact1Tel; + + /** 联系人1-邮箱 */ + @Excel(name = "联系人1-邮箱") + private String contact1Email; + + /** 联系人2 */ + @Excel(name = "联系人2") + private String contact2; + + /** 联系人2-电话 */ + @Excel(name = "联系人2-电话") + private String contact2Tel; + + /** 联系人2-邮箱 */ + @Excel(name = "联系人2-邮箱") + private String contact2Email; + + /** 统一社会信用代码 */ + @Excel(name = "统一社会信用代码") + private String creditCode; + + /** 是否启用 */ + @Excel(name = "是否启用") + private String enableFlag; + + /** 预留字段1 */ + @Excel(name = "预留字段1") + private String attr1; + + /** 预留字段2 */ + @Excel(name = "预留字段2") + private String attr2; + + /** 预留字段3 */ + @Excel(name = "预留字段3") + private Long attr3; + + /** 预留字段4 */ + @Excel(name = "预留字段4") + private Long attr4; + + public void setClientId(Long clientId) { + this.clientId = clientId; + } + + public Long getClientId() { + return clientId; + } + public void setClientCode(String clientCode) { + this.clientCode = clientCode; + } + + public String getClientCode() { + return clientCode; + } + public void setClientName(String clientName) { + this.clientName = clientName; + } + + public String getClientName() { + return clientName; + } + public void setClientNick(String clientNick) { + this.clientNick = clientNick; + } + + public String getClientNick() { + return clientNick; + } + public void setClientEn(String clientEn) { + this.clientEn = clientEn; + } + + public String getClientEn() { + return clientEn; + } + public void setClientDes(String clientDes) { + this.clientDes = clientDes; + } + + public String getClientDes() { + return clientDes; + } + public void setClientLogo(String clientLogo) { + this.clientLogo = clientLogo; + } + + public String getClientLogo() { + return clientLogo; + } + public void setClientType(String clientType) { + this.clientType = clientType; + } + + public String getClientType() { + return clientType; + } + public void setAddress(String address) { + this.address = address; + } + + public String getAddress() { + return address; + } + public void setWebsite(String website) { + this.website = website; + } + + public String getWebsite() { + return website; + } + public void setEmail(String email) { + this.email = email; + } + + public String getEmail() { + return email; + } + public void setTel(String tel) { + this.tel = tel; + } + + public String getTel() { + return tel; + } + public void setContact1(String contact1) { + this.contact1 = contact1; + } + + public String getContact1() { + return contact1; + } + public void setContact1Tel(String contact1Tel) { + this.contact1Tel = contact1Tel; + } + + public String getContact1Tel() { + return contact1Tel; + } + public void setContact1Email(String contact1Email) { + this.contact1Email = contact1Email; + } + + public String getContact1Email() { + return contact1Email; + } + public void setContact2(String contact2) { + this.contact2 = contact2; + } + + public String getContact2() { + return contact2; + } + public void setContact2Tel(String contact2Tel) { + this.contact2Tel = contact2Tel; + } + + public String getContact2Tel() { + return contact2Tel; + } + public void setContact2Email(String contact2Email) { + this.contact2Email = contact2Email; + } + + public String getContact2Email() { + return contact2Email; + } + public void setCreditCode(String creditCode) { + this.creditCode = creditCode; + } + + public String getCreditCode() { + return creditCode; + } + public void setEnableFlag(String enableFlag) { + this.enableFlag = enableFlag; + } + + public String getEnableFlag() { + return enableFlag; + } + public void setAttr1(String attr1) { + this.attr1 = attr1; + } + + public String getAttr1() { + return attr1; + } + public void setAttr2(String attr2) { + this.attr2 = attr2; + } + + public String getAttr2() { + return attr2; + } + public void setAttr3(Long attr3) { + this.attr3 = attr3; + } + + public Long getAttr3() { + return attr3; + } + public void setAttr4(Long attr4) { + this.attr4 = attr4; + } + + public Long getAttr4() { + return attr4; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("clientId", getClientId()) + .append("clientCode", getClientCode()) + .append("clientName", getClientName()) + .append("clientNick", getClientNick()) + .append("clientEn", getClientEn()) + .append("clientDes", getClientDes()) + .append("clientLogo", getClientLogo()) + .append("clientType", getClientType()) + .append("address", getAddress()) + .append("website", getWebsite()) + .append("email", getEmail()) + .append("tel", getTel()) + .append("contact1", getContact1()) + .append("contact1Tel", getContact1Tel()) + .append("contact1Email", getContact1Email()) + .append("contact2", getContact2()) + .append("contact2Tel", getContact2Tel()) + .append("contact2Email", getContact2Email()) + .append("creditCode", getCreditCode()) + .append("enableFlag", getEnableFlag()) + .append("remark", getRemark()) + .append("attr1", getAttr1()) + .append("attr2", getAttr2()) + .append("attr3", getAttr3()) + .append("attr4", getAttr4()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/domain/SysMachinery.java b/op-modules/op-wms/src/main/java/com/op/wms/domain/SysMachinery.java new file mode 100644 index 00000000..7025acc8 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/domain/SysMachinery.java @@ -0,0 +1,219 @@ +package com.op.wms.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.op.common.core.annotation.Excel; +import com.op.common.core.web.domain.BaseEntity; + +/** + * 机台管理对象 sys_machinery + * + * @author Open Platform + * @date 2023-07-18 + */ +public class SysMachinery extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** 设备类型ID */ + private Long machineryId; + + /** 设备类型编码 */ + @Excel(name = "设备类型编码") + private String machineryCode; + + /** 设备类型名称 */ + @Excel(name = "设备类型名称") + private String machineryName; + + /** 品牌 */ + @Excel(name = "品牌") + private String machineryBrand; + + /** 规格型号 */ + @Excel(name = "规格型号") + private String machinerySpec; + + /** 设备类型ID */ + @Excel(name = "设备类型ID") + private Long machineryTypeId; + + /** 设备类型编码 */ + @Excel(name = "设备类型编码") + private String machineryTypeCode; + + /** 设备类型名称 */ + @Excel(name = "设备类型名称") + private String machineryTypeName; + + /** 所属车间ID */ + @Excel(name = "所属车间ID") + private Long workshopId; + + /** 所属车间编码 */ + @Excel(name = "所属车间编码") + private String workshopCode; + + /** 所属车间名称 */ + @Excel(name = "所属车间名称") + private String workshopName; + + /** 设备状态 */ + @Excel(name = "设备状态") + private String status; + + /** 预留字段1 */ + @Excel(name = "预留字段1") + private String attr1; + + /** 预留字段2 */ + @Excel(name = "预留字段2") + private String attr2; + + /** 预留字段3 */ + @Excel(name = "预留字段3") + private Long attr3; + + /** 预留字段4 */ + @Excel(name = "预留字段4") + private Long attr4; + + public void setMachineryId(Long machineryId) { + this.machineryId = machineryId; + } + + public Long getMachineryId() { + return machineryId; + } + public void setMachineryCode(String machineryCode) { + this.machineryCode = machineryCode; + } + + public String getMachineryCode() { + return machineryCode; + } + public void setMachineryName(String machineryName) { + this.machineryName = machineryName; + } + + public String getMachineryName() { + return machineryName; + } + public void setMachineryBrand(String machineryBrand) { + this.machineryBrand = machineryBrand; + } + + public String getMachineryBrand() { + return machineryBrand; + } + public void setMachinerySpec(String machinerySpec) { + this.machinerySpec = machinerySpec; + } + + public String getMachinerySpec() { + return machinerySpec; + } + public void setMachineryTypeId(Long machineryTypeId) { + this.machineryTypeId = machineryTypeId; + } + + public Long getMachineryTypeId() { + return machineryTypeId; + } + public void setMachineryTypeCode(String machineryTypeCode) { + this.machineryTypeCode = machineryTypeCode; + } + + public String getMachineryTypeCode() { + return machineryTypeCode; + } + public void setMachineryTypeName(String machineryTypeName) { + this.machineryTypeName = machineryTypeName; + } + + public String getMachineryTypeName() { + return machineryTypeName; + } + public void setWorkshopId(Long workshopId) { + this.workshopId = workshopId; + } + + public Long getWorkshopId() { + return workshopId; + } + public void setWorkshopCode(String workshopCode) { + this.workshopCode = workshopCode; + } + + public String getWorkshopCode() { + return workshopCode; + } + public void setWorkshopName(String workshopName) { + this.workshopName = workshopName; + } + + public String getWorkshopName() { + return workshopName; + } + public void setStatus(String status) { + this.status = status; + } + + public String getStatus() { + return status; + } + public void setAttr1(String attr1) { + this.attr1 = attr1; + } + + public String getAttr1() { + return attr1; + } + public void setAttr2(String attr2) { + this.attr2 = attr2; + } + + public String getAttr2() { + return attr2; + } + public void setAttr3(Long attr3) { + this.attr3 = attr3; + } + + public Long getAttr3() { + return attr3; + } + public void setAttr4(Long attr4) { + this.attr4 = attr4; + } + + public Long getAttr4() { + return attr4; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("machineryId", getMachineryId()) + .append("machineryCode", getMachineryCode()) + .append("machineryName", getMachineryName()) + .append("machineryBrand", getMachineryBrand()) + .append("machinerySpec", getMachinerySpec()) + .append("machineryTypeId", getMachineryTypeId()) + .append("machineryTypeCode", getMachineryTypeCode()) + .append("machineryTypeName", getMachineryTypeName()) + .append("workshopId", getWorkshopId()) + .append("workshopCode", getWorkshopCode()) + .append("workshopName", getWorkshopName()) + .append("status", getStatus()) + .append("remark", getRemark()) + .append("attr1", getAttr1()) + .append("attr2", getAttr2()) + .append("attr3", getAttr3()) + .append("attr4", getAttr4()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/mapper/BaseBomItemsTMapper.java b/op-modules/op-wms/src/main/java/com/op/wms/mapper/BaseBomItemsTMapper.java new file mode 100644 index 00000000..24798e18 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/mapper/BaseBomItemsTMapper.java @@ -0,0 +1,61 @@ +package com.op.wms.mapper; + +import java.util.List; + +import com.op.wms.domain.BaseBomItemsT; + +/** + * 物料BOM管理Mapper接口 + * + * @author Open Platform + * @date 2023-07-18 + */ +public interface BaseBomItemsTMapper { + /** + * 查询物料BOM管理 + * + * @param bomItemId 物料BOM管理主键 + * @return 物料BOM管理 + */ + public BaseBomItemsT selectBaseBomItemsTByBomItemId(String bomItemId); + + /** + * 查询物料BOM管理列表 + * + * @param baseBomItemsT 物料BOM管理 + * @return 物料BOM管理集合 + */ + public List selectBaseBomItemsTList(BaseBomItemsT baseBomItemsT); + + /** + * 新增物料BOM管理 + * + * @param baseBomItemsT 物料BOM管理 + * @return 结果 + */ + public int insertBaseBomItemsT(BaseBomItemsT baseBomItemsT); + + /** + * 修改物料BOM管理 + * + * @param baseBomItemsT 物料BOM管理 + * @return 结果 + */ + public int updateBaseBomItemsT(BaseBomItemsT baseBomItemsT); + + /** + * 删除物料BOM管理 + * + * @param bomItemId 物料BOM管理主键 + * @return 结果 + */ + public int deleteBaseBomItemsTByBomItemId(String bomItemId); + + /** + * 批量删除物料BOM管理 + * + * @param bomItemIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBaseBomItemsTByBomItemIds(String[] bomItemIds); +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/mapper/BaseProductGroupsTMapper.java b/op-modules/op-wms/src/main/java/com/op/wms/mapper/BaseProductGroupsTMapper.java new file mode 100644 index 00000000..4b1b7013 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/mapper/BaseProductGroupsTMapper.java @@ -0,0 +1,61 @@ +package com.op.wms.mapper; + +import java.util.List; + +import com.op.wms.domain.BaseProductGroupsT; + +/** + * 物料分组Mapper接口 + * + * @author Open Platform + * @date 2023-07-18 + */ +public interface BaseProductGroupsTMapper { + /** + * 查询物料分组 + * + * @param pgId 物料分组主键 + * @return 物料分组 + */ + public BaseProductGroupsT selectBaseProductGroupsTByPgId(String pgId); + + /** + * 查询物料分组列表 + * + * @param baseProductGroupsT 物料分组 + * @return 物料分组集合 + */ + public List selectBaseProductGroupsTList(BaseProductGroupsT baseProductGroupsT); + + /** + * 新增物料分组 + * + * @param baseProductGroupsT 物料分组 + * @return 结果 + */ + public int insertBaseProductGroupsT(BaseProductGroupsT baseProductGroupsT); + + /** + * 修改物料分组 + * + * @param baseProductGroupsT 物料分组 + * @return 结果 + */ + public int updateBaseProductGroupsT(BaseProductGroupsT baseProductGroupsT); + + /** + * 删除物料分组 + * + * @param pgId 物料分组主键 + * @return 结果 + */ + public int deleteBaseProductGroupsTByPgId(String pgId); + + /** + * 批量删除物料分组 + * + * @param pgIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBaseProductGroupsTByPgIds(String[] pgIds); +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/mapper/BaseProductMapper.java b/op-modules/op-wms/src/main/java/com/op/wms/mapper/BaseProductMapper.java new file mode 100644 index 00000000..ed331217 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/mapper/BaseProductMapper.java @@ -0,0 +1,61 @@ +package com.op.wms.mapper; + +import java.util.List; + +import com.op.wms.domain.BaseProduct; + +/** + * 物料信息Mapper接口 + * + * @author Open Platform + * @date 2023-07-18 + */ +public interface BaseProductMapper { + /** + * 查询物料信息 + * + * @param productId 物料信息主键 + * @return 物料信息 + */ + public BaseProduct selectBaseProductByProductId(String productId); + + /** + * 查询物料信息列表 + * + * @param baseProduct 物料信息 + * @return 物料信息集合 + */ + public List selectBaseProductList(BaseProduct baseProduct); + + /** + * 新增物料信息 + * + * @param baseProduct 物料信息 + * @return 结果 + */ + public int insertBaseProduct(BaseProduct baseProduct); + + /** + * 修改物料信息 + * + * @param baseProduct 物料信息 + * @return 结果 + */ + public int updateBaseProduct(BaseProduct baseProduct); + + /** + * 删除物料信息 + * + * @param productId 物料信息主键 + * @return 结果 + */ + public int deleteBaseProductByProductId(String productId); + + /** + * 批量删除物料信息 + * + * @param productIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBaseProductByProductIds(String[] productIds); +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/mapper/BaseSupplierMapper.java b/op-modules/op-wms/src/main/java/com/op/wms/mapper/BaseSupplierMapper.java new file mode 100644 index 00000000..0013a4a9 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/mapper/BaseSupplierMapper.java @@ -0,0 +1,61 @@ +package com.op.wms.mapper; + +import java.util.List; + +import com.op.wms.domain.BaseSupplier; + +/** + * 供应商管理Mapper接口 + * + * @author Open Platform + * @date 2023-07-18 + */ +public interface BaseSupplierMapper { + /** + * 查询供应商管理 + * + * @param supplierId 供应商管理主键 + * @return 供应商管理 + */ + public BaseSupplier selectBaseSupplierBySupplierId(String supplierId); + + /** + * 查询供应商管理列表 + * + * @param baseSupplier 供应商管理 + * @return 供应商管理集合 + */ + public List selectBaseSupplierList(BaseSupplier baseSupplier); + + /** + * 新增供应商管理 + * + * @param baseSupplier 供应商管理 + * @return 结果 + */ + public int insertBaseSupplier(BaseSupplier baseSupplier); + + /** + * 修改供应商管理 + * + * @param baseSupplier 供应商管理 + * @return 结果 + */ + public int updateBaseSupplier(BaseSupplier baseSupplier); + + /** + * 删除供应商管理 + * + * @param supplierId 供应商管理主键 + * @return 结果 + */ + public int deleteBaseSupplierBySupplierId(String supplierId); + + /** + * 批量删除供应商管理 + * + * @param supplierIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBaseSupplierBySupplierIds(String[] supplierIds); +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/mapper/SysCustomerMapper.java b/op-modules/op-wms/src/main/java/com/op/wms/mapper/SysCustomerMapper.java new file mode 100644 index 00000000..0c199285 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/mapper/SysCustomerMapper.java @@ -0,0 +1,61 @@ +package com.op.wms.mapper; + +import java.util.List; + +import com.op.wms.domain.SysCustomer; + +/** + * 客户管理Mapper接口 + * + * @author Open Platform + * @date 2023-07-18 + */ +public interface SysCustomerMapper { + /** + * 查询客户管理 + * + * @param clientId 客户管理主键 + * @return 客户管理 + */ + public SysCustomer selectSysCustomerByClientId(Long clientId); + + /** + * 查询客户管理列表 + * + * @param sysCustomer 客户管理 + * @return 客户管理集合 + */ + public List selectSysCustomerList(SysCustomer sysCustomer); + + /** + * 新增客户管理 + * + * @param sysCustomer 客户管理 + * @return 结果 + */ + public int insertSysCustomer(SysCustomer sysCustomer); + + /** + * 修改客户管理 + * + * @param sysCustomer 客户管理 + * @return 结果 + */ + public int updateSysCustomer(SysCustomer sysCustomer); + + /** + * 删除客户管理 + * + * @param clientId 客户管理主键 + * @return 结果 + */ + public int deleteSysCustomerByClientId(Long clientId); + + /** + * 批量删除客户管理 + * + * @param clientIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteSysCustomerByClientIds(Long[] clientIds); +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/mapper/SysMachineryMapper.java b/op-modules/op-wms/src/main/java/com/op/wms/mapper/SysMachineryMapper.java new file mode 100644 index 00000000..bb78b6db --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/mapper/SysMachineryMapper.java @@ -0,0 +1,61 @@ +package com.op.wms.mapper; + +import java.util.List; + +import com.op.wms.domain.SysMachinery; + +/** + * 机台管理Mapper接口 + * + * @author Open Platform + * @date 2023-07-18 + */ +public interface SysMachineryMapper { + /** + * 查询机台管理 + * + * @param machineryId 机台管理主键 + * @return 机台管理 + */ + public SysMachinery selectSysMachineryByMachineryId(Long machineryId); + + /** + * 查询机台管理列表 + * + * @param sysMachinery 机台管理 + * @return 机台管理集合 + */ + public List selectSysMachineryList(SysMachinery sysMachinery); + + /** + * 新增机台管理 + * + * @param sysMachinery 机台管理 + * @return 结果 + */ + public int insertSysMachinery(SysMachinery sysMachinery); + + /** + * 修改机台管理 + * + * @param sysMachinery 机台管理 + * @return 结果 + */ + public int updateSysMachinery(SysMachinery sysMachinery); + + /** + * 删除机台管理 + * + * @param machineryId 机台管理主键 + * @return 结果 + */ + public int deleteSysMachineryByMachineryId(Long machineryId); + + /** + * 批量删除机台管理 + * + * @param machineryIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteSysMachineryByMachineryIds(Long[] machineryIds); +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/IBaseBomItemsTService.java b/op-modules/op-wms/src/main/java/com/op/wms/service/IBaseBomItemsTService.java new file mode 100644 index 00000000..6f1e8f43 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/IBaseBomItemsTService.java @@ -0,0 +1,60 @@ +package com.op.wms.service; + +import java.util.List; +import com.op.wms.domain.BaseBomItemsT; + +/** + * 物料BOM管理Service接口 + * + * @author Open Platform + * @date 2023-07-18 + */ +public interface IBaseBomItemsTService { + /** + * 查询物料BOM管理 + * + * @param bomItemId 物料BOM管理主键 + * @return 物料BOM管理 + */ + public BaseBomItemsT selectBaseBomItemsTByBomItemId(String bomItemId); + + /** + * 查询物料BOM管理列表 + * + * @param baseBomItemsT 物料BOM管理 + * @return 物料BOM管理集合 + */ + public List selectBaseBomItemsTList(BaseBomItemsT baseBomItemsT); + + /** + * 新增物料BOM管理 + * + * @param baseBomItemsT 物料BOM管理 + * @return 结果 + */ + public int insertBaseBomItemsT(BaseBomItemsT baseBomItemsT); + + /** + * 修改物料BOM管理 + * + * @param baseBomItemsT 物料BOM管理 + * @return 结果 + */ + public int updateBaseBomItemsT(BaseBomItemsT baseBomItemsT); + + /** + * 批量删除物料BOM管理 + * + * @param bomItemIds 需要删除的物料BOM管理主键集合 + * @return 结果 + */ + public int deleteBaseBomItemsTByBomItemIds(String[] bomItemIds); + + /** + * 删除物料BOM管理信息 + * + * @param bomItemId 物料BOM管理主键 + * @return 结果 + */ + public int deleteBaseBomItemsTByBomItemId(String bomItemId); +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/IBaseProductGroupsTService.java b/op-modules/op-wms/src/main/java/com/op/wms/service/IBaseProductGroupsTService.java new file mode 100644 index 00000000..64cd67a3 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/IBaseProductGroupsTService.java @@ -0,0 +1,60 @@ +package com.op.wms.service; + +import java.util.List; +import com.op.wms.domain.BaseProductGroupsT; + +/** + * 物料分组Service接口 + * + * @author Open Platform + * @date 2023-07-18 + */ +public interface IBaseProductGroupsTService { + /** + * 查询物料分组 + * + * @param pgId 物料分组主键 + * @return 物料分组 + */ + public BaseProductGroupsT selectBaseProductGroupsTByPgId(String pgId); + + /** + * 查询物料分组列表 + * + * @param baseProductGroupsT 物料分组 + * @return 物料分组集合 + */ + public List selectBaseProductGroupsTList(BaseProductGroupsT baseProductGroupsT); + + /** + * 新增物料分组 + * + * @param baseProductGroupsT 物料分组 + * @return 结果 + */ + public int insertBaseProductGroupsT(BaseProductGroupsT baseProductGroupsT); + + /** + * 修改物料分组 + * + * @param baseProductGroupsT 物料分组 + * @return 结果 + */ + public int updateBaseProductGroupsT(BaseProductGroupsT baseProductGroupsT); + + /** + * 批量删除物料分组 + * + * @param pgIds 需要删除的物料分组主键集合 + * @return 结果 + */ + public int deleteBaseProductGroupsTByPgIds(String[] pgIds); + + /** + * 删除物料分组信息 + * + * @param pgId 物料分组主键 + * @return 结果 + */ + public int deleteBaseProductGroupsTByPgId(String pgId); +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/IBaseProductService.java b/op-modules/op-wms/src/main/java/com/op/wms/service/IBaseProductService.java new file mode 100644 index 00000000..5528584d --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/IBaseProductService.java @@ -0,0 +1,60 @@ +package com.op.wms.service; + +import java.util.List; +import com.op.wms.domain.BaseProduct; + +/** + * 物料信息Service接口 + * + * @author Open Platform + * @date 2023-07-18 + */ +public interface IBaseProductService { + /** + * 查询物料信息 + * + * @param productId 物料信息主键 + * @return 物料信息 + */ + public BaseProduct selectBaseProductByProductId(String productId); + + /** + * 查询物料信息列表 + * + * @param baseProduct 物料信息 + * @return 物料信息集合 + */ + public List selectBaseProductList(BaseProduct baseProduct); + + /** + * 新增物料信息 + * + * @param baseProduct 物料信息 + * @return 结果 + */ + public int insertBaseProduct(BaseProduct baseProduct); + + /** + * 修改物料信息 + * + * @param baseProduct 物料信息 + * @return 结果 + */ + public int updateBaseProduct(BaseProduct baseProduct); + + /** + * 批量删除物料信息 + * + * @param productIds 需要删除的物料信息主键集合 + * @return 结果 + */ + public int deleteBaseProductByProductIds(String[] productIds); + + /** + * 删除物料信息信息 + * + * @param productId 物料信息主键 + * @return 结果 + */ + public int deleteBaseProductByProductId(String productId); +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/IBaseSupplierService.java b/op-modules/op-wms/src/main/java/com/op/wms/service/IBaseSupplierService.java new file mode 100644 index 00000000..844688c0 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/IBaseSupplierService.java @@ -0,0 +1,60 @@ +package com.op.wms.service; + +import java.util.List; +import com.op.wms.domain.BaseSupplier; + +/** + * 供应商管理Service接口 + * + * @author Open Platform + * @date 2023-07-18 + */ +public interface IBaseSupplierService { + /** + * 查询供应商管理 + * + * @param supplierId 供应商管理主键 + * @return 供应商管理 + */ + public BaseSupplier selectBaseSupplierBySupplierId(String supplierId); + + /** + * 查询供应商管理列表 + * + * @param baseSupplier 供应商管理 + * @return 供应商管理集合 + */ + public List selectBaseSupplierList(BaseSupplier baseSupplier); + + /** + * 新增供应商管理 + * + * @param baseSupplier 供应商管理 + * @return 结果 + */ + public int insertBaseSupplier(BaseSupplier baseSupplier); + + /** + * 修改供应商管理 + * + * @param baseSupplier 供应商管理 + * @return 结果 + */ + public int updateBaseSupplier(BaseSupplier baseSupplier); + + /** + * 批量删除供应商管理 + * + * @param supplierIds 需要删除的供应商管理主键集合 + * @return 结果 + */ + public int deleteBaseSupplierBySupplierIds(String[] supplierIds); + + /** + * 删除供应商管理信息 + * + * @param supplierId 供应商管理主键 + * @return 结果 + */ + public int deleteBaseSupplierBySupplierId(String supplierId); +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/ISysCustomerService.java b/op-modules/op-wms/src/main/java/com/op/wms/service/ISysCustomerService.java new file mode 100644 index 00000000..58b67b69 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/ISysCustomerService.java @@ -0,0 +1,60 @@ +package com.op.wms.service; + +import java.util.List; +import com.op.wms.domain.SysCustomer; + +/** + * 客户管理Service接口 + * + * @author Open Platform + * @date 2023-07-18 + */ +public interface ISysCustomerService { + /** + * 查询客户管理 + * + * @param clientId 客户管理主键 + * @return 客户管理 + */ + public SysCustomer selectSysCustomerByClientId(Long clientId); + + /** + * 查询客户管理列表 + * + * @param sysCustomer 客户管理 + * @return 客户管理集合 + */ + public List selectSysCustomerList(SysCustomer sysCustomer); + + /** + * 新增客户管理 + * + * @param sysCustomer 客户管理 + * @return 结果 + */ + public int insertSysCustomer(SysCustomer sysCustomer); + + /** + * 修改客户管理 + * + * @param sysCustomer 客户管理 + * @return 结果 + */ + public int updateSysCustomer(SysCustomer sysCustomer); + + /** + * 批量删除客户管理 + * + * @param clientIds 需要删除的客户管理主键集合 + * @return 结果 + */ + public int deleteSysCustomerByClientIds(Long[] clientIds); + + /** + * 删除客户管理信息 + * + * @param clientId 客户管理主键 + * @return 结果 + */ + public int deleteSysCustomerByClientId(Long clientId); +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/ISysMachineryService.java b/op-modules/op-wms/src/main/java/com/op/wms/service/ISysMachineryService.java new file mode 100644 index 00000000..a4a9926f --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/ISysMachineryService.java @@ -0,0 +1,60 @@ +package com.op.wms.service; + +import java.util.List; +import com.op.wms.domain.SysMachinery; + +/** + * 机台管理Service接口 + * + * @author Open Platform + * @date 2023-07-18 + */ +public interface ISysMachineryService { + /** + * 查询机台管理 + * + * @param machineryId 机台管理主键 + * @return 机台管理 + */ + public SysMachinery selectSysMachineryByMachineryId(Long machineryId); + + /** + * 查询机台管理列表 + * + * @param sysMachinery 机台管理 + * @return 机台管理集合 + */ + public List selectSysMachineryList(SysMachinery sysMachinery); + + /** + * 新增机台管理 + * + * @param sysMachinery 机台管理 + * @return 结果 + */ + public int insertSysMachinery(SysMachinery sysMachinery); + + /** + * 修改机台管理 + * + * @param sysMachinery 机台管理 + * @return 结果 + */ + public int updateSysMachinery(SysMachinery sysMachinery); + + /** + * 批量删除机台管理 + * + * @param machineryIds 需要删除的机台管理主键集合 + * @return 结果 + */ + public int deleteSysMachineryByMachineryIds(Long[] machineryIds); + + /** + * 删除机台管理信息 + * + * @param machineryId 机台管理主键 + * @return 结果 + */ + public int deleteSysMachineryByMachineryId(Long machineryId); +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseAreaServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseAreaServiceImpl.java index 81f7311d..2dea88f1 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseAreaServiceImpl.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseAreaServiceImpl.java @@ -1,6 +1,8 @@ package com.op.wms.service.impl; import java.util.List; + +import com.baomidou.dynamic.datasource.annotation.DS; import com.op.common.core.utils.DateUtils; import com.op.common.security.utils.SecurityUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -27,6 +29,7 @@ public class BaseAreaServiceImpl implements IBaseAreaService { * @return 库区 */ @Override + @DS("#header.poolName") public BaseArea selectBaseAreaByAreaId(String areaId) { return baseAreaMapper.selectBaseAreaByAreaId(areaId); } @@ -38,6 +41,7 @@ public class BaseAreaServiceImpl implements IBaseAreaService { * @return 库区 */ @Override + @DS("#header.poolName") public List selectBaseAreaList(BaseArea baseArea) { return baseAreaMapper.selectBaseAreaList(baseArea); } @@ -49,6 +53,7 @@ public class BaseAreaServiceImpl implements IBaseAreaService { * @return 结果 */ @Override + @DS("#header.poolName") public int insertBaseArea(BaseArea baseArea) { baseArea.setCreateTime(DateUtils.getNowDate()); baseArea.setCreateBy(SecurityUtils.getUsername()); @@ -65,6 +70,7 @@ public class BaseAreaServiceImpl implements IBaseAreaService { * @return 结果 */ @Override + @DS("#header.poolName") public int updateBaseArea(BaseArea baseArea) { baseArea.setUpdateTime(DateUtils.getNowDate()); return baseAreaMapper.updateBaseArea(baseArea); @@ -77,6 +83,7 @@ public class BaseAreaServiceImpl implements IBaseAreaService { * @return 结果 */ @Override + @DS("#header.poolName") public int deleteBaseAreaByAreaIds(String[] areaIds) { return baseAreaMapper.deleteBaseAreaByAreaIds(areaIds); } @@ -88,6 +95,7 @@ public class BaseAreaServiceImpl implements IBaseAreaService { * @return 结果 */ @Override + @DS("#header.poolName") public int deleteBaseAreaByAreaId(String areaId) { return baseAreaMapper.deleteBaseAreaByAreaId(areaId); } diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseBomItemsTServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseBomItemsTServiceImpl.java new file mode 100644 index 00000000..ddd0d7b9 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseBomItemsTServiceImpl.java @@ -0,0 +1,99 @@ +package com.op.wms.service.impl; + +import java.util.List; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.op.common.core.utils.DateUtils; +import com.op.common.security.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.op.wms.mapper.BaseBomItemsTMapper; +import com.op.wms.domain.BaseBomItemsT; +import com.op.wms.service.IBaseBomItemsTService; + +/** + * 物料BOM管理Service业务层处理 + * + * @author Open Platform + * @date 2023-07-18 + */ +@Service +public class BaseBomItemsTServiceImpl implements IBaseBomItemsTService { + @Autowired + private BaseBomItemsTMapper baseBomItemsTMapper; + + /** + * 查询物料BOM管理 + * + * @param bomItemId 物料BOM管理主键 + * @return 物料BOM管理 + */ + @Override + @DS("#header.poolName") + public BaseBomItemsT selectBaseBomItemsTByBomItemId(String bomItemId) { + return baseBomItemsTMapper.selectBaseBomItemsTByBomItemId(bomItemId); + } + + /** + * 查询物料BOM管理列表 + * + * @param baseBomItemsT 物料BOM管理 + * @return 物料BOM管理 + */ + @Override + @DS("#header.poolName") + public List selectBaseBomItemsTList(BaseBomItemsT baseBomItemsT) { + return baseBomItemsTMapper.selectBaseBomItemsTList(baseBomItemsT); + } + + /** + * 新增物料BOM管理 + * + * @param baseBomItemsT 物料BOM管理 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int insertBaseBomItemsT(BaseBomItemsT baseBomItemsT) { + baseBomItemsT.setCreateTime(DateUtils.getNowDate()); + baseBomItemsT.setCreateBy(SecurityUtils.getUsername()); + return baseBomItemsTMapper.insertBaseBomItemsT(baseBomItemsT); + } + + /** + * 修改物料BOM管理 + * + * @param baseBomItemsT 物料BOM管理 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int updateBaseBomItemsT(BaseBomItemsT baseBomItemsT) { + baseBomItemsT.setUpdateTime(DateUtils.getNowDate()); + baseBomItemsT.setCreateBy(SecurityUtils.getUsername()); + return baseBomItemsTMapper.updateBaseBomItemsT(baseBomItemsT); + } + + /** + * 批量删除物料BOM管理 + * + * @param bomItemIds 需要删除的物料BOM管理主键 + * @return 结果 + */ + @Override @DS("#header.poolName") + public int deleteBaseBomItemsTByBomItemIds(String[] bomItemIds) { + return baseBomItemsTMapper.deleteBaseBomItemsTByBomItemIds(bomItemIds); + } + + /** + * 删除物料BOM管理信息 + * + * @param bomItemId 物料BOM管理主键 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int deleteBaseBomItemsTByBomItemId(String bomItemId) { + return baseBomItemsTMapper.deleteBaseBomItemsTByBomItemId(bomItemId); + } +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseLocationServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseLocationServiceImpl.java index d0c054d1..fbbd1791 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseLocationServiceImpl.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseLocationServiceImpl.java @@ -1,6 +1,8 @@ package com.op.wms.service.impl; import java.util.List; + +import com.baomidou.dynamic.datasource.annotation.DS; import com.op.common.core.utils.DateUtils; import com.op.common.security.utils.SecurityUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -27,6 +29,7 @@ public class BaseLocationServiceImpl implements IBaseLocationService { * @return 货位管理 */ @Override + @DS("#header.poolName") public BaseLocation selectBaseLocationByLocationId(String locationId) { return baseLocationMapper.selectBaseLocationByLocationId(locationId); } @@ -38,6 +41,7 @@ public class BaseLocationServiceImpl implements IBaseLocationService { * @return 货位管理 */ @Override + @DS("#header.poolName") public List selectBaseLocationList(BaseLocation baseLocation) { return baseLocationMapper.selectBaseLocationList(baseLocation); } @@ -49,6 +53,7 @@ public class BaseLocationServiceImpl implements IBaseLocationService { * @return 结果 */ @Override + @DS("#header.poolName") public int insertBaseLocation(BaseLocation baseLocation) { baseLocation.setCreateTime(DateUtils.getNowDate()); baseLocation.setCreateBy(SecurityUtils.getUsername()); @@ -62,6 +67,7 @@ public class BaseLocationServiceImpl implements IBaseLocationService { * @return 结果 */ @Override + @DS("#header.poolName") public int updateBaseLocation(BaseLocation baseLocation) { baseLocation.setUpdateTime(DateUtils.getNowDate()); baseLocation.setUpdateBy(SecurityUtils.getUsername()); @@ -75,6 +81,7 @@ public class BaseLocationServiceImpl implements IBaseLocationService { * @return 结果 */ @Override + @DS("#header.poolName") public int deleteBaseLocationByLocationIds(String[] locationIds) { return baseLocationMapper.deleteBaseLocationByLocationIds(locationIds); } @@ -86,6 +93,7 @@ public class BaseLocationServiceImpl implements IBaseLocationService { * @return 结果 */ @Override + @DS("#header.poolName") public int deleteBaseLocationByLocationId(String locationId) { return baseLocationMapper.deleteBaseLocationByLocationId(locationId); } diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseProductGroupsTServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseProductGroupsTServiceImpl.java new file mode 100644 index 00000000..9a6e535f --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseProductGroupsTServiceImpl.java @@ -0,0 +1,100 @@ +package com.op.wms.service.impl; + +import java.util.List; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.op.common.core.utils.DateUtils; +import com.op.common.security.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.op.wms.mapper.BaseProductGroupsTMapper; +import com.op.wms.domain.BaseProductGroupsT; +import com.op.wms.service.IBaseProductGroupsTService; + +/** + * 物料分组Service业务层处理 + * + * @author Open Platform + * @date 2023-07-18 + */ +@Service +public class BaseProductGroupsTServiceImpl implements IBaseProductGroupsTService { + @Autowired + private BaseProductGroupsTMapper baseProductGroupsTMapper; + + /** + * 查询物料分组 + * + * @param pgId 物料分组主键 + * @return 物料分组 + */ + @Override + @DS("#header.poolName") + public BaseProductGroupsT selectBaseProductGroupsTByPgId(String pgId) { + return baseProductGroupsTMapper.selectBaseProductGroupsTByPgId(pgId); + } + + /** + * 查询物料分组列表 + * + * @param baseProductGroupsT 物料分组 + * @return 物料分组 + */ + @Override + @DS("#header.poolName") + public List selectBaseProductGroupsTList(BaseProductGroupsT baseProductGroupsT) { + return baseProductGroupsTMapper.selectBaseProductGroupsTList(baseProductGroupsT); + } + + /** + * 新增物料分组 + * + * @param baseProductGroupsT 物料分组 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int insertBaseProductGroupsT(BaseProductGroupsT baseProductGroupsT) { + baseProductGroupsT.setCreateTime(DateUtils.getNowDate()); + baseProductGroupsT.setCreateBy(SecurityUtils.getUsername()); + return baseProductGroupsTMapper.insertBaseProductGroupsT(baseProductGroupsT); + } + + /** + * 修改物料分组 + * + * @param baseProductGroupsT 物料分组 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int updateBaseProductGroupsT(BaseProductGroupsT baseProductGroupsT) { + baseProductGroupsT.setUpdateTime(DateUtils.getNowDate()); + baseProductGroupsT.setUpdateBy(SecurityUtils.getUsername()); + return baseProductGroupsTMapper.updateBaseProductGroupsT(baseProductGroupsT); + } + + /** + * 批量删除物料分组 + * + * @param pgIds 需要删除的物料分组主键 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int deleteBaseProductGroupsTByPgIds(String[] pgIds) { + return baseProductGroupsTMapper.deleteBaseProductGroupsTByPgIds(pgIds); + } + + /** + * 删除物料分组信息 + * + * @param pgId 物料分组主键 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int deleteBaseProductGroupsTByPgId(String pgId) { + return baseProductGroupsTMapper.deleteBaseProductGroupsTByPgId(pgId); + } +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseProductServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseProductServiceImpl.java new file mode 100644 index 00000000..54ec63e0 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseProductServiceImpl.java @@ -0,0 +1,100 @@ +package com.op.wms.service.impl; + +import java.util.List; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.op.common.core.utils.DateUtils; +import com.op.common.security.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.op.wms.mapper.BaseProductMapper; +import com.op.wms.domain.BaseProduct; +import com.op.wms.service.IBaseProductService; + +/** + * 物料信息Service业务层处理 + * + * @author Open Platform + * @date 2023-07-18 + */ +@Service +public class BaseProductServiceImpl implements IBaseProductService { + @Autowired + private BaseProductMapper baseProductMapper; + + /** + * 查询物料信息 + * + * @param productId 物料信息主键 + * @return 物料信息 + */ + @Override + @DS("#header.poolName") + public BaseProduct selectBaseProductByProductId(String productId) { + return baseProductMapper.selectBaseProductByProductId(productId); + } + + /** + * 查询物料信息列表 + * + * @param baseProduct 物料信息 + * @return 物料信息 + */ + @Override + @DS("#header.poolName") + public List selectBaseProductList(BaseProduct baseProduct) { + return baseProductMapper.selectBaseProductList(baseProduct); + } + + /** + * 新增物料信息 + * + * @param baseProduct 物料信息 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int insertBaseProduct(BaseProduct baseProduct) { + baseProduct.setCreateTime(DateUtils.getNowDate()); + baseProduct.setCreateBy(SecurityUtils.getUsername()); + return baseProductMapper.insertBaseProduct(baseProduct); + } + + /** + * 修改物料信息 + * + * @param baseProduct 物料信息 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int updateBaseProduct(BaseProduct baseProduct) { + baseProduct.setUpdateTime(DateUtils.getNowDate()); + baseProduct.setUpdateBy(SecurityUtils.getUsername()); + return baseProductMapper.updateBaseProduct(baseProduct); + } + + /** + * 批量删除物料信息 + * + * @param productIds 需要删除的物料信息主键 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int deleteBaseProductByProductIds(String[] productIds) { + return baseProductMapper.deleteBaseProductByProductIds(productIds); + } + + /** + * 删除物料信息信息 + * + * @param productId 物料信息主键 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int deleteBaseProductByProductId(String productId) { + return baseProductMapper.deleteBaseProductByProductId(productId); + } +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseShiftsTServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseShiftsTServiceImpl.java index d989291f..341dc978 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseShiftsTServiceImpl.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseShiftsTServiceImpl.java @@ -2,6 +2,7 @@ package com.op.wms.service.impl; import java.util.List; +import com.baomidou.dynamic.datasource.annotation.DS; import com.op.common.core.utils.DateUtils; import com.op.common.security.utils.SecurityUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -28,6 +29,7 @@ public class BaseShiftsTServiceImpl implements IBaseShiftsTService { * @return 班次管理 */ @Override + @DS("#header.poolName") public BaseShiftsT selectBaseShiftsTByShiftId(String shiftId) { return baseShiftsTMapper.selectBaseShiftsTByShiftId(shiftId); } @@ -39,6 +41,7 @@ public class BaseShiftsTServiceImpl implements IBaseShiftsTService { * @return 班次管理 */ @Override + @DS("#header.poolName") public List selectBaseShiftsTList(BaseShiftsT baseShiftsT) { return baseShiftsTMapper.selectBaseShiftsTList(baseShiftsT); } @@ -50,6 +53,7 @@ public class BaseShiftsTServiceImpl implements IBaseShiftsTService { * @return 结果 */ @Override + @DS("#header.poolName") public int insertBaseShiftsT(BaseShiftsT baseShiftsT) { baseShiftsT.setCreateDate(DateUtils.getNowDate()); baseShiftsT.setUpdateBy(SecurityUtils.getUsername()); @@ -63,6 +67,7 @@ public class BaseShiftsTServiceImpl implements IBaseShiftsTService { * @return 结果 */ @Override + @DS("#header.poolName") public int updateBaseShiftsT(BaseShiftsT baseShiftsT) { baseShiftsT.setLastUpdateDate(DateUtils.getNowDate()); baseShiftsT.setLastUpdateBy(SecurityUtils.getUsername()); @@ -76,6 +81,7 @@ public class BaseShiftsTServiceImpl implements IBaseShiftsTService { * @return 结果 */ @Override + @DS("#header.poolName") public int deleteBaseShiftsTByShiftIds(String[] shiftIds) { return baseShiftsTMapper.deleteBaseShiftsTByShiftIds(shiftIds); } @@ -87,6 +93,7 @@ public class BaseShiftsTServiceImpl implements IBaseShiftsTService { * @return 结果 */ @Override + @DS("#header.poolName") public int deleteBaseShiftsTByShiftId(String shiftId) { return baseShiftsTMapper.deleteBaseShiftsTByShiftId(shiftId); } diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseSupplierServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseSupplierServiceImpl.java new file mode 100644 index 00000000..9c326d8a --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseSupplierServiceImpl.java @@ -0,0 +1,100 @@ +package com.op.wms.service.impl; + +import java.util.List; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.op.common.core.utils.DateUtils; +import com.op.common.security.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.op.wms.mapper.BaseSupplierMapper; +import com.op.wms.domain.BaseSupplier; +import com.op.wms.service.IBaseSupplierService; + +/** + * 供应商管理Service业务层处理 + * + * @author Open Platform + * @date 2023-07-18 + */ +@Service +public class BaseSupplierServiceImpl implements IBaseSupplierService { + @Autowired + private BaseSupplierMapper baseSupplierMapper; + + /** + * 查询供应商管理 + * + * @param supplierId 供应商管理主键 + * @return 供应商管理 + */ + @Override + @DS("#header.poolName") + public BaseSupplier selectBaseSupplierBySupplierId(String supplierId) { + return baseSupplierMapper.selectBaseSupplierBySupplierId(supplierId); + } + + /** + * 查询供应商管理列表 + * + * @param baseSupplier 供应商管理 + * @return 供应商管理 + */ + @Override + @DS("#header.poolName") + public List selectBaseSupplierList(BaseSupplier baseSupplier) { + return baseSupplierMapper.selectBaseSupplierList(baseSupplier); + } + + /** + * 新增供应商管理 + * + * @param baseSupplier 供应商管理 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int insertBaseSupplier(BaseSupplier baseSupplier) { + baseSupplier.setCreateTime(DateUtils.getNowDate()); + baseSupplier.setCreateBy(SecurityUtils.getUsername()); + return baseSupplierMapper.insertBaseSupplier(baseSupplier); + } + + /** + * 修改供应商管理 + * + * @param baseSupplier 供应商管理 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int updateBaseSupplier(BaseSupplier baseSupplier) { + baseSupplier.setUpdateTime(DateUtils.getNowDate()); + baseSupplier.setUpdateBy(SecurityUtils.getUsername()); + return baseSupplierMapper.updateBaseSupplier(baseSupplier); + } + + /** + * 批量删除供应商管理 + * + * @param supplierIds 需要删除的供应商管理主键 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int deleteBaseSupplierBySupplierIds(String[] supplierIds) { + return baseSupplierMapper.deleteBaseSupplierBySupplierIds(supplierIds); + } + + /** + * 删除供应商管理信息 + * + * @param supplierId 供应商管理主键 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int deleteBaseSupplierBySupplierId(String supplierId) { + return baseSupplierMapper.deleteBaseSupplierBySupplierId(supplierId); + } +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseTeamTServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseTeamTServiceImpl.java index d11fcb49..38576860 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseTeamTServiceImpl.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseTeamTServiceImpl.java @@ -2,6 +2,7 @@ package com.op.wms.service.impl; import java.util.List; +import com.baomidou.dynamic.datasource.annotation.DS; import com.op.common.core.utils.DateUtils; import com.op.common.security.utils.SecurityUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -28,6 +29,7 @@ public class BaseTeamTServiceImpl implements IBaseTeamTService { * @return 班组 */ @Override + @DS("#header.poolName") public BaseTeamT selectBaseTeamTByTeamId(String teamId) { return baseTeamTMapper.selectBaseTeamTByTeamId(teamId); } @@ -39,6 +41,7 @@ public class BaseTeamTServiceImpl implements IBaseTeamTService { * @return 班组 */ @Override + @DS("#header.poolName") public List selectBaseTeamTList(BaseTeamT baseTeamT) { return baseTeamTMapper.selectBaseTeamTList(baseTeamT); } @@ -50,6 +53,7 @@ public class BaseTeamTServiceImpl implements IBaseTeamTService { * @return 结果 */ @Override + @DS("#header.poolName") public int insertBaseTeamT(BaseTeamT baseTeamT) { baseTeamT.setCreateDate(DateUtils.getNowDate()); baseTeamT.setCreateBy(SecurityUtils.getUsername()); @@ -63,6 +67,7 @@ public class BaseTeamTServiceImpl implements IBaseTeamTService { * @return 结果 */ @Override + @DS("#header.poolName") public int updateBaseTeamT(BaseTeamT baseTeamT) { baseTeamT.setLastUpdateDate(DateUtils.getNowDate()); baseTeamT.setLastUpdateBy(SecurityUtils.getUsername()); @@ -76,6 +81,7 @@ public class BaseTeamTServiceImpl implements IBaseTeamTService { * @return 结果 */ @Override + @DS("#header.poolName") public int deleteBaseTeamTByTeamIds(String[] teamIds) { return baseTeamTMapper.deleteBaseTeamTByTeamIds(teamIds); } @@ -87,6 +93,7 @@ public class BaseTeamTServiceImpl implements IBaseTeamTService { * @return 结果 */ @Override + @DS("#header.poolName") public int deleteBaseTeamTByTeamId(String teamId) { return baseTeamTMapper.deleteBaseTeamTByTeamId(teamId); } diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseWarehouseServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseWarehouseServiceImpl.java index 98acda90..afe23b24 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseWarehouseServiceImpl.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseWarehouseServiceImpl.java @@ -1,6 +1,8 @@ package com.op.wms.service.impl; import java.util.List; + +import com.baomidou.dynamic.datasource.annotation.DS; import com.op.common.core.utils.DateUtils; import com.op.common.security.utils.SecurityUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -27,6 +29,7 @@ public class BaseWarehouseServiceImpl implements IBaseWarehouseService { * @return 仓库管理 */ @Override + @DS("#header.poolName") public BaseWarehouse selectBaseWarehouseByWarehouseId(String warehouseId) { return baseWarehouseMapper.selectBaseWarehouseByWarehouseId(warehouseId); } @@ -38,6 +41,7 @@ public class BaseWarehouseServiceImpl implements IBaseWarehouseService { * @return 仓库管理 */ @Override + @DS("#header.poolName") public List selectBaseWarehouseList(BaseWarehouse baseWarehouse) { return baseWarehouseMapper.selectBaseWarehouseList(baseWarehouse); } @@ -49,6 +53,7 @@ public class BaseWarehouseServiceImpl implements IBaseWarehouseService { * @return 结果 */ @Override + @DS("#header.poolName") public int insertBaseWarehouse(BaseWarehouse baseWarehouse) { baseWarehouse.setCreateTime(DateUtils.getNowDate()); baseWarehouse.setCreateBy(SecurityUtils.getUsername()); @@ -65,6 +70,7 @@ public class BaseWarehouseServiceImpl implements IBaseWarehouseService { * @return 结果 */ @Override + @DS("#header.poolName") public int updateBaseWarehouse(BaseWarehouse baseWarehouse) { baseWarehouse.setUpdateTime(DateUtils.getNowDate()); baseWarehouse.setUpdateBy(SecurityUtils.getUsername()); @@ -78,6 +84,7 @@ public class BaseWarehouseServiceImpl implements IBaseWarehouseService { * @return 结果 */ @Override + @DS("#header.poolName") public int deleteBaseWarehouseByWarehouseIds(String[] warehouseIds) { return baseWarehouseMapper.deleteBaseWarehouseByWarehouseIds(warehouseIds); } @@ -89,6 +96,7 @@ public class BaseWarehouseServiceImpl implements IBaseWarehouseService { * @return 结果 */ @Override + @DS("#header.poolName") public int deleteBaseWarehouseByWarehouseId(String warehouseId) { return baseWarehouseMapper.deleteBaseWarehouseByWarehouseId(warehouseId); } diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/SysCustomerServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/SysCustomerServiceImpl.java new file mode 100644 index 00000000..9617d374 --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/SysCustomerServiceImpl.java @@ -0,0 +1,100 @@ +package com.op.wms.service.impl; + +import java.util.List; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.op.common.core.utils.DateUtils; +import com.op.common.security.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.op.wms.mapper.SysCustomerMapper; +import com.op.wms.domain.SysCustomer; +import com.op.wms.service.ISysCustomerService; + +/** + * 客户管理Service业务层处理 + * + * @author Open Platform + * @date 2023-07-18 + */ +@Service +public class SysCustomerServiceImpl implements ISysCustomerService { + @Autowired + private SysCustomerMapper sysCustomerMapper; + + /** + * 查询客户管理 + * + * @param clientId 客户管理主键 + * @return 客户管理 + */ + @Override + @DS("#header.poolName") + public SysCustomer selectSysCustomerByClientId(Long clientId) { + return sysCustomerMapper.selectSysCustomerByClientId(clientId); + } + + /** + * 查询客户管理列表 + * + * @param sysCustomer 客户管理 + * @return 客户管理 + */ + @Override + @DS("#header.poolName") + public List selectSysCustomerList(SysCustomer sysCustomer) { + return sysCustomerMapper.selectSysCustomerList(sysCustomer); + } + + /** + * 新增客户管理 + * + * @param sysCustomer 客户管理 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int insertSysCustomer(SysCustomer sysCustomer) { + sysCustomer.setCreateTime(DateUtils.getNowDate()); + sysCustomer.setCreateBy(SecurityUtils.getUsername()); + return sysCustomerMapper.insertSysCustomer(sysCustomer); + } + + /** + * 修改客户管理 + * + * @param sysCustomer 客户管理 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int updateSysCustomer(SysCustomer sysCustomer) { + sysCustomer.setUpdateTime(DateUtils.getNowDate()); + sysCustomer.setUpdateBy(SecurityUtils.getUsername()); + return sysCustomerMapper.updateSysCustomer(sysCustomer); + } + + /** + * 批量删除客户管理 + * + * @param clientIds 需要删除的客户管理主键 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int deleteSysCustomerByClientIds(Long[] clientIds) { + return sysCustomerMapper.deleteSysCustomerByClientIds(clientIds); + } + + /** + * 删除客户管理信息 + * + * @param clientId 客户管理主键 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int deleteSysCustomerByClientId(Long clientId) { + return sysCustomerMapper.deleteSysCustomerByClientId(clientId); + } +} diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/SysFactoryServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/SysFactoryServiceImpl.java index 487d783c..46caed89 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/SysFactoryServiceImpl.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/SysFactoryServiceImpl.java @@ -1,6 +1,8 @@ package com.op.wms.service.impl; import java.util.List; + +import com.baomidou.dynamic.datasource.annotation.DS; import com.op.common.core.utils.DateUtils; import com.op.common.security.utils.SecurityUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -27,6 +29,7 @@ public class SysFactoryServiceImpl implements ISysFactoryService { * @return 工厂模型 */ @Override + @DS("#header.poolName") public SysFactory selectSysFactoryByFactoryId(Long factoryId) { return sysFactoryMapper.selectSysFactoryByFactoryId(factoryId); } @@ -38,6 +41,7 @@ public class SysFactoryServiceImpl implements ISysFactoryService { * @return 工厂模型 */ @Override + @DS("#header.poolName") public List selectSysFactoryList(SysFactory sysFactory) { return sysFactoryMapper.selectSysFactoryList(sysFactory); } @@ -49,6 +53,7 @@ public class SysFactoryServiceImpl implements ISysFactoryService { * @return 结果 */ @Override + @DS("#header.poolName") public int insertSysFactory(SysFactory sysFactory) { sysFactory.setCreateTime(DateUtils.getNowDate()); sysFactory.setCreateBy(SecurityUtils.getUsername()); @@ -62,6 +67,7 @@ public class SysFactoryServiceImpl implements ISysFactoryService { * @return 结果 */ @Override + @DS("#header.poolName") public int updateSysFactory(SysFactory sysFactory) { sysFactory.setUpdateTime(DateUtils.getNowDate()); sysFactory.setUpdateBy(SecurityUtils.getUsername()); @@ -75,6 +81,7 @@ public class SysFactoryServiceImpl implements ISysFactoryService { * @return 结果 */ @Override + @DS("#header.poolName") public int deleteSysFactoryByFactoryIds(Long[] factoryIds) { return sysFactoryMapper.deleteSysFactoryByFactoryIds(factoryIds); } @@ -86,6 +93,7 @@ public class SysFactoryServiceImpl implements ISysFactoryService { * @return 结果 */ @Override + @DS("#header.poolName") public int deleteSysFactoryByFactoryId(Long factoryId) { return sysFactoryMapper.deleteSysFactoryByFactoryId(factoryId); } diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/SysMachineryServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/SysMachineryServiceImpl.java new file mode 100644 index 00000000..851d0fce --- /dev/null +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/SysMachineryServiceImpl.java @@ -0,0 +1,100 @@ +package com.op.wms.service.impl; + +import java.util.List; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.op.common.core.utils.DateUtils; +import com.op.common.security.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.op.wms.mapper.SysMachineryMapper; +import com.op.wms.domain.SysMachinery; +import com.op.wms.service.ISysMachineryService; + +/** + * 机台管理Service业务层处理 + * + * @author Open Platform + * @date 2023-07-18 + */ +@Service +public class SysMachineryServiceImpl implements ISysMachineryService { + @Autowired + private SysMachineryMapper sysMachineryMapper; + + /** + * 查询机台管理 + * + * @param machineryId 机台管理主键 + * @return 机台管理 + */ + @Override + @DS("#header.poolName") + public SysMachinery selectSysMachineryByMachineryId(Long machineryId) { + return sysMachineryMapper.selectSysMachineryByMachineryId(machineryId); + } + + /** + * 查询机台管理列表 + * + * @param sysMachinery 机台管理 + * @return 机台管理 + */ + @Override + @DS("#header.poolName") + public List selectSysMachineryList(SysMachinery sysMachinery) { + return sysMachineryMapper.selectSysMachineryList(sysMachinery); + } + + /** + * 新增机台管理 + * + * @param sysMachinery 机台管理 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int insertSysMachinery(SysMachinery sysMachinery) { + sysMachinery.setCreateTime(DateUtils.getNowDate()); + sysMachinery.setCreateBy(SecurityUtils.getUsername()); + return sysMachineryMapper.insertSysMachinery(sysMachinery); + } + + /** + * 修改机台管理 + * + * @param sysMachinery 机台管理 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int updateSysMachinery(SysMachinery sysMachinery) { + sysMachinery.setUpdateTime(DateUtils.getNowDate()); + sysMachinery.setUpdateBy(SecurityUtils.getUsername()); + return sysMachineryMapper.updateSysMachinery(sysMachinery); + } + + /** + * 批量删除机台管理 + * + * @param machineryIds 需要删除的机台管理主键 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int deleteSysMachineryByMachineryIds(Long[] machineryIds) { + return sysMachineryMapper.deleteSysMachineryByMachineryIds(machineryIds); + } + + /** + * 删除机台管理信息 + * + * @param machineryId 机台管理主键 + * @return 结果 + */ + @Override + @DS("#header.poolName") + public int deleteSysMachineryByMachineryId(Long machineryId) { + return sysMachineryMapper.deleteSysMachineryByMachineryId(machineryId); + } +} diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/BaseBomItemsTMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/BaseBomItemsTMapper.xml new file mode 100644 index 00000000..22aa10cb --- /dev/null +++ b/op-modules/op-wms/src/main/resources/mapper/wms/BaseBomItemsTMapper.xml @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select BOM_Item_Id, BOM_Item_Desc, BOM_Formulation_Order, Bom_Formulation_Id, Prod_Id, Quantity, Precision, EU_Id, Lower_Tolerance, Lower_Tolerance_Precision, Upper_Tolerance, Upper_Tolerance_Precision, create_by, create_time, update_by, update_time, Active, Site_id, Site_code, Enterprise_Id, Enterprise_Code, FactoryNo, BESKZ, SOBSL, STUFE from base_bom_items_t + + + + + + + + insert into base_bom_items_t + + BOM_Item_Id, + BOM_Item_Desc, + BOM_Formulation_Order, + Bom_Formulation_Id, + Prod_Id, + Quantity, + Precision, + EU_Id, + Lower_Tolerance, + Lower_Tolerance_Precision, + Upper_Tolerance, + Upper_Tolerance_Precision, + create_by, + create_time, + update_by, + update_time, + Active, + Site_id, + Site_code, + Enterprise_Id, + Enterprise_Code, + FactoryNo, + BESKZ, + SOBSL, + STUFE, + + + #{bomItemId}, + #{bomItemDesc}, + #{bomFormulationOrder}, + #{bomFormulationId}, + #{prodId}, + #{Quantity}, + #{Precision}, + #{euId}, + #{lowerTolerance}, + #{lowerTolerancePrecision}, + #{upperTolerance}, + #{upperTolerancePrecision}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{Active}, + #{siteId}, + #{siteCode}, + #{enterpriseId}, + #{enterpriseCode}, + #{FactoryNo}, + #{BESKZ}, + #{SOBSL}, + #{STUFE}, + + + + + update base_bom_items_t + + BOM_Item_Desc = #{bomItemDesc}, + BOM_Formulation_Order = #{bomFormulationOrder}, + Bom_Formulation_Id = #{bomFormulationId}, + Prod_Id = #{prodId}, + Quantity = #{Quantity}, + Precision = #{Precision}, + EU_Id = #{euId}, + Lower_Tolerance = #{lowerTolerance}, + Lower_Tolerance_Precision = #{lowerTolerancePrecision}, + Upper_Tolerance = #{upperTolerance}, + Upper_Tolerance_Precision = #{upperTolerancePrecision}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + Active = #{Active}, + Site_id = #{siteId}, + Site_code = #{siteCode}, + Enterprise_Id = #{enterpriseId}, + Enterprise_Code = #{enterpriseCode}, + FactoryNo = #{FactoryNo}, + BESKZ = #{BESKZ}, + SOBSL = #{SOBSL}, + STUFE = #{STUFE}, + + where BOM_Item_Id = #{bomItemId} + + + + delete from base_bom_items_t where BOM_Item_Id = #{bomItemId} + + + + delete from base_bom_items_t where BOM_Item_Id in + + #{bomItemId} + + + \ No newline at end of file diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/BaseProductGroupsTMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/BaseProductGroupsTMapper.xml new file mode 100644 index 00000000..362acb6c --- /dev/null +++ b/op-modules/op-wms/src/main/resources/mapper/wms/BaseProductGroupsTMapper.xml @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + + select PG_Id, PG_Code, PG_Desc, PG_Desc_Global, PG_Desc_Extended, create_by, create_time, update_by, update_time, Active, Enterprise_Id, Enterprise_Code, Site_Id, Site_Code from base_product_groups_t + + + + + + + + insert into base_product_groups_t + + PG_Id, + PG_Code, + PG_Desc, + PG_Desc_Global, + PG_Desc_Extended, + create_by, + create_time, + update_by, + update_time, + Active, + Enterprise_Id, + Enterprise_Code, + Site_Id, + Site_Code, + + + #{pgId}, + #{pgCode}, + #{pgDesc}, + #{pgDescGlobal}, + #{pgDescExtended}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{Active}, + #{enterpriseId}, + #{enterpriseCode}, + #{siteId}, + #{siteCode}, + + + + + update base_product_groups_t + + PG_Code = #{pgCode}, + PG_Desc = #{pgDesc}, + PG_Desc_Global = #{pgDescGlobal}, + PG_Desc_Extended = #{pgDescExtended}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + Active = #{Active}, + Enterprise_Id = #{enterpriseId}, + Enterprise_Code = #{enterpriseCode}, + Site_Id = #{siteId}, + Site_Code = #{siteCode}, + + where PG_Id = #{pgId} + + + + delete from base_product_groups_t where PG_Id = #{pgId} + + + + delete from base_product_groups_t where PG_Id in + + #{pgId} + + + \ No newline at end of file diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/BaseProductMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/BaseProductMapper.xml new file mode 100644 index 00000000..95ad5849 --- /dev/null +++ b/op-modules/op-wms/src/main/resources/mapper/wms/BaseProductMapper.xml @@ -0,0 +1,248 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select product_id, product_code, product_desc_zh, product_desc_en, rule_code, old_product_code, parts_product_code, sku_barcode, length, width, height, gross_weight, net_weight, tare_weight, volume, unit_price, product_group, product_group_name, user_defined1, user_defined2, user_defined3, user_defined4, user_defined5, user_defined6, create_by, create_time, update_by, update_time, factory_code, active_flag, sync_flag, primary_uom, del_flag, bstme, basic_order, conv_order, ausme, basic_issue, conv_issue, append_flag, append_percent from base_product + + + + + + + + insert into base_product + + product_id, + product_code, + product_desc_zh, + product_desc_en, + rule_code, + old_product_code, + parts_product_code, + sku_barcode, + length, + width, + height, + gross_weight, + net_weight, + tare_weight, + volume, + unit_price, + product_group, + product_group_name, + user_defined1, + user_defined2, + user_defined3, + user_defined4, + user_defined5, + user_defined6, + create_by, + create_time, + update_by, + update_time, + factory_code, + active_flag, + sync_flag, + primary_uom, + del_flag, + bstme, + basic_order, + conv_order, + ausme, + basic_issue, + conv_issue, + append_flag, + append_percent, + + + #{productId}, + #{productCode}, + #{productDescZh}, + #{productDescEn}, + #{ruleCode}, + #{oldProductCode}, + #{partsProductCode}, + #{skuBarcode}, + #{length}, + #{width}, + #{height}, + #{grossWeight}, + #{netWeight}, + #{tareWeight}, + #{volume}, + #{unitPrice}, + #{productGroup}, + #{productGroupName}, + #{userDefined1}, + #{userDefined2}, + #{userDefined3}, + #{userDefined4}, + #{userDefined5}, + #{userDefined6}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{factoryCode}, + #{activeFlag}, + #{syncFlag}, + #{primaryUom}, + #{delFlag}, + #{bstme}, + #{basicOrder}, + #{convOrder}, + #{ausme}, + #{basicIssue}, + #{convIssue}, + #{appendFlag}, + #{appendPercent}, + + + + + update base_product + + product_code = #{productCode}, + product_desc_zh = #{productDescZh}, + product_desc_en = #{productDescEn}, + rule_code = #{ruleCode}, + old_product_code = #{oldProductCode}, + parts_product_code = #{partsProductCode}, + sku_barcode = #{skuBarcode}, + length = #{length}, + width = #{width}, + height = #{height}, + gross_weight = #{grossWeight}, + net_weight = #{netWeight}, + tare_weight = #{tareWeight}, + volume = #{volume}, + unit_price = #{unitPrice}, + product_group = #{productGroup}, + product_group_name = #{productGroupName}, + user_defined1 = #{userDefined1}, + user_defined2 = #{userDefined2}, + user_defined3 = #{userDefined3}, + user_defined4 = #{userDefined4}, + user_defined5 = #{userDefined5}, + user_defined6 = #{userDefined6}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + factory_code = #{factoryCode}, + active_flag = #{activeFlag}, + sync_flag = #{syncFlag}, + primary_uom = #{primaryUom}, + del_flag = #{delFlag}, + bstme = #{bstme}, + basic_order = #{basicOrder}, + conv_order = #{convOrder}, + ausme = #{ausme}, + basic_issue = #{basicIssue}, + conv_issue = #{convIssue}, + append_flag = #{appendFlag}, + append_percent = #{appendPercent}, + + where product_id = #{productId} + + + + delete from base_product where product_id = #{productId} + + + + delete from base_product where product_id in + + #{productId} + + + \ No newline at end of file diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/BaseSupplierMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/BaseSupplierMapper.xml new file mode 100644 index 00000000..012c2322 --- /dev/null +++ b/op-modules/op-wms/src/main/resources/mapper/wms/BaseSupplierMapper.xml @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select supplier_id, supplier_code, zh_desc, en_desc, supplier_type, account_number, licence_number, business_scope, province, city, area, address, postcode, contact, contact_phone, contact_position, contact_email, active_flag, user_defined1, user_defined2, user_defined3, create_by, create_time, update_by, update_time, remark from base_supplier + + + + + + + + insert into base_supplier + + supplier_id, + supplier_code, + zh_desc, + en_desc, + supplier_type, + account_number, + licence_number, + business_scope, + province, + city, + area, + address, + postcode, + contact, + contact_phone, + contact_position, + contact_email, + active_flag, + user_defined1, + user_defined2, + user_defined3, + create_by, + create_time, + update_by, + update_time, + remark, + + + #{supplierId}, + #{supplierCode}, + #{zhDesc}, + #{enDesc}, + #{supplierType}, + #{accountNumber}, + #{licenceNumber}, + #{businessScope}, + #{province}, + #{city}, + #{area}, + #{address}, + #{postcode}, + #{contact}, + #{contactPhone}, + #{contactPosition}, + #{contactEmail}, + #{activeFlag}, + #{userDefined1}, + #{userDefined2}, + #{userDefined3}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + + + + + update base_supplier + + supplier_code = #{supplierCode}, + zh_desc = #{zhDesc}, + en_desc = #{enDesc}, + supplier_type = #{supplierType}, + account_number = #{accountNumber}, + licence_number = #{licenceNumber}, + business_scope = #{businessScope}, + province = #{province}, + city = #{city}, + area = #{area}, + address = #{address}, + postcode = #{postcode}, + contact = #{contact}, + contact_phone = #{contactPhone}, + contact_position = #{contactPosition}, + contact_email = #{contactEmail}, + active_flag = #{activeFlag}, + user_defined1 = #{userDefined1}, + user_defined2 = #{userDefined2}, + user_defined3 = #{userDefined3}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + + where supplier_id = #{supplierId} + + + + delete from base_supplier where supplier_id = #{supplierId} + + + + delete from base_supplier where supplier_id in + + #{supplierId} + + + \ No newline at end of file diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/SysCustomerMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/SysCustomerMapper.xml new file mode 100644 index 00000000..4a537352 --- /dev/null +++ b/op-modules/op-wms/src/main/resources/mapper/wms/SysCustomerMapper.xml @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select client_id, client_code, client_name, client_nick, client_en, client_des, client_logo, client_type, address, website, email, tel, contact1, contact1_tel, contact1_email, contact2, contact2_tel, contact2_email, credit_code, enable_flag, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from sys_customer + + + + + + + + insert into sys_customer + + client_code, + client_name, + client_nick, + client_en, + client_des, + client_logo, + client_type, + address, + website, + email, + tel, + contact1, + contact1_tel, + contact1_email, + contact2, + contact2_tel, + contact2_email, + credit_code, + enable_flag, + remark, + attr1, + attr2, + attr3, + attr4, + create_by, + create_time, + update_by, + update_time, + + + #{clientCode}, + #{clientName}, + #{clientNick}, + #{clientEn}, + #{clientDes}, + #{clientLogo}, + #{clientType}, + #{address}, + #{website}, + #{email}, + #{tel}, + #{contact1}, + #{contact1Tel}, + #{contact1Email}, + #{contact2}, + #{contact2Tel}, + #{contact2Email}, + #{creditCode}, + #{enableFlag}, + #{remark}, + #{attr1}, + #{attr2}, + #{attr3}, + #{attr4}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update sys_customer + + client_code = #{clientCode}, + client_name = #{clientName}, + client_nick = #{clientNick}, + client_en = #{clientEn}, + client_des = #{clientDes}, + client_logo = #{clientLogo}, + client_type = #{clientType}, + address = #{address}, + website = #{website}, + email = #{email}, + tel = #{tel}, + contact1 = #{contact1}, + contact1_tel = #{contact1Tel}, + contact1_email = #{contact1Email}, + contact2 = #{contact2}, + contact2_tel = #{contact2Tel}, + contact2_email = #{contact2Email}, + credit_code = #{creditCode}, + enable_flag = #{enableFlag}, + remark = #{remark}, + attr1 = #{attr1}, + attr2 = #{attr2}, + attr3 = #{attr3}, + attr4 = #{attr4}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where client_id = #{clientId} + + + + delete from sys_customer where client_id = #{clientId} + + + + delete from sys_customer where client_id in + + #{clientId} + + + \ No newline at end of file diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/SysMachineryMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/SysMachineryMapper.xml new file mode 100644 index 00000000..36729c2e --- /dev/null +++ b/op-modules/op-wms/src/main/resources/mapper/wms/SysMachineryMapper.xml @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select machinery_id, machinery_code, machinery_name, machinery_brand, machinery_spec, machinery_type_id, machinery_type_code, machinery_type_name, workshop_id, workshop_code, workshop_name, status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from sys_machinery + + + + + + + + insert into sys_machinery + + machinery_code, + machinery_name, + machinery_brand, + machinery_spec, + machinery_type_id, + machinery_type_code, + machinery_type_name, + workshop_id, + workshop_code, + workshop_name, + status, + remark, + attr1, + attr2, + attr3, + attr4, + create_by, + create_time, + update_by, + update_time, + + + #{machineryCode}, + #{machineryName}, + #{machineryBrand}, + #{machinerySpec}, + #{machineryTypeId}, + #{machineryTypeCode}, + #{machineryTypeName}, + #{workshopId}, + #{workshopCode}, + #{workshopName}, + #{status}, + #{remark}, + #{attr1}, + #{attr2}, + #{attr3}, + #{attr4}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update sys_machinery + + machinery_code = #{machineryCode}, + machinery_name = #{machineryName}, + machinery_brand = #{machineryBrand}, + machinery_spec = #{machinerySpec}, + machinery_type_id = #{machineryTypeId}, + machinery_type_code = #{machineryTypeCode}, + machinery_type_name = #{machineryTypeName}, + workshop_id = #{workshopId}, + workshop_code = #{workshopCode}, + workshop_name = #{workshopName}, + status = #{status}, + remark = #{remark}, + attr1 = #{attr1}, + attr2 = #{attr2}, + attr3 = #{attr3}, + attr4 = #{attr4}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where machinery_id = #{machineryId} + + + + delete from sys_machinery where machinery_id = #{machineryId} + + + + delete from sys_machinery where machinery_id in + + #{machineryId} + + + \ No newline at end of file From 0216a5d952d0e8ef025e529fb25975f6136ca29f Mon Sep 17 00:00:00 2001 From: A0010407 Date: Wed, 19 Jul 2023 11:13:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E7=AB=AF3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/op/wms/service/impl/BaseBomItemsTServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseBomItemsTServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseBomItemsTServiceImpl.java index ddd0d7b9..99e9088f 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseBomItemsTServiceImpl.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/BaseBomItemsTServiceImpl.java @@ -70,7 +70,7 @@ public class BaseBomItemsTServiceImpl implements IBaseBomItemsTService { @DS("#header.poolName") public int updateBaseBomItemsT(BaseBomItemsT baseBomItemsT) { baseBomItemsT.setUpdateTime(DateUtils.getNowDate()); - baseBomItemsT.setCreateBy(SecurityUtils.getUsername()); + baseBomItemsT.setUpdateBy(SecurityUtils.getUsername()); return baseBomItemsTMapper.updateBaseBomItemsT(baseBomItemsT); } @@ -80,7 +80,8 @@ public class BaseBomItemsTServiceImpl implements IBaseBomItemsTService { * @param bomItemIds 需要删除的物料BOM管理主键 * @return 结果 */ - @Override @DS("#header.poolName") + @Override + @DS("#header.poolName") public int deleteBaseBomItemsTByBomItemIds(String[] bomItemIds) { return baseBomItemsTMapper.deleteBaseBomItemsTByBomItemIds(bomItemIds); }