基础信息管理后端

highway
A0010407 2 years ago
parent 76cde96c9c
commit 680ec0e2b1

@ -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;
/**
* BOMController
*
* @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<BaseBomItemsT> 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<BaseBomItemsT> list = baseBomItemsTService.selectBaseBomItemsTList(baseBomItemsT);
ExcelUtil<BaseBomItemsT> util = new ExcelUtil<BaseBomItemsT>(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));
}
}

@ -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<BaseProduct> 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<BaseProduct> list = baseProductService.selectBaseProductList(baseProduct);
ExcelUtil<BaseProduct> util = new ExcelUtil<BaseProduct>(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));
}
}

@ -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<BaseProductGroupsT> 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<BaseProductGroupsT> list = baseProductGroupsTService.selectBaseProductGroupsTList(baseProductGroupsT);
ExcelUtil<BaseProductGroupsT> util = new ExcelUtil<BaseProductGroupsT>(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));
}
}

@ -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<BaseSupplier> 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<BaseSupplier> list = baseSupplierService.selectBaseSupplierList(baseSupplier);
ExcelUtil<BaseSupplier> util = new ExcelUtil<BaseSupplier>(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));
}
}

@ -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<SysCustomer> 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<SysCustomer> list = sysCustomerService.selectSysCustomerList(sysCustomer);
ExcelUtil<SysCustomer> util = new ExcelUtil<SysCustomer>(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));
}
}

@ -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<SysMachinery> 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<SysMachinery> list = sysMachineryService.selectSysMachineryList(sysMachinery);
ExcelUtil<SysMachinery> util = new ExcelUtil<SysMachinery>(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));
}
}

@ -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();
}
}

@ -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();
}
}

@ -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();
}
}

@ -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();
}
}

@ -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();
}
}

@ -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();
}
}

@ -0,0 +1,61 @@
package com.op.wms.mapper;
import java.util.List;
import com.op.wms.domain.BaseBomItemsT;
/**
* BOMMapper
*
* @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<BaseBomItemsT> 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);
}

@ -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<BaseProductGroupsT> 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);
}

@ -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<BaseProduct> 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);
}

@ -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<BaseSupplier> 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);
}

@ -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<SysCustomer> 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);
}

@ -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<SysMachinery> 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);
}

@ -0,0 +1,60 @@
package com.op.wms.service;
import java.util.List;
import com.op.wms.domain.BaseBomItemsT;
/**
* BOMService
*
* @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<BaseBomItemsT> 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);
}

@ -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<BaseProductGroupsT> 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);
}

@ -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<BaseProduct> 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);
}

@ -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<BaseSupplier> 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);
}

@ -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<SysCustomer> 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);
}

@ -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<SysMachinery> 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);
}

@ -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<BaseArea> 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);
}

@ -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;
/**
* BOMService
*
* @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<BaseBomItemsT> 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);
}
}

@ -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<BaseLocation> 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);
}

@ -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<BaseProductGroupsT> 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);
}
}

@ -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<BaseProduct> 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);
}
}

@ -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<BaseShiftsT> 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);
}

@ -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<BaseSupplier> 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);
}
}

@ -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<BaseTeamT> 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);
}

@ -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<BaseWarehouse> 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);
}

@ -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<SysCustomer> 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);
}
}

@ -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<SysFactory> 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);
}

@ -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<SysMachinery> 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);
}
}

@ -0,0 +1,169 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.op.wms.mapper.BaseBomItemsTMapper">
<resultMap type="BaseBomItemsT" id="BaseBomItemsTResult">
<result property="bomItemId" column="BOM_Item_Id" />
<result property="bomItemDesc" column="BOM_Item_Desc" />
<result property="bomFormulationOrder" column="BOM_Formulation_Order" />
<result property="bomFormulationId" column="Bom_Formulation_Id" />
<result property="prodId" column="Prod_Id" />
<result property="Quantity" column="Quantity" />
<result property="Precision" column="Precision" />
<result property="euId" column="EU_Id" />
<result property="lowerTolerance" column="Lower_Tolerance" />
<result property="lowerTolerancePrecision" column="Lower_Tolerance_Precision" />
<result property="upperTolerance" column="Upper_Tolerance" />
<result property="upperTolerancePrecision" column="Upper_Tolerance_Precision" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="Active" column="Active" />
<result property="siteId" column="Site_id" />
<result property="siteCode" column="Site_code" />
<result property="enterpriseId" column="Enterprise_Id" />
<result property="enterpriseCode" column="Enterprise_Code" />
<result property="FactoryNo" column="FactoryNo" />
<result property="BESKZ" column="BESKZ" />
<result property="SOBSL" column="SOBSL" />
<result property="STUFE" column="STUFE" />
</resultMap>
<sql id="selectBaseBomItemsTVo">
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
</sql>
<select id="selectBaseBomItemsTList" parameterType="BaseBomItemsT" resultMap="BaseBomItemsTResult">
<include refid="selectBaseBomItemsTVo"/>
<where>
<if test="bomItemDesc != null and bomItemDesc != ''"> and BOM_Item_Desc = #{bomItemDesc}</if>
<if test="bomFormulationOrder != null "> and BOM_Formulation_Order = #{bomFormulationOrder}</if>
<if test="bomFormulationId != null and bomFormulationId != ''"> and Bom_Formulation_Id = #{bomFormulationId}</if>
<if test="prodId != null and prodId != ''"> and Prod_Id = #{prodId}</if>
<if test="Quantity != null "> and Quantity = #{Quantity}</if>
<if test="Precision != null "> and Precision = #{Precision}</if>
<if test="euId != null and euId != ''"> and EU_Id = #{euId}</if>
<if test="lowerTolerance != null "> and Lower_Tolerance = #{lowerTolerance}</if>
<if test="lowerTolerancePrecision != null "> and Lower_Tolerance_Precision = #{lowerTolerancePrecision}</if>
<if test="upperTolerance != null "> and Upper_Tolerance = #{upperTolerance}</if>
<if test="upperTolerancePrecision != null "> and Upper_Tolerance_Precision = #{upperTolerancePrecision}</if>
<if test="Active != null and Active != ''"> and Active = #{Active}</if>
<if test="siteId != null and siteId != ''"> and Site_id = #{siteId}</if>
<if test="siteCode != null and siteCode != ''"> and Site_code = #{siteCode}</if>
<if test="enterpriseId != null and enterpriseId != ''"> and Enterprise_Id = #{enterpriseId}</if>
<if test="enterpriseCode != null and enterpriseCode != ''"> and Enterprise_Code = #{enterpriseCode}</if>
<if test="FactoryNo != null and FactoryNo != ''"> and FactoryNo = #{FactoryNo}</if>
<if test="BESKZ != null and BESKZ != ''"> and BESKZ = #{BESKZ}</if>
<if test="SOBSL != null and SOBSL != ''"> and SOBSL = #{SOBSL}</if>
<if test="STUFE != null and STUFE != ''"> and STUFE = #{STUFE}</if>
</where>
</select>
<select id="selectBaseBomItemsTByBomItemId" parameterType="String" resultMap="BaseBomItemsTResult">
<include refid="selectBaseBomItemsTVo"/>
where BOM_Item_Id = #{bomItemId}
</select>
<insert id="insertBaseBomItemsT" parameterType="BaseBomItemsT">
insert into base_bom_items_t
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="bomItemId != null">BOM_Item_Id,</if>
<if test="bomItemDesc != null">BOM_Item_Desc,</if>
<if test="bomFormulationOrder != null">BOM_Formulation_Order,</if>
<if test="bomFormulationId != null">Bom_Formulation_Id,</if>
<if test="prodId != null">Prod_Id,</if>
<if test="Quantity != null">Quantity,</if>
<if test="Precision != null">Precision,</if>
<if test="euId != null">EU_Id,</if>
<if test="lowerTolerance != null">Lower_Tolerance,</if>
<if test="lowerTolerancePrecision != null">Lower_Tolerance_Precision,</if>
<if test="upperTolerance != null">Upper_Tolerance,</if>
<if test="upperTolerancePrecision != null">Upper_Tolerance_Precision,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="Active != null">Active,</if>
<if test="siteId != null">Site_id,</if>
<if test="siteCode != null">Site_code,</if>
<if test="enterpriseId != null">Enterprise_Id,</if>
<if test="enterpriseCode != null">Enterprise_Code,</if>
<if test="FactoryNo != null">FactoryNo,</if>
<if test="BESKZ != null">BESKZ,</if>
<if test="SOBSL != null">SOBSL,</if>
<if test="STUFE != null">STUFE,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="bomItemId != null">#{bomItemId},</if>
<if test="bomItemDesc != null">#{bomItemDesc},</if>
<if test="bomFormulationOrder != null">#{bomFormulationOrder},</if>
<if test="bomFormulationId != null">#{bomFormulationId},</if>
<if test="prodId != null">#{prodId},</if>
<if test="Quantity != null">#{Quantity},</if>
<if test="Precision != null">#{Precision},</if>
<if test="euId != null">#{euId},</if>
<if test="lowerTolerance != null">#{lowerTolerance},</if>
<if test="lowerTolerancePrecision != null">#{lowerTolerancePrecision},</if>
<if test="upperTolerance != null">#{upperTolerance},</if>
<if test="upperTolerancePrecision != null">#{upperTolerancePrecision},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="Active != null">#{Active},</if>
<if test="siteId != null">#{siteId},</if>
<if test="siteCode != null">#{siteCode},</if>
<if test="enterpriseId != null">#{enterpriseId},</if>
<if test="enterpriseCode != null">#{enterpriseCode},</if>
<if test="FactoryNo != null">#{FactoryNo},</if>
<if test="BESKZ != null">#{BESKZ},</if>
<if test="SOBSL != null">#{SOBSL},</if>
<if test="STUFE != null">#{STUFE},</if>
</trim>
</insert>
<update id="updateBaseBomItemsT" parameterType="BaseBomItemsT">
update base_bom_items_t
<trim prefix="SET" suffixOverrides=",">
<if test="bomItemDesc != null">BOM_Item_Desc = #{bomItemDesc},</if>
<if test="bomFormulationOrder != null">BOM_Formulation_Order = #{bomFormulationOrder},</if>
<if test="bomFormulationId != null">Bom_Formulation_Id = #{bomFormulationId},</if>
<if test="prodId != null">Prod_Id = #{prodId},</if>
<if test="Quantity != null">Quantity = #{Quantity},</if>
<if test="Precision != null">Precision = #{Precision},</if>
<if test="euId != null">EU_Id = #{euId},</if>
<if test="lowerTolerance != null">Lower_Tolerance = #{lowerTolerance},</if>
<if test="lowerTolerancePrecision != null">Lower_Tolerance_Precision = #{lowerTolerancePrecision},</if>
<if test="upperTolerance != null">Upper_Tolerance = #{upperTolerance},</if>
<if test="upperTolerancePrecision != null">Upper_Tolerance_Precision = #{upperTolerancePrecision},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="Active != null">Active = #{Active},</if>
<if test="siteId != null">Site_id = #{siteId},</if>
<if test="siteCode != null">Site_code = #{siteCode},</if>
<if test="enterpriseId != null">Enterprise_Id = #{enterpriseId},</if>
<if test="enterpriseCode != null">Enterprise_Code = #{enterpriseCode},</if>
<if test="FactoryNo != null">FactoryNo = #{FactoryNo},</if>
<if test="BESKZ != null">BESKZ = #{BESKZ},</if>
<if test="SOBSL != null">SOBSL = #{SOBSL},</if>
<if test="STUFE != null">STUFE = #{STUFE},</if>
</trim>
where BOM_Item_Id = #{bomItemId}
</update>
<delete id="deleteBaseBomItemsTByBomItemId" parameterType="String">
delete from base_bom_items_t where BOM_Item_Id = #{bomItemId}
</delete>
<delete id="deleteBaseBomItemsTByBomItemIds" parameterType="String">
delete from base_bom_items_t where BOM_Item_Id in
<foreach item="bomItemId" collection="array" open="(" separator="," close=")">
#{bomItemId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,114 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.op.wms.mapper.BaseProductGroupsTMapper">
<resultMap type="BaseProductGroupsT" id="BaseProductGroupsTResult">
<result property="pgId" column="PG_Id" />
<result property="pgCode" column="PG_Code" />
<result property="pgDesc" column="PG_Desc" />
<result property="pgDescGlobal" column="PG_Desc_Global" />
<result property="pgDescExtended" column="PG_Desc_Extended" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="Active" column="Active" />
<result property="enterpriseId" column="Enterprise_Id" />
<result property="enterpriseCode" column="Enterprise_Code" />
<result property="siteId" column="Site_Id" />
<result property="siteCode" column="Site_Code" />
</resultMap>
<sql id="selectBaseProductGroupsTVo">
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
</sql>
<select id="selectBaseProductGroupsTList" parameterType="BaseProductGroupsT" resultMap="BaseProductGroupsTResult">
<include refid="selectBaseProductGroupsTVo"/>
<where>
<if test="pgCode != null and pgCode != ''"> and PG_Code = #{pgCode}</if>
<if test="pgDesc != null and pgDesc != ''"> and PG_Desc = #{pgDesc}</if>
<if test="pgDescGlobal != null and pgDescGlobal != ''"> and PG_Desc_Global = #{pgDescGlobal}</if>
<if test="pgDescExtended != null and pgDescExtended != ''"> and PG_Desc_Extended = #{pgDescExtended}</if>
<if test="Active != null and Active != ''"> and Active = #{Active}</if>
<if test="enterpriseId != null and enterpriseId != ''"> and Enterprise_Id = #{enterpriseId}</if>
<if test="enterpriseCode != null and enterpriseCode != ''"> and Enterprise_Code = #{enterpriseCode}</if>
<if test="siteId != null and siteId != ''"> and Site_Id = #{siteId}</if>
<if test="siteCode != null and siteCode != ''"> and Site_Code = #{siteCode}</if>
</where>
</select>
<select id="selectBaseProductGroupsTByPgId" parameterType="String" resultMap="BaseProductGroupsTResult">
<include refid="selectBaseProductGroupsTVo"/>
where PG_Id = #{pgId}
</select>
<insert id="insertBaseProductGroupsT" parameterType="BaseProductGroupsT">
insert into base_product_groups_t
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="pgId != null">PG_Id,</if>
<if test="pgCode != null">PG_Code,</if>
<if test="pgDesc != null and pgDesc != ''">PG_Desc,</if>
<if test="pgDescGlobal != null and pgDescGlobal != ''">PG_Desc_Global,</if>
<if test="pgDescExtended != null and pgDescExtended != ''">PG_Desc_Extended,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="Active != null">Active,</if>
<if test="enterpriseId != null">Enterprise_Id,</if>
<if test="enterpriseCode != null">Enterprise_Code,</if>
<if test="siteId != null">Site_Id,</if>
<if test="siteCode != null">Site_Code,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="pgId != null">#{pgId},</if>
<if test="pgCode != null">#{pgCode},</if>
<if test="pgDesc != null and pgDesc != ''">#{pgDesc},</if>
<if test="pgDescGlobal != null and pgDescGlobal != ''">#{pgDescGlobal},</if>
<if test="pgDescExtended != null and pgDescExtended != ''">#{pgDescExtended},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="Active != null">#{Active},</if>
<if test="enterpriseId != null">#{enterpriseId},</if>
<if test="enterpriseCode != null">#{enterpriseCode},</if>
<if test="siteId != null">#{siteId},</if>
<if test="siteCode != null">#{siteCode},</if>
</trim>
</insert>
<update id="updateBaseProductGroupsT" parameterType="BaseProductGroupsT">
update base_product_groups_t
<trim prefix="SET" suffixOverrides=",">
<if test="pgCode != null">PG_Code = #{pgCode},</if>
<if test="pgDesc != null and pgDesc != ''">PG_Desc = #{pgDesc},</if>
<if test="pgDescGlobal != null and pgDescGlobal != ''">PG_Desc_Global = #{pgDescGlobal},</if>
<if test="pgDescExtended != null and pgDescExtended != ''">PG_Desc_Extended = #{pgDescExtended},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="Active != null">Active = #{Active},</if>
<if test="enterpriseId != null">Enterprise_Id = #{enterpriseId},</if>
<if test="enterpriseCode != null">Enterprise_Code = #{enterpriseCode},</if>
<if test="siteId != null">Site_Id = #{siteId},</if>
<if test="siteCode != null">Site_Code = #{siteCode},</if>
</trim>
where PG_Id = #{pgId}
</update>
<delete id="deleteBaseProductGroupsTByPgId" parameterType="String">
delete from base_product_groups_t where PG_Id = #{pgId}
</delete>
<delete id="deleteBaseProductGroupsTByPgIds" parameterType="String">
delete from base_product_groups_t where PG_Id in
<foreach item="pgId" collection="array" open="(" separator="," close=")">
#{pgId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,248 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.op.wms.mapper.BaseProductMapper">
<resultMap type="BaseProduct" id="BaseProductResult">
<result property="productId" column="product_id" />
<result property="productCode" column="product_code" />
<result property="productDescZh" column="product_desc_zh" />
<result property="productDescEn" column="product_desc_en" />
<result property="ruleCode" column="rule_code" />
<result property="oldProductCode" column="old_product_code" />
<result property="partsProductCode" column="parts_product_code" />
<result property="skuBarcode" column="sku_barcode" />
<result property="length" column="length" />
<result property="width" column="width" />
<result property="height" column="height" />
<result property="grossWeight" column="gross_weight" />
<result property="netWeight" column="net_weight" />
<result property="tareWeight" column="tare_weight" />
<result property="volume" column="volume" />
<result property="unitPrice" column="unit_price" />
<result property="productGroup" column="product_group" />
<result property="productGroupName" column="product_group_name" />
<result property="userDefined1" column="user_defined1" />
<result property="userDefined2" column="user_defined2" />
<result property="userDefined3" column="user_defined3" />
<result property="userDefined4" column="user_defined4" />
<result property="userDefined5" column="user_defined5" />
<result property="userDefined6" column="user_defined6" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="factoryCode" column="factory_code" />
<result property="activeFlag" column="active_flag" />
<result property="syncFlag" column="sync_flag" />
<result property="primaryUom" column="primary_uom" />
<result property="delFlag" column="del_flag" />
<result property="bstme" column="bstme" />
<result property="basicOrder" column="basic_order" />
<result property="convOrder" column="conv_order" />
<result property="ausme" column="ausme" />
<result property="basicIssue" column="basic_issue" />
<result property="convIssue" column="conv_issue" />
<result property="appendFlag" column="append_flag" />
<result property="appendPercent" column="append_percent" />
</resultMap>
<sql id="selectBaseProductVo">
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
</sql>
<select id="selectBaseProductList" parameterType="BaseProduct" resultMap="BaseProductResult">
<include refid="selectBaseProductVo"/>
<where>
<if test="productCode != null and productCode != ''"> and product_code = #{productCode}</if>
<if test="productDescZh != null and productDescZh != ''"> and product_desc_zh = #{productDescZh}</if>
<if test="productDescEn != null and productDescEn != ''"> and product_desc_en = #{productDescEn}</if>
<if test="ruleCode != null and ruleCode != ''"> and rule_code = #{ruleCode}</if>
<if test="oldProductCode != null and oldProductCode != ''"> and old_product_code = #{oldProductCode}</if>
<if test="partsProductCode != null and partsProductCode != ''"> and parts_product_code = #{partsProductCode}</if>
<if test="skuBarcode != null and skuBarcode != ''"> and sku_barcode = #{skuBarcode}</if>
<if test="length != null "> and length = #{length}</if>
<if test="width != null "> and width = #{width}</if>
<if test="height != null "> and height = #{height}</if>
<if test="grossWeight != null "> and gross_weight = #{grossWeight}</if>
<if test="netWeight != null "> and net_weight = #{netWeight}</if>
<if test="tareWeight != null "> and tare_weight = #{tareWeight}</if>
<if test="volume != null "> and volume = #{volume}</if>
<if test="unitPrice != null "> and unit_price = #{unitPrice}</if>
<if test="productGroup != null and productGroup != ''"> and product_group = #{productGroup}</if>
<if test="productGroupName != null and productGroupName != ''"> and product_group_name like concat('%', #{productGroupName}, '%')</if>
<if test="userDefined1 != null and userDefined1 != ''"> and user_defined1 = #{userDefined1}</if>
<if test="userDefined2 != null and userDefined2 != ''"> and user_defined2 = #{userDefined2}</if>
<if test="userDefined3 != null and userDefined3 != ''"> and user_defined3 = #{userDefined3}</if>
<if test="userDefined4 != null and userDefined4 != ''"> and user_defined4 = #{userDefined4}</if>
<if test="userDefined5 != null and userDefined5 != ''"> and user_defined5 = #{userDefined5}</if>
<if test="userDefined6 != null and userDefined6 != ''"> and user_defined6 = #{userDefined6}</if>
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
<if test="activeFlag != null and activeFlag != ''"> and active_flag = #{activeFlag}</if>
<if test="syncFlag != null and syncFlag != ''"> and sync_flag = #{syncFlag}</if>
<if test="primaryUom != null and primaryUom != ''"> and primary_uom = #{primaryUom}</if>
<if test="bstme != null and bstme != ''"> and bstme = #{bstme}</if>
<if test="basicOrder != null "> and basic_order = #{basicOrder}</if>
<if test="convOrder != null "> and conv_order = #{convOrder}</if>
<if test="ausme != null and ausme != ''"> and ausme = #{ausme}</if>
<if test="basicIssue != null "> and basic_issue = #{basicIssue}</if>
<if test="convIssue != null "> and conv_issue = #{convIssue}</if>
<if test="appendFlag != null and appendFlag != ''"> and append_flag = #{appendFlag}</if>
<if test="appendPercent != null and appendPercent != ''"> and append_percent = #{appendPercent}</if>
</where>
</select>
<select id="selectBaseProductByProductId" parameterType="String" resultMap="BaseProductResult">
<include refid="selectBaseProductVo"/>
where product_id = #{productId}
</select>
<insert id="insertBaseProduct" parameterType="BaseProduct">
insert into base_product
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">product_id,</if>
<if test="productCode != null and productCode != ''">product_code,</if>
<if test="productDescZh != null">product_desc_zh,</if>
<if test="productDescEn != null">product_desc_en,</if>
<if test="ruleCode != null">rule_code,</if>
<if test="oldProductCode != null">old_product_code,</if>
<if test="partsProductCode != null">parts_product_code,</if>
<if test="skuBarcode != null">sku_barcode,</if>
<if test="length != null">length,</if>
<if test="width != null">width,</if>
<if test="height != null">height,</if>
<if test="grossWeight != null">gross_weight,</if>
<if test="netWeight != null">net_weight,</if>
<if test="tareWeight != null">tare_weight,</if>
<if test="volume != null">volume,</if>
<if test="unitPrice != null">unit_price,</if>
<if test="productGroup != null">product_group,</if>
<if test="productGroupName != null">product_group_name,</if>
<if test="userDefined1 != null">user_defined1,</if>
<if test="userDefined2 != null">user_defined2,</if>
<if test="userDefined3 != null">user_defined3,</if>
<if test="userDefined4 != null">user_defined4,</if>
<if test="userDefined5 != null">user_defined5,</if>
<if test="userDefined6 != null">user_defined6,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="factoryCode != null">factory_code,</if>
<if test="activeFlag != null">active_flag,</if>
<if test="syncFlag != null">sync_flag,</if>
<if test="primaryUom != null">primary_uom,</if>
<if test="delFlag != null">del_flag,</if>
<if test="bstme != null">bstme,</if>
<if test="basicOrder != null">basic_order,</if>
<if test="convOrder != null">conv_order,</if>
<if test="ausme != null">ausme,</if>
<if test="basicIssue != null">basic_issue,</if>
<if test="convIssue != null">conv_issue,</if>
<if test="appendFlag != null">append_flag,</if>
<if test="appendPercent != null">append_percent,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">#{productId},</if>
<if test="productCode != null and productCode != ''">#{productCode},</if>
<if test="productDescZh != null">#{productDescZh},</if>
<if test="productDescEn != null">#{productDescEn},</if>
<if test="ruleCode != null">#{ruleCode},</if>
<if test="oldProductCode != null">#{oldProductCode},</if>
<if test="partsProductCode != null">#{partsProductCode},</if>
<if test="skuBarcode != null">#{skuBarcode},</if>
<if test="length != null">#{length},</if>
<if test="width != null">#{width},</if>
<if test="height != null">#{height},</if>
<if test="grossWeight != null">#{grossWeight},</if>
<if test="netWeight != null">#{netWeight},</if>
<if test="tareWeight != null">#{tareWeight},</if>
<if test="volume != null">#{volume},</if>
<if test="unitPrice != null">#{unitPrice},</if>
<if test="productGroup != null">#{productGroup},</if>
<if test="productGroupName != null">#{productGroupName},</if>
<if test="userDefined1 != null">#{userDefined1},</if>
<if test="userDefined2 != null">#{userDefined2},</if>
<if test="userDefined3 != null">#{userDefined3},</if>
<if test="userDefined4 != null">#{userDefined4},</if>
<if test="userDefined5 != null">#{userDefined5},</if>
<if test="userDefined6 != null">#{userDefined6},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="factoryCode != null">#{factoryCode},</if>
<if test="activeFlag != null">#{activeFlag},</if>
<if test="syncFlag != null">#{syncFlag},</if>
<if test="primaryUom != null">#{primaryUom},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="bstme != null">#{bstme},</if>
<if test="basicOrder != null">#{basicOrder},</if>
<if test="convOrder != null">#{convOrder},</if>
<if test="ausme != null">#{ausme},</if>
<if test="basicIssue != null">#{basicIssue},</if>
<if test="convIssue != null">#{convIssue},</if>
<if test="appendFlag != null">#{appendFlag},</if>
<if test="appendPercent != null">#{appendPercent},</if>
</trim>
</insert>
<update id="updateBaseProduct" parameterType="BaseProduct">
update base_product
<trim prefix="SET" suffixOverrides=",">
<if test="productCode != null and productCode != ''">product_code = #{productCode},</if>
<if test="productDescZh != null">product_desc_zh = #{productDescZh},</if>
<if test="productDescEn != null">product_desc_en = #{productDescEn},</if>
<if test="ruleCode != null">rule_code = #{ruleCode},</if>
<if test="oldProductCode != null">old_product_code = #{oldProductCode},</if>
<if test="partsProductCode != null">parts_product_code = #{partsProductCode},</if>
<if test="skuBarcode != null">sku_barcode = #{skuBarcode},</if>
<if test="length != null">length = #{length},</if>
<if test="width != null">width = #{width},</if>
<if test="height != null">height = #{height},</if>
<if test="grossWeight != null">gross_weight = #{grossWeight},</if>
<if test="netWeight != null">net_weight = #{netWeight},</if>
<if test="tareWeight != null">tare_weight = #{tareWeight},</if>
<if test="volume != null">volume = #{volume},</if>
<if test="unitPrice != null">unit_price = #{unitPrice},</if>
<if test="productGroup != null">product_group = #{productGroup},</if>
<if test="productGroupName != null">product_group_name = #{productGroupName},</if>
<if test="userDefined1 != null">user_defined1 = #{userDefined1},</if>
<if test="userDefined2 != null">user_defined2 = #{userDefined2},</if>
<if test="userDefined3 != null">user_defined3 = #{userDefined3},</if>
<if test="userDefined4 != null">user_defined4 = #{userDefined4},</if>
<if test="userDefined5 != null">user_defined5 = #{userDefined5},</if>
<if test="userDefined6 != null">user_defined6 = #{userDefined6},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
<if test="activeFlag != null">active_flag = #{activeFlag},</if>
<if test="syncFlag != null">sync_flag = #{syncFlag},</if>
<if test="primaryUom != null">primary_uom = #{primaryUom},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="bstme != null">bstme = #{bstme},</if>
<if test="basicOrder != null">basic_order = #{basicOrder},</if>
<if test="convOrder != null">conv_order = #{convOrder},</if>
<if test="ausme != null">ausme = #{ausme},</if>
<if test="basicIssue != null">basic_issue = #{basicIssue},</if>
<if test="convIssue != null">conv_issue = #{convIssue},</if>
<if test="appendFlag != null">append_flag = #{appendFlag},</if>
<if test="appendPercent != null">append_percent = #{appendPercent},</if>
</trim>
where product_id = #{productId}
</update>
<delete id="deleteBaseProductByProductId" parameterType="String">
delete from base_product where product_id = #{productId}
</delete>
<delete id="deleteBaseProductByProductIds" parameterType="String">
delete from base_product where product_id in
<foreach item="productId" collection="array" open="(" separator="," close=")">
#{productId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,173 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.op.wms.mapper.BaseSupplierMapper">
<resultMap type="BaseSupplier" id="BaseSupplierResult">
<result property="supplierId" column="supplier_id" />
<result property="supplierCode" column="supplier_code" />
<result property="zhDesc" column="zh_desc" />
<result property="enDesc" column="en_desc" />
<result property="supplierType" column="supplier_type" />
<result property="accountNumber" column="account_number" />
<result property="licenceNumber" column="licence_number" />
<result property="businessScope" column="business_scope" />
<result property="province" column="province" />
<result property="city" column="city" />
<result property="area" column="area" />
<result property="address" column="address" />
<result property="postcode" column="postcode" />
<result property="contact" column="contact" />
<result property="contactPhone" column="contact_phone" />
<result property="contactPosition" column="contact_position" />
<result property="contactEmail" column="contact_email" />
<result property="activeFlag" column="active_flag" />
<result property="userDefined1" column="user_defined1" />
<result property="userDefined2" column="user_defined2" />
<result property="userDefined3" column="user_defined3" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectBaseSupplierVo">
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
</sql>
<select id="selectBaseSupplierList" parameterType="BaseSupplier" resultMap="BaseSupplierResult">
<include refid="selectBaseSupplierVo"/>
<where>
<if test="supplierCode != null and supplierCode != ''"> and supplier_code = #{supplierCode}</if>
<if test="zhDesc != null and zhDesc != ''"> and zh_desc = #{zhDesc}</if>
<if test="enDesc != null and enDesc != ''"> and en_desc = #{enDesc}</if>
<if test="supplierType != null and supplierType != ''"> and supplier_type = #{supplierType}</if>
<if test="accountNumber != null and accountNumber != ''"> and account_number = #{accountNumber}</if>
<if test="licenceNumber != null and licenceNumber != ''"> and licence_number = #{licenceNumber}</if>
<if test="businessScope != null and businessScope != ''"> and business_scope = #{businessScope}</if>
<if test="province != null and province != ''"> and province = #{province}</if>
<if test="city != null and city != ''"> and city = #{city}</if>
<if test="area != null and area != ''"> and area = #{area}</if>
<if test="address != null and address != ''"> and address = #{address}</if>
<if test="postcode != null and postcode != ''"> and postcode = #{postcode}</if>
<if test="contact != null and contact != ''"> and contact = #{contact}</if>
<if test="contactPhone != null and contactPhone != ''"> and contact_phone = #{contactPhone}</if>
<if test="contactPosition != null and contactPosition != ''"> and contact_position = #{contactPosition}</if>
<if test="contactEmail != null and contactEmail != ''"> and contact_email = #{contactEmail}</if>
<if test="activeFlag != null and activeFlag != ''"> and active_flag = #{activeFlag}</if>
<if test="userDefined1 != null and userDefined1 != ''"> and user_defined1 = #{userDefined1}</if>
<if test="userDefined2 != null and userDefined2 != ''"> and user_defined2 = #{userDefined2}</if>
<if test="userDefined3 != null and userDefined3 != ''"> and user_defined3 = #{userDefined3}</if>
</where>
</select>
<select id="selectBaseSupplierBySupplierId" parameterType="String" resultMap="BaseSupplierResult">
<include refid="selectBaseSupplierVo"/>
where supplier_id = #{supplierId}
</select>
<insert id="insertBaseSupplier" parameterType="BaseSupplier">
insert into base_supplier
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="supplierId != null">supplier_id,</if>
<if test="supplierCode != null and supplierCode != ''">supplier_code,</if>
<if test="zhDesc != null and zhDesc != ''">zh_desc,</if>
<if test="enDesc != null">en_desc,</if>
<if test="supplierType != null">supplier_type,</if>
<if test="accountNumber != null">account_number,</if>
<if test="licenceNumber != null">licence_number,</if>
<if test="businessScope != null">business_scope,</if>
<if test="province != null">province,</if>
<if test="city != null">city,</if>
<if test="area != null">area,</if>
<if test="address != null">address,</if>
<if test="postcode != null">postcode,</if>
<if test="contact != null">contact,</if>
<if test="contactPhone != null">contact_phone,</if>
<if test="contactPosition != null">contact_position,</if>
<if test="contactEmail != null">contact_email,</if>
<if test="activeFlag != null and activeFlag != ''">active_flag,</if>
<if test="userDefined1 != null">user_defined1,</if>
<if test="userDefined2 != null">user_defined2,</if>
<if test="userDefined3 != null">user_defined3,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="supplierId != null">#{supplierId},</if>
<if test="supplierCode != null and supplierCode != ''">#{supplierCode},</if>
<if test="zhDesc != null and zhDesc != ''">#{zhDesc},</if>
<if test="enDesc != null">#{enDesc},</if>
<if test="supplierType != null">#{supplierType},</if>
<if test="accountNumber != null">#{accountNumber},</if>
<if test="licenceNumber != null">#{licenceNumber},</if>
<if test="businessScope != null">#{businessScope},</if>
<if test="province != null">#{province},</if>
<if test="city != null">#{city},</if>
<if test="area != null">#{area},</if>
<if test="address != null">#{address},</if>
<if test="postcode != null">#{postcode},</if>
<if test="contact != null">#{contact},</if>
<if test="contactPhone != null">#{contactPhone},</if>
<if test="contactPosition != null">#{contactPosition},</if>
<if test="contactEmail != null">#{contactEmail},</if>
<if test="activeFlag != null and activeFlag != ''">#{activeFlag},</if>
<if test="userDefined1 != null">#{userDefined1},</if>
<if test="userDefined2 != null">#{userDefined2},</if>
<if test="userDefined3 != null">#{userDefined3},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateBaseSupplier" parameterType="BaseSupplier">
update base_supplier
<trim prefix="SET" suffixOverrides=",">
<if test="supplierCode != null and supplierCode != ''">supplier_code = #{supplierCode},</if>
<if test="zhDesc != null and zhDesc != ''">zh_desc = #{zhDesc},</if>
<if test="enDesc != null">en_desc = #{enDesc},</if>
<if test="supplierType != null">supplier_type = #{supplierType},</if>
<if test="accountNumber != null">account_number = #{accountNumber},</if>
<if test="licenceNumber != null">licence_number = #{licenceNumber},</if>
<if test="businessScope != null">business_scope = #{businessScope},</if>
<if test="province != null">province = #{province},</if>
<if test="city != null">city = #{city},</if>
<if test="area != null">area = #{area},</if>
<if test="address != null">address = #{address},</if>
<if test="postcode != null">postcode = #{postcode},</if>
<if test="contact != null">contact = #{contact},</if>
<if test="contactPhone != null">contact_phone = #{contactPhone},</if>
<if test="contactPosition != null">contact_position = #{contactPosition},</if>
<if test="contactEmail != null">contact_email = #{contactEmail},</if>
<if test="activeFlag != null and activeFlag != ''">active_flag = #{activeFlag},</if>
<if test="userDefined1 != null">user_defined1 = #{userDefined1},</if>
<if test="userDefined2 != null">user_defined2 = #{userDefined2},</if>
<if test="userDefined3 != null">user_defined3 = #{userDefined3},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where supplier_id = #{supplierId}
</update>
<delete id="deleteBaseSupplierBySupplierId" parameterType="String">
delete from base_supplier where supplier_id = #{supplierId}
</delete>
<delete id="deleteBaseSupplierBySupplierIds" parameterType="String">
delete from base_supplier where supplier_id in
<foreach item="supplierId" collection="array" open="(" separator="," close=")">
#{supplierId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,186 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.op.wms.mapper.SysCustomerMapper">
<resultMap type="SysCustomer" id="SysCustomerResult">
<result property="clientId" column="client_id" />
<result property="clientCode" column="client_code" />
<result property="clientName" column="client_name" />
<result property="clientNick" column="client_nick" />
<result property="clientEn" column="client_en" />
<result property="clientDes" column="client_des" />
<result property="clientLogo" column="client_logo" />
<result property="clientType" column="client_type" />
<result property="address" column="address" />
<result property="website" column="website" />
<result property="email" column="email" />
<result property="tel" column="tel" />
<result property="contact1" column="contact1" />
<result property="contact1Tel" column="contact1_tel" />
<result property="contact1Email" column="contact1_email" />
<result property="contact2" column="contact2" />
<result property="contact2Tel" column="contact2_tel" />
<result property="contact2Email" column="contact2_email" />
<result property="creditCode" column="credit_code" />
<result property="enableFlag" column="enable_flag" />
<result property="remark" column="remark" />
<result property="attr1" column="attr1" />
<result property="attr2" column="attr2" />
<result property="attr3" column="attr3" />
<result property="attr4" column="attr4" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectSysCustomerVo">
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
</sql>
<select id="selectSysCustomerList" parameterType="SysCustomer" resultMap="SysCustomerResult">
<include refid="selectSysCustomerVo"/>
<where>
<if test="clientCode != null and clientCode != ''"> and client_code = #{clientCode}</if>
<if test="clientName != null and clientName != ''"> and client_name like concat('%', #{clientName}, '%')</if>
<if test="clientNick != null and clientNick != ''"> and client_nick = #{clientNick}</if>
<if test="clientEn != null and clientEn != ''"> and client_en = #{clientEn}</if>
<if test="clientDes != null and clientDes != ''"> and client_des = #{clientDes}</if>
<if test="clientLogo != null and clientLogo != ''"> and client_logo = #{clientLogo}</if>
<if test="clientType != null and clientType != ''"> and client_type = #{clientType}</if>
<if test="address != null and address != ''"> and address = #{address}</if>
<if test="website != null and website != ''"> and website = #{website}</if>
<if test="email != null and email != ''"> and email = #{email}</if>
<if test="tel != null and tel != ''"> and tel = #{tel}</if>
<if test="contact1 != null and contact1 != ''"> and contact1 = #{contact1}</if>
<if test="contact1Tel != null and contact1Tel != ''"> and contact1_tel = #{contact1Tel}</if>
<if test="contact1Email != null and contact1Email != ''"> and contact1_email = #{contact1Email}</if>
<if test="contact2 != null and contact2 != ''"> and contact2 = #{contact2}</if>
<if test="contact2Tel != null and contact2Tel != ''"> and contact2_tel = #{contact2Tel}</if>
<if test="contact2Email != null and contact2Email != ''"> and contact2_email = #{contact2Email}</if>
<if test="creditCode != null and creditCode != ''"> and credit_code = #{creditCode}</if>
<if test="enableFlag != null and enableFlag != ''"> and enable_flag = #{enableFlag}</if>
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
<if test="attr3 != null "> and attr3 = #{attr3}</if>
<if test="attr4 != null "> and attr4 = #{attr4}</if>
</where>
</select>
<select id="selectSysCustomerByClientId" parameterType="Long" resultMap="SysCustomerResult">
<include refid="selectSysCustomerVo"/>
where client_id = #{clientId}
</select>
<insert id="insertSysCustomer" parameterType="SysCustomer" useGeneratedKeys="true" keyProperty="clientId">
insert into sys_customer
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="clientCode != null and clientCode != ''">client_code,</if>
<if test="clientName != null and clientName != ''">client_name,</if>
<if test="clientNick != null">client_nick,</if>
<if test="clientEn != null">client_en,</if>
<if test="clientDes != null">client_des,</if>
<if test="clientLogo != null">client_logo,</if>
<if test="clientType != null">client_type,</if>
<if test="address != null">address,</if>
<if test="website != null">website,</if>
<if test="email != null">email,</if>
<if test="tel != null">tel,</if>
<if test="contact1 != null">contact1,</if>
<if test="contact1Tel != null">contact1_tel,</if>
<if test="contact1Email != null">contact1_email,</if>
<if test="contact2 != null">contact2,</if>
<if test="contact2Tel != null">contact2_tel,</if>
<if test="contact2Email != null">contact2_email,</if>
<if test="creditCode != null">credit_code,</if>
<if test="enableFlag != null and enableFlag != ''">enable_flag,</if>
<if test="remark != null">remark,</if>
<if test="attr1 != null">attr1,</if>
<if test="attr2 != null">attr2,</if>
<if test="attr3 != null">attr3,</if>
<if test="attr4 != null">attr4,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="clientCode != null and clientCode != ''">#{clientCode},</if>
<if test="clientName != null and clientName != ''">#{clientName},</if>
<if test="clientNick != null">#{clientNick},</if>
<if test="clientEn != null">#{clientEn},</if>
<if test="clientDes != null">#{clientDes},</if>
<if test="clientLogo != null">#{clientLogo},</if>
<if test="clientType != null">#{clientType},</if>
<if test="address != null">#{address},</if>
<if test="website != null">#{website},</if>
<if test="email != null">#{email},</if>
<if test="tel != null">#{tel},</if>
<if test="contact1 != null">#{contact1},</if>
<if test="contact1Tel != null">#{contact1Tel},</if>
<if test="contact1Email != null">#{contact1Email},</if>
<if test="contact2 != null">#{contact2},</if>
<if test="contact2Tel != null">#{contact2Tel},</if>
<if test="contact2Email != null">#{contact2Email},</if>
<if test="creditCode != null">#{creditCode},</if>
<if test="enableFlag != null and enableFlag != ''">#{enableFlag},</if>
<if test="remark != null">#{remark},</if>
<if test="attr1 != null">#{attr1},</if>
<if test="attr2 != null">#{attr2},</if>
<if test="attr3 != null">#{attr3},</if>
<if test="attr4 != null">#{attr4},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateSysCustomer" parameterType="SysCustomer">
update sys_customer
<trim prefix="SET" suffixOverrides=",">
<if test="clientCode != null and clientCode != ''">client_code = #{clientCode},</if>
<if test="clientName != null and clientName != ''">client_name = #{clientName},</if>
<if test="clientNick != null">client_nick = #{clientNick},</if>
<if test="clientEn != null">client_en = #{clientEn},</if>
<if test="clientDes != null">client_des = #{clientDes},</if>
<if test="clientLogo != null">client_logo = #{clientLogo},</if>
<if test="clientType != null">client_type = #{clientType},</if>
<if test="address != null">address = #{address},</if>
<if test="website != null">website = #{website},</if>
<if test="email != null">email = #{email},</if>
<if test="tel != null">tel = #{tel},</if>
<if test="contact1 != null">contact1 = #{contact1},</if>
<if test="contact1Tel != null">contact1_tel = #{contact1Tel},</if>
<if test="contact1Email != null">contact1_email = #{contact1Email},</if>
<if test="contact2 != null">contact2 = #{contact2},</if>
<if test="contact2Tel != null">contact2_tel = #{contact2Tel},</if>
<if test="contact2Email != null">contact2_email = #{contact2Email},</if>
<if test="creditCode != null">credit_code = #{creditCode},</if>
<if test="enableFlag != null and enableFlag != ''">enable_flag = #{enableFlag},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="attr1 != null">attr1 = #{attr1},</if>
<if test="attr2 != null">attr2 = #{attr2},</if>
<if test="attr3 != null">attr3 = #{attr3},</if>
<if test="attr4 != null">attr4 = #{attr4},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where client_id = #{clientId}
</update>
<delete id="deleteSysCustomerByClientId" parameterType="Long">
delete from sys_customer where client_id = #{clientId}
</delete>
<delete id="deleteSysCustomerByClientIds" parameterType="String">
delete from sys_customer where client_id in
<foreach item="clientId" collection="array" open="(" separator="," close=")">
#{clientId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,146 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.op.wms.mapper.SysMachineryMapper">
<resultMap type="SysMachinery" id="SysMachineryResult">
<result property="machineryId" column="machinery_id" />
<result property="machineryCode" column="machinery_code" />
<result property="machineryName" column="machinery_name" />
<result property="machineryBrand" column="machinery_brand" />
<result property="machinerySpec" column="machinery_spec" />
<result property="machineryTypeId" column="machinery_type_id" />
<result property="machineryTypeCode" column="machinery_type_code" />
<result property="machineryTypeName" column="machinery_type_name" />
<result property="workshopId" column="workshop_id" />
<result property="workshopCode" column="workshop_code" />
<result property="workshopName" column="workshop_name" />
<result property="status" column="status" />
<result property="remark" column="remark" />
<result property="attr1" column="attr1" />
<result property="attr2" column="attr2" />
<result property="attr3" column="attr3" />
<result property="attr4" column="attr4" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectSysMachineryVo">
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
</sql>
<select id="selectSysMachineryList" parameterType="SysMachinery" resultMap="SysMachineryResult">
<include refid="selectSysMachineryVo"/>
<where>
<if test="machineryCode != null and machineryCode != ''"> and machinery_code = #{machineryCode}</if>
<if test="machineryName != null and machineryName != ''"> and machinery_name like concat('%', #{machineryName}, '%')</if>
<if test="machineryBrand != null and machineryBrand != ''"> and machinery_brand = #{machineryBrand}</if>
<if test="machinerySpec != null and machinerySpec != ''"> and machinery_spec = #{machinerySpec}</if>
<if test="machineryTypeId != null "> and machinery_type_id = #{machineryTypeId}</if>
<if test="machineryTypeCode != null and machineryTypeCode != ''"> and machinery_type_code = #{machineryTypeCode}</if>
<if test="machineryTypeName != null and machineryTypeName != ''"> and machinery_type_name like concat('%', #{machineryTypeName}, '%')</if>
<if test="workshopId != null "> and workshop_id = #{workshopId}</if>
<if test="workshopCode != null and workshopCode != ''"> and workshop_code = #{workshopCode}</if>
<if test="workshopName != null and workshopName != ''"> and workshop_name like concat('%', #{workshopName}, '%')</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
<if test="attr3 != null "> and attr3 = #{attr3}</if>
<if test="attr4 != null "> and attr4 = #{attr4}</if>
</where>
</select>
<select id="selectSysMachineryByMachineryId" parameterType="Long" resultMap="SysMachineryResult">
<include refid="selectSysMachineryVo"/>
where machinery_id = #{machineryId}
</select>
<insert id="insertSysMachinery" parameterType="SysMachinery" useGeneratedKeys="true" keyProperty="machineryId">
insert into sys_machinery
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="machineryCode != null and machineryCode != ''">machinery_code,</if>
<if test="machineryName != null and machineryName != ''">machinery_name,</if>
<if test="machineryBrand != null">machinery_brand,</if>
<if test="machinerySpec != null">machinery_spec,</if>
<if test="machineryTypeId != null">machinery_type_id,</if>
<if test="machineryTypeCode != null">machinery_type_code,</if>
<if test="machineryTypeName != null">machinery_type_name,</if>
<if test="workshopId != null">workshop_id,</if>
<if test="workshopCode != null">workshop_code,</if>
<if test="workshopName != null">workshop_name,</if>
<if test="status != null and status != ''">status,</if>
<if test="remark != null">remark,</if>
<if test="attr1 != null">attr1,</if>
<if test="attr2 != null">attr2,</if>
<if test="attr3 != null">attr3,</if>
<if test="attr4 != null">attr4,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="machineryCode != null and machineryCode != ''">#{machineryCode},</if>
<if test="machineryName != null and machineryName != ''">#{machineryName},</if>
<if test="machineryBrand != null">#{machineryBrand},</if>
<if test="machinerySpec != null">#{machinerySpec},</if>
<if test="machineryTypeId != null">#{machineryTypeId},</if>
<if test="machineryTypeCode != null">#{machineryTypeCode},</if>
<if test="machineryTypeName != null">#{machineryTypeName},</if>
<if test="workshopId != null">#{workshopId},</if>
<if test="workshopCode != null">#{workshopCode},</if>
<if test="workshopName != null">#{workshopName},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="remark != null">#{remark},</if>
<if test="attr1 != null">#{attr1},</if>
<if test="attr2 != null">#{attr2},</if>
<if test="attr3 != null">#{attr3},</if>
<if test="attr4 != null">#{attr4},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateSysMachinery" parameterType="SysMachinery">
update sys_machinery
<trim prefix="SET" suffixOverrides=",">
<if test="machineryCode != null and machineryCode != ''">machinery_code = #{machineryCode},</if>
<if test="machineryName != null and machineryName != ''">machinery_name = #{machineryName},</if>
<if test="machineryBrand != null">machinery_brand = #{machineryBrand},</if>
<if test="machinerySpec != null">machinery_spec = #{machinerySpec},</if>
<if test="machineryTypeId != null">machinery_type_id = #{machineryTypeId},</if>
<if test="machineryTypeCode != null">machinery_type_code = #{machineryTypeCode},</if>
<if test="machineryTypeName != null">machinery_type_name = #{machineryTypeName},</if>
<if test="workshopId != null">workshop_id = #{workshopId},</if>
<if test="workshopCode != null">workshop_code = #{workshopCode},</if>
<if test="workshopName != null">workshop_name = #{workshopName},</if>
<if test="status != null and status != ''">status = #{status},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="attr1 != null">attr1 = #{attr1},</if>
<if test="attr2 != null">attr2 = #{attr2},</if>
<if test="attr3 != null">attr3 = #{attr3},</if>
<if test="attr4 != null">attr4 = #{attr4},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where machinery_id = #{machineryId}
</update>
<delete id="deleteSysMachineryByMachineryId" parameterType="Long">
delete from sys_machinery where machinery_id = #{machineryId}
</delete>
<delete id="deleteSysMachineryByMachineryIds" parameterType="String">
delete from sys_machinery where machinery_id in
<foreach item="machineryId" collection="array" open="(" separator="," close=")">
#{machineryId}
</foreach>
</delete>
</mapper>
Loading…
Cancel
Save