add - 物料管理

master
yinq 2 years ago
parent 9ff0880773
commit 11f0166e46

@ -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.BaseMaterialInfo;
import com.aucma.base.service.IBaseMaterialInfoService;
import com.aucma.common.utils.poi.ExcelUtil;
import com.aucma.common.core.page.TableDataInfo;
/**
* Controller
*
* @author Yinq
* @date 2023-09-19
*/
@RestController
@RequestMapping("/base/materialInfo" )
public class BaseMaterialInfoController extends BaseController {
@Autowired
private IBaseMaterialInfoService baseMaterialInfoService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('base:materialInfo:list')" )
@GetMapping("/list" )
public TableDataInfo list(BaseMaterialInfo baseMaterialInfo) {
startPage();
List<BaseMaterialInfo> list = baseMaterialInfoService.selectBaseMaterialInfoList(baseMaterialInfo);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('base:materialInfo:export')" )
@Log(title = "物料信息" , businessType = BusinessType.EXPORT)
@PostMapping("/export" )
public void export(HttpServletResponse response, BaseMaterialInfo baseMaterialInfo) {
List<BaseMaterialInfo> list = baseMaterialInfoService.selectBaseMaterialInfoList(baseMaterialInfo);
ExcelUtil<BaseMaterialInfo> util = new ExcelUtil<BaseMaterialInfo>(BaseMaterialInfo. class);
util.exportExcel(response, list, "物料信息数据" );
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('base:materialInfo:query')" )
@GetMapping(value = "/{objId}" )
public AjaxResult getInfo(@PathVariable("objId" ) Long objId) {
return success(baseMaterialInfoService.selectBaseMaterialInfoByObjId(objId));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('base:materialInfo:add')" )
@Log(title = "物料信息" , businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BaseMaterialInfo baseMaterialInfo) {
baseMaterialInfo.setCreatedBy(getUsername());
baseMaterialInfo.setCreatedTime(DateUtils.getNowDate());
return toAjax(baseMaterialInfoService.insertBaseMaterialInfo(baseMaterialInfo));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('base:materialInfo:edit')" )
@Log(title = "物料信息" , businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BaseMaterialInfo baseMaterialInfo) {
baseMaterialInfo.setUpdatedBy(getUsername());
baseMaterialInfo.setUpdatedTime(DateUtils.getNowDate());
return toAjax(baseMaterialInfoService.updateBaseMaterialInfo(baseMaterialInfo));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('base:materialInfo:remove')" )
@Log(title = "物料信息" , businessType = BusinessType.DELETE)
@DeleteMapping("/{objIds}" )
public AjaxResult remove(@PathVariable Long[] objIds) {
return toAjax(baseMaterialInfoService.deleteBaseMaterialInfoByObjIds(objIds));
}
}

@ -0,0 +1,114 @@
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.BaseProductLine;
import com.aucma.base.service.IBaseProductLineService;
import com.aucma.common.utils.poi.ExcelUtil;
import com.aucma.common.core.page.TableDataInfo;
/**
* 线Controller
*
* @author Yinq
* @date 2023-09-19
*/
@RestController
@RequestMapping("/base/productLine")
public class BaseProductLineController extends BaseController {
@Autowired
private IBaseProductLineService baseProductLineService;
/**
* 线
*/
@PreAuthorize("@ss.hasPermi('base:productLine:list')")
@GetMapping("/list")
public TableDataInfo list(BaseProductLine baseProductLine) {
startPage();
List<BaseProductLine> list = baseProductLineService.selectBaseProductLineList(baseProductLine);
return getDataTable(list);
}
/**
* 线
* @param baseProductLine
* @return
*/
@GetMapping("/findProductLineList")
public AjaxResult findProductLineList(BaseProductLine baseProductLine) {
List<BaseProductLine> list = baseProductLineService.selectBaseProductLineList(baseProductLine);
return success(list);
}
/**
* 线
*/
@PreAuthorize("@ss.hasPermi('base:productLine:export')")
@Log(title = "产线信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BaseProductLine baseProductLine) {
List<BaseProductLine> list = baseProductLineService.selectBaseProductLineList(baseProductLine);
ExcelUtil<BaseProductLine> util = new ExcelUtil<BaseProductLine>(BaseProductLine.class);
util.exportExcel(response, list, "产线信息数据");
}
/**
* 线
*/
@PreAuthorize("@ss.hasPermi('base:productLine:query')")
@GetMapping(value = "/{objId}")
public AjaxResult getInfo(@PathVariable("objId") Long objId) {
return success(baseProductLineService.selectBaseProductLineByObjId(objId));
}
/**
* 线
*/
@PreAuthorize("@ss.hasPermi('base:productLine:add')")
@Log(title = "产线信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BaseProductLine baseProductLine) {
baseProductLine.setCreatedBy(getUsername());
baseProductLine.setCreatedTime(DateUtils.getNowDate());
return toAjax(baseProductLineService.insertBaseProductLine(baseProductLine));
}
/**
* 线
*/
@PreAuthorize("@ss.hasPermi('base:productLine:edit')")
@Log(title = "产线信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BaseProductLine baseProductLine) {
baseProductLine.setUpdatedBy(getUsername());
baseProductLine.setUpdatedTime(DateUtils.getNowDate());
return toAjax(baseProductLineService.updateBaseProductLine(baseProductLine));
}
/**
* 线
*/
@PreAuthorize("@ss.hasPermi('base:productLine:remove')")
@Log(title = "产线信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{objIds}")
public AjaxResult remove(@PathVariable Long[] objIds) {
return toAjax(baseProductLineService.deleteBaseProductLineByObjIds(objIds));
}
}

@ -1,103 +0,0 @@
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.BaseProductline;
import com.aucma.base.service.IBaseProductlineService;
import com.aucma.common.utils.poi.ExcelUtil;
import com.aucma.common.core.page.TableDataInfo;
/**
* 线Controller
*
* @author Yinq
* @date 2023-09-18
*/
@RestController
@RequestMapping("/base/productline")
public class BaseProductlineController extends BaseController {
@Autowired
private IBaseProductlineService baseProductlineService;
/**
* 线
*/
@PreAuthorize("@ss.hasPermi('base:productline:list')")
@GetMapping("/list")
public TableDataInfo list(BaseProductline baseProductline) {
startPage();
List<BaseProductline> list = baseProductlineService.selectBaseProductlineList(baseProductline);
return getDataTable(list);
}
/**
* 线
*/
@PreAuthorize("@ss.hasPermi('base:productline:export')")
@Log(title = "产线信息" , businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BaseProductline baseProductline) {
List<BaseProductline> list = baseProductlineService.selectBaseProductlineList(baseProductline);
ExcelUtil<BaseProductline> util = new ExcelUtil<BaseProductline>(BaseProductline.class);
util.exportExcel(response, list, "产线信息数据");
}
/**
* 线
*/
@PreAuthorize("@ss.hasPermi('base:productline:query')")
@GetMapping(value = "/{objid}")
public AjaxResult getInfo(@PathVariable("objid") Long objid) {
return success(baseProductlineService.selectBaseProductlineByObjid(objid));
}
/**
* 线
*/
@PreAuthorize("@ss.hasPermi('base:productline:add')")
@Log(title = "产线信息" , businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BaseProductline baseProductline) {
baseProductline.setCreatedBy(getUsername());
baseProductline.setCreatedTime(DateUtils.getNowDate());
return toAjax(baseProductlineService.insertBaseProductline(baseProductline));
}
/**
* 线
*/
@PreAuthorize("@ss.hasPermi('base:productline:edit')")
@Log(title = "产线信息" , businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BaseProductline baseProductline) {
baseProductline.setUpdatedBy(getUsername());
baseProductline.setUpdatedTime(DateUtils.getNowDate());
return toAjax(baseProductlineService.updateBaseProductline(baseProductline));
}
/**
* 线
*/
@PreAuthorize("@ss.hasPermi('base:productline:remove')")
@Log(title = "产线信息" , businessType = BusinessType.DELETE)
@DeleteMapping("/{objids}")
public AjaxResult remove(@PathVariable Long[] objids) {
return toAjax(baseProductlineService.deleteBaseProductlineByObjids(objids));
}
}

@ -0,0 +1,263 @@
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_materialinfo
*
* @author Yinq
* @date 2023-09-19
*/
public class BaseMaterialInfo extends BaseEntity
{
private static final long serialVersionUID=1L;
/** 主键标识 */
private Long objId;
/** 物料编码 */
@Excel(name = "物料编码")
private String materialCode;
/** 物料名称 */
@Excel(name = "物料名称")
private String materialName;
/** 物料大类 */
@Excel(name = "物料大类")
private String materialCategories;
/** 物料小类 */
@Excel(name = "物料小类")
private String materialSubclass;
/** 物料类型 */
@Excel(name = "物料类型")
private String materialType;
/** 计量单位 */
@Excel(name = "计量单位")
private String materialUnit;
/** MATKL */
@Excel(name = "MATKL")
private String materialMatkl;
/** 物料规格 */
@Excel(name = "物料规格")
private Long materialSpecifications;
/** 所属工厂编号 */
@Excel(name = "所属工厂编号")
private String plantCode;
/**
*
*/
@Excel(name = "所属工厂名称")
private String plantName;
/** 产线工位编号 */
@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 Long getObjId() {
return objId;
}
public void setObjId(Long objId) {
this.objId = objId;
}
public String getMaterialCode() {
return materialCode;
}
public void setMaterialCode(String materialCode) {
this.materialCode = materialCode;
}
public String getMaterialName() {
return materialName;
}
public void setMaterialName(String materialName) {
this.materialName = materialName;
}
public String getMaterialCategories() {
return materialCategories;
}
public void setMaterialCategories(String materialCategories) {
this.materialCategories = materialCategories;
}
public String getMaterialSubclass() {
return materialSubclass;
}
public void setMaterialSubclass(String materialSubclass) {
this.materialSubclass = materialSubclass;
}
public String getMaterialType() {
return materialType;
}
public void setMaterialType(String materialType) {
this.materialType = materialType;
}
public String getMaterialUnit() {
return materialUnit;
}
public void setMaterialUnit(String materialUnit) {
this.materialUnit = materialUnit;
}
public String getMaterialMatkl() {
return materialMatkl;
}
public void setMaterialMatkl(String materialMatkl) {
this.materialMatkl = materialMatkl;
}
public Long getMaterialSpecifications() {
return materialSpecifications;
}
public void setMaterialSpecifications(Long materialSpecifications) {
this.materialSpecifications = materialSpecifications;
}
public String getPlantCode() {
return plantCode;
}
public void setPlantCode(String plantCode) {
this.plantCode = plantCode;
}
public String getPlantName() {
return plantName;
}
public void setPlantName(String plantName) {
this.plantName = plantName;
}
public String getProductLineCode() {
return productLineCode;
}
public void setProductLineCode(String productLineCode) {
this.productLineCode = productLineCode;
}
public String getProductLineName() {
return productLineName;
}
public void setProductLineName(String productLineName) {
this.productLineName = productLineName;
}
public Long getIsFlag() {
return isFlag;
}
public void setIsFlag(Long isFlag) {
this.isFlag = isFlag;
}
public String getCreatedBy() {
return createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public Date getCreatedTime() {
return createdTime;
}
public void setCreatedTime(Date createdTime) {
this.createdTime = createdTime;
}
public String getUpdatedBy() {
return updatedBy;
}
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
}
public Date getUpdatedTime() {
return updatedTime;
}
public void setUpdatedTime(Date updatedTime) {
this.updatedTime = updatedTime;
}
@Override
public String toString() {
return "BaseMaterialInfo{" +
"objId=" + objId +
", materialCode='" + materialCode + '\'' +
", materialName='" + materialName + '\'' +
", materialCategories='" + materialCategories + '\'' +
", materialSubclass='" + materialSubclass + '\'' +
", materialType='" + materialType + '\'' +
", materialUnit='" + materialUnit + '\'' +
", materialMatkl='" + materialMatkl + '\'' +
", materialSpecifications=" + materialSpecifications +
", plantCode='" + plantCode + '\'' +
", plantName='" + plantName + '\'' +
", productLineCode='" + productLineCode + '\'' +
", productLineName='" + productLineName + '\'' +
", isFlag=" + isFlag +
", createdBy='" + createdBy + '\'' +
", createdTime=" + createdTime +
", updatedBy='" + updatedBy + '\'' +
", updatedTime=" + updatedTime +
'}';
}
}

@ -12,42 +12,42 @@ import com.aucma.common.core.domain.BaseEntity;
* 线 base_productline
*
* @author Yinq
* @date 2023-09-18
* @date 2023-09-19
*/
public class BaseProductline extends BaseEntity {
public class BaseProductLine extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
*
*/
private Long objid;
private Long objId;
/**
* 线
*/
@Excel(name = "产线编号")
private String productlineCode;
private String productLineCode;
/**
* 线
*/
@Excel(name = "产线名称")
private String productlineName;
private String productLineName;
/**
* 线1-线2-
*/
@Excel(name = "产线类别" , readConverterExp = "1=-产线2-工位")
private Long productlineType;
@Excel(name = "产线类别", readConverterExp = "1=-产线2-工位")
private Long productLineType;
/**
*
*
*/
@Excel(name = "所属工厂编号")
private String plantCode;
/**
*
*
*/
@Excel(name = "所属工厂名称")
private String plantName;
@ -68,7 +68,7 @@ public class BaseProductline extends BaseEntity {
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date createdTime;
/**
@ -81,7 +81,7 @@ public class BaseProductline extends BaseEntity {
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "更新时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date updatedTime;
@ -93,36 +93,36 @@ public class BaseProductline extends BaseEntity {
this.plantName = plantName;
}
public void setObjid(Long objid) {
this.objid = objid;
public void setObjId(Long objId) {
this.objId = objId;
}
public Long getObjid() {
return objid;
public Long getObjId() {
return objId;
}
public void setProductlineCode(String productlineCode) {
this.productlineCode = productlineCode;
public void setProductLineCode(String productLineCode) {
this.productLineCode = productLineCode;
}
public String getProductlineCode() {
return productlineCode;
public String getProductLineCode() {
return productLineCode;
}
public void setProductlineName(String productlineName) {
this.productlineName = productlineName;
public void setProductLineName(String productLineName) {
this.productLineName = productLineName;
}
public String getProductlineName() {
return productlineName;
public String getProductLineName() {
return productLineName;
}
public void setProductlineType(Long productlineType) {
this.productlineType = productlineType;
public void setProductLineType(Long productLineType) {
this.productLineType = productLineType;
}
public Long getProductlineType() {
return productlineType;
public Long getProductLineType() {
return productLineType;
}
public void setPlantCode(String plantCode) {
@ -176,16 +176,16 @@ public class BaseProductline extends BaseEntity {
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("objid" , getObjid())
.append("productlineCode" , getProductlineCode())
.append("productlineName" , getProductlineName())
.append("productlineType" , getProductlineType())
.append("plantCode" , getPlantCode())
.append("isFlag" , getIsFlag())
.append("createdBy" , getCreatedBy())
.append("createdTime" , getCreatedTime())
.append("updatedBy" , getUpdatedBy())
.append("updatedTime" , getUpdatedTime())
.append("objId", getObjId())
.append("productLineCode", getProductLineCode())
.append("productLineName", getProductLineName())
.append("productLineType", getProductLineType())
.append("plantCode", getPlantCode())
.append("isFlag", getIsFlag())
.append("createdBy", getCreatedBy())
.append("createdTime", getCreatedTime())
.append("updatedBy", getUpdatedBy())
.append("updatedTime", getUpdatedTime())
.toString();
}
}

@ -0,0 +1,61 @@
package com.aucma.base.mapper;
import java.util.List;
import com.aucma.base.domain.BaseMaterialInfo;
/**
* Mapper
*
* @author Yinq
* @date 2023-09-19
*/
public interface BaseMaterialInfoMapper
{
/**
*
*
* @param objId
* @return
*/
public BaseMaterialInfo selectBaseMaterialInfoByObjId(Long objId);
/**
*
*
* @param baseMaterialInfo
* @return
*/
public List<BaseMaterialInfo> selectBaseMaterialInfoList(BaseMaterialInfo baseMaterialInfo);
/**
*
*
* @param baseMaterialInfo
* @return
*/
public int insertBaseMaterialInfo(BaseMaterialInfo baseMaterialInfo);
/**
*
*
* @param baseMaterialInfo
* @return
*/
public int updateBaseMaterialInfo(BaseMaterialInfo baseMaterialInfo);
/**
*
*
* @param objId
* @return
*/
public int deleteBaseMaterialInfoByObjId(Long objId);
/**
*
*
* @param objIds
* @return
*/
public int deleteBaseMaterialInfoByObjIds(Long[] objIds);
}

@ -0,0 +1,61 @@
package com.aucma.base.mapper;
import java.util.List;
import com.aucma.base.domain.BaseProductLine;
/**
* 线Mapper
*
* @author Yinq
* @date 2023-09-19
*/
public interface BaseProductLineMapper
{
/**
* 线
*
* @param objId 线
* @return 线
*/
public BaseProductLine selectBaseProductLineByObjId(Long objId);
/**
* 线
*
* @param baseProductLine 线
* @return 线
*/
public List<BaseProductLine> selectBaseProductLineList(BaseProductLine baseProductLine);
/**
* 线
*
* @param baseProductLine 线
* @return
*/
public int insertBaseProductLine(BaseProductLine baseProductLine);
/**
* 线
*
* @param baseProductLine 线
* @return
*/
public int updateBaseProductLine(BaseProductLine baseProductLine);
/**
* 线
*
* @param objId 线
* @return
*/
public int deleteBaseProductLineByObjId(Long objId);
/**
* 线
*
* @param objIds
* @return
*/
public int deleteBaseProductLineByObjIds(Long[] objIds);
}

@ -1,61 +0,0 @@
package com.aucma.base.mapper;
import java.util.List;
import com.aucma.base.domain.BaseProductline;
/**
* 线Mapper
*
* @author Yinq
* @date 2023-09-18
*/
public interface BaseProductlineMapper
{
/**
* 线
*
* @param objid 线
* @return 线
*/
public BaseProductline selectBaseProductlineByObjid(Long objid);
/**
* 线
*
* @param baseProductline 线
* @return 线
*/
public List<BaseProductline> selectBaseProductlineList(BaseProductline baseProductline);
/**
* 线
*
* @param baseProductline 线
* @return
*/
public int insertBaseProductline(BaseProductline baseProductline);
/**
* 线
*
* @param baseProductline 线
* @return
*/
public int updateBaseProductline(BaseProductline baseProductline);
/**
* 线
*
* @param objid 线
* @return
*/
public int deleteBaseProductlineByObjid(Long objid);
/**
* 线
*
* @param objids
* @return
*/
public int deleteBaseProductlineByObjids(Long[] objids);
}

@ -0,0 +1,61 @@
package com.aucma.base.service;
import java.util.List;
import com.aucma.base.domain.BaseMaterialInfo;
/**
* Service
*
* @author Yinq
* @date 2023-09-19
*/
public interface IBaseMaterialInfoService
{
/**
*
*
* @param objId
* @return
*/
public BaseMaterialInfo selectBaseMaterialInfoByObjId(Long objId);
/**
*
*
* @param baseMaterialInfo
* @return
*/
public List<BaseMaterialInfo> selectBaseMaterialInfoList(BaseMaterialInfo baseMaterialInfo);
/**
*
*
* @param baseMaterialInfo
* @return
*/
public int insertBaseMaterialInfo(BaseMaterialInfo baseMaterialInfo);
/**
*
*
* @param baseMaterialInfo
* @return
*/
public int updateBaseMaterialInfo(BaseMaterialInfo baseMaterialInfo);
/**
*
*
* @param objIds
* @return
*/
public int deleteBaseMaterialInfoByObjIds(Long[] objIds);
/**
*
*
* @param objId
* @return
*/
public int deleteBaseMaterialInfoByObjId(Long objId);
}

@ -0,0 +1,61 @@
package com.aucma.base.service;
import java.util.List;
import com.aucma.base.domain.BaseProductLine;
/**
* 线Service
*
* @author Yinq
* @date 2023-09-19
*/
public interface IBaseProductLineService
{
/**
* 线
*
* @param objId 线
* @return 线
*/
public BaseProductLine selectBaseProductLineByObjId(Long objId);
/**
* 线
*
* @param baseProductLine 线
* @return 线
*/
public List<BaseProductLine> selectBaseProductLineList(BaseProductLine baseProductLine);
/**
* 线
*
* @param baseProductLine 线
* @return
*/
public int insertBaseProductLine(BaseProductLine baseProductLine);
/**
* 线
*
* @param baseProductLine 线
* @return
*/
public int updateBaseProductLine(BaseProductLine baseProductLine);
/**
* 线
*
* @param objIds 线
* @return
*/
public int deleteBaseProductLineByObjIds(Long[] objIds);
/**
* 线
*
* @param objId 线
* @return
*/
public int deleteBaseProductLineByObjId(Long objId);
}

@ -1,61 +0,0 @@
package com.aucma.base.service;
import java.util.List;
import com.aucma.base.domain.BaseProductline;
/**
* 线Service
*
* @author Yinq
* @date 2023-09-18
*/
public interface IBaseProductlineService
{
/**
* 线
*
* @param objid 线
* @return 线
*/
public BaseProductline selectBaseProductlineByObjid(Long objid);
/**
* 线
*
* @param baseProductline 线
* @return 线
*/
public List<BaseProductline> selectBaseProductlineList(BaseProductline baseProductline);
/**
* 线
*
* @param baseProductline 线
* @return
*/
public int insertBaseProductline(BaseProductline baseProductline);
/**
* 线
*
* @param baseProductline 线
* @return
*/
public int updateBaseProductline(BaseProductline baseProductline);
/**
* 线
*
* @param objids 线
* @return
*/
public int deleteBaseProductlineByObjids(Long[] objids);
/**
* 线
*
* @param objid 线
* @return
*/
public int deleteBaseProductlineByObjid(Long objid);
}

@ -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.BaseMaterialInfoMapper;
import com.aucma.base.domain.BaseMaterialInfo;
import com.aucma.base.service.IBaseMaterialInfoService;
/**
* Service
*
* @author Yinq
* @date 2023-09-19
*/
@Service
public class BaseMaterialInfoServiceImpl implements IBaseMaterialInfoService
{
@Autowired
private BaseMaterialInfoMapper baseMaterialInfoMapper;
/**
*
*
* @param objId
* @return
*/
@Override
public BaseMaterialInfo selectBaseMaterialInfoByObjId(Long objId)
{
return baseMaterialInfoMapper.selectBaseMaterialInfoByObjId(objId);
}
/**
*
*
* @param baseMaterialInfo
* @return
*/
@Override
public List<BaseMaterialInfo> selectBaseMaterialInfoList(BaseMaterialInfo baseMaterialInfo)
{
return baseMaterialInfoMapper.selectBaseMaterialInfoList(baseMaterialInfo);
}
/**
*
*
* @param baseMaterialInfo
* @return
*/
@Override
public int insertBaseMaterialInfo(BaseMaterialInfo baseMaterialInfo)
{
return baseMaterialInfoMapper.insertBaseMaterialInfo(baseMaterialInfo);
}
/**
*
*
* @param baseMaterialInfo
* @return
*/
@Override
public int updateBaseMaterialInfo(BaseMaterialInfo baseMaterialInfo)
{
return baseMaterialInfoMapper.updateBaseMaterialInfo(baseMaterialInfo);
}
/**
*
*
* @param objIds
* @return
*/
@Override
public int deleteBaseMaterialInfoByObjIds(Long[] objIds)
{
return baseMaterialInfoMapper.deleteBaseMaterialInfoByObjIds(objIds);
}
/**
*
*
* @param objId
* @return
*/
@Override
public int deleteBaseMaterialInfoByObjId(Long objId)
{
return baseMaterialInfoMapper.deleteBaseMaterialInfoByObjId(objId);
}
}

@ -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.BaseProductLineMapper;
import com.aucma.base.domain.BaseProductLine;
import com.aucma.base.service.IBaseProductLineService;
/**
* 线Service
*
* @author Yinq
* @date 2023-09-19
*/
@Service
public class BaseProductLineServiceImpl implements IBaseProductLineService
{
@Autowired
private BaseProductLineMapper baseProductLineMapper;
/**
* 线
*
* @param objId 线
* @return 线
*/
@Override
public BaseProductLine selectBaseProductLineByObjId(Long objId)
{
return baseProductLineMapper.selectBaseProductLineByObjId(objId);
}
/**
* 线
*
* @param baseProductLine 线
* @return 线
*/
@Override
public List<BaseProductLine> selectBaseProductLineList(BaseProductLine baseProductLine)
{
return baseProductLineMapper.selectBaseProductLineList(baseProductLine);
}
/**
* 线
*
* @param baseProductLine 线
* @return
*/
@Override
public int insertBaseProductLine(BaseProductLine baseProductLine)
{
return baseProductLineMapper.insertBaseProductLine(baseProductLine);
}
/**
* 线
*
* @param baseProductLine 线
* @return
*/
@Override
public int updateBaseProductLine(BaseProductLine baseProductLine)
{
return baseProductLineMapper.updateBaseProductLine(baseProductLine);
}
/**
* 线
*
* @param objIds 线
* @return
*/
@Override
public int deleteBaseProductLineByObjIds(Long[] objIds)
{
return baseProductLineMapper.deleteBaseProductLineByObjIds(objIds);
}
/**
* 线
*
* @param objId 线
* @return
*/
@Override
public int deleteBaseProductLineByObjId(Long objId)
{
return baseProductLineMapper.deleteBaseProductLineByObjId(objId);
}
}

@ -1,93 +0,0 @@
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.BaseProductlineMapper;
import com.aucma.base.domain.BaseProductline;
import com.aucma.base.service.IBaseProductlineService;
/**
* 线Service
*
* @author Yinq
* @date 2023-09-18
*/
@Service
public class BaseProductlineServiceImpl implements IBaseProductlineService
{
@Autowired
private BaseProductlineMapper baseProductlineMapper;
/**
* 线
*
* @param objid 线
* @return 线
*/
@Override
public BaseProductline selectBaseProductlineByObjid(Long objid)
{
return baseProductlineMapper.selectBaseProductlineByObjid(objid);
}
/**
* 线
*
* @param baseProductline 线
* @return 线
*/
@Override
public List<BaseProductline> selectBaseProductlineList(BaseProductline baseProductline)
{
return baseProductlineMapper.selectBaseProductlineList(baseProductline);
}
/**
* 线
*
* @param baseProductline 线
* @return
*/
@Override
public int insertBaseProductline(BaseProductline baseProductline)
{
return baseProductlineMapper.insertBaseProductline(baseProductline);
}
/**
* 线
*
* @param baseProductline 线
* @return
*/
@Override
public int updateBaseProductline(BaseProductline baseProductline)
{
return baseProductlineMapper.updateBaseProductline(baseProductline);
}
/**
* 线
*
* @param objids 线
* @return
*/
@Override
public int deleteBaseProductlineByObjids(Long[] objids)
{
return baseProductlineMapper.deleteBaseProductlineByObjids(objids);
}
/**
* 线
*
* @param objid 线
* @return
*/
@Override
public int deleteBaseProductlineByObjid(Long objid)
{
return baseProductlineMapper.deleteBaseProductlineByObjid(objid);
}
}

@ -0,0 +1,151 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aucma.base.mapper.BaseMaterialInfoMapper">
<resultMap type="BaseMaterialInfo" id="BaseMaterialInfoResult">
<result property="objId" column="obj_id" />
<result property="materialCode" column="material_code" />
<result property="materialName" column="material_name" />
<result property="materialCategories" column="material_categories" />
<result property="materialSubclass" column="material_subclass" />
<result property="materialType" column="material_type" />
<result property="materialUnit" column="material_unit" />
<result property="materialMatkl" column="material_matkl" />
<result property="materialSpecifications" column="material_specifications" />
<result property="plantCode" column="plant_code" />
<result property="productLineCode" column="productline_code" />
<result property="isFlag" column="is_flag" />
<result property="createdBy" column="created_by" />
<result property="createdTime" column="created_time" />
<result property="updatedBy" column="updated_by" />
<result property="updatedTime" column="updated_time" />
</resultMap>
<sql id="selectBaseMaterialInfoVo">
select ml.obj_id,
ml.material_code,
ml.material_name,
ml.material_categories,
ml.material_subclass,
ml.material_type,
ml.material_unit,
ml.material_matkl,
ml.material_specifications,
ml.plant_code,
bf.factory_name plantName,
ml.productline_code,
bpl.PRODUCT_LINE_NAME productLineName,
ml.is_flag,
ml.created_by,
ml.created_time,
ml.updated_by,
ml.updated_time
from base_materialinfo ml
left join base_factory bf on bf.factory_code = ml.plant_code
left join base_productline bpl on bpl.PRODUCT_LINE_CODE = ml.productline_code
</sql>
<select id="selectBaseMaterialInfoList" parameterType="BaseMaterialInfo" resultMap="BaseMaterialInfoResult">
<include refid="selectBaseMaterialInfoVo"/>
<where>
<if test="materialCode != null and materialCode != ''"> and ml.material_code = #{materialCode}</if>
<if test="materialName != null and materialName != ''"> and ml.material_name like concat(concat('%', #{materialName}), '%')</if>
<if test="materialCategories != null and materialCategories != ''"> and ml.material_categories = #{materialCategories}</if>
<if test="materialSubclass != null and materialSubclass != ''"> and ml.material_subclass = #{materialSubclass}</if>
<if test="materialType != null and materialType != ''"> and ml.material_type = #{materialType}</if>
<if test="materialUnit != null and materialUnit != ''"> and ml.material_unit = #{materialUnit}</if>
<if test="materialMatkl != null and materialMatkl != ''"> and ml.material_matkl = #{materialMatkl}</if>
<if test="materialSpecifications != null "> and ml.material_specifications = #{materialSpecifications}</if>
<if test="plantCode != null and plantCode != ''"> and ml.plant_code = #{plantCode}</if>
<if test="productLineCode != null and productLineCode != ''"> and ml.productline_code = #{productLineCode}</if>
<if test="isFlag != null "> and ml.is_flag = #{isFlag}</if>
<if test="createdBy != null and createdBy != ''"> and ml.created_by = #{createdBy}</if>
<if test="createdTime != null "> and ml.created_time = #{createdTime}</if>
<if test="updatedBy != null and updatedBy != ''"> and ml.updated_by = #{updatedBy}</if>
<if test="updatedTime != null "> and ml.updated_time = #{updatedTime}</if>
</where>
</select>
<select id="selectBaseMaterialInfoByObjId" parameterType="Long" resultMap="BaseMaterialInfoResult">
<include refid="selectBaseMaterialInfoVo"/>
where ml.obj_id = #{objId}
</select>
<insert id="insertBaseMaterialInfo" parameterType="BaseMaterialInfo">
<selectKey keyProperty="objId" resultType="long" order="BEFORE">
SELECT seq_base_materialinfo.NEXTVAL as objId FROM DUAL
</selectKey>
insert into base_materialinfo
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="objId != null">obj_id,</if>
<if test="materialCode != null">material_code,</if>
<if test="materialName != null">material_name,</if>
<if test="materialCategories != null">material_categories,</if>
<if test="materialSubclass != null">material_subclass,</if>
<if test="materialType != null">material_type,</if>
<if test="materialUnit != null">material_unit,</if>
<if test="materialMatkl != null">material_matkl,</if>
<if test="materialSpecifications != null">material_specifications,</if>
<if test="plantCode != null">plant_code,</if>
<if test="productLineCode != null">productline_code,</if>
<if test="isFlag != null">is_flag,</if>
<if test="createdBy != null">created_by,</if>
<if test="createdTime != null">created_time,</if>
<if test="updatedBy != null">updated_by,</if>
<if test="updatedTime != null">updated_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="objId != null">#{objId},</if>
<if test="materialCode != null">#{materialCode},</if>
<if test="materialName != null">#{materialName},</if>
<if test="materialCategories != null">#{materialCategories},</if>
<if test="materialSubclass != null">#{materialSubclass},</if>
<if test="materialType != null">#{materialType},</if>
<if test="materialUnit != null">#{materialUnit},</if>
<if test="materialMatkl != null">#{materialMatkl},</if>
<if test="materialSpecifications != null">#{materialSpecifications},</if>
<if test="plantCode != null">#{plantCode},</if>
<if test="productLineCode != null">#{productLineCode},</if>
<if test="isFlag != null">#{isFlag},</if>
<if test="createdBy != null">#{createdBy},</if>
<if test="createdTime != null">#{createdTime},</if>
<if test="updatedBy != null">#{updatedBy},</if>
<if test="updatedTime != null">#{updatedTime},</if>
</trim>
</insert>
<update id="updateBaseMaterialInfo" parameterType="BaseMaterialInfo">
update base_materialinfo
<trim prefix="SET" suffixOverrides=",">
<if test="materialCode != null">material_code = #{materialCode},</if>
<if test="materialName != null">material_name = #{materialName},</if>
<if test="materialCategories != null">material_categories = #{materialCategories},</if>
<if test="materialSubclass != null">material_subclass = #{materialSubclass},</if>
<if test="materialType != null">material_type = #{materialType},</if>
<if test="materialUnit != null">material_unit = #{materialUnit},</if>
<if test="materialMatkl != null">material_matkl = #{materialMatkl},</if>
<if test="materialSpecifications != null">material_specifications = #{materialSpecifications},</if>
<if test="plantCode != null">plant_code = #{plantCode},</if>
<if test="productLineCode != null">productline_code = #{productLineCode},</if>
<if test="isFlag != null">is_flag = #{isFlag},</if>
<if test="createdBy != null">created_by = #{createdBy},</if>
<if test="createdTime != null">created_time = #{createdTime},</if>
<if test="updatedBy != null">updated_by = #{updatedBy},</if>
<if test="updatedTime != null">updated_time = #{updatedTime},</if>
</trim>
where obj_id = #{objId}
</update>
<delete id="deleteBaseMaterialInfoByObjId" parameterType="Long">
delete from base_materialinfo where obj_id = #{objId}
</delete>
<delete id="deleteBaseMaterialInfoByObjIds" parameterType="String">
delete from base_materialinfo where obj_id in
<foreach item="objId" collection="array" open="(" separator="," close=")">
#{objId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aucma.base.mapper.BaseProductLineMapper">
<resultMap type="BaseProductLine" id="BaseProductLineResult">
<result property="objId" column="obj_id" />
<result property="productLineCode" column="product_line_code" />
<result property="productLineName" column="product_line_name" />
<result property="productLineType" column="product_line_type" />
<result property="plantCode" column="plant_code" />
<result property="plantName" column="plantName" />
<result property="isFlag" column="is_flag" />
<result property="createdBy" column="created_by" />
<result property="createdTime" column="created_time" />
<result property="updatedBy" column="updated_by" />
<result property="updatedTime" column="updated_time" />
</resultMap>
<sql id="selectBaseProductLineVo">
select bpl.OBJ_ID,
bpl.PRODUCT_LINE_CODE,
bpl.PRODUCT_LINE_NAME,
bpl.PRODUCT_LINE_TYPE,
bpl.plant_code,
bf.factory_name plantName,
bpl.is_flag,
bpl.created_by,
bpl.created_time,
bpl.updated_by,
bpl.updated_time
from base_productline bpl
left join base_factory bf on bf.factory_code = bpl.plant_code
</sql>
<select id="selectBaseProductLineList" parameterType="BaseProductLine" resultMap="BaseProductLineResult">
<include refid="selectBaseProductLineVo"/>
<where>
<if test="productLineCode != null and productLineCode != ''"> and bpl.product_line_code = #{productLineCode}</if>
<if test="productLineName != null and productLineName != ''"> and bpl.product_line_name like concat(concat('%', #{productLineName}), '%')</if>
<if test="productLineType != null "> and bpl.product_line_type = #{productLineType}</if>
<if test="plantCode != null and plantCode != ''"> and bpl.plant_code = #{plantCode}</if>
<if test="isFlag != null "> and bpl.is_flag = #{isFlag}</if>
<if test="createdBy != null and createdBy != ''"> and bpl.created_by = #{createdBy}</if>
<if test="createdTime != null "> and bpl.created_time = #{createdTime}</if>
<if test="updatedBy != null and updatedBy != ''"> and bpl.updated_by = #{updatedBy}</if>
<if test="updatedTime != null "> and bpl.updated_time = #{updatedTime}</if>
</where>
order by bpl.PRODUCT_LINE_CODE
</select>
<select id="selectBaseProductLineByObjId" parameterType="Long" resultMap="BaseProductLineResult">
<include refid="selectBaseProductLineVo"/>
where bpl.obj_id = #{objId}
</select>
<insert id="insertBaseProductLine" parameterType="BaseProductLine">
<selectKey keyProperty="objId" resultType="long" order="BEFORE">
SELECT seq_base_productline.NEXTVAL as objId FROM DUAL
</selectKey>
insert into base_productline
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="objId != null">obj_id,</if>
<if test="productLineCode != null">product_line_code,</if>
<if test="productLineName != null">product_line_name,</if>
<if test="productLineType != null">product_line_type,</if>
<if test="plantCode != null">plant_code,</if>
<if test="isFlag != null">is_flag,</if>
<if test="createdBy != null">created_by,</if>
<if test="createdTime != null">created_time,</if>
<if test="updatedBy != null">updated_by,</if>
<if test="updatedTime != null">updated_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="objId != null">#{objId},</if>
<if test="productLineCode != null">#{productLineCode},</if>
<if test="productLineName != null">#{productLineName},</if>
<if test="productLineType != null">#{productLineType},</if>
<if test="plantCode != null">#{plantCode},</if>
<if test="isFlag != null">#{isFlag},</if>
<if test="createdBy != null">#{createdBy},</if>
<if test="createdTime != null">#{createdTime},</if>
<if test="updatedBy != null">#{updatedBy},</if>
<if test="updatedTime != null">#{updatedTime},</if>
</trim>
</insert>
<update id="updateBaseProductLine" parameterType="BaseProductLine">
update base_productline
<trim prefix="SET" suffixOverrides=",">
<if test="productLineCode != null">product_line_code = #{productLineCode},</if>
<if test="productLineName != null">product_line_name = #{productLineName},</if>
<if test="productLineType != null">product_line_type = #{productLineType},</if>
<if test="plantCode != null">plant_code = #{plantCode},</if>
<if test="isFlag != null">is_flag = #{isFlag},</if>
<if test="createdBy != null">created_by = #{createdBy},</if>
<if test="createdTime != null">created_time = #{createdTime},</if>
<if test="updatedBy != null">updated_by = #{updatedBy},</if>
<if test="updatedTime != null">updated_time = #{updatedTime},</if>
</trim>
where obj_id = #{objId}
</update>
<delete id="deleteBaseProductLineByObjId" parameterType="Long">
delete from base_productline where obj_id = #{objId}
</delete>
<delete id="deleteBaseProductLineByObjIds" parameterType="String">
delete from base_productline where obj_id in
<foreach item="objId" collection="array" open="(" separator="," close=")">
#{objId}
</foreach>
</delete>
</mapper>

@ -1,118 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aucma.base.mapper.BaseProductlineMapper">
<resultMap type="BaseProductline" id="BaseProductlineResult">
<result property="objid" column="objid"/>
<result property="productlineCode" column="productline_code"/>
<result property="productlineName" column="productline_name"/>
<result property="productlineType" column="productline_type"/>
<result property="plantCode" column="plant_code"/>
<result property="plantName" column="plantName"/>
<result property="isFlag" column="is_flag"/>
<result property="createdBy" column="created_by"/>
<result property="createdTime" column="created_time"/>
<result property="updatedBy" column="updated_by"/>
<result property="updatedTime" column="updated_time"/>
</resultMap>
<sql id="selectBaseProductlineVo">
select bpl.objid,
bpl.productline_code,
bpl.productline_name,
bpl.productline_type,
bpl.plant_code,
bf.factory_name plantName,
bpl.is_flag,
bpl.created_by,
bpl.created_time,
bpl.updated_by,
bpl.updated_time
from base_productline bpl
left join base_factory bf on bf.factory_code = bpl.plant_code
</sql>
<select id="selectBaseProductlineList" parameterType="BaseProductline" resultMap="BaseProductlineResult">
<include refid="selectBaseProductlineVo"/>
<where>
<if test="productlineCode != null and productlineCode != ''">and bpl.productline_code = #{productlineCode}</if>
<if test="productlineName != null and productlineName != ''">and bpl.productline_name like concat(concat('%',
#{productlineName}), '%')
</if>
<if test="productlineType != null ">and bpl.productline_type = #{productlineType}</if>
<if test="plantCode != null and plantCode != ''">and bpl.plant_code = #{plantCode}</if>
<if test="isFlag != null ">and bpl.is_flag = #{isFlag}</if>
<if test="createdBy != null and createdBy != ''">and bpl.created_by = #{createdBy}</if>
<if test="createdTime != null ">and bpl.created_time = #{createdTime}</if>
<if test="updatedBy != null and updatedBy != ''">and bpl.updated_by = #{updatedBy}</if>
<if test="updatedTime != null ">and bpl.updated_time = #{updatedTime}</if>
</where>
</select>
<select id="selectBaseProductlineByObjid" parameterType="Long" resultMap="BaseProductlineResult">
<include refid="selectBaseProductlineVo"/>
where bpl.objid = #{objid}
</select>
<insert id="insertBaseProductline" parameterType="BaseProductline">
<selectKey keyProperty="objid" resultType="long" order="BEFORE">
SELECT seq_base_productline.NEXTVAL as objid FROM DUAL
</selectKey>
insert into base_productline
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="objid != null">objid,</if>
<if test="productlineCode != null">productline_code,</if>
<if test="productlineName != null">productline_name,</if>
<if test="productlineType != null">productline_type,</if>
<if test="plantCode != null">plant_code,</if>
<if test="isFlag != null">is_flag,</if>
<if test="createdBy != null">created_by,</if>
<if test="createdTime != null">created_time,</if>
<if test="updatedBy != null">updated_by,</if>
<if test="updatedTime != null">updated_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="objid != null">#{objid},</if>
<if test="productlineCode != null">#{productlineCode},</if>
<if test="productlineName != null">#{productlineName},</if>
<if test="productlineType != null">#{productlineType},</if>
<if test="plantCode != null">#{plantCode},</if>
<if test="isFlag != null">#{isFlag},</if>
<if test="createdBy != null">#{createdBy},</if>
<if test="createdTime != null">#{createdTime},</if>
<if test="updatedBy != null">#{updatedBy},</if>
<if test="updatedTime != null">#{updatedTime},</if>
</trim>
</insert>
<update id="updateBaseProductline" parameterType="BaseProductline">
update base_productline
<trim prefix="SET" suffixOverrides=",">
<if test="productlineCode != null">productline_code = #{productlineCode},</if>
<if test="productlineName != null">productline_name = #{productlineName},</if>
<if test="productlineType != null">productline_type = #{productlineType},</if>
<if test="plantCode != null">plant_code = #{plantCode},</if>
<if test="isFlag != null">is_flag = #{isFlag},</if>
<if test="createdBy != null">created_by = #{createdBy},</if>
<if test="createdTime != null">created_time = #{createdTime},</if>
<if test="updatedBy != null">updated_by = #{updatedBy},</if>
<if test="updatedTime != null">updated_time = #{updatedTime},</if>
</trim>
where objid = #{objid}
</update>
<delete id="deleteBaseProductlineByObjid" parameterType="Long">
delete
from base_productline
where objid = #{objid}
</delete>
<delete id="deleteBaseProductlineByObjids" parameterType="String">
delete from base_productline where objid in
<foreach item="objid" collection="array" open="(" separator="," close=")">
#{objid}
</foreach>
</delete>
</mapper>
Loading…
Cancel
Save