From 3cace1741a378d68d9ea548047c8ad762d3fa4c0 Mon Sep 17 00:00:00 2001 From: Limy <1353020654@qq.com> Date: Mon, 25 Jan 2021 21:24:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nanjing/TBdLinetypeController.java | 126 ++++++ .../nanjing/TBdProductinfoController.java | 133 ++++++ .../nanjing/TBdProducttypeController.java | 133 ++++++ .../nanjing/TBdStationtypeController.java | 126 ++++++ .../nanjing/TBdSubstationController.java | 126 ++++++ .../TRpProductchangeinfoController.java | 156 +++++++ .../src/main/resources/application-druid.yml | 6 +- .../src/main/resources/application.yml | 4 +- .../templates/nanjing/LineType/LineType.html | 106 +++++ .../templates/nanjing/LineType/add.html | 45 ++ .../templates/nanjing/LineType/edit.html | 46 ++ .../ProductChangeInfo/ProductChangeInfo.html | 135 ++++++ .../nanjing/ProductChangeInfo/add.html | 93 ++++ .../nanjing/ProductChangeInfo/edit.html | 73 ++++ .../nanjing/ProductInfo/ProductInfo.html | 147 +++++++ .../templates/nanjing/ProductInfo/add.html | 73 ++++ .../templates/nanjing/ProductInfo/edit.html | 74 ++++ .../nanjing/ProductType/ProductType.html | 90 ++++ .../templates/nanjing/ProductType/add.html | 37 ++ .../templates/nanjing/ProductType/edit.html | 38 ++ .../nanjing/StationType/StationType.html | 88 ++++ .../templates/nanjing/StationType/add.html | 37 ++ .../templates/nanjing/StationType/edit.html | 38 ++ .../nanjing/SubStation/SubStation.html | 295 +++++++++++++ .../templates/nanjing/SubStation/add.html | 181 ++++++++ .../templates/nanjing/SubStation/edit.html | 182 ++++++++ .../com/ruoyi/nanjing/domain/TBdLinetype.java | 79 ++++ .../ruoyi/nanjing/domain/TBdProductinfo.java | 318 ++++++++++++++ .../ruoyi/nanjing/domain/TBdProducttype.java | 65 +++ .../ruoyi/nanjing/domain/TBdStationtype.java | 65 +++ .../ruoyi/nanjing/domain/TBdSubstation.java | 403 ++++++++++++++++++ .../nanjing/domain/TRpProductchangeinfo.java | 130 ++++++ .../nanjing/mapper/TBdLinetypeMapper.java | 61 +++ .../nanjing/mapper/TBdProductinfoMapper.java | 63 +++ .../nanjing/mapper/TBdProducttypeMapper.java | 63 +++ .../nanjing/mapper/TBdStationtypeMapper.java | 61 +++ .../nanjing/mapper/TBdSubstationMapper.java | 61 +++ .../mapper/TRpProductchangeinfoMapper.java | 61 +++ .../nanjing/service/ITBdLinetypeService.java | 61 +++ .../service/ITBdProductinfoService.java | 63 +++ .../service/ITBdProducttypeService.java | 64 +++ .../service/ITBdStationtypeService.java | 61 +++ .../service/ITBdSubstationService.java | 61 +++ .../service/ITRpProductchangeinfoService.java | 61 +++ .../service/impl/TBdLinetypeServiceImpl.java | 94 ++++ .../impl/TBdProductinfoServiceImpl.java | 101 +++++ .../impl/TBdProducttypeServiceImpl.java | 99 +++++ .../impl/TBdStationtypeServiceImpl.java | 94 ++++ .../impl/TBdSubstationServiceImpl.java | 94 ++++ .../impl/TRpProductchangeinfoServiceImpl.java | 94 ++++ .../mapper/nanjing/TBdLinetypeMapper.xml | 69 +++ .../mapper/nanjing/TBdProductinfoMapper.xml | 152 +++++++ .../mapper/nanjing/TBdProducttypeMapper.xml | 67 +++ .../mapper/nanjing/TBdStationtypeMapper.xml | 63 +++ .../mapper/nanjing/TBdSubstationMapper.xml | 184 ++++++++ .../nanjing/TRpProductchangeinfoMapper.xml | 87 ++++ 56 files changed, 5582 insertions(+), 5 deletions(-) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdLinetypeController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdProductinfoController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdProducttypeController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdStationtypeController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdSubstationController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TRpProductchangeinfoController.java create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/LineType/LineType.html create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/LineType/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/LineType/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/ProductChangeInfo/ProductChangeInfo.html create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/ProductChangeInfo/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/ProductChangeInfo/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/ProductInfo/ProductInfo.html create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/ProductInfo/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/ProductInfo/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/ProductType/ProductType.html create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/ProductType/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/ProductType/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/StationType/StationType.html create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/StationType/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/StationType/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/SubStation/SubStation.html create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/SubStation/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/nanjing/SubStation/edit.html create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdLinetype.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdProductinfo.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdProducttype.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdStationtype.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdSubstation.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TRpProductchangeinfo.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdLinetypeMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdProductinfoMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdProducttypeMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdStationtypeMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdSubstationMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TRpProductchangeinfoMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdLinetypeService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdProductinfoService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdProducttypeService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdStationtypeService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdSubstationService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITRpProductchangeinfoService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdLinetypeServiceImpl.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdProductinfoServiceImpl.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdProducttypeServiceImpl.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdStationtypeServiceImpl.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdSubstationServiceImpl.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TRpProductchangeinfoServiceImpl.java create mode 100644 ruoyi-system/src/main/resources/mapper/nanjing/TBdLinetypeMapper.xml create mode 100644 ruoyi-system/src/main/resources/mapper/nanjing/TBdProductinfoMapper.xml create mode 100644 ruoyi-system/src/main/resources/mapper/nanjing/TBdProducttypeMapper.xml create mode 100644 ruoyi-system/src/main/resources/mapper/nanjing/TBdStationtypeMapper.xml create mode 100644 ruoyi-system/src/main/resources/mapper/nanjing/TBdSubstationMapper.xml create mode 100644 ruoyi-system/src/main/resources/mapper/nanjing/TRpProductchangeinfoMapper.xml diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdLinetypeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdLinetypeController.java new file mode 100644 index 00000000..7049e0dd --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdLinetypeController.java @@ -0,0 +1,126 @@ +package com.ruoyi.web.controller.nanjing; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.nanjing.domain.TBdLinetype; +import com.ruoyi.nanjing.service.ITBdLinetypeService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 主支线管理Controller + * + * @author limy + * @date 2021-01-22 + */ +@Controller +@RequestMapping("/nanjing/LineType") +public class TBdLinetypeController extends BaseController +{ + private String prefix = "nanjing/LineType"; + + @Autowired + private ITBdLinetypeService tBdLinetypeService; + + @RequiresPermissions("nanjing:LineType:view") + @GetMapping() + public String LineType() + { + return prefix + "/LineType"; + } + + /** + * 查询主支线管理列表 + */ + @RequiresPermissions("nanjing:LineType:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TBdLinetype tBdLinetype) + { + startPage(); + List list = tBdLinetypeService.selectTBdLinetypeList(tBdLinetype); + return getDataTable(list); + } + + /** + * 导出主支线管理列表 + */ + @RequiresPermissions("nanjing:LineType:export") + @Log(title = "主支线管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(TBdLinetype tBdLinetype) + { + List list = tBdLinetypeService.selectTBdLinetypeList(tBdLinetype); + ExcelUtil util = new ExcelUtil(TBdLinetype.class); + return util.exportExcel(list, "LineType"); + } + + /** + * 新增主支线管理 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存主支线管理 + */ + @RequiresPermissions("nanjing:LineType:add") + @Log(title = "主支线管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(TBdLinetype tBdLinetype) + { + return toAjax(tBdLinetypeService.insertTBdLinetype(tBdLinetype)); + } + + /** + * 修改主支线管理 + */ + @GetMapping("/edit/{LineID}") + public String edit(@PathVariable("LineID") Long LineID, ModelMap mmap) + { + TBdLinetype tBdLinetype = tBdLinetypeService.selectTBdLinetypeById(LineID); + mmap.put("tBdLinetype", tBdLinetype); + return prefix + "/edit"; + } + + /** + * 修改保存主支线管理 + */ + @RequiresPermissions("nanjing:LineType:edit") + @Log(title = "主支线管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(TBdLinetype tBdLinetype) + { + return toAjax(tBdLinetypeService.updateTBdLinetype(tBdLinetype)); + } + + /** + * 删除主支线管理 + */ + @RequiresPermissions("nanjing:LineType:remove") + @Log(title = "主支线管理", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(tBdLinetypeService.deleteTBdLinetypeByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdProductinfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdProductinfoController.java new file mode 100644 index 00000000..0b7470ab --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdProductinfoController.java @@ -0,0 +1,133 @@ +package com.ruoyi.web.controller.nanjing; + +import java.util.List; + +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.nanjing.domain.TBdProducttype; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.nanjing.domain.TBdProductinfo; +import com.ruoyi.nanjing.service.ITBdProductinfoService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 产品信息Controller + * + * @author limy + * @date 2021-01-25 + */ +@Controller +@RequestMapping("/nanjing/ProductInfo") +public class TBdProductinfoController extends BaseController +{ + private String prefix = "nanjing/ProductInfo"; + + @Autowired + private ITBdProductinfoService tBdProductinfoService; + + @RequiresPermissions("nanjing:ProductInfo:view") + @GetMapping() + public String ProductInfo() + { + return prefix + "/ProductInfo"; + } + + /** + * 查询产品信息列表 + */ + @RequiresPermissions("nanjing:ProductInfo:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TBdProductinfo tBdProductinfo) + { + startPage(); + List list = tBdProductinfoService.selectTBdProductinfoList(tBdProductinfo); + return getDataTable(list); + } + + /** + * 导出产品信息列表 + */ + @RequiresPermissions("nanjing:ProductInfo:export") + @Log(title = "产品信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(TBdProductinfo tBdProductinfo) + { + List list = tBdProductinfoService.selectTBdProductinfoList(tBdProductinfo); + ExcelUtil util = new ExcelUtil(TBdProductinfo.class); + return util.exportExcel(list, "ProductInfo"); + } + + /** + * 新增产品信息 + */ + @GetMapping("/add") + public String add(ModelMap map) + { + List list = tBdProductinfoService.selectTBdProductinfo(); + int max = Convert.toInt(list.get(0).getProductID()); + list.get(0).setProductID(max+1L); + map.addAttribute("pt",list); + return prefix + "/add"; + } + + /** + * 新增保存产品信息 + */ + @RequiresPermissions("nanjing:ProductInfo:add") + @Log(title = "产品信息", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(TBdProductinfo tBdProductinfo) + { + return toAjax(tBdProductinfoService.insertTBdProductinfo(tBdProductinfo)); + } + + /** + * 修改产品信息 + */ + @GetMapping("/edit/{ID}") + public String edit(@PathVariable("ID") Long ID, ModelMap mmap) + { + TBdProductinfo tBdProductinfo = tBdProductinfoService.selectTBdProductinfoById(ID); + mmap.put("tBdProductinfo", tBdProductinfo); + return prefix + "/edit"; + } + + /** + * 修改保存产品信息 + */ + @RequiresPermissions("nanjing:ProductInfo:edit") + @Log(title = "产品信息", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(TBdProductinfo tBdProductinfo) + { + return toAjax(tBdProductinfoService.updateTBdProductinfo(tBdProductinfo)); + } + + /** + * 删除产品信息 + */ + @RequiresPermissions("nanjing:ProductInfo:remove") + @Log(title = "产品信息", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(tBdProductinfoService.deleteTBdProductinfoByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdProducttypeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdProducttypeController.java new file mode 100644 index 00000000..638aef37 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdProducttypeController.java @@ -0,0 +1,133 @@ +package com.ruoyi.web.controller.nanjing; + +import java.util.List; + +import com.ruoyi.common.core.text.Convert; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.nanjing.domain.TBdProducttype; +import com.ruoyi.nanjing.service.ITBdProducttypeService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 机种类型Controller + * + * @author limy + * @date 2021-01-22 + */ +@Controller +@RequestMapping("/nanjing/ProductType") +public class TBdProducttypeController extends BaseController +{ + private String prefix = "nanjing/ProductType"; + + @Autowired + private ITBdProducttypeService tBdProducttypeService; + + @RequiresPermissions("nanjing:ProductType:view") + @GetMapping() + public String ProductType() + { + return prefix + "/ProductType"; + } + + /** + * 查询机种类型列表 + */ + @RequiresPermissions("nanjing:ProductType:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TBdProducttype tBdProducttype) + { + startPage(); + List list = tBdProducttypeService.selectTBdProducttypeList(tBdProducttype); + return getDataTable(list); + } + + /** + * 导出机种类型列表 + */ + @RequiresPermissions("nanjing:ProductType:export") + @Log(title = "机种类型", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(TBdProducttype tBdProducttype) + { + List list = tBdProducttypeService.selectTBdProducttypeList(tBdProducttype); + ExcelUtil util = new ExcelUtil(TBdProducttype.class); + return util.exportExcel(list, "ProductType"); + } + + /** + * 新增机种类型 + */ + @GetMapping("/add") + public String add(ModelMap map) + { + List list = tBdProducttypeService.selectTBdProducttype(); + int max = Convert.toInt(list.get(0).getProductTypeID()); + String oper = max + 1+""; + list.get(0).setProductTypeID(oper); + map.addAttribute("pt",list); + return prefix + "/add"; + } + + /** + * 新增保存机种类型 + */ + @RequiresPermissions("nanjing:ProductType:add") + @Log(title = "机种类型", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(TBdProducttype tBdProducttype) + { + return toAjax(tBdProducttypeService.insertTBdProducttype(tBdProducttype)); + } + + /** + * 修改机种类型 + */ + @GetMapping("/edit/{ID}") + public String edit(@PathVariable("ID") Long ID, ModelMap mmap) + { + TBdProducttype tBdProducttype = tBdProducttypeService.selectTBdProducttypeById(ID); + mmap.put("tBdProducttype", tBdProducttype); + return prefix + "/edit"; + } + + /** + * 修改保存机种类型 + */ + @RequiresPermissions("nanjing:ProductType:edit") + @Log(title = "机种类型", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(TBdProducttype tBdProducttype) + { + return toAjax(tBdProducttypeService.updateTBdProducttype(tBdProducttype)); + } + + /** + * 删除机种类型 + */ + @RequiresPermissions("nanjing:ProductType:remove") + @Log(title = "机种类型", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(tBdProducttypeService.deleteTBdProducttypeByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdStationtypeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdStationtypeController.java new file mode 100644 index 00000000..84db8b77 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdStationtypeController.java @@ -0,0 +1,126 @@ +package com.ruoyi.web.controller.nanjing; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.nanjing.domain.TBdStationtype; +import com.ruoyi.nanjing.service.ITBdStationtypeService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 工位类型Controller + * + * @author limy + * @date 2021-01-22 + */ +@Controller +@RequestMapping("/nanjing/StationType") +public class TBdStationtypeController extends BaseController +{ + private String prefix = "nanjing/StationType"; + + @Autowired + private ITBdStationtypeService tBdStationtypeService; + + @RequiresPermissions("nanjing:StationType:view") + @GetMapping() + public String StationType() + { + return prefix + "/StationType"; + } + + /** + * 查询工位类型列表 + */ + @RequiresPermissions("nanjing:StationType:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TBdStationtype tBdStationtype) + { + startPage(); + List list = tBdStationtypeService.selectTBdStationtypeList(tBdStationtype); + return getDataTable(list); + } + + /** + * 导出工位类型列表 + */ + @RequiresPermissions("nanjing:StationType:export") + @Log(title = "工位类型", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(TBdStationtype tBdStationtype) + { + List list = tBdStationtypeService.selectTBdStationtypeList(tBdStationtype); + ExcelUtil util = new ExcelUtil(TBdStationtype.class); + return util.exportExcel(list, "StationType"); + } + + /** + * 新增工位类型 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存工位类型 + */ + @RequiresPermissions("nanjing:StationType:add") + @Log(title = "工位类型", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(TBdStationtype tBdStationtype) + { + return toAjax(tBdStationtypeService.insertTBdStationtype(tBdStationtype)); + } + + /** + * 修改工位类型 + */ + @GetMapping("/edit/{ID}") + public String edit(@PathVariable("ID") Long ID, ModelMap mmap) + { + TBdStationtype tBdStationtype = tBdStationtypeService.selectTBdStationtypeById(ID); + mmap.put("tBdStationtype", tBdStationtype); + return prefix + "/edit"; + } + + /** + * 修改保存工位类型 + */ + @RequiresPermissions("nanjing:StationType:edit") + @Log(title = "工位类型", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(TBdStationtype tBdStationtype) + { + return toAjax(tBdStationtypeService.updateTBdStationtype(tBdStationtype)); + } + + /** + * 删除工位类型 + */ + @RequiresPermissions("nanjing:StationType:remove") + @Log(title = "工位类型", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(tBdStationtypeService.deleteTBdStationtypeByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdSubstationController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdSubstationController.java new file mode 100644 index 00000000..7a79284b --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdSubstationController.java @@ -0,0 +1,126 @@ +package com.ruoyi.web.controller.nanjing; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.nanjing.domain.TBdSubstation; +import com.ruoyi.nanjing.service.ITBdSubstationService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 工位管理Controller + * + * @author limy + * @date 2021-01-22 + */ +@Controller +@RequestMapping("/nanjing/SubStation") +public class TBdSubstationController extends BaseController +{ + private String prefix = "nanjing/SubStation"; + + @Autowired + private ITBdSubstationService tBdSubstationService; + + @RequiresPermissions("nanjing:SubStation:view") + @GetMapping() + public String SubStation() + { + return prefix + "/SubStation"; + } + + /** + * 查询工位管理列表 + */ + @RequiresPermissions("nanjing:SubStation:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TBdSubstation tBdSubstation) + { + startPage(); + List list = tBdSubstationService.selectTBdSubstationList(tBdSubstation); + return getDataTable(list); + } + + /** + * 导出工位管理列表 + */ + @RequiresPermissions("nanjing:SubStation:export") + @Log(title = "工位管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(TBdSubstation tBdSubstation) + { + List list = tBdSubstationService.selectTBdSubstationList(tBdSubstation); + ExcelUtil util = new ExcelUtil(TBdSubstation.class); + return util.exportExcel(list, "SubStation"); + } + + /** + * 新增工位管理 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存工位管理 + */ + @RequiresPermissions("nanjing:SubStation:add") + @Log(title = "工位管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(TBdSubstation tBdSubstation) + { + return toAjax(tBdSubstationService.insertTBdSubstation(tBdSubstation)); + } + + /** + * 修改工位管理 + */ + @GetMapping("/edit/{ID}") + public String edit(@PathVariable("ID") Long ID, ModelMap mmap) + { + TBdSubstation tBdSubstation = tBdSubstationService.selectTBdSubstationById(ID); + mmap.put("tBdSubstation", tBdSubstation); + return prefix + "/edit"; + } + + /** + * 修改保存工位管理 + */ + @RequiresPermissions("nanjing:SubStation:edit") + @Log(title = "工位管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(TBdSubstation tBdSubstation) + { + return toAjax(tBdSubstationService.updateTBdSubstation(tBdSubstation)); + } + + /** + * 删除工位管理 + */ + @RequiresPermissions("nanjing:SubStation:remove") + @Log(title = "工位管理", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(tBdSubstationService.deleteTBdSubstationByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TRpProductchangeinfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TRpProductchangeinfoController.java new file mode 100644 index 00000000..e1b16243 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TRpProductchangeinfoController.java @@ -0,0 +1,156 @@ +package com.ruoyi.web.controller.nanjing; + +import java.util.Date; +import java.util.List; + +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.nanjing.domain.TBdProductinfo; +import com.ruoyi.nanjing.service.ITBdProductinfoService; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.nanjing.domain.TRpProductchangeinfo; +import com.ruoyi.nanjing.service.ITRpProductchangeinfoService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +import javax.servlet.http.HttpServletRequest; + +/** + * 机种切换管理Controller + * + * @author limy + * @date 2021-01-22 + */ +@Controller +@RequestMapping("/nanjing/ProductChangeInfo") +public class TRpProductchangeinfoController extends BaseController +{ + private String prefix = "nanjing/ProductChangeInfo"; + + @Autowired + private ITBdProductinfoService tBdProductinfoService; + @Autowired + private ITRpProductchangeinfoService tRpProductchangeinfoService; + + @RequiresPermissions("nanjing:ProductChangeInfo:view") + @GetMapping() + public String ProductChangeInfo(ModelMap map) + { + List tBdProductinfoList = tBdProductinfoService.selectTBdProductinfoList(new TBdProductinfo()); + map.addAttribute("list",tBdProductinfoList); + return prefix + "/ProductChangeInfo"; + } + + /** + * 查询机种切换管理列表 + */ + @RequiresPermissions("nanjing:ProductChangeInfo:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TRpProductchangeinfo tRpProductchangeinfo) + { + startPage(); + List list = tRpProductchangeinfoService.selectTRpProductchangeinfoList(tRpProductchangeinfo); + return getDataTable(list); + } + + /** + * 导出机种切换管理列表 + */ + @RequiresPermissions("nanjing:ProductChangeInfo:export") + @Log(title = "机种切换管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(TRpProductchangeinfo tRpProductchangeinfo) + { + List list = tRpProductchangeinfoService.selectTRpProductchangeinfoList(tRpProductchangeinfo); + ExcelUtil util = new ExcelUtil(TRpProductchangeinfo.class); + return util.exportExcel(list, "ProductChangeInfo"); + } + + /** + * 新增机种切换管理 + */ + @GetMapping("/add") + public String add(ModelMap map) + { + List tBdProductinfoList = tBdProductinfoService.selectTBdProductinfoList(new TBdProductinfo()); + map.addAttribute("list",tBdProductinfoList); + return prefix + "/add"; + } + + /** + * 新增保存机种切换管理 + */ + @RequiresPermissions("nanjing:ProductChangeInfo:add") + @Log(title = "机种切换管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(TRpProductchangeinfo tRpProductchangeinfo) + { + tRpProductchangeinfo.setInsertTime(new Date()); + return toAjax(tRpProductchangeinfoService.insertTRpProductchangeinfo(tRpProductchangeinfo)); + } + + /** + * 修改机种切换管理 + */ + @GetMapping("/edit/{ID}") + public String edit(@PathVariable("ID") Long ID, ModelMap mmap) + { + List tBdProductinfoList = tBdProductinfoService.selectTBdProductinfoList(new TBdProductinfo()); + mmap.addAttribute("list",tBdProductinfoList); + TRpProductchangeinfo tRpProductchangeinfo = tRpProductchangeinfoService.selectTRpProductchangeinfoById(ID); + mmap.put("tRpProductchangeinfo", tRpProductchangeinfo); + return prefix + "/edit"; + } + + /** + * 修改保存机种切换管理 + */ + @RequiresPermissions("nanjing:ProductChangeInfo:edit") + @Log(title = "机种切换管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(TRpProductchangeinfo tRpProductchangeinfo) + { + return toAjax(tRpProductchangeinfoService.updateTRpProductchangeinfo(tRpProductchangeinfo)); + } + + @RequiresPermissions("nanjing:ProductChangeInfo:start") + @PostMapping("/start") + @ResponseBody + public AjaxResult start(HttpServletRequest request){ + String ids = request.getParameter("id"); + TRpProductchangeinfo tRpProductchangeinfo = tRpProductchangeinfoService.selectTRpProductchangeinfoById(Convert.toLong(ids)); + if(tRpProductchangeinfo.getBeginTime()==null){ + tRpProductchangeinfo.setBeginTime(new Date()); + return toAjax(tRpProductchangeinfoService.updateTRpProductchangeinfo(tRpProductchangeinfo)); + }else{ + return toAjax(0); + } + } + + /** + * 删除机种切换管理 + */ + @RequiresPermissions("nanjing:ProductChangeInfo:remove") + @Log(title = "机种切换管理", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(tRpProductchangeinfoService.deleteTRpProductchangeinfoByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/resources/application-druid.yml b/ruoyi-admin/src/main/resources/application-druid.yml index b743d984..1aa08dcc 100644 --- a/ruoyi-admin/src/main/resources/application-druid.yml +++ b/ruoyi-admin/src/main/resources/application-druid.yml @@ -6,9 +6,9 @@ spring: druid: # 主库数据源 master: - url: jdbc:sqlserver://127.0.0.1:1433;SelectMethod=cursor;DatabaseName=RuoYi_SqlServer - username: RuoYi_SqlServer - password: password + url: jdbc:sqlserver://127.0.0.1:1433;SelectMethod=cursor;DatabaseName=SecondNanjing + username: sa + password: 123456 # 从库数据源 slave: # 从数据源开关/默认关闭 diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 0045f876..0614189e 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -17,7 +17,7 @@ ruoyi: # 开发环境配置 server: # 服务器的HTTP端口,默认为80 - port: 80 + port: 4935 servlet: # 应用的访问路径 context-path: / @@ -97,7 +97,7 @@ shiro: # 首页地址 indexUrl: /index # 验证码开关 - captchaEnabled: true + captchaEnabled: false # 验证码类型 math 数组计算 char 字符 captchaType: math cookie: diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/LineType/LineType.html b/ruoyi-admin/src/main/resources/templates/nanjing/LineType/LineType.html new file mode 100644 index 00000000..848d30d3 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/LineType/LineType.html @@ -0,0 +1,106 @@ + + + + + + +
+
+
+
+
+ +
+
+
+ + + + + + + + + + + + + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/LineType/add.html b/ruoyi-admin/src/main/resources/templates/nanjing/LineType/add.html new file mode 100644 index 00000000..6fe8cf65 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/LineType/add.html @@ -0,0 +1,45 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/LineType/edit.html b/ruoyi-admin/src/main/resources/templates/nanjing/LineType/edit.html new file mode 100644 index 00000000..48eb1045 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/LineType/edit.html @@ -0,0 +1,46 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/ProductChangeInfo/ProductChangeInfo.html b/ruoyi-admin/src/main/resources/templates/nanjing/ProductChangeInfo/ProductChangeInfo.html new file mode 100644 index 00000000..48011b74 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/ProductChangeInfo/ProductChangeInfo.html @@ -0,0 +1,135 @@ + + + + + + +
+
+
+
+
+ +
+
+
+ + + + + + + + + + + + + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/ProductChangeInfo/add.html b/ruoyi-admin/src/main/resources/templates/nanjing/ProductChangeInfo/add.html new file mode 100644 index 00000000..dbde1d9e --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/ProductChangeInfo/add.html @@ -0,0 +1,93 @@ + + + + + + + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/ProductChangeInfo/edit.html b/ruoyi-admin/src/main/resources/templates/nanjing/ProductChangeInfo/edit.html new file mode 100644 index 00000000..c283244a --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/ProductChangeInfo/edit.html @@ -0,0 +1,73 @@ + + + + + + + +
+
+ +
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/ProductInfo/ProductInfo.html b/ruoyi-admin/src/main/resources/templates/nanjing/ProductInfo/ProductInfo.html new file mode 100644 index 00000000..73014d2b --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/ProductInfo/ProductInfo.html @@ -0,0 +1,147 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • + + + + +
  • + + +
  • + + + + +
  • + + +
  • +
  • + 新增机种 +  搜索 +  查询全部 +
  • +
+
+
+
+ + + + + + + + + + + + + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/ProductInfo/add.html b/ruoyi-admin/src/main/resources/templates/nanjing/ProductInfo/add.html new file mode 100644 index 00000000..67ffb0aa --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/ProductInfo/add.html @@ -0,0 +1,73 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/ProductInfo/edit.html b/ruoyi-admin/src/main/resources/templates/nanjing/ProductInfo/edit.html new file mode 100644 index 00000000..00ede054 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/ProductInfo/edit.html @@ -0,0 +1,74 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/ProductType/ProductType.html b/ruoyi-admin/src/main/resources/templates/nanjing/ProductType/ProductType.html new file mode 100644 index 00000000..f457d150 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/ProductType/ProductType.html @@ -0,0 +1,90 @@ + + + + + + +
+
+
+
+
+ +
+
+
+ + + + + + + + + + + + + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/ProductType/add.html b/ruoyi-admin/src/main/resources/templates/nanjing/ProductType/add.html new file mode 100644 index 00000000..8ea2390d --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/ProductType/add.html @@ -0,0 +1,37 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/ProductType/edit.html b/ruoyi-admin/src/main/resources/templates/nanjing/ProductType/edit.html new file mode 100644 index 00000000..1d335ce3 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/ProductType/edit.html @@ -0,0 +1,38 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/StationType/StationType.html b/ruoyi-admin/src/main/resources/templates/nanjing/StationType/StationType.html new file mode 100644 index 00000000..d59785f7 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/StationType/StationType.html @@ -0,0 +1,88 @@ + + + + + + +
+
+
+
+
+ +
+
+
+ + + + + + + + + + + + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/StationType/add.html b/ruoyi-admin/src/main/resources/templates/nanjing/StationType/add.html new file mode 100644 index 00000000..45a874a2 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/StationType/add.html @@ -0,0 +1,37 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/StationType/edit.html b/ruoyi-admin/src/main/resources/templates/nanjing/StationType/edit.html new file mode 100644 index 00000000..ed950d0f --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/StationType/edit.html @@ -0,0 +1,38 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/SubStation/SubStation.html b/ruoyi-admin/src/main/resources/templates/nanjing/SubStation/SubStation.html new file mode 100644 index 00000000..ff61400e --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/SubStation/SubStation.html @@ -0,0 +1,295 @@ + + + + + + +
+
+
+
+
+
    + + + + +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • + + + + + + +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/SubStation/add.html b/ruoyi-admin/src/main/resources/templates/nanjing/SubStation/add.html new file mode 100644 index 00000000..e2f187fa --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/SubStation/add.html @@ -0,0 +1,181 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/SubStation/edit.html b/ruoyi-admin/src/main/resources/templates/nanjing/SubStation/edit.html new file mode 100644 index 00000000..ee9f13ed --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/nanjing/SubStation/edit.html @@ -0,0 +1,182 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdLinetype.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdLinetype.java new file mode 100644 index 00000000..06764854 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdLinetype.java @@ -0,0 +1,79 @@ +package com.ruoyi.nanjing.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 主支线管理对象 T_BD_LineType + * + * @author limy + * @date 2021-01-22 + */ +public class TBdLinetype extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 编号 */ + private Long LineID; + + /** 线路名称 */ + @Excel(name = "线路名称") + private String LineTypeName; + + /** 线路类型 */ + @Excel(name = "线路类型") + private String LineTypeFlag; + + /** 条码前缀 */ + @Excel(name = "条码前缀") + private String BarcodeHead; + + public void setLineID(Long LineID) + { + this.LineID = LineID; + } + + public Long getLineID() + { + return LineID; + } + public void setLineTypeName(String LineTypeName) + { + this.LineTypeName = LineTypeName; + } + + public String getLineTypeName() + { + return LineTypeName; + } + public void setLineTypeFlag(String LineTypeFlag) + { + this.LineTypeFlag = LineTypeFlag; + } + + public String getLineTypeFlag() + { + return LineTypeFlag; + } + public void setBarcodeHead(String BarcodeHead) + { + this.BarcodeHead = BarcodeHead; + } + + public String getBarcodeHead() + { + return BarcodeHead; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("LineID", getLineID()) + .append("LineTypeName", getLineTypeName()) + .append("LineTypeFlag", getLineTypeFlag()) + .append("BarcodeHead", getBarcodeHead()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdProductinfo.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdProductinfo.java new file mode 100644 index 00000000..815174a2 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdProductinfo.java @@ -0,0 +1,318 @@ +package com.ruoyi.nanjing.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 产品信息对象 T_BD_ProductInfo + * + * @author limy + * @date 2021-01-25 + */ +public class TBdProductinfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private Long ID; + + /** 机种ID */ + @Excel(name = "机种ID") + private Long productID; + + /** 机种类型 */ + @Excel(name = "机种类型") + private String productName; + + /** 产品代号 */ + private String productCode; + + /** 机种类型 */ + @Excel(name = "机种类型") + private String productType; + + /** 维护人 */ + private String userID; + + /** 制具车条码 */ + @Excel(name = "制具车条码") + private String toolCarNo; + + /** 供应商 */ + private String supplier; + + /** 零件号 */ + private String partNum; + + /** 软件版本 */ + private String softVersion; + + /** 生产地 */ + private String yieldly; + + /** 返修次数 */ + private String returnCount; + + /** 标签有无 */ + @Excel(name = "标签有无") + private String machine; + + /** 车间代号 */ + private String ahopID; + + /** 转向 */ + private String turnTo; + + /** 冷冻油 */ + private String oil; + + /** 制冷剂 */ + private String freezing; + + /** 转速 */ + private String apeed; + + /** 电压 */ + private String volatage; + + /** 公司名称 */ + private String name; + + /** 标签模板 */ + @Excel(name = "标签模板") + private String template; + + /** 标签形式 */ + @Excel(name = "标签形式") + private String printType; + + public void setID(Long ID) + { + this.ID = ID; + } + + public Long getID() + { + return ID; + } + public void setProductID(Long productID) + { + this.productID = productID; + } + + public Long getProductID() + { + return productID; + } + public void setProductName(String productName) + { + this.productName = productName; + } + + public String getProductName() + { + return productName; + } + public void setProductCode(String productCode) + { + this.productCode = productCode; + } + + public String getProductCode() + { + return productCode; + } + public void setProductType(String productType) + { + this.productType = productType; + } + + public String getProductType() + { + return productType; + } + public void setUserID(String userID) + { + this.userID = userID; + } + + public String getUserID() + { + return userID; + } + public void setToolCarNo(String toolCarNo) + { + this.toolCarNo = toolCarNo; + } + + public String getToolCarNo() + { + return toolCarNo; + } + public void setSupplier(String supplier) + { + this.supplier = supplier; + } + + public String getSupplier() + { + return supplier; + } + public void setPartNum(String partNum) + { + this.partNum = partNum; + } + + public String getPartNum() + { + return partNum; + } + public void setSoftVersion(String softVersion) + { + this.softVersion = softVersion; + } + + public String getSoftVersion() + { + return softVersion; + } + public void setYieldly(String yieldly) + { + this.yieldly = yieldly; + } + + public String getYieldly() + { + return yieldly; + } + public void setReturnCount(String returnCount) + { + this.returnCount = returnCount; + } + + public String getReturnCount() + { + return returnCount; + } + public void setMachine(String machine) + { + this.machine = machine; + } + + public String getMachine() + { + return machine; + } + public void setAhopID(String ahopID) + { + this.ahopID = ahopID; + } + + public String getAhopID() + { + return ahopID; + } + public void setTurnTo(String turnTo) + { + this.turnTo = turnTo; + } + + public String getTurnTo() + { + return turnTo; + } + public void setOil(String oil) + { + this.oil = oil; + } + + public String getOil() + { + return oil; + } + public void setFreezing(String freezing) + { + this.freezing = freezing; + } + + public String getFreezing() + { + return freezing; + } + public void setApeed(String apeed) + { + this.apeed = apeed; + } + + public String getApeed() + { + return apeed; + } + public void setVolatage(String volatage) + { + this.volatage = volatage; + } + + public String getVolatage() + { + return volatage; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setTemplate(String template) + { + this.template = template; + } + + public String getTemplate() + { + return template; + } + public void setPrintType(String printType) + { + this.printType = printType; + } + + public String getPrintType() + { + return printType; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("ID", getID()) + .append("productID", getProductID()) + .append("productName", getProductName()) + .append("productCode", getProductCode()) + .append("productType", getProductType()) + .append("userID", getUserID()) + .append("updateTime", getUpdateTime()) + .append("toolCarNo", getToolCarNo()) + .append("supplier", getSupplier()) + .append("partNum", getPartNum()) + .append("softVersion", getSoftVersion()) + .append("yieldly", getYieldly()) + .append("returnCount", getReturnCount()) + .append("machine", getMachine()) + .append("ahopID", getAhopID()) + .append("turnTo", getTurnTo()) + .append("oil", getOil()) + .append("freezing", getFreezing()) + .append("apeed", getApeed()) + .append("volatage", getVolatage()) + .append("name", getName()) + .append("template", getTemplate()) + .append("printType", getPrintType()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdProducttype.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdProducttype.java new file mode 100644 index 00000000..04030c78 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdProducttype.java @@ -0,0 +1,65 @@ +package com.ruoyi.nanjing.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 机种类型对象 T_BD_ProductType + * + * @author limy + * @date 2021-01-22 + */ +public class TBdProducttype extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private Long ID; + + /** 机种id */ + @Excel(name = "机种id") + private String ProductTypeID; + + /** 机种名称 */ + @Excel(name = "机种名称") + private String ProductTypeName; + + public void setID(Long ID) + { + this.ID = ID; + } + + public Long getID() + { + return ID; + } + public void setProductTypeID(String ProductTypeID) + { + this.ProductTypeID = ProductTypeID; + } + + public String getProductTypeID() + { + return ProductTypeID; + } + public void setProductTypeName(String ProductTypeName) + { + this.ProductTypeName = ProductTypeName; + } + + public String getProductTypeName() + { + return ProductTypeName; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("ID", getID()) + .append("ProductTypeID", getProductTypeID()) + .append("ProductTypeName", getProductTypeName()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdStationtype.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdStationtype.java new file mode 100644 index 00000000..044f1b9f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdStationtype.java @@ -0,0 +1,65 @@ +package com.ruoyi.nanjing.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 工位类型对象 T_BD_StationType + * + * @author limy + * @date 2021-01-22 + */ +public class TBdStationtype extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private Long ID; + + /** 类型名称 */ + @Excel(name = "类型名称") + private String typeName; + + /** 类型类别 */ + @Excel(name = "类型类别") + private String typeClass; + + public void setID(Long ID) + { + this.ID = ID; + } + + public Long getID() + { + return ID; + } + public void setTypeName(String typeName) + { + this.typeName = typeName; + } + + public String getTypeName() + { + return typeName; + } + public void setTypeClass(String typeClass) + { + this.typeClass = typeClass; + } + + public String getTypeClass() + { + return typeClass; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("ID", getID()) + .append("typeName", getTypeName()) + .append("typeClass", getTypeClass()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdSubstation.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdSubstation.java new file mode 100644 index 00000000..33bde55a --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TBdSubstation.java @@ -0,0 +1,403 @@ +package com.ruoyi.nanjing.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +import java.util.Date; + +/** + * 工位管理对象 T_BD_SubStation + * + * @author limy + * @date 2021-01-22 + */ +public class TBdSubstation extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private Long ID; + + /** 工位id */ +// @Excel(name = "工位id") + private Long StationID; + + /** 工位代码 */ + @Excel(name = "工位代码") + private String StationCode; + + /** 工位类型 */ + @Excel(name = "工位类型") + private Long StationType; + + /** 机台id */ +// @Excel(name = "机台id") + private String MachineID; + + /** 连接id */ +// @Excel(name = "连接id") + private Long UniteID; + + /** 实际code */ +// @Excel(name = "实际code") + private String CustomerCode; + + /** 工位名称 */ + @Excel(name = "工位名称") + private String StationName; + + /** 父工位id */ +// @Excel(name = "父工位id") + private String ParentStationID; + + /** 父工位码 */ +// @Excel(name = "父工位码") + private String ParentStationCode; + + /** 父工位名 */ +// @Excel(name = "父工位名") + private String ParentStationName; + + /** 前工位id */ +// @Excel(name = "前工位id") + private String PreStationID; + + /** 前工位码 */ +// @Excel(name = "前工位码") + private String PreStationCode; + + /** 备注 */ +// @Excel(name = "备注") + private String Reamark; + + /** 用户id */ +// @Excel(name = "用户id") + private String UserID; + + /** 表名称 */ +// @Excel(name = "表名称") + private String TableName; + + /** 是否子工位 */ +// @Excel(name = "是否子工位") + private String IsSemi; + + /** 是否弃用工位 */ +// @Excel(name = "是否弃用工位") + private String IsNGStation; + + /** 数据 */ +// @Excel(name = "数据") + private String HaveData; + + /** 是否显示 */ +// @Excel(name = "是否显示") + private String IsShow; + + /** 是否有效,上位机使用该字段 */ +// @Excel(name = "是否有效,上位机使用该字段") + private String UseFlag; + + /** 参数个数 */ + @Excel(name = "参数个数") + private Long paraCount; + + /** 排序id */ + @Excel(name = "排序id") + private Long OrderID; + + /** 限制id */ +// @Excel(name = "限制id") + private String LimitID; + + /** 图片路径 */ +// @Excel(name = "图片路径") + private String ImageUrl; + + @Override + public Date getUpdateTime() { + return UpdateTime; + } + + @Override + public void setUpdateTime(Date updateTime) { + UpdateTime = updateTime; + } + + /** 更新时间 */ + private Date UpdateTime; + + /** 线路id */ + @Excel(name = "线路id") + private Long LineID; + + public void setID(Long ID) + { + this.ID = ID; + } + + public Long getID() + { + return ID; + } + public void setStationID(Long StationID) + { + this.StationID = StationID; + } + + public Long getStationID() + { + return StationID; + } + public void setStationCode(String StationCode) + { + this.StationCode = StationCode; + } + + public String getStationCode() + { + return StationCode; + } + public void setStationType(Long StationType) + { + this.StationType = StationType; + } + + public Long getStationType() + { + return StationType; + } + public void setMachineID(String MachineID) + { + this.MachineID = MachineID; + } + + public String getMachineID() + { + return MachineID; + } + public void setUniteID(Long UniteID) + { + this.UniteID = UniteID; + } + + public Long getUniteID() + { + return UniteID; + } + public void setCustomerCode(String CustomerCode) + { + this.CustomerCode = CustomerCode; + } + + public String getCustomerCode() + { + return CustomerCode; + } + public void setStationName(String StationName) + { + this.StationName = StationName; + } + + public String getStationName() + { + return StationName; + } + public void setParentStationID(String ParentStationID) + { + this.ParentStationID = ParentStationID; + } + + public String getParentStationID() + { + return ParentStationID; + } + public void setParentStationCode(String ParentStationCode) + { + this.ParentStationCode = ParentStationCode; + } + + public String getParentStationCode() + { + return ParentStationCode; + } + public void setParentStationName(String ParentStationName) + { + this.ParentStationName = ParentStationName; + } + + public String getParentStationName() + { + return ParentStationName; + } + public void setPreStationID(String PreStationID) + { + this.PreStationID = PreStationID; + } + + public String getPreStationID() + { + return PreStationID; + } + public void setPreStationCode(String PreStationCode) + { + this.PreStationCode = PreStationCode; + } + + public String getPreStationCode() + { + return PreStationCode; + } + public void setReamark(String Reamark) + { + this.Reamark = Reamark; + } + + public String getReamark() + { + return Reamark; + } + public void setUserID(String UserID) + { + this.UserID = UserID; + } + + public String getUserID() + { + return UserID; + } + public void setTableName(String TableName) + { + this.TableName = TableName; + } + + public String getTableName() + { + return TableName; + } + public void setIsSemi(String IsSemi) + { + this.IsSemi = IsSemi; + } + + public String getIsSemi() + { + return IsSemi; + } + public void setIsNGStation(String IsNGStation) + { + this.IsNGStation = IsNGStation; + } + + public String getIsNGStation() + { + return IsNGStation; + } + public void setHaveData(String HaveData) + { + this.HaveData = HaveData; + } + + public String getHaveData() + { + return HaveData; + } + public void setIsShow(String IsShow) + { + this.IsShow = IsShow; + } + + public String getIsShow() + { + return IsShow; + } + public void setUseFlag(String UseFlag) + { + this.UseFlag = UseFlag; + } + + public String getUseFlag() + { + return UseFlag; + } + public void setParaCount(Long paraCount) + { + this.paraCount = paraCount; + } + + public Long getParaCount() + { + return paraCount; + } + public void setOrderID(Long OrderID) + { + this.OrderID = OrderID; + } + + public Long getOrderID() + { + return OrderID; + } + public void setLimitID(String LimitID) + { + this.LimitID = LimitID; + } + + public String getLimitID() + { + return LimitID; + } + public void setImageUrl(String ImageUrl) + { + this.ImageUrl = ImageUrl; + } + + public String getImageUrl() + { + return ImageUrl; + } + public void setLineID(Long LineID) + { + this.LineID = LineID; + } + + public Long getLineID() + { + return LineID; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("ID", getID()) + .append("StationID", getStationID()) + .append("StationCode", getStationCode()) + .append("StationType", getStationType()) + .append("MachineID", getMachineID()) + .append("UniteID", getUniteID()) + .append("CustomerCode", getCustomerCode()) + .append("StationName", getStationName()) + .append("ParentStationID", getParentStationID()) + .append("ParentStationCode", getParentStationCode()) + .append("ParentStationName", getParentStationName()) + .append("PreStationID", getPreStationID()) + .append("PreStationCode", getPreStationCode()) + .append("Reamark", getReamark()) + .append("UserID", getUserID()) + .append("UpdateTime", getUpdateTime()) + .append("TableName", getTableName()) + .append("IsSemi", getIsSemi()) + .append("IsNGStation", getIsNGStation()) + .append("HaveData", getHaveData()) + .append("IsShow", getIsShow()) + .append("UseFlag", getUseFlag()) + .append("paraCount", getParaCount()) + .append("OrderID", getOrderID()) + .append("LimitID", getLimitID()) + .append("ImageUrl", getImageUrl()) + .append("LineID", getLineID()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TRpProductchangeinfo.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TRpProductchangeinfo.java new file mode 100644 index 00000000..6353012f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/domain/TRpProductchangeinfo.java @@ -0,0 +1,130 @@ +package com.ruoyi.nanjing.domain; + +import java.util.Date; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 机种切换管理对象 T_RP_ProductChangeInfo + * + * @author limy + * @date 2021-01-22 + */ +public class TRpProductchangeinfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private Long ID; + + /** 机种型号 */ + @Excel(name = "机种型号") + private Long ProductId; + + /** 生产负责人 */ + @Excel(name = "生产负责人") + private String PersonInCharge; + + /** 开始时间 */ + @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date BeginTime; + + /** 结束时间 */ + @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date EndTime; + + public TBdProductinfo gettBdProductinfo() { + return tBdProductinfo; + } + + public void settBdProductinfo(TBdProductinfo tBdProductinfo) { + this.tBdProductinfo = tBdProductinfo; + } + + private TBdProductinfo tBdProductinfo; + + /** 操作员 */ + private String Operator; + + /** 插入时间 */ + private Date InsertTime; + + public void setID(Long ID) + { + this.ID = ID; + } + + public Long getID() + { + return ID; + } + public void setProductId(Long ProductId) + { + this.ProductId = ProductId; + } + + public Long getProductId() + { + return ProductId; + } + public void setPersonInCharge(String PersonInCharge) + { + this.PersonInCharge = PersonInCharge; + } + + public String getPersonInCharge() + { + return PersonInCharge; + } + public void setBeginTime(Date BeginTime) + { + this.BeginTime = BeginTime; + } + + public Date getBeginTime() + { + return BeginTime; + } + public void setEndTime(Date EndTime) + { + this.EndTime = EndTime; + } + + public Date getEndTime() + { + return EndTime; + } + public void setOperator(String Operator) + { + this.Operator = Operator; + } + + public String getOperator() + { + return Operator; + } + public void setInsertTime(Date InsertTime) + { + this.InsertTime = InsertTime; + } + + public Date getInsertTime() + { + return InsertTime; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("ID", getID()) + .append("ProductId", getProductId()) + .append("PersonInCharge", getPersonInCharge()) + .append("BeginTime", getBeginTime()) + .append("EndTime", getEndTime()) + .append("Operator", getOperator()) + .append("InsertTime", getInsertTime()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdLinetypeMapper.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdLinetypeMapper.java new file mode 100644 index 00000000..1f9e8363 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdLinetypeMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.nanjing.mapper; + +import java.util.List; +import com.ruoyi.nanjing.domain.TBdLinetype; + +/** + * 主支线管理Mapper接口 + * + * @author limy + * @date 2021-01-22 + */ +public interface TBdLinetypeMapper +{ + /** + * 查询主支线管理 + * + * @param LineID 主支线管理ID + * @return 主支线管理 + */ + public TBdLinetype selectTBdLinetypeById(Long LineID); + + /** + * 查询主支线管理列表 + * + * @param tBdLinetype 主支线管理 + * @return 主支线管理集合 + */ + public List selectTBdLinetypeList(TBdLinetype tBdLinetype); + + /** + * 新增主支线管理 + * + * @param tBdLinetype 主支线管理 + * @return 结果 + */ + public int insertTBdLinetype(TBdLinetype tBdLinetype); + + /** + * 修改主支线管理 + * + * @param tBdLinetype 主支线管理 + * @return 结果 + */ + public int updateTBdLinetype(TBdLinetype tBdLinetype); + + /** + * 删除主支线管理 + * + * @param LineID 主支线管理ID + * @return 结果 + */ + public int deleteTBdLinetypeById(Long LineID); + + /** + * 批量删除主支线管理 + * + * @param LineIDs 需要删除的数据ID + * @return 结果 + */ + public int deleteTBdLinetypeByIds(String[] LineIDs); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdProductinfoMapper.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdProductinfoMapper.java new file mode 100644 index 00000000..9c9acded --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdProductinfoMapper.java @@ -0,0 +1,63 @@ +package com.ruoyi.nanjing.mapper; + +import java.util.List; +import com.ruoyi.nanjing.domain.TBdProductinfo; + +/** + * 产品信息Mapper接口 + * + * @author limy + * @date 2021-01-25 + */ +public interface TBdProductinfoMapper +{ + /** + * 查询产品信息 + * + * @param ID 产品信息ID + * @return 产品信息 + */ + public TBdProductinfo selectTBdProductinfoById(Long ID); + + /** + * 查询产品信息列表 + * + * @param tBdProductinfo 产品信息 + * @return 产品信息集合 + */ + public List selectTBdProductinfoList(TBdProductinfo tBdProductinfo); + + /** + * 新增产品信息 + * + * @param tBdProductinfo 产品信息 + * @return 结果 + */ + public int insertTBdProductinfo(TBdProductinfo tBdProductinfo); + + /** + * 修改产品信息 + * + * @param tBdProductinfo 产品信息 + * @return 结果 + */ + public int updateTBdProductinfo(TBdProductinfo tBdProductinfo); + + /** + * 删除产品信息 + * + * @param ID 产品信息ID + * @return 结果 + */ + public int deleteTBdProductinfoById(Long ID); + + /** + * 批量删除产品信息 + * + * @param IDs 需要删除的数据ID + * @return 结果 + */ + public int deleteTBdProductinfoByIds(String[] IDs); + + List selectTBdProductinfo(); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdProducttypeMapper.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdProducttypeMapper.java new file mode 100644 index 00000000..4915e2b5 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdProducttypeMapper.java @@ -0,0 +1,63 @@ +package com.ruoyi.nanjing.mapper; + +import java.util.List; +import com.ruoyi.nanjing.domain.TBdProducttype; + +/** + * 机种类型Mapper接口 + * + * @author limy + * @date 2021-01-22 + */ +public interface TBdProducttypeMapper +{ + /** + * 查询机种类型 + * + * @param ID 机种类型ID + * @return 机种类型 + */ + public TBdProducttype selectTBdProducttypeById(Long ID); + + /** + * 查询机种类型列表 + * + * @param tBdProducttype 机种类型 + * @return 机种类型集合 + */ + public List selectTBdProducttypeList(TBdProducttype tBdProducttype); + + /** + * 新增机种类型 + * + * @param tBdProducttype 机种类型 + * @return 结果 + */ + public int insertTBdProducttype(TBdProducttype tBdProducttype); + + /** + * 修改机种类型 + * + * @param tBdProducttype 机种类型 + * @return 结果 + */ + public int updateTBdProducttype(TBdProducttype tBdProducttype); + + /** + * 删除机种类型 + * + * @param ID 机种类型ID + * @return 结果 + */ + public int deleteTBdProducttypeById(Long ID); + + /** + * 批量删除机种类型 + * + * @param IDs 需要删除的数据ID + * @return 结果 + */ + public int deleteTBdProducttypeByIds(String[] IDs); + + List selectTBdProducttype(); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdStationtypeMapper.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdStationtypeMapper.java new file mode 100644 index 00000000..8417ada6 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdStationtypeMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.nanjing.mapper; + +import java.util.List; +import com.ruoyi.nanjing.domain.TBdStationtype; + +/** + * 工位类型Mapper接口 + * + * @author limy + * @date 2021-01-22 + */ +public interface TBdStationtypeMapper +{ + /** + * 查询工位类型 + * + * @param ID 工位类型ID + * @return 工位类型 + */ + public TBdStationtype selectTBdStationtypeById(Long ID); + + /** + * 查询工位类型列表 + * + * @param tBdStationtype 工位类型 + * @return 工位类型集合 + */ + public List selectTBdStationtypeList(TBdStationtype tBdStationtype); + + /** + * 新增工位类型 + * + * @param tBdStationtype 工位类型 + * @return 结果 + */ + public int insertTBdStationtype(TBdStationtype tBdStationtype); + + /** + * 修改工位类型 + * + * @param tBdStationtype 工位类型 + * @return 结果 + */ + public int updateTBdStationtype(TBdStationtype tBdStationtype); + + /** + * 删除工位类型 + * + * @param ID 工位类型ID + * @return 结果 + */ + public int deleteTBdStationtypeById(Long ID); + + /** + * 批量删除工位类型 + * + * @param IDs 需要删除的数据ID + * @return 结果 + */ + public int deleteTBdStationtypeByIds(String[] IDs); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdSubstationMapper.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdSubstationMapper.java new file mode 100644 index 00000000..d4b286ef --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TBdSubstationMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.nanjing.mapper; + +import java.util.List; +import com.ruoyi.nanjing.domain.TBdSubstation; + +/** + * 工位管理Mapper接口 + * + * @author limy + * @date 2021-01-22 + */ +public interface TBdSubstationMapper +{ + /** + * 查询工位管理 + * + * @param ID 工位管理ID + * @return 工位管理 + */ + public TBdSubstation selectTBdSubstationById(Long ID); + + /** + * 查询工位管理列表 + * + * @param tBdSubstation 工位管理 + * @return 工位管理集合 + */ + public List selectTBdSubstationList(TBdSubstation tBdSubstation); + + /** + * 新增工位管理 + * + * @param tBdSubstation 工位管理 + * @return 结果 + */ + public int insertTBdSubstation(TBdSubstation tBdSubstation); + + /** + * 修改工位管理 + * + * @param tBdSubstation 工位管理 + * @return 结果 + */ + public int updateTBdSubstation(TBdSubstation tBdSubstation); + + /** + * 删除工位管理 + * + * @param ID 工位管理ID + * @return 结果 + */ + public int deleteTBdSubstationById(Long ID); + + /** + * 批量删除工位管理 + * + * @param IDs 需要删除的数据ID + * @return 结果 + */ + public int deleteTBdSubstationByIds(String[] IDs); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TRpProductchangeinfoMapper.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TRpProductchangeinfoMapper.java new file mode 100644 index 00000000..6f49cb22 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/mapper/TRpProductchangeinfoMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.nanjing.mapper; + +import java.util.List; +import com.ruoyi.nanjing.domain.TRpProductchangeinfo; + +/** + * 机种切换管理Mapper接口 + * + * @author limy + * @date 2021-01-22 + */ +public interface TRpProductchangeinfoMapper +{ + /** + * 查询机种切换管理 + * + * @param ID 机种切换管理ID + * @return 机种切换管理 + */ + public TRpProductchangeinfo selectTRpProductchangeinfoById(Long ID); + + /** + * 查询机种切换管理列表 + * + * @param tRpProductchangeinfo 机种切换管理 + * @return 机种切换管理集合 + */ + public List selectTRpProductchangeinfoList(TRpProductchangeinfo tRpProductchangeinfo); + + /** + * 新增机种切换管理 + * + * @param tRpProductchangeinfo 机种切换管理 + * @return 结果 + */ + public int insertTRpProductchangeinfo(TRpProductchangeinfo tRpProductchangeinfo); + + /** + * 修改机种切换管理 + * + * @param tRpProductchangeinfo 机种切换管理 + * @return 结果 + */ + public int updateTRpProductchangeinfo(TRpProductchangeinfo tRpProductchangeinfo); + + /** + * 删除机种切换管理 + * + * @param ID 机种切换管理ID + * @return 结果 + */ + public int deleteTRpProductchangeinfoById(Long ID); + + /** + * 批量删除机种切换管理 + * + * @param IDs 需要删除的数据ID + * @return 结果 + */ + public int deleteTRpProductchangeinfoByIds(String[] IDs); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdLinetypeService.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdLinetypeService.java new file mode 100644 index 00000000..28730148 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdLinetypeService.java @@ -0,0 +1,61 @@ +package com.ruoyi.nanjing.service; + +import java.util.List; +import com.ruoyi.nanjing.domain.TBdLinetype; + +/** + * 主支线管理Service接口 + * + * @author limy + * @date 2021-01-22 + */ +public interface ITBdLinetypeService +{ + /** + * 查询主支线管理 + * + * @param LineID 主支线管理ID + * @return 主支线管理 + */ + public TBdLinetype selectTBdLinetypeById(Long LineID); + + /** + * 查询主支线管理列表 + * + * @param tBdLinetype 主支线管理 + * @return 主支线管理集合 + */ + public List selectTBdLinetypeList(TBdLinetype tBdLinetype); + + /** + * 新增主支线管理 + * + * @param tBdLinetype 主支线管理 + * @return 结果 + */ + public int insertTBdLinetype(TBdLinetype tBdLinetype); + + /** + * 修改主支线管理 + * + * @param tBdLinetype 主支线管理 + * @return 结果 + */ + public int updateTBdLinetype(TBdLinetype tBdLinetype); + + /** + * 批量删除主支线管理 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteTBdLinetypeByIds(String ids); + + /** + * 删除主支线管理信息 + * + * @param LineID 主支线管理ID + * @return 结果 + */ + public int deleteTBdLinetypeById(Long LineID); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdProductinfoService.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdProductinfoService.java new file mode 100644 index 00000000..7e39f395 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdProductinfoService.java @@ -0,0 +1,63 @@ +package com.ruoyi.nanjing.service; + +import java.util.List; +import com.ruoyi.nanjing.domain.TBdProductinfo; + +/** + * 产品信息Service接口 + * + * @author limy + * @date 2021-01-25 + */ +public interface ITBdProductinfoService +{ + /** + * 查询产品信息 + * + * @param ID 产品信息ID + * @return 产品信息 + */ + public TBdProductinfo selectTBdProductinfoById(Long ID); + + /** + * 查询产品信息列表 + * + * @param tBdProductinfo 产品信息 + * @return 产品信息集合 + */ + public List selectTBdProductinfoList(TBdProductinfo tBdProductinfo); + + /** + * 新增产品信息 + * + * @param tBdProductinfo 产品信息 + * @return 结果 + */ + public int insertTBdProductinfo(TBdProductinfo tBdProductinfo); + + /** + * 修改产品信息 + * + * @param tBdProductinfo 产品信息 + * @return 结果 + */ + public int updateTBdProductinfo(TBdProductinfo tBdProductinfo); + + /** + * 批量删除产品信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteTBdProductinfoByIds(String ids); + + /** + * 删除产品信息信息 + * + * @param ID 产品信息ID + * @return 结果 + */ + public int deleteTBdProductinfoById(Long ID); + + List selectTBdProductinfo(); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdProducttypeService.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdProducttypeService.java new file mode 100644 index 00000000..29b42740 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdProducttypeService.java @@ -0,0 +1,64 @@ +package com.ruoyi.nanjing.service; + +import java.util.List; +import com.ruoyi.nanjing.domain.TBdProducttype; + +/** + * 机种类型Service接口 + * + * @author limy + * @date 2021-01-22 + */ +public interface ITBdProducttypeService +{ + /** + * 查询机种类型 + * + * @param ID 机种类型ID + * @return 机种类型 + */ + public TBdProducttype selectTBdProducttypeById(Long ID); + + /** + * 查询机种类型列表 + * + * @param tBdProducttype 机种类型 + * @return 机种类型集合 + */ + public List selectTBdProducttypeList(TBdProducttype tBdProducttype); + + /** + * 新增机种类型 + * + * @param tBdProducttype 机种类型 + * @return 结果 + */ + public int insertTBdProducttype(TBdProducttype tBdProducttype); + + /** + * 修改机种类型 + * + * @param tBdProducttype 机种类型 + * @return 结果 + */ + public int updateTBdProducttype(TBdProducttype tBdProducttype); + + /** + * 批量删除机种类型 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteTBdProducttypeByIds(String ids); + + /** + * 删除机种类型信息 + * + * @param ID 机种类型ID + * @return 结果 + */ + public int deleteTBdProducttypeById(Long ID); + +// 查询最新添加的机种信息 + List selectTBdProducttype(); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdStationtypeService.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdStationtypeService.java new file mode 100644 index 00000000..4bbf2495 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdStationtypeService.java @@ -0,0 +1,61 @@ +package com.ruoyi.nanjing.service; + +import java.util.List; +import com.ruoyi.nanjing.domain.TBdStationtype; + +/** + * 工位类型Service接口 + * + * @author limy + * @date 2021-01-22 + */ +public interface ITBdStationtypeService +{ + /** + * 查询工位类型 + * + * @param ID 工位类型ID + * @return 工位类型 + */ + public TBdStationtype selectTBdStationtypeById(Long ID); + + /** + * 查询工位类型列表 + * + * @param tBdStationtype 工位类型 + * @return 工位类型集合 + */ + public List selectTBdStationtypeList(TBdStationtype tBdStationtype); + + /** + * 新增工位类型 + * + * @param tBdStationtype 工位类型 + * @return 结果 + */ + public int insertTBdStationtype(TBdStationtype tBdStationtype); + + /** + * 修改工位类型 + * + * @param tBdStationtype 工位类型 + * @return 结果 + */ + public int updateTBdStationtype(TBdStationtype tBdStationtype); + + /** + * 批量删除工位类型 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteTBdStationtypeByIds(String ids); + + /** + * 删除工位类型信息 + * + * @param ID 工位类型ID + * @return 结果 + */ + public int deleteTBdStationtypeById(Long ID); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdSubstationService.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdSubstationService.java new file mode 100644 index 00000000..fefa76a2 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITBdSubstationService.java @@ -0,0 +1,61 @@ +package com.ruoyi.nanjing.service; + +import java.util.List; +import com.ruoyi.nanjing.domain.TBdSubstation; + +/** + * 工位管理Service接口 + * + * @author limy + * @date 2021-01-22 + */ +public interface ITBdSubstationService +{ + /** + * 查询工位管理 + * + * @param ID 工位管理ID + * @return 工位管理 + */ + public TBdSubstation selectTBdSubstationById(Long ID); + + /** + * 查询工位管理列表 + * + * @param tBdSubstation 工位管理 + * @return 工位管理集合 + */ + public List selectTBdSubstationList(TBdSubstation tBdSubstation); + + /** + * 新增工位管理 + * + * @param tBdSubstation 工位管理 + * @return 结果 + */ + public int insertTBdSubstation(TBdSubstation tBdSubstation); + + /** + * 修改工位管理 + * + * @param tBdSubstation 工位管理 + * @return 结果 + */ + public int updateTBdSubstation(TBdSubstation tBdSubstation); + + /** + * 批量删除工位管理 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteTBdSubstationByIds(String ids); + + /** + * 删除工位管理信息 + * + * @param ID 工位管理ID + * @return 结果 + */ + public int deleteTBdSubstationById(Long ID); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITRpProductchangeinfoService.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITRpProductchangeinfoService.java new file mode 100644 index 00000000..c789cde9 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/ITRpProductchangeinfoService.java @@ -0,0 +1,61 @@ +package com.ruoyi.nanjing.service; + +import java.util.List; +import com.ruoyi.nanjing.domain.TRpProductchangeinfo; + +/** + * 机种切换管理Service接口 + * + * @author limy + * @date 2021-01-22 + */ +public interface ITRpProductchangeinfoService +{ + /** + * 查询机种切换管理 + * + * @param ID 机种切换管理ID + * @return 机种切换管理 + */ + public TRpProductchangeinfo selectTRpProductchangeinfoById(Long ID); + + /** + * 查询机种切换管理列表 + * + * @param tRpProductchangeinfo 机种切换管理 + * @return 机种切换管理集合 + */ + public List selectTRpProductchangeinfoList(TRpProductchangeinfo tRpProductchangeinfo); + + /** + * 新增机种切换管理 + * + * @param tRpProductchangeinfo 机种切换管理 + * @return 结果 + */ + public int insertTRpProductchangeinfo(TRpProductchangeinfo tRpProductchangeinfo); + + /** + * 修改机种切换管理 + * + * @param tRpProductchangeinfo 机种切换管理 + * @return 结果 + */ + public int updateTRpProductchangeinfo(TRpProductchangeinfo tRpProductchangeinfo); + + /** + * 批量删除机种切换管理 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteTRpProductchangeinfoByIds(String ids); + + /** + * 删除机种切换管理信息 + * + * @param ID 机种切换管理ID + * @return 结果 + */ + public int deleteTRpProductchangeinfoById(Long ID); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdLinetypeServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdLinetypeServiceImpl.java new file mode 100644 index 00000000..a2b62221 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdLinetypeServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.nanjing.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.nanjing.mapper.TBdLinetypeMapper; +import com.ruoyi.nanjing.domain.TBdLinetype; +import com.ruoyi.nanjing.service.ITBdLinetypeService; +import com.ruoyi.common.core.text.Convert; + +/** + * 主支线管理Service业务层处理 + * + * @author limy + * @date 2021-01-22 + */ +@Service +public class TBdLinetypeServiceImpl implements ITBdLinetypeService +{ + @Autowired + private TBdLinetypeMapper tBdLinetypeMapper; + + /** + * 查询主支线管理 + * + * @param LineID 主支线管理ID + * @return 主支线管理 + */ + @Override + public TBdLinetype selectTBdLinetypeById(Long LineID) + { + return tBdLinetypeMapper.selectTBdLinetypeById(LineID); + } + + /** + * 查询主支线管理列表 + * + * @param tBdLinetype 主支线管理 + * @return 主支线管理 + */ + @Override + public List selectTBdLinetypeList(TBdLinetype tBdLinetype) + { + return tBdLinetypeMapper.selectTBdLinetypeList(tBdLinetype); + } + + /** + * 新增主支线管理 + * + * @param tBdLinetype 主支线管理 + * @return 结果 + */ + @Override + public int insertTBdLinetype(TBdLinetype tBdLinetype) + { + return tBdLinetypeMapper.insertTBdLinetype(tBdLinetype); + } + + /** + * 修改主支线管理 + * + * @param tBdLinetype 主支线管理 + * @return 结果 + */ + @Override + public int updateTBdLinetype(TBdLinetype tBdLinetype) + { + return tBdLinetypeMapper.updateTBdLinetype(tBdLinetype); + } + + /** + * 删除主支线管理对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteTBdLinetypeByIds(String ids) + { + return tBdLinetypeMapper.deleteTBdLinetypeByIds(Convert.toStrArray(ids)); + } + + /** + * 删除主支线管理信息 + * + * @param LineID 主支线管理ID + * @return 结果 + */ + @Override + public int deleteTBdLinetypeById(Long LineID) + { + return tBdLinetypeMapper.deleteTBdLinetypeById(LineID); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdProductinfoServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdProductinfoServiceImpl.java new file mode 100644 index 00000000..82f35c8b --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdProductinfoServiceImpl.java @@ -0,0 +1,101 @@ +package com.ruoyi.nanjing.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.nanjing.mapper.TBdProductinfoMapper; +import com.ruoyi.nanjing.domain.TBdProductinfo; +import com.ruoyi.nanjing.service.ITBdProductinfoService; +import com.ruoyi.common.core.text.Convert; + +/** + * 产品信息Service业务层处理 + * + * @author limy + * @date 2021-01-25 + */ +@Service +public class TBdProductinfoServiceImpl implements ITBdProductinfoService +{ + @Autowired + private TBdProductinfoMapper tBdProductinfoMapper; + + /** + * 查询产品信息 + * + * @param ID 产品信息ID + * @return 产品信息 + */ + @Override + public TBdProductinfo selectTBdProductinfoById(Long ID) + { + return tBdProductinfoMapper.selectTBdProductinfoById(ID); + } + + /** + * 查询产品信息列表 + * + * @param tBdProductinfo 产品信息 + * @return 产品信息 + */ + @Override + public List selectTBdProductinfoList(TBdProductinfo tBdProductinfo) + { + return tBdProductinfoMapper.selectTBdProductinfoList(tBdProductinfo); + } + + /** + * 新增产品信息 + * + * @param tBdProductinfo 产品信息 + * @return 结果 + */ + @Override + public int insertTBdProductinfo(TBdProductinfo tBdProductinfo) + { + return tBdProductinfoMapper.insertTBdProductinfo(tBdProductinfo); + } + + /** + * 修改产品信息 + * + * @param tBdProductinfo 产品信息 + * @return 结果 + */ + @Override + public int updateTBdProductinfo(TBdProductinfo tBdProductinfo) + { + tBdProductinfo.setUpdateTime(DateUtils.getNowDate()); + return tBdProductinfoMapper.updateTBdProductinfo(tBdProductinfo); + } + + /** + * 删除产品信息对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteTBdProductinfoByIds(String ids) + { + return tBdProductinfoMapper.deleteTBdProductinfoByIds(Convert.toStrArray(ids)); + } + + /** + * 删除产品信息信息 + * + * @param ID 产品信息ID + * @return 结果 + */ + @Override + public int deleteTBdProductinfoById(Long ID) + { + return tBdProductinfoMapper.deleteTBdProductinfoById(ID); + } + + @Override + public List selectTBdProductinfo() { + return tBdProductinfoMapper.selectTBdProductinfo(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdProducttypeServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdProducttypeServiceImpl.java new file mode 100644 index 00000000..f6e49a49 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdProducttypeServiceImpl.java @@ -0,0 +1,99 @@ +package com.ruoyi.nanjing.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.nanjing.mapper.TBdProducttypeMapper; +import com.ruoyi.nanjing.domain.TBdProducttype; +import com.ruoyi.nanjing.service.ITBdProducttypeService; +import com.ruoyi.common.core.text.Convert; + +/** + * 机种类型Service业务层处理 + * + * @author limy + * @date 2021-01-22 + */ +@Service +public class TBdProducttypeServiceImpl implements ITBdProducttypeService +{ + @Autowired + private TBdProducttypeMapper tBdProducttypeMapper; + + /** + * 查询机种类型 + * + * @param ID 机种类型ID + * @return 机种类型 + */ + @Override + public TBdProducttype selectTBdProducttypeById(Long ID) + { + return tBdProducttypeMapper.selectTBdProducttypeById(ID); + } + + /** + * 查询机种类型列表 + * + * @param tBdProducttype 机种类型 + * @return 机种类型 + */ + @Override + public List selectTBdProducttypeList(TBdProducttype tBdProducttype) + { + return tBdProducttypeMapper.selectTBdProducttypeList(tBdProducttype); + } + + /** + * 新增机种类型 + * + * @param tBdProducttype 机种类型 + * @return 结果 + */ + @Override + public int insertTBdProducttype(TBdProducttype tBdProducttype) + { + return tBdProducttypeMapper.insertTBdProducttype(tBdProducttype); + } + + /** + * 修改机种类型 + * + * @param tBdProducttype 机种类型 + * @return 结果 + */ + @Override + public int updateTBdProducttype(TBdProducttype tBdProducttype) + { + return tBdProducttypeMapper.updateTBdProducttype(tBdProducttype); + } + + /** + * 删除机种类型对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteTBdProducttypeByIds(String ids) + { + return tBdProducttypeMapper.deleteTBdProducttypeByIds(Convert.toStrArray(ids)); + } + + /** + * 删除机种类型信息 + * + * @param ID 机种类型ID + * @return 结果 + */ + @Override + public int deleteTBdProducttypeById(Long ID) + { + return tBdProducttypeMapper.deleteTBdProducttypeById(ID); + } + + @Override + public List selectTBdProducttype() { + return tBdProducttypeMapper.selectTBdProducttype(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdStationtypeServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdStationtypeServiceImpl.java new file mode 100644 index 00000000..85990dcf --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdStationtypeServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.nanjing.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.nanjing.mapper.TBdStationtypeMapper; +import com.ruoyi.nanjing.domain.TBdStationtype; +import com.ruoyi.nanjing.service.ITBdStationtypeService; +import com.ruoyi.common.core.text.Convert; + +/** + * 工位类型Service业务层处理 + * + * @author limy + * @date 2021-01-22 + */ +@Service +public class TBdStationtypeServiceImpl implements ITBdStationtypeService +{ + @Autowired + private TBdStationtypeMapper tBdStationtypeMapper; + + /** + * 查询工位类型 + * + * @param ID 工位类型ID + * @return 工位类型 + */ + @Override + public TBdStationtype selectTBdStationtypeById(Long ID) + { + return tBdStationtypeMapper.selectTBdStationtypeById(ID); + } + + /** + * 查询工位类型列表 + * + * @param tBdStationtype 工位类型 + * @return 工位类型 + */ + @Override + public List selectTBdStationtypeList(TBdStationtype tBdStationtype) + { + return tBdStationtypeMapper.selectTBdStationtypeList(tBdStationtype); + } + + /** + * 新增工位类型 + * + * @param tBdStationtype 工位类型 + * @return 结果 + */ + @Override + public int insertTBdStationtype(TBdStationtype tBdStationtype) + { + return tBdStationtypeMapper.insertTBdStationtype(tBdStationtype); + } + + /** + * 修改工位类型 + * + * @param tBdStationtype 工位类型 + * @return 结果 + */ + @Override + public int updateTBdStationtype(TBdStationtype tBdStationtype) + { + return tBdStationtypeMapper.updateTBdStationtype(tBdStationtype); + } + + /** + * 删除工位类型对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteTBdStationtypeByIds(String ids) + { + return tBdStationtypeMapper.deleteTBdStationtypeByIds(Convert.toStrArray(ids)); + } + + /** + * 删除工位类型信息 + * + * @param ID 工位类型ID + * @return 结果 + */ + @Override + public int deleteTBdStationtypeById(Long ID) + { + return tBdStationtypeMapper.deleteTBdStationtypeById(ID); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdSubstationServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdSubstationServiceImpl.java new file mode 100644 index 00000000..8be8f691 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TBdSubstationServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.nanjing.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.nanjing.mapper.TBdSubstationMapper; +import com.ruoyi.nanjing.domain.TBdSubstation; +import com.ruoyi.nanjing.service.ITBdSubstationService; +import com.ruoyi.common.core.text.Convert; + +/** + * 工位管理Service业务层处理 + * + * @author limy + * @date 2021-01-22 + */ +@Service +public class TBdSubstationServiceImpl implements ITBdSubstationService +{ + @Autowired + private TBdSubstationMapper tBdSubstationMapper; + + /** + * 查询工位管理 + * + * @param ID 工位管理ID + * @return 工位管理 + */ + @Override + public TBdSubstation selectTBdSubstationById(Long ID) + { + return tBdSubstationMapper.selectTBdSubstationById(ID); + } + + /** + * 查询工位管理列表 + * + * @param tBdSubstation 工位管理 + * @return 工位管理 + */ + @Override + public List selectTBdSubstationList(TBdSubstation tBdSubstation) + { + return tBdSubstationMapper.selectTBdSubstationList(tBdSubstation); + } + + /** + * 新增工位管理 + * + * @param tBdSubstation 工位管理 + * @return 结果 + */ + @Override + public int insertTBdSubstation(TBdSubstation tBdSubstation) + { + return tBdSubstationMapper.insertTBdSubstation(tBdSubstation); + } + + /** + * 修改工位管理 + * + * @param tBdSubstation 工位管理 + * @return 结果 + */ + @Override + public int updateTBdSubstation(TBdSubstation tBdSubstation) + { + return tBdSubstationMapper.updateTBdSubstation(tBdSubstation); + } + + /** + * 删除工位管理对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteTBdSubstationByIds(String ids) + { + return tBdSubstationMapper.deleteTBdSubstationByIds(Convert.toStrArray(ids)); + } + + /** + * 删除工位管理信息 + * + * @param ID 工位管理ID + * @return 结果 + */ + @Override + public int deleteTBdSubstationById(Long ID) + { + return tBdSubstationMapper.deleteTBdSubstationById(ID); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TRpProductchangeinfoServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TRpProductchangeinfoServiceImpl.java new file mode 100644 index 00000000..b3055938 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/nanjing/service/impl/TRpProductchangeinfoServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.nanjing.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.nanjing.mapper.TRpProductchangeinfoMapper; +import com.ruoyi.nanjing.domain.TRpProductchangeinfo; +import com.ruoyi.nanjing.service.ITRpProductchangeinfoService; +import com.ruoyi.common.core.text.Convert; + +/** + * 机种切换管理Service业务层处理 + * + * @author limy + * @date 2021-01-22 + */ +@Service +public class TRpProductchangeinfoServiceImpl implements ITRpProductchangeinfoService +{ + @Autowired + private TRpProductchangeinfoMapper tRpProductchangeinfoMapper; + + /** + * 查询机种切换管理 + * + * @param ID 机种切换管理ID + * @return 机种切换管理 + */ + @Override + public TRpProductchangeinfo selectTRpProductchangeinfoById(Long ID) + { + return tRpProductchangeinfoMapper.selectTRpProductchangeinfoById(ID); + } + + /** + * 查询机种切换管理列表 + * + * @param tRpProductchangeinfo 机种切换管理 + * @return 机种切换管理 + */ + @Override + public List selectTRpProductchangeinfoList(TRpProductchangeinfo tRpProductchangeinfo) + { + return tRpProductchangeinfoMapper.selectTRpProductchangeinfoList(tRpProductchangeinfo); + } + + /** + * 新增机种切换管理 + * + * @param tRpProductchangeinfo 机种切换管理 + * @return 结果 + */ + @Override + public int insertTRpProductchangeinfo(TRpProductchangeinfo tRpProductchangeinfo) + { + return tRpProductchangeinfoMapper.insertTRpProductchangeinfo(tRpProductchangeinfo); + } + + /** + * 修改机种切换管理 + * + * @param tRpProductchangeinfo 机种切换管理 + * @return 结果 + */ + @Override + public int updateTRpProductchangeinfo(TRpProductchangeinfo tRpProductchangeinfo) + { + return tRpProductchangeinfoMapper.updateTRpProductchangeinfo(tRpProductchangeinfo); + } + + /** + * 删除机种切换管理对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteTRpProductchangeinfoByIds(String ids) + { + return tRpProductchangeinfoMapper.deleteTRpProductchangeinfoByIds(Convert.toStrArray(ids)); + } + + /** + * 删除机种切换管理信息 + * + * @param ID 机种切换管理ID + * @return 结果 + */ + @Override + public int deleteTRpProductchangeinfoById(Long ID) + { + return tRpProductchangeinfoMapper.deleteTRpProductchangeinfoById(ID); + } +} diff --git a/ruoyi-system/src/main/resources/mapper/nanjing/TBdLinetypeMapper.xml b/ruoyi-system/src/main/resources/mapper/nanjing/TBdLinetypeMapper.xml new file mode 100644 index 00000000..d24784c8 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/nanjing/TBdLinetypeMapper.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + select LineID, LineTypeName, LineTypeFlag, BarcodeHead from T_BD_LineType + + + + + + + + insert into T_BD_LineType + + LineID, + LineTypeName, + LineTypeFlag, + BarcodeHead, + + + #{LineID}, + #{LineTypeName}, + #{LineTypeFlag}, + #{BarcodeHead}, + + + + + update T_BD_LineType + + LineTypeName = #{LineTypeName}, + LineTypeFlag = #{LineTypeFlag}, + BarcodeHead = #{BarcodeHead}, + + where LineID = #{LineID} + + + + delete from T_BD_LineType where LineID = #{LineID} + + + + delete from T_BD_LineType where LineID in + + #{LineID} + + + + diff --git a/ruoyi-system/src/main/resources/mapper/nanjing/TBdProductinfoMapper.xml b/ruoyi-system/src/main/resources/mapper/nanjing/TBdProductinfoMapper.xml new file mode 100644 index 00000000..6a694fa0 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/nanjing/TBdProductinfoMapper.xml @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select ID, ProductID, ProductName, ProductCode, ProductType, UserID, UpdateTime, ToolCarNo, Supplier, partNum, SoftVersion, Yieldly, ReturnCount, Machine, ShopID, TurnTo, Oil, Freezing, Speed, volatage, Name, Template, PrintType from T_BD_ProductInfo + + + + + + + + + insert into T_BD_ProductInfo + + ID, + ProductID, + ProductName, + ProductCode, + ProductType, + UserID, + UpdateTime, + ToolCarNo, + Supplier, + partNum, + SoftVersion, + Yieldly, + ReturnCount, + Machine, + ShopID, + TurnTo, + Oil, + Freezing, + Speed, + volatage, + Name, + Template, + PrintType, + + + #{ID}, + #{productID}, + #{productName}, + #{productCode}, + #{productType}, + #{userID}, + #{updateTime}, + #{toolCarNo}, + #{supplier}, + #{partNum}, + #{softVersion}, + #{yieldly}, + #{returnCount}, + #{machine}, + #{ahopID}, + #{turnTo}, + #{oil}, + #{freezing}, + #{apeed}, + #{volatage}, + #{name}, + #{template}, + #{printType}, + + + + + update T_BD_ProductInfo + + ProductID = #{productID}, + ProductName = #{productName}, + ProductCode = #{productCode}, + ProductType = #{productType}, + UserID = #{userID}, + UpdateTime = #{updateTime}, + ToolCarNo = #{toolCarNo}, + Supplier = #{supplier}, + partNum = #{partNum}, + SoftVersion = #{softVersion}, + Yieldly = #{yieldly}, + ReturnCount = #{returnCount}, + Machine = #{machine}, + ShopID = #{ahopID}, + TurnTo = #{turnTo}, + Oil = #{oil}, + Freezing = #{freezing}, + Speed = #{apeed}, + volatage = #{volatage}, + Name = #{name}, + Template = #{template}, + PrintType = #{printType}, + + where ID = #{ID} + + + + delete from T_BD_ProductInfo where ID = #{ID} + + + + delete from T_BD_ProductInfo where ID in + + #{ID} + + + + diff --git a/ruoyi-system/src/main/resources/mapper/nanjing/TBdProducttypeMapper.xml b/ruoyi-system/src/main/resources/mapper/nanjing/TBdProducttypeMapper.xml new file mode 100644 index 00000000..ba691717 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/nanjing/TBdProducttypeMapper.xml @@ -0,0 +1,67 @@ + + + + + + + + + + + + select ID, ProductTypeID, ProductTypeName from T_BD_ProductType + + + + + + + + + insert into T_BD_ProductType + + ID, + ProductTypeID, + ProductTypeName, + + + #{ID}, + #{ProductTypeID}, + #{ProductTypeName}, + + + + + update T_BD_ProductType + + ProductTypeID = #{ProductTypeID}, + ProductTypeName = #{ProductTypeName}, + + where ID = #{ID} + + + + delete from T_BD_ProductType where ID = #{ID} + + + + delete from T_BD_ProductType where ID in + + #{ID} + + + + diff --git a/ruoyi-system/src/main/resources/mapper/nanjing/TBdStationtypeMapper.xml b/ruoyi-system/src/main/resources/mapper/nanjing/TBdStationtypeMapper.xml new file mode 100644 index 00000000..d211cfbd --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/nanjing/TBdStationtypeMapper.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + select ID, Type_Name, Type_Class from T_BD_StationType + + + + + + + + insert into T_BD_StationType + + ID, + Type_Name, + Type_Class, + + + #{ID}, + #{typeName}, + #{typeClass}, + + + + + update T_BD_StationType + + Type_Name = #{typeName}, + Type_Class = #{typeClass}, + + where ID = #{ID} + + + + delete from T_BD_StationType where ID = #{ID} + + + + delete from T_BD_StationType where ID in + + #{ID} + + + + diff --git a/ruoyi-system/src/main/resources/mapper/nanjing/TBdSubstationMapper.xml b/ruoyi-system/src/main/resources/mapper/nanjing/TBdSubstationMapper.xml new file mode 100644 index 00000000..bc960beb --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/nanjing/TBdSubstationMapper.xml @@ -0,0 +1,184 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select ID, StationID, StationCode, StationType, MachineID, UniteID, CustomerCode, StationName, ParentStationID, ParentStationCode, ParentStationName, PreStationID, PreStationCode, Reamark, UserID, UpdateTime, TableName, IsSemi, IsNGStation, HaveData, IsShow, UseFlag, paraCount, OrderID, LimitID, ImageUrl, LineID from T_BD_SubStation + + + + + + + + insert into T_BD_SubStation + + ID, + StationID, + StationCode, + StationType, + MachineID, + UniteID, + CustomerCode, + StationName, + ParentStationID, + ParentStationCode, + ParentStationName, + PreStationID, + PreStationCode, + Reamark, + UserID, + UpdateTime, + TableName, + IsSemi, + IsNGStation, + HaveData, + IsShow, + UseFlag, + paraCount, + OrderID, + LimitID, + ImageUrl, + LineID, + + + #{ID}, + #{StationID}, + #{StationCode}, + #{StationType}, + #{MachineID}, + #{UniteID}, + #{CustomerCode}, + #{StationName}, + #{ParentStationID}, + #{ParentStationCode}, + #{ParentStationName}, + #{PreStationID}, + #{PreStationCode}, + #{Reamark}, + #{UserID}, + #{UpdateTime}, + #{TableName}, + #{IsSemi}, + #{IsNGStation}, + #{HaveData}, + #{IsShow}, + #{UseFlag}, + #{paraCount}, + #{OrderID}, + #{LimitID}, + #{ImageUrl}, + #{LineID}, + + + + + update T_BD_SubStation + + StationID = #{StationID}, + StationCode = #{StationCode}, + StationType = #{StationType}, + MachineID = #{MachineID}, + UniteID = #{UniteID}, + CustomerCode = #{CustomerCode}, + StationName = #{StationName}, + ParentStationID = #{ParentStationID}, + ParentStationCode = #{ParentStationCode}, + ParentStationName = #{ParentStationName}, + PreStationID = #{PreStationID}, + PreStationCode = #{PreStationCode}, + Reamark = #{Reamark}, + UserID = #{UserID}, + UpdateTime = #{UpdateTime}, + TableName = #{TableName}, + IsSemi = #{IsSemi}, + IsNGStation = #{IsNGStation}, + HaveData = #{HaveData}, + IsShow = #{IsShow}, + UseFlag = #{UseFlag}, + paraCount = #{paraCount}, + OrderID = #{OrderID}, + LimitID = #{LimitID}, + ImageUrl = #{ImageUrl}, + LineID = #{LineID}, + + where ID = #{ID} + + + + delete from T_BD_SubStation where ID = #{ID} + + + + delete from T_BD_SubStation where ID in + + #{ID} + + + + diff --git a/ruoyi-system/src/main/resources/mapper/nanjing/TRpProductchangeinfoMapper.xml b/ruoyi-system/src/main/resources/mapper/nanjing/TRpProductchangeinfoMapper.xml new file mode 100644 index 00000000..fb9f3a10 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/nanjing/TRpProductchangeinfoMapper.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + select t1.ID, t1.ProductId,t2.ProductName, t1.PersonInCharge, t1.BeginTime, t1.EndTime, t1.Operator, t1.InsertTime from T_RP_ProductChangeInfo t1 + left join T_BD_ProductInfo t2 on t1.ProductId = t2.ProductID + + + + + + + + insert into T_RP_ProductChangeInfo + + ID, + ProductId, + PersonInCharge, + BeginTime, + EndTime, + Operator, + InsertTime, + + + #{ID}, + #{ProductId}, + #{PersonInCharge}, + #{BeginTime}, + #{EndTime}, + #{Operator}, + #{InsertTime}, + + + + + update T_RP_ProductChangeInfo + + ProductId = #{ProductId}, + PersonInCharge = #{PersonInCharge}, + BeginTime = #{BeginTime}, + EndTime = #{EndTime}, + Operator = #{Operator}, + InsertTime = #{InsertTime}, + + where ID = #{ID} + + + + delete from T_RP_ProductChangeInfo where ID = #{ID} + + + + delete from T_RP_ProductChangeInfo where ID in + + #{ID} + + + +