add - 物料管理
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 +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -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…
Reference in New Issue