diff --git a/aucma-base/src/main/java/com/aucma/base/controller/BaseDeviceLedgerController.java b/aucma-base/src/main/java/com/aucma/base/controller/BaseDeviceLedgerController.java new file mode 100644 index 0000000..9bc3621 --- /dev/null +++ b/aucma-base/src/main/java/com/aucma/base/controller/BaseDeviceLedgerController.java @@ -0,0 +1,103 @@ +package com.aucma.base.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; + +import com.aucma.common.utils.DateUtils; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.aucma.common.annotation.Log; +import com.aucma.common.core.controller.BaseController; +import com.aucma.common.core.domain.AjaxResult; +import com.aucma.common.enums.BusinessType; +import com.aucma.base.domain.BaseDeviceLedger; +import com.aucma.base.service.IBaseDeviceLedgerService; +import com.aucma.common.utils.poi.ExcelUtil; +import com.aucma.common.core.page.TableDataInfo; + +/** + * 设备台账Controller + * + * @author Yinq + * @date 2023-09-19 + */ +@RestController +@RequestMapping("/base/deviceLedger" ) +public class BaseDeviceLedgerController extends BaseController { + @Autowired + private IBaseDeviceLedgerService baseDeviceLedgerService; + +/** + * 查询设备台账列表 + */ +@PreAuthorize("@ss.hasPermi('base:deviceLedger:list')" ) +@GetMapping("/list" ) + public TableDataInfo list(BaseDeviceLedger baseDeviceLedger) { + startPage(); + List list = baseDeviceLedgerService.selectBaseDeviceLedgerList(baseDeviceLedger); + return getDataTable(list); + } + + /** + * 导出设备台账列表 + */ + @PreAuthorize("@ss.hasPermi('base:deviceLedger:export')" ) + @Log(title = "设备台账" , businessType = BusinessType.EXPORT) + @PostMapping("/export" ) + public void export(HttpServletResponse response, BaseDeviceLedger baseDeviceLedger) { + List list = baseDeviceLedgerService.selectBaseDeviceLedgerList(baseDeviceLedger); + ExcelUtil util = new ExcelUtil(BaseDeviceLedger. class); + util.exportExcel(response, list, "设备台账数据" ); + } + + /** + * 获取设备台账详细信息 + */ + @PreAuthorize("@ss.hasPermi('base:deviceLedger:query')" ) + @GetMapping(value = "/{objId}" ) + public AjaxResult getInfo(@PathVariable("objId" ) Long objId) { + return success(baseDeviceLedgerService.selectBaseDeviceLedgerByObjId(objId)); + } + + /** + * 新增设备台账 + */ + @PreAuthorize("@ss.hasPermi('base:deviceLedger:add')" ) + @Log(title = "设备台账" , businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BaseDeviceLedger baseDeviceLedger) { + baseDeviceLedger.setCreatedBy(getUsername()); + baseDeviceLedger.setCreatedTime(DateUtils.getNowDate()); + return toAjax(baseDeviceLedgerService.insertBaseDeviceLedger(baseDeviceLedger)); + } + + /** + * 修改设备台账 + */ + @PreAuthorize("@ss.hasPermi('base:deviceLedger:edit')" ) + @Log(title = "设备台账" , businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BaseDeviceLedger baseDeviceLedger) { + baseDeviceLedger.setUpdatedBy(getUsername()); + baseDeviceLedger.setUpdatedTime(DateUtils.getNowDate()); + return toAjax(baseDeviceLedgerService.updateBaseDeviceLedger(baseDeviceLedger)); + } + + /** + * 删除设备台账 + */ + @PreAuthorize("@ss.hasPermi('base:deviceLedger:remove')" ) + @Log(title = "设备台账" , businessType = BusinessType.DELETE) + @DeleteMapping("/{objIds}" ) + public AjaxResult remove(@PathVariable Long[] objIds) { + return toAjax(baseDeviceLedgerService.deleteBaseDeviceLedgerByObjIds(objIds)); + } +} diff --git a/aucma-base/src/main/java/com/aucma/base/controller/BaseDeviceParamController.java b/aucma-base/src/main/java/com/aucma/base/controller/BaseDeviceParamController.java new file mode 100644 index 0000000..ba9d52e --- /dev/null +++ b/aucma-base/src/main/java/com/aucma/base/controller/BaseDeviceParamController.java @@ -0,0 +1,103 @@ +package com.aucma.base.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; + +import com.aucma.common.utils.DateUtils; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.aucma.common.annotation.Log; +import com.aucma.common.core.controller.BaseController; +import com.aucma.common.core.domain.AjaxResult; +import com.aucma.common.enums.BusinessType; +import com.aucma.base.domain.BaseDeviceParam; +import com.aucma.base.service.IBaseDeviceParamService; +import com.aucma.common.utils.poi.ExcelUtil; +import com.aucma.common.core.page.TableDataInfo; + +/** + * 设备参数Controller + * + * @author Yinq + * @date 2023-09-19 + */ +@RestController +@RequestMapping("/base/deviceParam" ) +public class BaseDeviceParamController extends BaseController { + @Autowired + private IBaseDeviceParamService baseDeviceParamService; + +/** + * 查询设备参数列表 + */ +@PreAuthorize("@ss.hasPermi('base:deviceParam:list')" ) +@GetMapping("/list" ) + public TableDataInfo list(BaseDeviceParam baseDeviceParam) { + startPage(); + List list = baseDeviceParamService.selectBaseDeviceParamList(baseDeviceParam); + return getDataTable(list); + } + + /** + * 导出设备参数列表 + */ + @PreAuthorize("@ss.hasPermi('base:deviceParam:export')" ) + @Log(title = "设备参数" , businessType = BusinessType.EXPORT) + @PostMapping("/export" ) + public void export(HttpServletResponse response, BaseDeviceParam baseDeviceParam) { + List list = baseDeviceParamService.selectBaseDeviceParamList(baseDeviceParam); + ExcelUtil util = new ExcelUtil(BaseDeviceParam. class); + util.exportExcel(response, list, "设备参数数据" ); + } + + /** + * 获取设备参数详细信息 + */ + @PreAuthorize("@ss.hasPermi('base:deviceParam:query')" ) + @GetMapping(value = "/{objId}" ) + public AjaxResult getInfo(@PathVariable("objId" ) Long objId) { + return success(baseDeviceParamService.selectBaseDeviceParamByObjId(objId)); + } + + /** + * 新增设备参数 + */ + @PreAuthorize("@ss.hasPermi('base:deviceParam:add')" ) + @Log(title = "设备参数" , businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BaseDeviceParam baseDeviceParam) { + baseDeviceParam.setCreatedBy(getUsername()); + baseDeviceParam.setCreatedTime(DateUtils.getNowDate()); + return toAjax(baseDeviceParamService.insertBaseDeviceParam(baseDeviceParam)); + } + + /** + * 修改设备参数 + */ + @PreAuthorize("@ss.hasPermi('base:deviceParam:edit')" ) + @Log(title = "设备参数" , businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BaseDeviceParam baseDeviceParam) { + baseDeviceParam.setUpdatedBy(getUsername()); + baseDeviceParam.setUpdatedTime(DateUtils.getNowDate()); + return toAjax(baseDeviceParamService.updateBaseDeviceParam(baseDeviceParam)); + } + + /** + * 删除设备参数 + */ + @PreAuthorize("@ss.hasPermi('base:deviceParam:remove')" ) + @Log(title = "设备参数" , businessType = BusinessType.DELETE) + @DeleteMapping("/{objIds}" ) + public AjaxResult remove(@PathVariable Long[] objIds) { + return toAjax(baseDeviceParamService.deleteBaseDeviceParamByObjIds(objIds)); + } +} diff --git a/aucma-base/src/main/java/com/aucma/base/controller/BaseTeamMembersController.java b/aucma-base/src/main/java/com/aucma/base/controller/BaseTeamMembersController.java new file mode 100644 index 0000000..44c3f7f --- /dev/null +++ b/aucma-base/src/main/java/com/aucma/base/controller/BaseTeamMembersController.java @@ -0,0 +1,103 @@ +package com.aucma.base.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; + +import com.aucma.common.utils.DateUtils; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.aucma.common.annotation.Log; +import com.aucma.common.core.controller.BaseController; +import com.aucma.common.core.domain.AjaxResult; +import com.aucma.common.enums.BusinessType; +import com.aucma.base.domain.BaseTeamMembers; +import com.aucma.base.service.IBaseTeamMembersService; +import com.aucma.common.utils.poi.ExcelUtil; +import com.aucma.common.core.page.TableDataInfo; + +/** + * 班组信息Controller + * + * @author Yinq + * @date 2023-09-19 + */ +@RestController +@RequestMapping("/base/teamMembers" ) +public class BaseTeamMembersController extends BaseController { + @Autowired + private IBaseTeamMembersService baseTeamMembersService; + +/** + * 查询班组信息列表 + */ +@PreAuthorize("@ss.hasPermi('base:teamMembers:list')" ) +@GetMapping("/list" ) + public TableDataInfo list(BaseTeamMembers baseTeamMembers) { + startPage(); + List list = baseTeamMembersService.selectBaseTeamMembersList(baseTeamMembers); + return getDataTable(list); + } + + /** + * 导出班组信息列表 + */ + @PreAuthorize("@ss.hasPermi('base:teamMembers:export')" ) + @Log(title = "班组信息" , businessType = BusinessType.EXPORT) + @PostMapping("/export" ) + public void export(HttpServletResponse response, BaseTeamMembers baseTeamMembers) { + List list = baseTeamMembersService.selectBaseTeamMembersList(baseTeamMembers); + ExcelUtil util = new ExcelUtil(BaseTeamMembers. class); + util.exportExcel(response, list, "班组信息数据" ); + } + + /** + * 获取班组信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('base:teamMembers:query')" ) + @GetMapping(value = "/{objId}" ) + public AjaxResult getInfo(@PathVariable("objId" ) Long objId) { + return success(baseTeamMembersService.selectBaseTeamMembersByObjId(objId)); + } + + /** + * 新增班组信息 + */ + @PreAuthorize("@ss.hasPermi('base:teamMembers:add')" ) + @Log(title = "班组信息" , businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BaseTeamMembers baseTeamMembers) { + baseTeamMembers.setCreatedBy(getUsername()); + baseTeamMembers.setCreatedTime(DateUtils.getNowDate()); + return toAjax(baseTeamMembersService.insertBaseTeamMembers(baseTeamMembers)); + } + + /** + * 修改班组信息 + */ + @PreAuthorize("@ss.hasPermi('base:teamMembers:edit')" ) + @Log(title = "班组信息" , businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BaseTeamMembers baseTeamMembers) { + baseTeamMembers.setUpdatedBy(getUsername()); + baseTeamMembers.setUpdatedTime(DateUtils.getNowDate()); + return toAjax(baseTeamMembersService.updateBaseTeamMembers(baseTeamMembers)); + } + + /** + * 删除班组信息 + */ + @PreAuthorize("@ss.hasPermi('base:teamMembers:remove')" ) + @Log(title = "班组信息" , businessType = BusinessType.DELETE) + @DeleteMapping("/{objIds}" ) + public AjaxResult remove(@PathVariable Long[] objIds) { + return toAjax(baseTeamMembersService.deleteBaseTeamMembersByObjIds(objIds)); + } +} diff --git a/aucma-base/src/main/java/com/aucma/base/domain/BaseDeviceLedger.java b/aucma-base/src/main/java/com/aucma/base/domain/BaseDeviceLedger.java new file mode 100644 index 0000000..9704ac5 --- /dev/null +++ b/aucma-base/src/main/java/com/aucma/base/domain/BaseDeviceLedger.java @@ -0,0 +1,236 @@ +package com.aucma.base.domain; + +import java.util.Date; + +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.aucma.common.annotation.Excel; +import com.aucma.common.core.domain.BaseEntity; + +/** + * 设备台账对象 base_deviceledger + * + * @author Yinq + * @date 2023-09-19 + */ +public class BaseDeviceLedger extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * 主键标识 + */ + private Long objId; + + /** + * 设备编号 + */ + @Excel(name = "设备编号") + private String deviceCode; + + /** + * 设备名称 + */ + @Excel(name = "设备名称") + private String deviceName; + + /** + * 设备型号 + */ + @Excel(name = "设备型号") + private String deviceModel; + + /** + * 设备类型 + */ + @Excel(name = "设备类型") + private Long deviceType; + + /** + * 设备位置 + */ + @Excel(name = "设备位置") + private String deviceAddress; + + /** + * 设备状态 + */ + @Excel(name = "设备状态") + private Long deviceStatus; + + /** + * 使用部门 + */ + @Excel(name = "使用部门") + private String usedDepartment; + + /** + * 所属工位 + */ + @Excel(name = "所属工位") + private String productLineCode; + + /** + * 启用标识 + */ + @Excel(name = "启用标识") + private Long isFlag; + + /** + * 创建人 + */ + @Excel(name = "创建人") + private String createdBy; + + /** + * 创建时间 + */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date createdTime; + + /** + * 更新人 + */ + @Excel(name = "更新人") + private String updatedBy; + + /** + * 更新时间 + */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date updatedTime; + + public void setObjId(Long objId) { + this.objId = objId; + } + + public Long getObjId() { + return objId; + } + + public void setDeviceCode(String deviceCode) { + this.deviceCode = deviceCode; + } + + public String getDeviceCode() { + return deviceCode; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceModel(String deviceModel) { + this.deviceModel = deviceModel; + } + + public String getDeviceModel() { + return deviceModel; + } + + public void setDeviceType(Long deviceType) { + this.deviceType = deviceType; + } + + public Long getDeviceType() { + return deviceType; + } + + public void setDeviceAddress(String deviceAddress) { + this.deviceAddress = deviceAddress; + } + + public String getDeviceAddress() { + return deviceAddress; + } + + public void setDeviceStatus(Long deviceStatus) { + this.deviceStatus = deviceStatus; + } + + public Long getDeviceStatus() { + return deviceStatus; + } + + public void setUsedDepartment(String usedDepartment) { + this.usedDepartment = usedDepartment; + } + + public String getUsedDepartment() { + return usedDepartment; + } + + public void setProductLineCode(String productLineCode) { + this.productLineCode = productLineCode; + } + + public String getProductLineCode() { + return productLineCode; + } + + public void setIsFlag(Long isFlag) { + this.isFlag = isFlag; + } + + public Long getIsFlag() { + return isFlag; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedTime(Date createdTime) { + this.createdTime = createdTime; + } + + public Date getCreatedTime() { + return createdTime; + } + + public void setUpdatedBy(String updatedBy) { + this.updatedBy = updatedBy; + } + + public String getUpdatedBy() { + return updatedBy; + } + + public void setUpdatedTime(Date updatedTime) { + this.updatedTime = updatedTime; + } + + public Date getUpdatedTime() { + return updatedTime; + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("objId", getObjId()) + .append("deviceCode", getDeviceCode()) + .append("deviceName", getDeviceName()) + .append("deviceModel", getDeviceModel()) + .append("deviceType", getDeviceType()) + .append("deviceAddress", getDeviceAddress()) + .append("deviceStatus", getDeviceStatus()) + .append("usedDepartment", getUsedDepartment()) + .append("productLineCode", getProductLineCode()) + .append("isFlag", getIsFlag()) + .append("createdBy", getCreatedBy()) + .append("createdTime", getCreatedTime()) + .append("updatedBy", getUpdatedBy()) + .append("updatedTime", getUpdatedTime()) + .toString(); + } +} diff --git a/aucma-base/src/main/java/com/aucma/base/domain/BaseDeviceParam.java b/aucma-base/src/main/java/com/aucma/base/domain/BaseDeviceParam.java new file mode 100644 index 0000000..97f90b5 --- /dev/null +++ b/aucma-base/src/main/java/com/aucma/base/domain/BaseDeviceParam.java @@ -0,0 +1,221 @@ +package com.aucma.base.domain; + +import java.util.Date; + +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.aucma.common.annotation.Excel; +import com.aucma.common.core.domain.BaseEntity; + +/** + * 设备参数对象 base_deviceparam + * + * @author Yinq + * @date 2023-09-19 + */ +public class BaseDeviceParam extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * 主键标识 + */ + private Long objId; + + /** + * 参数编号 + */ + @Excel(name = "参数编号") + private String paramCode; + + /** + * 参数名称 + */ + @Excel(name = "参数名称") + private String paramName; + + /** + * 网络地址 + */ + @Excel(name = "网络地址") + private String paramNetwork; + + /** + * 参数地址 + */ + @Excel(name = "参数地址") + private String paramAddress; + + /** + * 参数类型 + */ + @Excel(name = "参数类型") + private String paramType; + + /** + * 设备编号 + */ + @Excel(name = "设备编号") + private String deviceCode; + + /** + * 读取频率(毫秒) + */ + @Excel(name = "读取频率", readConverterExp = "毫=秒") + private Long readFrequency; + + /** + * 启用标识 + */ + @Excel(name = "启用标识") + private Long isFlag; + + /** + * 创建人 + */ + @Excel(name = "创建人") + private String createdBy; + + /** + * 创建时间 + */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date createdTime; + + /** + * 更新人 + */ + @Excel(name = "更新人") + private String updatedBy; + + /** + * 更新时间 + */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date updatedTime; + + public void setObjId(Long objId) { + this.objId = objId; + } + + public Long getObjId() { + return objId; + } + + public void setParamCode(String paramCode) { + this.paramCode = paramCode; + } + + public String getParamCode() { + return paramCode; + } + + public void setParamName(String paramName) { + this.paramName = paramName; + } + + public String getParamName() { + return paramName; + } + + public void setParamNetwork(String paramNetwork) { + this.paramNetwork = paramNetwork; + } + + public String getParamNetwork() { + return paramNetwork; + } + + public void setParamAddress(String paramAddress) { + this.paramAddress = paramAddress; + } + + public String getParamAddress() { + return paramAddress; + } + + public void setParamType(String paramType) { + this.paramType = paramType; + } + + public String getParamType() { + return paramType; + } + + public void setDeviceCode(String deviceCode) { + this.deviceCode = deviceCode; + } + + public String getDeviceCode() { + return deviceCode; + } + + public void setReadFrequency(Long readFrequency) { + this.readFrequency = readFrequency; + } + + public Long getReadFrequency() { + return readFrequency; + } + + public void setIsFlag(Long isFlag) { + this.isFlag = isFlag; + } + + public Long getIsFlag() { + return isFlag; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedTime(Date createdTime) { + this.createdTime = createdTime; + } + + public Date getCreatedTime() { + return createdTime; + } + + public void setUpdatedBy(String updatedBy) { + this.updatedBy = updatedBy; + } + + public String getUpdatedBy() { + return updatedBy; + } + + public void setUpdatedTime(Date updatedTime) { + this.updatedTime = updatedTime; + } + + public Date getUpdatedTime() { + return updatedTime; + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("objId", getObjId()) + .append("paramCode", getParamCode()) + .append("paramName", getParamName()) + .append("paramNetwork", getParamNetwork()) + .append("paramAddress", getParamAddress()) + .append("paramType", getParamType()) + .append("deviceCode", getDeviceCode()) + .append("readFrequency", getReadFrequency()) + .append("isFlag", getIsFlag()) + .append("createdBy", getCreatedBy()) + .append("createdTime", getCreatedTime()) + .append("updatedBy", getUpdatedBy()) + .append("updatedTime", getUpdatedTime()) + .toString(); + } +} diff --git a/aucma-base/src/main/java/com/aucma/base/domain/BaseTeamMembers.java b/aucma-base/src/main/java/com/aucma/base/domain/BaseTeamMembers.java new file mode 100644 index 0000000..e078349 --- /dev/null +++ b/aucma-base/src/main/java/com/aucma/base/domain/BaseTeamMembers.java @@ -0,0 +1,190 @@ +package com.aucma.base.domain; + +import java.util.Date; + +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.aucma.common.annotation.Excel; +import com.aucma.common.core.domain.BaseEntity; + +/** + * 班组信息对象 base_teammembers + * + * @author Yinq + * @date 2023-09-19 + */ +public class BaseTeamMembers extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * 主键标识 + */ + private Long objId; + + /** + * 班组编号 + */ + @Excel(name = "班组编号") + private String teamCode; + + /** + * 班组名称 + */ + @Excel(name = "班组名称") + private String teamName; + + /** + * 班组负责人 + */ + @Excel(name = "班组负责人") + private String teamHead; + + /** + * 所属产线编号 + */ + @Excel(name = "所属产线编号") + private String productLineCode; + + /** + * 产线名称 + */ + @Excel(name = "产线名称") + private String productLineName; + + /** + * 启用标识 + */ + @Excel(name = "启用标识") + private Long isFlag; + + /** + * 创建人 + */ + @Excel(name = "创建人") + private String createdBy; + + /** + * 创建时间 + */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date createdTime; + + /** + * 更新人 + */ + @Excel(name = "更新人") + private String updatedBy; + + /** + * 更新时间 + */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date updatedTime; + + public String getProductLineName() { + return productLineName; + } + + public void setProductLineName(String productLineName) { + this.productLineName = productLineName; + } + + public void setObjId(Long objId) { + this.objId = objId; + } + + public Long getObjId() { + return objId; + } + + public void setTeamCode(String teamCode) { + this.teamCode = teamCode; + } + + public String getTeamCode() { + return teamCode; + } + + public void setTeamName(String teamName) { + this.teamName = teamName; + } + + public String getTeamName() { + return teamName; + } + + public void setTeamHead(String teamHead) { + this.teamHead = teamHead; + } + + public String getTeamHead() { + return teamHead; + } + + public void setProductLineCode(String productLineCode) { + this.productLineCode = productLineCode; + } + + public String getProductLineCode() { + return productLineCode; + } + + public void setIsFlag(Long isFlag) { + this.isFlag = isFlag; + } + + public Long getIsFlag() { + return isFlag; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedTime(Date createdTime) { + this.createdTime = createdTime; + } + + public Date getCreatedTime() { + return createdTime; + } + + public void setUpdatedBy(String updatedBy) { + this.updatedBy = updatedBy; + } + + public String getUpdatedBy() { + return updatedBy; + } + + public void setUpdatedTime(Date updatedTime) { + this.updatedTime = updatedTime; + } + + public Date getUpdatedTime() { + return updatedTime; + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("objId", getObjId()) + .append("teamCode", getTeamCode()) + .append("teamName", getTeamName()) + .append("teamHead", getTeamHead()) + .append("productLineCode", getProductLineCode()) + .append("isFlag", getIsFlag()) + .append("createdBy", getCreatedBy()) + .append("createdTime", getCreatedTime()) + .append("updatedBy", getUpdatedBy()) + .append("updatedTime", getUpdatedTime()) + .toString(); + } +} diff --git a/aucma-base/src/main/java/com/aucma/base/mapper/BaseDeviceLedgerMapper.java b/aucma-base/src/main/java/com/aucma/base/mapper/BaseDeviceLedgerMapper.java new file mode 100644 index 0000000..2d38520 --- /dev/null +++ b/aucma-base/src/main/java/com/aucma/base/mapper/BaseDeviceLedgerMapper.java @@ -0,0 +1,61 @@ +package com.aucma.base.mapper; + +import java.util.List; +import com.aucma.base.domain.BaseDeviceLedger; + +/** + * 设备台账Mapper接口 + * + * @author Yinq + * @date 2023-09-19 + */ +public interface BaseDeviceLedgerMapper +{ + /** + * 查询设备台账 + * + * @param objId 设备台账主键 + * @return 设备台账 + */ + public BaseDeviceLedger selectBaseDeviceLedgerByObjId(Long objId); + + /** + * 查询设备台账列表 + * + * @param baseDeviceLedger 设备台账 + * @return 设备台账集合 + */ + public List selectBaseDeviceLedgerList(BaseDeviceLedger baseDeviceLedger); + + /** + * 新增设备台账 + * + * @param baseDeviceLedger 设备台账 + * @return 结果 + */ + public int insertBaseDeviceLedger(BaseDeviceLedger baseDeviceLedger); + + /** + * 修改设备台账 + * + * @param baseDeviceLedger 设备台账 + * @return 结果 + */ + public int updateBaseDeviceLedger(BaseDeviceLedger baseDeviceLedger); + + /** + * 删除设备台账 + * + * @param objId 设备台账主键 + * @return 结果 + */ + public int deleteBaseDeviceLedgerByObjId(Long objId); + + /** + * 批量删除设备台账 + * + * @param objIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBaseDeviceLedgerByObjIds(Long[] objIds); +} diff --git a/aucma-base/src/main/java/com/aucma/base/mapper/BaseDeviceParamMapper.java b/aucma-base/src/main/java/com/aucma/base/mapper/BaseDeviceParamMapper.java new file mode 100644 index 0000000..a98ec25 --- /dev/null +++ b/aucma-base/src/main/java/com/aucma/base/mapper/BaseDeviceParamMapper.java @@ -0,0 +1,61 @@ +package com.aucma.base.mapper; + +import java.util.List; +import com.aucma.base.domain.BaseDeviceParam; + +/** + * 设备参数Mapper接口 + * + * @author Yinq + * @date 2023-09-19 + */ +public interface BaseDeviceParamMapper +{ + /** + * 查询设备参数 + * + * @param objId 设备参数主键 + * @return 设备参数 + */ + public BaseDeviceParam selectBaseDeviceParamByObjId(Long objId); + + /** + * 查询设备参数列表 + * + * @param baseDeviceParam 设备参数 + * @return 设备参数集合 + */ + public List selectBaseDeviceParamList(BaseDeviceParam baseDeviceParam); + + /** + * 新增设备参数 + * + * @param baseDeviceParam 设备参数 + * @return 结果 + */ + public int insertBaseDeviceParam(BaseDeviceParam baseDeviceParam); + + /** + * 修改设备参数 + * + * @param baseDeviceParam 设备参数 + * @return 结果 + */ + public int updateBaseDeviceParam(BaseDeviceParam baseDeviceParam); + + /** + * 删除设备参数 + * + * @param objId 设备参数主键 + * @return 结果 + */ + public int deleteBaseDeviceParamByObjId(Long objId); + + /** + * 批量删除设备参数 + * + * @param objIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBaseDeviceParamByObjIds(Long[] objIds); +} diff --git a/aucma-base/src/main/java/com/aucma/base/mapper/BaseTeamMembersMapper.java b/aucma-base/src/main/java/com/aucma/base/mapper/BaseTeamMembersMapper.java new file mode 100644 index 0000000..b34f8e2 --- /dev/null +++ b/aucma-base/src/main/java/com/aucma/base/mapper/BaseTeamMembersMapper.java @@ -0,0 +1,61 @@ +package com.aucma.base.mapper; + +import java.util.List; +import com.aucma.base.domain.BaseTeamMembers; + +/** + * 班组信息Mapper接口 + * + * @author Yinq + * @date 2023-09-19 + */ +public interface BaseTeamMembersMapper +{ + /** + * 查询班组信息 + * + * @param objId 班组信息主键 + * @return 班组信息 + */ + public BaseTeamMembers selectBaseTeamMembersByObjId(Long objId); + + /** + * 查询班组信息列表 + * + * @param baseTeamMembers 班组信息 + * @return 班组信息集合 + */ + public List selectBaseTeamMembersList(BaseTeamMembers baseTeamMembers); + + /** + * 新增班组信息 + * + * @param baseTeamMembers 班组信息 + * @return 结果 + */ + public int insertBaseTeamMembers(BaseTeamMembers baseTeamMembers); + + /** + * 修改班组信息 + * + * @param baseTeamMembers 班组信息 + * @return 结果 + */ + public int updateBaseTeamMembers(BaseTeamMembers baseTeamMembers); + + /** + * 删除班组信息 + * + * @param objId 班组信息主键 + * @return 结果 + */ + public int deleteBaseTeamMembersByObjId(Long objId); + + /** + * 批量删除班组信息 + * + * @param objIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBaseTeamMembersByObjIds(Long[] objIds); +} diff --git a/aucma-base/src/main/java/com/aucma/base/service/IBaseDeviceLedgerService.java b/aucma-base/src/main/java/com/aucma/base/service/IBaseDeviceLedgerService.java new file mode 100644 index 0000000..9ffbba9 --- /dev/null +++ b/aucma-base/src/main/java/com/aucma/base/service/IBaseDeviceLedgerService.java @@ -0,0 +1,61 @@ +package com.aucma.base.service; + +import java.util.List; +import com.aucma.base.domain.BaseDeviceLedger; + +/** + * 设备台账Service接口 + * + * @author Yinq + * @date 2023-09-19 + */ +public interface IBaseDeviceLedgerService +{ + /** + * 查询设备台账 + * + * @param objId 设备台账主键 + * @return 设备台账 + */ + public BaseDeviceLedger selectBaseDeviceLedgerByObjId(Long objId); + + /** + * 查询设备台账列表 + * + * @param baseDeviceLedger 设备台账 + * @return 设备台账集合 + */ + public List selectBaseDeviceLedgerList(BaseDeviceLedger baseDeviceLedger); + + /** + * 新增设备台账 + * + * @param baseDeviceLedger 设备台账 + * @return 结果 + */ + public int insertBaseDeviceLedger(BaseDeviceLedger baseDeviceLedger); + + /** + * 修改设备台账 + * + * @param baseDeviceLedger 设备台账 + * @return 结果 + */ + public int updateBaseDeviceLedger(BaseDeviceLedger baseDeviceLedger); + + /** + * 批量删除设备台账 + * + * @param objIds 需要删除的设备台账主键集合 + * @return 结果 + */ + public int deleteBaseDeviceLedgerByObjIds(Long[] objIds); + + /** + * 删除设备台账信息 + * + * @param objId 设备台账主键 + * @return 结果 + */ + public int deleteBaseDeviceLedgerByObjId(Long objId); +} diff --git a/aucma-base/src/main/java/com/aucma/base/service/IBaseDeviceParamService.java b/aucma-base/src/main/java/com/aucma/base/service/IBaseDeviceParamService.java new file mode 100644 index 0000000..accfbee --- /dev/null +++ b/aucma-base/src/main/java/com/aucma/base/service/IBaseDeviceParamService.java @@ -0,0 +1,61 @@ +package com.aucma.base.service; + +import java.util.List; +import com.aucma.base.domain.BaseDeviceParam; + +/** + * 设备参数Service接口 + * + * @author Yinq + * @date 2023-09-19 + */ +public interface IBaseDeviceParamService +{ + /** + * 查询设备参数 + * + * @param objId 设备参数主键 + * @return 设备参数 + */ + public BaseDeviceParam selectBaseDeviceParamByObjId(Long objId); + + /** + * 查询设备参数列表 + * + * @param baseDeviceParam 设备参数 + * @return 设备参数集合 + */ + public List selectBaseDeviceParamList(BaseDeviceParam baseDeviceParam); + + /** + * 新增设备参数 + * + * @param baseDeviceParam 设备参数 + * @return 结果 + */ + public int insertBaseDeviceParam(BaseDeviceParam baseDeviceParam); + + /** + * 修改设备参数 + * + * @param baseDeviceParam 设备参数 + * @return 结果 + */ + public int updateBaseDeviceParam(BaseDeviceParam baseDeviceParam); + + /** + * 批量删除设备参数 + * + * @param objIds 需要删除的设备参数主键集合 + * @return 结果 + */ + public int deleteBaseDeviceParamByObjIds(Long[] objIds); + + /** + * 删除设备参数信息 + * + * @param objId 设备参数主键 + * @return 结果 + */ + public int deleteBaseDeviceParamByObjId(Long objId); +} diff --git a/aucma-base/src/main/java/com/aucma/base/service/IBaseTeamMembersService.java b/aucma-base/src/main/java/com/aucma/base/service/IBaseTeamMembersService.java new file mode 100644 index 0000000..724b7cb --- /dev/null +++ b/aucma-base/src/main/java/com/aucma/base/service/IBaseTeamMembersService.java @@ -0,0 +1,61 @@ +package com.aucma.base.service; + +import java.util.List; +import com.aucma.base.domain.BaseTeamMembers; + +/** + * 班组信息Service接口 + * + * @author Yinq + * @date 2023-09-19 + */ +public interface IBaseTeamMembersService +{ + /** + * 查询班组信息 + * + * @param objId 班组信息主键 + * @return 班组信息 + */ + public BaseTeamMembers selectBaseTeamMembersByObjId(Long objId); + + /** + * 查询班组信息列表 + * + * @param baseTeamMembers 班组信息 + * @return 班组信息集合 + */ + public List selectBaseTeamMembersList(BaseTeamMembers baseTeamMembers); + + /** + * 新增班组信息 + * + * @param baseTeamMembers 班组信息 + * @return 结果 + */ + public int insertBaseTeamMembers(BaseTeamMembers baseTeamMembers); + + /** + * 修改班组信息 + * + * @param baseTeamMembers 班组信息 + * @return 结果 + */ + public int updateBaseTeamMembers(BaseTeamMembers baseTeamMembers); + + /** + * 批量删除班组信息 + * + * @param objIds 需要删除的班组信息主键集合 + * @return 结果 + */ + public int deleteBaseTeamMembersByObjIds(Long[] objIds); + + /** + * 删除班组信息信息 + * + * @param objId 班组信息主键 + * @return 结果 + */ + public int deleteBaseTeamMembersByObjId(Long objId); +} diff --git a/aucma-base/src/main/java/com/aucma/base/service/impl/BaseDeviceLedgerServiceImpl.java b/aucma-base/src/main/java/com/aucma/base/service/impl/BaseDeviceLedgerServiceImpl.java new file mode 100644 index 0000000..1597c44 --- /dev/null +++ b/aucma-base/src/main/java/com/aucma/base/service/impl/BaseDeviceLedgerServiceImpl.java @@ -0,0 +1,93 @@ +package com.aucma.base.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.aucma.base.mapper.BaseDeviceLedgerMapper; +import com.aucma.base.domain.BaseDeviceLedger; +import com.aucma.base.service.IBaseDeviceLedgerService; + +/** + * 设备台账Service业务层处理 + * + * @author Yinq + * @date 2023-09-19 + */ +@Service +public class BaseDeviceLedgerServiceImpl implements IBaseDeviceLedgerService +{ + @Autowired + private BaseDeviceLedgerMapper baseDeviceLedgerMapper; + + /** + * 查询设备台账 + * + * @param objId 设备台账主键 + * @return 设备台账 + */ + @Override + public BaseDeviceLedger selectBaseDeviceLedgerByObjId(Long objId) + { + return baseDeviceLedgerMapper.selectBaseDeviceLedgerByObjId(objId); + } + + /** + * 查询设备台账列表 + * + * @param baseDeviceLedger 设备台账 + * @return 设备台账 + */ + @Override + public List selectBaseDeviceLedgerList(BaseDeviceLedger baseDeviceLedger) + { + return baseDeviceLedgerMapper.selectBaseDeviceLedgerList(baseDeviceLedger); + } + + /** + * 新增设备台账 + * + * @param baseDeviceLedger 设备台账 + * @return 结果 + */ + @Override + public int insertBaseDeviceLedger(BaseDeviceLedger baseDeviceLedger) + { + return baseDeviceLedgerMapper.insertBaseDeviceLedger(baseDeviceLedger); + } + + /** + * 修改设备台账 + * + * @param baseDeviceLedger 设备台账 + * @return 结果 + */ + @Override + public int updateBaseDeviceLedger(BaseDeviceLedger baseDeviceLedger) + { + return baseDeviceLedgerMapper.updateBaseDeviceLedger(baseDeviceLedger); + } + + /** + * 批量删除设备台账 + * + * @param objIds 需要删除的设备台账主键 + * @return 结果 + */ + @Override + public int deleteBaseDeviceLedgerByObjIds(Long[] objIds) + { + return baseDeviceLedgerMapper.deleteBaseDeviceLedgerByObjIds(objIds); + } + + /** + * 删除设备台账信息 + * + * @param objId 设备台账主键 + * @return 结果 + */ + @Override + public int deleteBaseDeviceLedgerByObjId(Long objId) + { + return baseDeviceLedgerMapper.deleteBaseDeviceLedgerByObjId(objId); + } +} diff --git a/aucma-base/src/main/java/com/aucma/base/service/impl/BaseDeviceParamServiceImpl.java b/aucma-base/src/main/java/com/aucma/base/service/impl/BaseDeviceParamServiceImpl.java new file mode 100644 index 0000000..78b410c --- /dev/null +++ b/aucma-base/src/main/java/com/aucma/base/service/impl/BaseDeviceParamServiceImpl.java @@ -0,0 +1,93 @@ +package com.aucma.base.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.aucma.base.mapper.BaseDeviceParamMapper; +import com.aucma.base.domain.BaseDeviceParam; +import com.aucma.base.service.IBaseDeviceParamService; + +/** + * 设备参数Service业务层处理 + * + * @author Yinq + * @date 2023-09-19 + */ +@Service +public class BaseDeviceParamServiceImpl implements IBaseDeviceParamService +{ + @Autowired + private BaseDeviceParamMapper baseDeviceParamMapper; + + /** + * 查询设备参数 + * + * @param objId 设备参数主键 + * @return 设备参数 + */ + @Override + public BaseDeviceParam selectBaseDeviceParamByObjId(Long objId) + { + return baseDeviceParamMapper.selectBaseDeviceParamByObjId(objId); + } + + /** + * 查询设备参数列表 + * + * @param baseDeviceParam 设备参数 + * @return 设备参数 + */ + @Override + public List selectBaseDeviceParamList(BaseDeviceParam baseDeviceParam) + { + return baseDeviceParamMapper.selectBaseDeviceParamList(baseDeviceParam); + } + + /** + * 新增设备参数 + * + * @param baseDeviceParam 设备参数 + * @return 结果 + */ + @Override + public int insertBaseDeviceParam(BaseDeviceParam baseDeviceParam) + { + return baseDeviceParamMapper.insertBaseDeviceParam(baseDeviceParam); + } + + /** + * 修改设备参数 + * + * @param baseDeviceParam 设备参数 + * @return 结果 + */ + @Override + public int updateBaseDeviceParam(BaseDeviceParam baseDeviceParam) + { + return baseDeviceParamMapper.updateBaseDeviceParam(baseDeviceParam); + } + + /** + * 批量删除设备参数 + * + * @param objIds 需要删除的设备参数主键 + * @return 结果 + */ + @Override + public int deleteBaseDeviceParamByObjIds(Long[] objIds) + { + return baseDeviceParamMapper.deleteBaseDeviceParamByObjIds(objIds); + } + + /** + * 删除设备参数信息 + * + * @param objId 设备参数主键 + * @return 结果 + */ + @Override + public int deleteBaseDeviceParamByObjId(Long objId) + { + return baseDeviceParamMapper.deleteBaseDeviceParamByObjId(objId); + } +} diff --git a/aucma-base/src/main/java/com/aucma/base/service/impl/BaseTeamMembersServiceImpl.java b/aucma-base/src/main/java/com/aucma/base/service/impl/BaseTeamMembersServiceImpl.java new file mode 100644 index 0000000..c4263cc --- /dev/null +++ b/aucma-base/src/main/java/com/aucma/base/service/impl/BaseTeamMembersServiceImpl.java @@ -0,0 +1,93 @@ +package com.aucma.base.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.aucma.base.mapper.BaseTeamMembersMapper; +import com.aucma.base.domain.BaseTeamMembers; +import com.aucma.base.service.IBaseTeamMembersService; + +/** + * 班组信息Service业务层处理 + * + * @author Yinq + * @date 2023-09-19 + */ +@Service +public class BaseTeamMembersServiceImpl implements IBaseTeamMembersService +{ + @Autowired + private BaseTeamMembersMapper baseTeamMembersMapper; + + /** + * 查询班组信息 + * + * @param objId 班组信息主键 + * @return 班组信息 + */ + @Override + public BaseTeamMembers selectBaseTeamMembersByObjId(Long objId) + { + return baseTeamMembersMapper.selectBaseTeamMembersByObjId(objId); + } + + /** + * 查询班组信息列表 + * + * @param baseTeamMembers 班组信息 + * @return 班组信息 + */ + @Override + public List selectBaseTeamMembersList(BaseTeamMembers baseTeamMembers) + { + return baseTeamMembersMapper.selectBaseTeamMembersList(baseTeamMembers); + } + + /** + * 新增班组信息 + * + * @param baseTeamMembers 班组信息 + * @return 结果 + */ + @Override + public int insertBaseTeamMembers(BaseTeamMembers baseTeamMembers) + { + return baseTeamMembersMapper.insertBaseTeamMembers(baseTeamMembers); + } + + /** + * 修改班组信息 + * + * @param baseTeamMembers 班组信息 + * @return 结果 + */ + @Override + public int updateBaseTeamMembers(BaseTeamMembers baseTeamMembers) + { + return baseTeamMembersMapper.updateBaseTeamMembers(baseTeamMembers); + } + + /** + * 批量删除班组信息 + * + * @param objIds 需要删除的班组信息主键 + * @return 结果 + */ + @Override + public int deleteBaseTeamMembersByObjIds(Long[] objIds) + { + return baseTeamMembersMapper.deleteBaseTeamMembersByObjIds(objIds); + } + + /** + * 删除班组信息信息 + * + * @param objId 班组信息主键 + * @return 结果 + */ + @Override + public int deleteBaseTeamMembersByObjId(Long objId) + { + return baseTeamMembersMapper.deleteBaseTeamMembersByObjId(objId); + } +} diff --git a/aucma-base/src/main/resources/mapper/base/BaseDeviceLedgerMapper.xml b/aucma-base/src/main/resources/mapper/base/BaseDeviceLedgerMapper.xml new file mode 100644 index 0000000..5b19fbb --- /dev/null +++ b/aucma-base/src/main/resources/mapper/base/BaseDeviceLedgerMapper.xml @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + select obj_id, device_code, device_name, device_model, device_type, device_address, device_status, used_department, product_line_code, is_flag, created_by, created_time, updated_by, updated_time from base_deviceledger + + + + + + + + + SELECT seq_base_deviceledger.NEXTVAL as objId FROM DUAL + + insert into base_deviceledger + + obj_id, + device_code, + device_name, + device_model, + device_type, + device_address, + device_status, + used_department, + product_line_code, + is_flag, + created_by, + created_time, + updated_by, + updated_time, + + + #{objId}, + #{deviceCode}, + #{deviceName}, + #{deviceModel}, + #{deviceType}, + #{deviceAddress}, + #{deviceStatus}, + #{usedDepartment}, + #{productLineCode}, + #{isFlag}, + #{createdBy}, + #{createdTime}, + #{updatedBy}, + #{updatedTime}, + + + + + update base_deviceledger + + device_code = #{deviceCode}, + device_name = #{deviceName}, + device_model = #{deviceModel}, + device_type = #{deviceType}, + device_address = #{deviceAddress}, + device_status = #{deviceStatus}, + used_department = #{usedDepartment}, + product_line_code = #{productLineCode}, + is_flag = #{isFlag}, + created_by = #{createdBy}, + created_time = #{createdTime}, + updated_by = #{updatedBy}, + updated_time = #{updatedTime}, + + where obj_id = #{objId} + + + + delete from base_deviceledger where obj_id = #{objId} + + + + delete from base_deviceledger where obj_id in + + #{objId} + + + \ No newline at end of file diff --git a/aucma-base/src/main/resources/mapper/base/BaseDeviceParamMapper.xml b/aucma-base/src/main/resources/mapper/base/BaseDeviceParamMapper.xml new file mode 100644 index 0000000..91bdcbc --- /dev/null +++ b/aucma-base/src/main/resources/mapper/base/BaseDeviceParamMapper.xml @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + select obj_id, param_code, param_name, param_network, param_address, param_type, device_code, read_frequency, is_flag, created_by, created_time, updated_by, updated_time from base_deviceparam + + + + + + + + + SELECT seq_base_deviceparam.NEXTVAL as objId FROM DUAL + + insert into base_deviceparam + + obj_id, + param_code, + param_name, + param_network, + param_address, + param_type, + device_code, + read_frequency, + is_flag, + created_by, + created_time, + updated_by, + updated_time, + + + #{objId}, + #{paramCode}, + #{paramName}, + #{paramNetwork}, + #{paramAddress}, + #{paramType}, + #{deviceCode}, + #{readFrequency}, + #{isFlag}, + #{createdBy}, + #{createdTime}, + #{updatedBy}, + #{updatedTime}, + + + + + update base_deviceparam + + param_code = #{paramCode}, + param_name = #{paramName}, + param_network = #{paramNetwork}, + param_address = #{paramAddress}, + param_type = #{paramType}, + device_code = #{deviceCode}, + read_frequency = #{readFrequency}, + is_flag = #{isFlag}, + created_by = #{createdBy}, + created_time = #{createdTime}, + updated_by = #{updatedBy}, + updated_time = #{updatedTime}, + + where obj_id = #{objId} + + + + delete from base_deviceparam where obj_id = #{objId} + + + + delete from base_deviceparam where obj_id in + + #{objId} + + + \ No newline at end of file diff --git a/aucma-base/src/main/resources/mapper/base/BaseTeamMembersMapper.xml b/aucma-base/src/main/resources/mapper/base/BaseTeamMembersMapper.xml new file mode 100644 index 0000000..611b4bf --- /dev/null +++ b/aucma-base/src/main/resources/mapper/base/BaseTeamMembersMapper.xml @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + select tm.obj_id, + tm.team_code, + tm.team_name, + tm.team_head, + tm.product_line_code, + bpl.PRODUCT_LINE_NAME productLineName, + tm.is_flag, + tm.created_by, + tm.created_time, + tm.updated_by, + tm.updated_time + from base_teammembers tm + left join base_productline bpl on bpl.PRODUCT_LINE_CODE = tm.PRODUCT_LINE_CODE + + + + + + + + + SELECT seq_base_teammembers.NEXTVAL as objId FROM DUAL + + insert into base_teammembers + + obj_id, + team_code, + team_name, + team_head, + product_line_code, + is_flag, + created_by, + created_time, + updated_by, + updated_time, + + + #{objId}, + #{teamCode}, + #{teamName}, + #{teamHead}, + #{productLineCode}, + #{isFlag}, + #{createdBy}, + #{createdTime}, + #{updatedBy}, + #{updatedTime}, + + + + + update base_teammembers + + team_code = #{teamCode}, + team_name = #{teamName}, + team_head = #{teamHead}, + product_line_code = #{productLineCode}, + is_flag = #{isFlag}, + created_by = #{createdBy}, + created_time = #{createdTime}, + updated_by = #{updatedBy}, + updated_time = #{updatedTime}, + + where obj_id = #{objId} + + + + delete from base_teammembers where obj_id = #{objId} + + + + delete from base_teammembers where obj_id in + + #{objId} + + + \ No newline at end of file