Merge remote-tracking branch 'origin/master'
commit
783dc284f9
@ -0,0 +1,29 @@
|
||||
package com.op.system.api;
|
||||
|
||||
import com.op.common.core.constant.ServiceNameConstants;
|
||||
import com.op.common.core.domain.R;
|
||||
import com.op.system.api.domain.DataSourcePropertyDTO;
|
||||
import com.op.system.api.factory.RemoteWmsFallbackFactory;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户服务
|
||||
*
|
||||
* @author OP
|
||||
*/
|
||||
@FeignClient(contextId = "remoteWmsService", value = ServiceNameConstants.WMS_SERVICE, fallbackFactory = RemoteWmsFallbackFactory.class)
|
||||
|
||||
|
||||
|
||||
public interface RemoteWmsService {
|
||||
|
||||
@PostMapping("/area/addDatasource")
|
||||
public R addDatasource(@RequestBody DataSourcePropertyDTO dataSourceProperty);
|
||||
|
||||
@PostMapping("/area/removeDatasource")
|
||||
public R removeDatasource(@RequestBody DataSourcePropertyDTO dataSourceProperty);
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
package com.op.system.api.domain;
|
||||
|
||||
/**
|
||||
* @author zxl
|
||||
* @date 2024年04月12日 11:57
|
||||
*/
|
||||
public class DataSourcePropertyDTO {
|
||||
private String poolName;
|
||||
private String driverClassName;
|
||||
private String url;
|
||||
private String username;
|
||||
private String password;
|
||||
private String jndiName;
|
||||
private Boolean seata = true;
|
||||
private Boolean lazy;
|
||||
|
||||
public String getPoolName() {
|
||||
return poolName;
|
||||
}
|
||||
|
||||
public void setPoolName(String poolName) {
|
||||
this.poolName = poolName;
|
||||
}
|
||||
|
||||
public String getDriverClassName() {
|
||||
return driverClassName;
|
||||
}
|
||||
|
||||
public void setDriverClassName(String driverClassName) {
|
||||
this.driverClassName = driverClassName;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getJndiName() {
|
||||
return jndiName;
|
||||
}
|
||||
|
||||
public void setJndiName(String jndiName) {
|
||||
this.jndiName = jndiName;
|
||||
}
|
||||
|
||||
public Boolean getSeata() {
|
||||
return seata;
|
||||
}
|
||||
|
||||
public void setSeata(Boolean seata) {
|
||||
this.seata = seata;
|
||||
}
|
||||
|
||||
public Boolean getLazy() {
|
||||
return lazy;
|
||||
}
|
||||
|
||||
public void setLazy(Boolean lazy) {
|
||||
this.lazy = lazy;
|
||||
}
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
package com.op.system.api.factory;
|
||||
|
||||
import com.op.common.core.domain.R;
|
||||
import com.op.system.api.RemoteWmsService;
|
||||
import com.op.system.api.domain.DataSourcePropertyDTO;
|
||||
import com.op.system.api.domain.dto.WCSDTO;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.cloud.openfeign.FallbackFactory;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户服务降级处理
|
||||
*
|
||||
* @author OP
|
||||
*/
|
||||
@Component
|
||||
public class RemoteWmsFallbackFactory implements FallbackFactory<RemoteWmsService> {
|
||||
private static final Logger log = LoggerFactory.getLogger(RemoteWmsFallbackFactory.class);
|
||||
|
||||
@Override
|
||||
public RemoteWmsService create(Throwable throwable) {
|
||||
log.error("Wms服务调用失败:{}", throwable.getMessage());
|
||||
return new RemoteWmsService() {
|
||||
@Override
|
||||
public R addDatasource(DataSourcePropertyDTO dataSourceProperty) {
|
||||
return R.fail("mes数据源创建失败:" + throwable.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public R removeDatasource(DataSourcePropertyDTO dataSourceProperty) {
|
||||
return R.fail("mes数据源删除失败:" + throwable.getMessage());
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,109 @@
|
||||
package com.op.mes.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.protobuf.Internal;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.op.common.log.annotation.Log;
|
||||
import com.op.common.log.enums.BusinessType;
|
||||
import com.op.common.security.annotation.RequiresPermissions;
|
||||
import com.op.mes.domain.MesLine;
|
||||
import com.op.mes.service.IMesLineService;
|
||||
import com.op.common.core.web.controller.BaseController;
|
||||
import com.op.common.core.web.domain.AjaxResult;
|
||||
import com.op.common.core.utils.poi.ExcelUtil;
|
||||
import com.op.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 线体管理Controller
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-02
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/mesLine")
|
||||
public class MesLineController extends BaseController {
|
||||
@Autowired
|
||||
private IMesLineService mesLineService;
|
||||
|
||||
/**
|
||||
* 查询线体管理列表
|
||||
*/
|
||||
@RequiresPermissions("mes:mesLine:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(MesLine mesLine) {
|
||||
startPage();
|
||||
List<MesLine> list = mesLineService.selectMesLineList(mesLine);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出线体管理列表
|
||||
*/
|
||||
@RequiresPermissions("mes:mesLine:export")
|
||||
@Log(title = "线体管理", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MesLine mesLine) {
|
||||
List<MesLine> list = mesLineService.selectMesLineList(mesLine);
|
||||
ExcelUtil<MesLine> util = new ExcelUtil<MesLine>(MesLine. class);
|
||||
util.exportExcel(response, list, "线体管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取线体管理详细信息
|
||||
*/
|
||||
@RequiresPermissions("mes:mesLine:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id) {
|
||||
return success(mesLineService.selectMesLineById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增线体管理
|
||||
*/
|
||||
@RequiresPermissions("mes:mesLine:add")
|
||||
@Log(title = "线体管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody MesLine mesLine) {
|
||||
return toAjax(mesLineService.insertMesLine(mesLine));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改线体管理
|
||||
*/
|
||||
@RequiresPermissions("mes:mesLine:edit")
|
||||
@Log(title = "线体管理", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody MesLine mesLine) {
|
||||
return toAjax(mesLineService.updateMesLine(mesLine));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除线体管理
|
||||
*/
|
||||
@RequiresPermissions("mes:mesLine:remove")
|
||||
@Log(title = "线体管理", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids) {
|
||||
return toAjax(mesLineService.deleteMesLineByIds(ids));
|
||||
}
|
||||
/**
|
||||
* 选择线体
|
||||
*/
|
||||
@GetMapping("/selectLineBody")
|
||||
public TableDataInfo selectLineBody(MesLine mesLine) {
|
||||
startPage();
|
||||
List<MesLine> list = mesLineService.selectLineBody(mesLine);
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,202 @@
|
||||
package com.op.mes.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 线体管理对象 mes_line
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-02
|
||||
*/
|
||||
public class MesLine extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 线体编码
|
||||
*/
|
||||
@Excel(name = "线体编码")
|
||||
private String lineCode;
|
||||
|
||||
/**
|
||||
* 线体名称
|
||||
*/
|
||||
@Excel(name = "线体名称")
|
||||
private String lineName;
|
||||
|
||||
/**
|
||||
* 标准用人
|
||||
*/
|
||||
@Excel(name = "标准用人")
|
||||
private Long useMan;
|
||||
|
||||
/**
|
||||
* 标准效率
|
||||
*/
|
||||
@Excel(name = "标准效率")
|
||||
private BigDecimal efficiency;
|
||||
|
||||
/**
|
||||
* 检验工具
|
||||
*/
|
||||
@Excel(name = "检验工具")
|
||||
private String attr1;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String attr2;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String attr3;
|
||||
|
||||
/**
|
||||
* 预留字段1
|
||||
*/
|
||||
@Excel(name = "预留字段1")
|
||||
private String attr4;
|
||||
|
||||
/**
|
||||
* 工厂编码
|
||||
*/
|
||||
@Excel(name = "工厂编码")
|
||||
private String factoryCode;
|
||||
|
||||
/**
|
||||
* 删除标识1删除0正常
|
||||
*/
|
||||
private String delFlag;
|
||||
|
||||
private List<String> processList;
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setLineCode(String lineCode) {
|
||||
this.lineCode = lineCode;
|
||||
}
|
||||
|
||||
public String getLineCode() {
|
||||
return lineCode;
|
||||
}
|
||||
|
||||
public void setLineName(String lineName) {
|
||||
this.lineName = lineName;
|
||||
}
|
||||
|
||||
public String getLineName() {
|
||||
return lineName;
|
||||
}
|
||||
|
||||
public void setUseMan(Long useMan) {
|
||||
this.useMan = useMan;
|
||||
}
|
||||
|
||||
public Long getUseMan() {
|
||||
return useMan;
|
||||
}
|
||||
|
||||
public void setEfficiency(BigDecimal efficiency) {
|
||||
this.efficiency = efficiency;
|
||||
}
|
||||
|
||||
public BigDecimal getEfficiency() {
|
||||
return efficiency;
|
||||
}
|
||||
|
||||
public void setAttr1(String attr1) {
|
||||
this.attr1 = attr1;
|
||||
}
|
||||
|
||||
public String getAttr1() {
|
||||
return attr1;
|
||||
}
|
||||
|
||||
public void setAttr2(String attr2) {
|
||||
this.attr2 = attr2;
|
||||
}
|
||||
|
||||
public String getAttr2() {
|
||||
return attr2;
|
||||
}
|
||||
|
||||
public void setAttr3(String attr3) {
|
||||
this.attr3 = attr3;
|
||||
}
|
||||
|
||||
public String getAttr3() {
|
||||
return attr3;
|
||||
}
|
||||
|
||||
public void setAttr4(String attr4) {
|
||||
this.attr4 = attr4;
|
||||
}
|
||||
|
||||
public String getAttr4() {
|
||||
return attr4;
|
||||
}
|
||||
|
||||
public void setFactoryCode(String factoryCode) {
|
||||
this.factoryCode = factoryCode;
|
||||
}
|
||||
|
||||
public String getFactoryCode() {
|
||||
return factoryCode;
|
||||
}
|
||||
|
||||
public void setDelFlag(String delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
public List<String> getProcessList() {
|
||||
return processList;
|
||||
}
|
||||
|
||||
public void setProcessList(List<String> processList) {
|
||||
this.processList = processList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("lineCode", getLineCode())
|
||||
.append("lineName", getLineName())
|
||||
.append("useMan", getUseMan())
|
||||
.append("efficiency", getEfficiency())
|
||||
.append("attr1", getAttr1())
|
||||
.append("attr2", getAttr2())
|
||||
.append("attr3", getAttr3())
|
||||
.append("attr4", getAttr4())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("factoryCode", getFactoryCode())
|
||||
.append("delFlag", getDelFlag())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,182 @@
|
||||
package com.op.mes.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 线体管理对象 mes_line_process
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-07
|
||||
*/
|
||||
public class MesLineProcess extends BaseEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** id */
|
||||
private String id;
|
||||
|
||||
/** 父级id */
|
||||
@Excel(name = "父级id")
|
||||
private String belongTo;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String processCode;
|
||||
|
||||
/** 工艺名称 */
|
||||
@Excel(name = "工艺名称")
|
||||
private String processName;
|
||||
|
||||
/** 数量 */
|
||||
@Excel(name = "数量")
|
||||
private BigDecimal quality;
|
||||
|
||||
/** 检验工具 */
|
||||
@Excel(name = "检验工具")
|
||||
private String attr1;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String attr2;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String attr3;
|
||||
|
||||
/** 预留字段1 */
|
||||
@Excel(name = "预留字段1")
|
||||
private String attr4;
|
||||
|
||||
/** 工厂编码 */
|
||||
@Excel(name = "工厂编码")
|
||||
private String factoryCode;
|
||||
|
||||
/** 删除标识1删除0正常 */
|
||||
private String delFlag;
|
||||
|
||||
/** 所属线体编码 */
|
||||
@Excel(name = "所属线体编码")
|
||||
private String lineCode;
|
||||
|
||||
/** 所属线体名称 */
|
||||
@Excel(name = "所属线体名称")
|
||||
private String lineName;
|
||||
|
||||
public void setId(String id){
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId(){
|
||||
return id;
|
||||
}
|
||||
public void setBelongTo(String belongTo){
|
||||
this.belongTo = belongTo;
|
||||
}
|
||||
|
||||
public String getBelongTo(){
|
||||
return belongTo;
|
||||
}
|
||||
public void setProcessCode(String processCode){
|
||||
this.processCode = processCode;
|
||||
}
|
||||
|
||||
public String getProcessCode(){
|
||||
return processCode;
|
||||
}
|
||||
public void setProcessName(String processName){
|
||||
this.processName = processName;
|
||||
}
|
||||
|
||||
public String getProcessName(){
|
||||
return processName;
|
||||
}
|
||||
public void setQuality(BigDecimal quality){
|
||||
this.quality = quality;
|
||||
}
|
||||
|
||||
public BigDecimal getQuality(){
|
||||
return quality;
|
||||
}
|
||||
public void setAttr1(String attr1){
|
||||
this.attr1 = attr1;
|
||||
}
|
||||
|
||||
public String getAttr1(){
|
||||
return attr1;
|
||||
}
|
||||
public void setAttr2(String attr2){
|
||||
this.attr2 = attr2;
|
||||
}
|
||||
|
||||
public String getAttr2(){
|
||||
return attr2;
|
||||
}
|
||||
public void setAttr3(String attr3){
|
||||
this.attr3 = attr3;
|
||||
}
|
||||
|
||||
public String getAttr3(){
|
||||
return attr3;
|
||||
}
|
||||
public void setAttr4(String attr4){
|
||||
this.attr4 = attr4;
|
||||
}
|
||||
|
||||
public String getAttr4(){
|
||||
return attr4;
|
||||
}
|
||||
public void setFactoryCode(String factoryCode){
|
||||
this.factoryCode = factoryCode;
|
||||
}
|
||||
|
||||
public String getFactoryCode(){
|
||||
return factoryCode;
|
||||
}
|
||||
public void setDelFlag(String delFlag){
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag(){
|
||||
return delFlag;
|
||||
}
|
||||
public void setLineCode(String lineCode){
|
||||
this.lineCode = lineCode;
|
||||
}
|
||||
|
||||
public String getLineCode(){
|
||||
return lineCode;
|
||||
}
|
||||
public void setLineName(String lineName){
|
||||
this.lineName = lineName;
|
||||
}
|
||||
|
||||
public String getLineName(){
|
||||
return lineName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString(){
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id",getId())
|
||||
.append("belongTo",getBelongTo())
|
||||
.append("processCode",getProcessCode())
|
||||
.append("processName",getProcessName())
|
||||
.append("quality",getQuality())
|
||||
.append("attr1",getAttr1())
|
||||
.append("attr2",getAttr2())
|
||||
.append("attr3",getAttr3())
|
||||
.append("attr4",getAttr4())
|
||||
.append("createBy",getCreateBy())
|
||||
.append("createTime",getCreateTime())
|
||||
.append("updateBy",getUpdateBy())
|
||||
.append("updateTime",getUpdateTime())
|
||||
.append("factoryCode",getFactoryCode())
|
||||
.append("delFlag",getDelFlag())
|
||||
.append("lineCode",getLineCode())
|
||||
.append("lineName",getLineName())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package com.op.mes.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.mes.domain.MesLine;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 线体管理Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-02
|
||||
*/
|
||||
@Mapper
|
||||
public interface MesLineMapper {
|
||||
/**
|
||||
* 查询线体管理
|
||||
*
|
||||
* @param id 线体管理主键
|
||||
* @return 线体管理
|
||||
*/
|
||||
public MesLine selectMesLineById(String id);
|
||||
|
||||
/**
|
||||
* 查询线体管理列表
|
||||
*
|
||||
* @param mesLine 线体管理
|
||||
* @return 线体管理集合
|
||||
*/
|
||||
public List<MesLine> selectMesLineList(MesLine mesLine);
|
||||
|
||||
/**
|
||||
* 新增线体管理
|
||||
*
|
||||
* @param mesLine 线体管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMesLine(MesLine mesLine);
|
||||
|
||||
/**
|
||||
* 修改线体管理
|
||||
*
|
||||
* @param mesLine 线体管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMesLine(MesLine mesLine);
|
||||
|
||||
/**
|
||||
* 删除线体管理
|
||||
*
|
||||
* @param id 线体管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesLineById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除线体管理
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesLineByIds(String[] ids);
|
||||
/**
|
||||
* 选择线体
|
||||
*/
|
||||
public List<MesLine> selectLineBody(MesLine mesLine);
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package com.op.mes.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.mes.domain.MesLineProcess;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 线体管理Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-07
|
||||
*/
|
||||
@Mapper
|
||||
public interface MesLineProcessMapper {
|
||||
/**
|
||||
* 查询线体管理
|
||||
*
|
||||
* @param id 线体管理主键
|
||||
* @return 线体管理
|
||||
*/
|
||||
public MesLineProcess selectMesLineProcessById(String id);
|
||||
|
||||
public List<MesLineProcess> selectMesLineProcessByBelongTo(String belongTo);
|
||||
|
||||
/**
|
||||
* 查询线体管理列表
|
||||
*
|
||||
* @param mesLineProcess 线体管理
|
||||
* @return 线体管理集合
|
||||
*/
|
||||
public List<MesLineProcess> selectMesLineProcessList(MesLineProcess mesLineProcess);
|
||||
|
||||
/**
|
||||
* 新增线体管理
|
||||
*
|
||||
* @param mesLineProcess 线体管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMesLineProcess(MesLineProcess mesLineProcess);
|
||||
|
||||
/**
|
||||
* 修改线体管理
|
||||
*
|
||||
* @param mesLineProcess 线体管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMesLineProcess(MesLineProcess mesLineProcess);
|
||||
|
||||
/**
|
||||
* 删除线体管理
|
||||
*
|
||||
* @param id 线体管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesLineProcessById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除线体管理
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesLineProcessByIds(String[] ids);
|
||||
|
||||
public int deleteMesLineProcessByBelongTo(String belongTo);
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package com.op.mes.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.mes.domain.MesLineProcess;
|
||||
|
||||
/**
|
||||
* 线体管理Service接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-07
|
||||
*/
|
||||
public interface IMesLineProcessService {
|
||||
/**
|
||||
* 查询线体管理
|
||||
*
|
||||
* @param id 线体管理主键
|
||||
* @return 线体管理
|
||||
*/
|
||||
public MesLineProcess selectMesLineProcessById(String id);
|
||||
public List<MesLineProcess> selectMesLineProcessByBelongTo(String belongTo);
|
||||
|
||||
/**
|
||||
* 查询线体管理列表
|
||||
*
|
||||
* @param mesLineProcess 线体管理
|
||||
* @return 线体管理集合
|
||||
*/
|
||||
public List<MesLineProcess> selectMesLineProcessList(MesLineProcess mesLineProcess);
|
||||
|
||||
/**
|
||||
* 新增线体管理
|
||||
*
|
||||
* @param mesLineProcess 线体管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMesLineProcess(MesLineProcess mesLineProcess);
|
||||
|
||||
/**
|
||||
* 修改线体管理
|
||||
*
|
||||
* @param mesLineProcess 线体管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMesLineProcess(MesLineProcess mesLineProcess);
|
||||
|
||||
/**
|
||||
* 批量删除线体管理
|
||||
*
|
||||
* @param ids 需要删除的线体管理主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesLineProcessByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除线体管理信息
|
||||
*
|
||||
* @param id 线体管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesLineProcessById(String id);
|
||||
|
||||
public int deleteMesLineProcessByBelongTo(String belongTo);
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
package com.op.mes.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.mes.domain.MesLine;
|
||||
|
||||
/**
|
||||
* 线体管理Service接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-02
|
||||
*/
|
||||
public interface IMesLineService {
|
||||
/**
|
||||
* 查询线体管理
|
||||
*
|
||||
* @param id 线体管理主键
|
||||
* @return 线体管理
|
||||
*/
|
||||
public MesLine selectMesLineById(String id);
|
||||
|
||||
/**
|
||||
* 查询线体管理列表
|
||||
*
|
||||
* @param mesLine 线体管理
|
||||
* @return 线体管理集合
|
||||
*/
|
||||
public List<MesLine> selectMesLineList(MesLine mesLine);
|
||||
|
||||
/**
|
||||
* 新增线体管理
|
||||
*
|
||||
* @param mesLine 线体管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMesLine(MesLine mesLine);
|
||||
|
||||
/**
|
||||
* 修改线体管理
|
||||
*
|
||||
* @param mesLine 线体管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMesLine(MesLine mesLine);
|
||||
|
||||
/**
|
||||
* 批量删除线体管理
|
||||
*
|
||||
* @param ids 需要删除的线体管理主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesLineByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除线体管理信息
|
||||
*
|
||||
* @param id 线体管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesLineById(String id);
|
||||
|
||||
/**
|
||||
* 选择线体
|
||||
*/
|
||||
public List<MesLine> selectLineBody(MesLine mesLine);
|
||||
}
|
@ -0,0 +1,110 @@
|
||||
package com.op.mes.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.op.common.core.utils.DateUtils;
|
||||
import com.op.common.core.utils.uuid.IdUtils;
|
||||
import com.op.common.security.utils.SecurityUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.op.mes.mapper.MesLineProcessMapper;
|
||||
import com.op.mes.domain.MesLineProcess;
|
||||
import com.op.mes.service.IMesLineProcessService;
|
||||
|
||||
/**
|
||||
* 线体管理Service业务层处理
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-07
|
||||
*/
|
||||
@Service
|
||||
public class MesLineProcessServiceImpl implements IMesLineProcessService {
|
||||
@Autowired
|
||||
private MesLineProcessMapper mesLineProcessMapper;
|
||||
|
||||
/**
|
||||
* 查询线体管理
|
||||
*
|
||||
* @param id 线体管理主键
|
||||
* @return 线体管理
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public MesLineProcess selectMesLineProcessById(String id) {
|
||||
return mesLineProcessMapper.selectMesLineProcessById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MesLineProcess> selectMesLineProcessByBelongTo(String belongTo) {
|
||||
return mesLineProcessMapper.selectMesLineProcessByBelongTo(belongTo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询线体管理列表
|
||||
*
|
||||
* @param mesLineProcess 线体管理
|
||||
* @return 线体管理
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public List<MesLineProcess> selectMesLineProcessList(MesLineProcess mesLineProcess) {
|
||||
return mesLineProcessMapper.selectMesLineProcessList(mesLineProcess);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增线体管理
|
||||
*
|
||||
* @param mesLineProcess 线体管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int insertMesLineProcess(MesLineProcess mesLineProcess) {
|
||||
mesLineProcess.setId(IdUtils.fastSimpleUUID());
|
||||
mesLineProcess.setCreateTime(DateUtils.getNowDate());
|
||||
mesLineProcess.setCreateBy(SecurityUtils.getUsername());
|
||||
return mesLineProcessMapper.insertMesLineProcess(mesLineProcess);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改线体管理
|
||||
*
|
||||
* @param mesLineProcess 线体管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int updateMesLineProcess(MesLineProcess mesLineProcess) {
|
||||
mesLineProcess.setUpdateTime(DateUtils.getNowDate());
|
||||
return mesLineProcessMapper.updateMesLineProcess(mesLineProcess);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除线体管理
|
||||
*
|
||||
* @param ids 需要删除的线体管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMesLineProcessByIds(String[] ids) {
|
||||
return mesLineProcessMapper.deleteMesLineProcessByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除线体管理信息
|
||||
*
|
||||
* @param id 线体管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMesLineProcessById(String id) {
|
||||
return mesLineProcessMapper.deleteMesLineProcessById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteMesLineProcessByBelongTo(String belongTo) {
|
||||
return mesLineProcessMapper.deleteMesLineProcessByBelongTo(belongTo);
|
||||
}
|
||||
}
|
@ -0,0 +1,164 @@
|
||||
package com.op.mes.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.op.common.core.utils.DateUtils;
|
||||
import com.op.common.core.utils.uuid.IdUtils;
|
||||
import com.op.common.security.utils.SecurityUtils;
|
||||
import com.op.mes.domain.MesLineProcess;
|
||||
import com.op.mes.service.IMesLineProcessService;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.op.mes.mapper.MesLineMapper;
|
||||
import com.op.mes.domain.MesLine;
|
||||
import com.op.mes.service.IMesLineService;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.context.request.RequestContextHolder;
|
||||
import org.springframework.web.context.request.ServletRequestAttributes;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
/**
|
||||
* 线体管理Service业务层处理
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-02
|
||||
*/
|
||||
@Service
|
||||
public class MesLineServiceImpl implements IMesLineService {
|
||||
@Autowired
|
||||
private MesLineMapper mesLineMapper;
|
||||
|
||||
@Autowired
|
||||
private IMesLineProcessService mesLineProcessService;
|
||||
|
||||
/**
|
||||
* 查询线体管理
|
||||
*
|
||||
* @param id 线体管理主键
|
||||
* @return 线体管理
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public MesLine selectMesLineById(String id) {
|
||||
//查询时回显线体工艺数据
|
||||
List<MesLineProcess> mesList = mesLineProcessService.selectMesLineProcessByBelongTo(id);
|
||||
List<String> processList = mesList.stream().map(MesLineProcess::getProcessName).collect(Collectors.toList());
|
||||
MesLine mesLine = mesLineMapper.selectMesLineById(id);
|
||||
//设置线体数据
|
||||
if (!CollectionUtils.isEmpty(processList)) {
|
||||
mesLine.setProcessList(processList);
|
||||
}
|
||||
return mesLine;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询线体管理列表
|
||||
*
|
||||
* @param mesLine 线体管理
|
||||
* @return 线体管理
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public List<MesLine> selectMesLineList(MesLine mesLine) {
|
||||
return mesLineMapper.selectMesLineList(mesLine);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增线体管理
|
||||
*
|
||||
* @param mesLine 线体管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int insertMesLine(MesLine mesLine) {
|
||||
mesLine.setCreateTime(DateUtils.getNowDate());
|
||||
mesLine.setCreateBy(SecurityUtils.getUsername());
|
||||
mesLine.setId(IdUtils.fastSimpleUUID());
|
||||
// 获取工厂编码
|
||||
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
|
||||
String key = "#header.poolName";
|
||||
String factoryCode = request.getHeader(key.substring(8)).replace("ds_", "");
|
||||
mesLine.setFactoryCode(factoryCode);
|
||||
return mesLineMapper.insertMesLine(mesLine);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改线体管理
|
||||
*
|
||||
* @param mesLine 线体管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
@Transactional(propagation = Propagation.REQUIRED)
|
||||
public int updateMesLine(MesLine mesLine) {
|
||||
mesLine.setUpdateTime(DateUtils.getNowDate());
|
||||
mesLine.setUpdateBy(SecurityUtils.getUsername());
|
||||
List<String> processList = mesLine.getProcessList();
|
||||
int flag = 0;
|
||||
if (!CollectionUtils.isEmpty(processList)) {
|
||||
//删除旧的工艺项
|
||||
mesLineProcessService.deleteMesLineProcessByBelongTo(mesLine.getId());
|
||||
|
||||
String belongTo = mesLine.getId();
|
||||
String lineCode = mesLine.getLineCode();
|
||||
String lineName = mesLine.getLineName();
|
||||
// 获取工厂编码
|
||||
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
|
||||
String key = "#header.poolName";
|
||||
String factoryCode = request.getHeader(key.substring(8)).replace("ds_", "");
|
||||
|
||||
for (String processName : processList ) {
|
||||
MesLineProcess mesLineProcess = new MesLineProcess();
|
||||
mesLineProcess.setBelongTo(belongTo);
|
||||
mesLineProcess.setProcessName(processName);
|
||||
mesLineProcess.setLineCode(lineCode);
|
||||
mesLineProcess.setLineName(lineName);
|
||||
mesLineProcess.setFactoryCode(factoryCode);
|
||||
flag += mesLineProcessService.insertMesLineProcess(mesLineProcess);
|
||||
}
|
||||
}else {
|
||||
return 0;
|
||||
}
|
||||
if (flag > 0){
|
||||
return mesLineMapper.updateMesLine(mesLine);
|
||||
}else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除线体管理
|
||||
*
|
||||
* @param ids 需要删除的线体管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteMesLineByIds(String[] ids) {
|
||||
return mesLineMapper.deleteMesLineByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除线体管理信息
|
||||
*
|
||||
* @param id 线体管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMesLineById(String id) {
|
||||
return mesLineMapper.deleteMesLineById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public List<MesLine> selectLineBody(MesLine mesLine) {
|
||||
return mesLineMapper.selectLineBody(mesLine);
|
||||
}
|
||||
}
|
@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.op.mes.mapper.MesLineMapper">
|
||||
|
||||
<resultMap type="MesLine" id="MesLineResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="lineCode" column="line_code"/>
|
||||
<result property="lineName" column="line_name"/>
|
||||
<result property="useMan" column="use_man"/>
|
||||
<result property="efficiency" column="efficiency"/>
|
||||
<result property="attr1" column="attr1"/>
|
||||
<result property="attr2" column="attr2"/>
|
||||
<result property="attr3" column="attr3"/>
|
||||
<result property="attr4" column="attr4"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="factoryCode" column="factory_code"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMesLineVo">
|
||||
select id, line_code, line_name, use_man, efficiency, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, factory_code, del_flag from mes_line
|
||||
</sql>
|
||||
|
||||
<select id="selectMesLineList" parameterType="MesLine" resultMap="MesLineResult">
|
||||
<include refid="selectMesLineVo"/>
|
||||
<where>
|
||||
<if test="lineCode != null and lineCode != ''">
|
||||
and line_code = #{lineCode}
|
||||
</if>
|
||||
<if test="lineName != null and lineName != ''">
|
||||
and line_name like concat('%', #{lineName}, '%')
|
||||
</if>
|
||||
<if test="useMan != null ">
|
||||
and use_man = #{useMan}
|
||||
</if>
|
||||
<if test="efficiency != null ">
|
||||
and efficiency = #{efficiency}
|
||||
</if>
|
||||
<if test="attr1 != null and attr1 != ''">
|
||||
and attr1 = #{attr1}
|
||||
</if>
|
||||
<if test="attr2 != null and attr2 != ''">
|
||||
and attr2 = #{attr2}
|
||||
</if>
|
||||
<if test="attr3 != null and attr3 != ''">
|
||||
and attr3 = #{attr3}
|
||||
</if>
|
||||
<if test="attr4 != null and attr4 != ''">
|
||||
and attr4 = #{attr4}
|
||||
</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">
|
||||
and factory_code = #{factoryCode}
|
||||
</if>
|
||||
and del_flag = '0'
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectMesLineById" parameterType="String"
|
||||
resultMap="MesLineResult">
|
||||
<include refid="selectMesLineVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertMesLine" parameterType="MesLine">
|
||||
insert into mes_line
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="lineCode != null">line_code,</if>
|
||||
<if test="lineName != null">line_name,</if>
|
||||
<if test="useMan != null">use_man,</if>
|
||||
<if test="efficiency != null">efficiency,</if>
|
||||
<if test="attr1 != null">attr1,</if>
|
||||
<if test="attr2 != null">attr2,</if>
|
||||
<if test="attr3 != null">attr3,</if>
|
||||
<if test="attr4 != null">attr4,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="factoryCode != null">factory_code,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="lineCode != null">#{lineCode},</if>
|
||||
<if test="lineName != null">#{lineName},</if>
|
||||
<if test="useMan != null">#{useMan},</if>
|
||||
<if test="efficiency != null">#{efficiency},</if>
|
||||
<if test="attr1 != null">#{attr1},</if>
|
||||
<if test="attr2 != null">#{attr2},</if>
|
||||
<if test="attr3 != null">#{attr3},</if>
|
||||
<if test="attr4 != null">#{attr4},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="factoryCode != null">#{factoryCode},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMesLine" parameterType="MesLine">
|
||||
update mes_line
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="lineCode != null">line_code = #{lineCode},</if>
|
||||
<if test="lineName != null">line_name = #{lineName},</if>
|
||||
<if test="useMan != null">use_man = #{useMan},</if>
|
||||
<if test="efficiency != null">efficiency = #{efficiency},</if>
|
||||
<if test="attr1 != null">attr1 = #{attr1},</if>
|
||||
<if test="attr2 != null">attr2 = #{attr2},</if>
|
||||
<if test="attr3 != null">attr3 = #{attr3},</if>
|
||||
<if test="attr4 != null">attr4 = #{attr4},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
|
||||
<if test="delFlag != null">del_flag =#{delFlag},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMesLineById" parameterType="String">
|
||||
update mes_line set del_flag = '1' where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMesLineByIds" parameterType="String">
|
||||
update mes_line set del_flag = '1' where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<select id="selectLineBody" parameterType="MesLine" resultMap="MesLineResult" >
|
||||
select equipment_code line_code,
|
||||
equipment_name line_name
|
||||
from base_equipment
|
||||
where del_flag = '0'
|
||||
<if test="lineCode != null and lineCode != ''">
|
||||
and equipment_code = #{lineCode}
|
||||
</if>
|
||||
<if test="lineName != null and lineName != ''">
|
||||
and equipment_name like concat('%', #{lineName}, '%')
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
@ -0,0 +1,226 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.op.mes.mapper.MesLineProcessMapper">
|
||||
|
||||
<resultMap type="MesLineProcess" id="MesLineProcessResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="belongTo" column="belong_to"/>
|
||||
<result property="processCode" column="process_code"/>
|
||||
<result property="processName" column="process_name"/>
|
||||
<result property="quality" column="quality"/>
|
||||
<result property="attr1" column="attr1"/>
|
||||
<result property="attr2" column="attr2"/>
|
||||
<result property="attr3" column="attr3"/>
|
||||
<result property="attr4" column="attr4"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="factoryCode" column="factory_code"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="lineCode" column="line_code"/>
|
||||
<result property="lineName" column="line_name"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMesLineProcessVo">
|
||||
select id, belong_to, process_code, process_name, quality, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, factory_code, del_flag, line_code, line_name from mes_line_process
|
||||
</sql>
|
||||
|
||||
<select id="selectMesLineProcessList" parameterType="MesLineProcess" resultMap="MesLineProcessResult">
|
||||
<include refid="selectMesLineProcessVo"/>
|
||||
<where>
|
||||
<if test="belongTo != null and belongTo != ''">
|
||||
and belong_to = #{belongTo}
|
||||
</if>
|
||||
<if test="processCode != null and processCode != ''">
|
||||
and process_code = #{processCode}
|
||||
</if>
|
||||
<if test="processName != null and processName != ''">
|
||||
and process_name like concat('%', #{processName}, '%')
|
||||
</if>
|
||||
<if test="quality != null ">
|
||||
and quality = #{quality}
|
||||
</if>
|
||||
<if test="attr1 != null and attr1 != ''">
|
||||
and attr1 = #{attr1}
|
||||
</if>
|
||||
<if test="attr2 != null and attr2 != ''">
|
||||
and attr2 = #{attr2}
|
||||
</if>
|
||||
<if test="attr3 != null and attr3 != ''">
|
||||
and attr3 = #{attr3}
|
||||
</if>
|
||||
<if test="attr4 != null and attr4 != ''">
|
||||
and attr4 = #{attr4}
|
||||
</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">
|
||||
and factory_code = #{factoryCode}
|
||||
</if>
|
||||
<if test="lineCode != null and lineCode != ''">
|
||||
and line_code = #{lineCode}
|
||||
</if>
|
||||
<if test="lineName != null and lineName != ''">
|
||||
and line_name like concat('%', #{lineName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectMesLineProcessById" parameterType="String"
|
||||
resultMap="MesLineProcessResult">
|
||||
<include refid="selectMesLineProcessVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
<select id="selectMesLineProcessByBelongTo" parameterType="String"
|
||||
resultMap="MesLineProcessResult">
|
||||
<include refid="selectMesLineProcessVo"/>
|
||||
where belong_to = #{belongTo}
|
||||
</select>
|
||||
|
||||
<insert id="insertMesLineProcess" parameterType="MesLineProcess">
|
||||
insert into mes_line_process
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,
|
||||
</if>
|
||||
<if test="belongTo != null">belong_to,
|
||||
</if>
|
||||
<if test="processCode != null">process_code,
|
||||
</if>
|
||||
<if test="processName != null">process_name,
|
||||
</if>
|
||||
<if test="quality != null">quality,
|
||||
</if>
|
||||
<if test="attr1 != null">attr1,
|
||||
</if>
|
||||
<if test="attr2 != null">attr2,
|
||||
</if>
|
||||
<if test="attr3 != null">attr3,
|
||||
</if>
|
||||
<if test="attr4 != null">attr4,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
<if test="factoryCode != null">factory_code,
|
||||
</if>
|
||||
<if test="delFlag != null">del_flag,
|
||||
</if>
|
||||
<if test="lineCode != null">line_code,
|
||||
</if>
|
||||
<if test="lineName != null">line_name,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},
|
||||
</if>
|
||||
<if test="belongTo != null">#{belongTo},
|
||||
</if>
|
||||
<if test="processCode != null">#{processCode},
|
||||
</if>
|
||||
<if test="processName != null">#{processName},
|
||||
</if>
|
||||
<if test="quality != null">#{quality},
|
||||
</if>
|
||||
<if test="attr1 != null">#{attr1},
|
||||
</if>
|
||||
<if test="attr2 != null">#{attr2},
|
||||
</if>
|
||||
<if test="attr3 != null">#{attr3},
|
||||
</if>
|
||||
<if test="attr4 != null">#{attr4},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
<if test="factoryCode != null">#{factoryCode},
|
||||
</if>
|
||||
<if test="delFlag != null">#{delFlag},
|
||||
</if>
|
||||
<if test="lineCode != null">#{lineCode},
|
||||
</if>
|
||||
<if test="lineName != null">#{lineName},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMesLineProcess" parameterType="MesLineProcess">
|
||||
update mes_line_process
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="belongTo != null">belong_to =
|
||||
#{belongTo},
|
||||
</if>
|
||||
<if test="processCode != null">process_code =
|
||||
#{processCode},
|
||||
</if>
|
||||
<if test="processName != null">process_name =
|
||||
#{processName},
|
||||
</if>
|
||||
<if test="quality != null">quality =
|
||||
#{quality},
|
||||
</if>
|
||||
<if test="attr1 != null">attr1 =
|
||||
#{attr1},
|
||||
</if>
|
||||
<if test="attr2 != null">attr2 =
|
||||
#{attr2},
|
||||
</if>
|
||||
<if test="attr3 != null">attr3 =
|
||||
#{attr3},
|
||||
</if>
|
||||
<if test="attr4 != null">attr4 =
|
||||
#{attr4},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="factoryCode != null">factory_code =
|
||||
#{factoryCode},
|
||||
</if>
|
||||
<if test="delFlag != null">del_flag =
|
||||
#{delFlag},
|
||||
</if>
|
||||
<if test="lineCode != null">line_code =
|
||||
#{lineCode},
|
||||
</if>
|
||||
<if test="lineName != null">line_name =
|
||||
#{lineName},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMesLineProcessById" parameterType="String">
|
||||
delete from mes_line_process where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMesLineProcessByIds" parameterType="String">
|
||||
delete from mes_line_process where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<delete id="deleteMesLineProcessByBelongTo" parameterType="String">
|
||||
delete from mes_line_process where belong_to = #{belongTo}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,98 @@
|
||||
package com.op.wms.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.op.wms.domain.OdsProductEmbryoInventory;
|
||||
import com.op.wms.service.IOdsProductEmbryoInventoryService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.op.common.log.annotation.Log;
|
||||
import com.op.common.log.enums.BusinessType;
|
||||
import com.op.common.security.annotation.RequiresPermissions;
|
||||
import com.op.common.core.web.controller.BaseController;
|
||||
import com.op.common.core.web.domain.AjaxResult;
|
||||
import com.op.common.core.utils.poi.ExcelUtil;
|
||||
import com.op.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 成品盘点单Controller
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/systemFinished")
|
||||
public class OdsProductEmbryoInventoryController extends BaseController {
|
||||
@Autowired
|
||||
private IOdsProductEmbryoInventoryService odsProductEmbryoInventoryService;
|
||||
|
||||
/**
|
||||
* 查询成品盘点单列表
|
||||
*/
|
||||
@RequiresPermissions("systemFinished:systemFinished :list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(OdsProductEmbryoInventory odsProductEmbryoInventory) {
|
||||
startPage();
|
||||
List<OdsProductEmbryoInventory> list = odsProductEmbryoInventoryService.selectOdsProductEmbryoInventoryList(odsProductEmbryoInventory);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出成品盘点单列表
|
||||
*/
|
||||
@RequiresPermissions("systemFinished:systemFinished :export")
|
||||
@Log(title = "成品盘点单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, OdsProductEmbryoInventory odsProductEmbryoInventory) {
|
||||
List<OdsProductEmbryoInventory> list = odsProductEmbryoInventoryService.selectOdsProductEmbryoInventoryList(odsProductEmbryoInventory);
|
||||
ExcelUtil<OdsProductEmbryoInventory> util = new ExcelUtil<OdsProductEmbryoInventory>(OdsProductEmbryoInventory. class);
|
||||
util.exportExcel(response, list, "成品盘点单数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取成品盘点单详细信息
|
||||
*/
|
||||
@RequiresPermissions("systemFinished:systemFinished :query")
|
||||
@GetMapping(value = "/{ID}")
|
||||
public AjaxResult getInfo(@PathVariable("ID") String ID) {
|
||||
return success(odsProductEmbryoInventoryService.selectOdsProductEmbryoInventoryByID(ID));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增成品盘点单
|
||||
*/
|
||||
@RequiresPermissions("systemFinished:systemFinished :add")
|
||||
@Log(title = "成品盘点单", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody OdsProductEmbryoInventory odsProductEmbryoInventory) {
|
||||
return toAjax(odsProductEmbryoInventoryService.insertOdsProductEmbryoInventory(odsProductEmbryoInventory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改成品盘点单
|
||||
*/
|
||||
@RequiresPermissions("systemFinished:systemFinished :edit")
|
||||
@Log(title = "成品盘点单", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody OdsProductEmbryoInventory odsProductEmbryoInventory) {
|
||||
return toAjax(odsProductEmbryoInventoryService.updateOdsProductEmbryoInventory(odsProductEmbryoInventory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除成品盘点单
|
||||
*/
|
||||
@RequiresPermissions("systemFinished:systemFinished :remove")
|
||||
@Log(title = "成品盘点单", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{IDs}")
|
||||
public AjaxResult remove(@PathVariable String[] IDs) {
|
||||
return toAjax(odsProductEmbryoInventoryService.deleteOdsProductEmbryoInventoryByIDs(IDs));
|
||||
}
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
package com.op.wms.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.op.wms.service.IWmsProductPutService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.op.common.log.annotation.Log;
|
||||
import com.op.common.log.enums.BusinessType;
|
||||
import com.op.common.security.annotation.RequiresPermissions;
|
||||
import com.op.wms.domain.WmsRuturnPutEmbryo;
|
||||
|
||||
import com.op.common.core.web.controller.BaseController;
|
||||
import com.op.common.core.web.domain.AjaxResult;
|
||||
import com.op.common.core.utils.poi.ExcelUtil;
|
||||
import com.op.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 成品退货入库Controller
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-09
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/ruturn")
|
||||
public class WmsRuturnPutEmbryoController extends BaseController {
|
||||
@Autowired
|
||||
private IWmsProductPutService wmsProductPutService;
|
||||
|
||||
/**
|
||||
* 查询成品退货入库列表
|
||||
*/
|
||||
@RequiresPermissions("wms:ruturn:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(WmsRuturnPutEmbryo wmsRuturnPutEmbryo) {
|
||||
startPage();
|
||||
List<WmsRuturnPutEmbryo> list = wmsProductPutService.selectWmsRuturnPutEmbryoList(wmsRuturnPutEmbryo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 导出成品退货入库列表
|
||||
// */
|
||||
// @RequiresPermissions("wms:ruturn:export")
|
||||
// @Log(title = "成品退货入库", businessType = BusinessType.EXPORT)
|
||||
// @PostMapping("/export")
|
||||
// public void export(HttpServletResponse response, WmsRuturnPutEmbryo wmsRuturnPutEmbryo) {
|
||||
// List<WmsRuturnPutEmbryo> list = wmsRuturnPutEmbryoService.selectWmsRuturnPutEmbryoList(wmsRuturnPutEmbryo);
|
||||
// ExcelUtil<WmsRuturnPutEmbryo> util = new ExcelUtil<WmsRuturnPutEmbryo>(WmsRuturnPutEmbryo. class);
|
||||
// util.exportExcel(response, list, "成品退货入库数据");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 获取成品退货入库详细信息
|
||||
// */
|
||||
// @RequiresPermissions("wms:ruturn:query")
|
||||
// @GetMapping(value = "/{id}")
|
||||
// public AjaxResult getInfo(@PathVariable("id") String id) {
|
||||
// return success(wmsRuturnPutEmbryoService.selectWmsRuturnPutEmbryoById(id));
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 新增成品退货入库
|
||||
// */
|
||||
// @RequiresPermissions("wms:ruturn:add")
|
||||
// @Log(title = "成品退货入库", businessType = BusinessType.INSERT)
|
||||
// @PostMapping
|
||||
// public AjaxResult add(@RequestBody WmsRuturnPutEmbryo wmsRuturnPutEmbryo) {
|
||||
// return toAjax(wmsRuturnPutEmbryoService.insertWmsRuturnPutEmbryo(wmsRuturnPutEmbryo));
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 修改成品退货入库
|
||||
// */
|
||||
// @RequiresPermissions("wms:ruturn:edit")
|
||||
// @Log(title = "成品退货入库", businessType = BusinessType.UPDATE)
|
||||
// @PutMapping
|
||||
// public AjaxResult edit(@RequestBody WmsRuturnPutEmbryo wmsRuturnPutEmbryo) {
|
||||
// return toAjax(wmsRuturnPutEmbryoService.updateWmsRuturnPutEmbryo(wmsRuturnPutEmbryo));
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 删除成品退货入库
|
||||
// */
|
||||
// @RequiresPermissions("wms:ruturn:remove")
|
||||
// @Log(title = "成品退货入库", businessType = BusinessType.DELETE)
|
||||
// @DeleteMapping("/{ids}")
|
||||
// public AjaxResult remove(@PathVariable String[] ids) {
|
||||
// return toAjax(wmsRuturnPutEmbryoService.deleteWmsRuturnPutEmbryoByIds(ids));
|
||||
// }
|
||||
}
|
@ -0,0 +1,379 @@
|
||||
package com.op.wms.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
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.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 成品盘点单对象 ods_product_embryo_inventory
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-10
|
||||
*/
|
||||
public class OdsProductEmbryoInventory extends BaseEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 工厂编码 */
|
||||
@Excel(name = "工厂编码")
|
||||
private String siteCode;
|
||||
|
||||
/** ID */
|
||||
private String ID;
|
||||
|
||||
/** 盘点单号 */
|
||||
@Excel(name = "盘点单号")
|
||||
private String orderCode;
|
||||
|
||||
/** 型号编码 */
|
||||
@Excel(name = "型号编码")
|
||||
private String materialCode;
|
||||
/** 型号编码 */
|
||||
@Excel(name = "备注")
|
||||
private String Remark;
|
||||
|
||||
@Override
|
||||
public String getRemark() {
|
||||
return Remark;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRemark(String remark) {
|
||||
Remark = remark;
|
||||
}
|
||||
|
||||
/** 型号名称 */
|
||||
@Excel(name = "型号名称")
|
||||
private String materialDesc;
|
||||
|
||||
/** 计划日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "计划日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date planDate;
|
||||
|
||||
/** 库存数量 */
|
||||
@Excel(name = "库存数量")
|
||||
private BigDecimal locNumber;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String Unit;
|
||||
|
||||
/** 实际数量 */
|
||||
@Excel(name = "实际数量")
|
||||
private BigDecimal realityNumber;
|
||||
|
||||
/** 订单状态 */
|
||||
@Excel(name = "订单状态")
|
||||
private String orderStatus;
|
||||
|
||||
/** 用户自定义属性2 */
|
||||
@Excel(name = "用户自定义属性2")
|
||||
private String userDefined1;
|
||||
|
||||
/** 库位 */
|
||||
@Excel(name = "库位")
|
||||
private String locCode;
|
||||
|
||||
/** 用户自定义属性2 */
|
||||
@Excel(name = "用户自定义属性2")
|
||||
private String userDefined2;
|
||||
|
||||
/** 用户自定义属性3 */
|
||||
@Excel(name = "用户自定义属性3")
|
||||
private String userDefined3;
|
||||
|
||||
/** 用户自定义属性4 */
|
||||
@Excel(name = "用户自定义属性4")
|
||||
private String userDefined4;
|
||||
|
||||
/** 用户自定义属性5 */
|
||||
@Excel(name = "用户自定义属性5")
|
||||
private String userDefined5;
|
||||
|
||||
/** 用户自定义属性6 */
|
||||
@Excel(name = "用户自定义属性6")
|
||||
private String userDefined6;
|
||||
|
||||
/** 用户自定义属性7 */
|
||||
@Excel(name = "用户自定义属性7")
|
||||
private String userDefined7;
|
||||
|
||||
/** 用户自定义属性8 */
|
||||
@Excel(name = "用户自定义属性8")
|
||||
private String userDefined8;
|
||||
|
||||
/** 用户自定义属性9 */
|
||||
@Excel(name = "用户自定义属性9")
|
||||
private String userDefined9;
|
||||
|
||||
/** 用户自定义属性10 */
|
||||
@Excel(name = "用户自定义属性10")
|
||||
private String userDefined10;
|
||||
|
||||
/** 用户自定义属性11 */
|
||||
@Excel(name = "用户自定义属性11")
|
||||
private String userDefined11;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createDate;
|
||||
|
||||
/** 最后更新人 */
|
||||
@Excel(name = "最后更新人")
|
||||
private String lastUpdateBy;
|
||||
|
||||
/** 最后更新时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date lastUpdateDate;
|
||||
|
||||
/** 可用标识 */
|
||||
@Excel(name = "可用标识")
|
||||
private String Active;
|
||||
|
||||
/** 企业主键 */
|
||||
@Excel(name = "企业主键")
|
||||
private String enterpriseId;
|
||||
|
||||
/** 企业编码 */
|
||||
@Excel(name = "企业编码")
|
||||
private String enterpriseCode;
|
||||
|
||||
public void setSiteCode(String siteCode){
|
||||
this.siteCode = siteCode;
|
||||
}
|
||||
|
||||
public String getSiteCode(){
|
||||
return siteCode;
|
||||
}
|
||||
public void setID(String ID){
|
||||
this.ID = ID;
|
||||
}
|
||||
|
||||
public String getID(){
|
||||
return ID;
|
||||
}
|
||||
public void setOrderCode(String orderCode){
|
||||
this.orderCode = orderCode;
|
||||
}
|
||||
|
||||
public String getOrderCode(){
|
||||
return orderCode;
|
||||
}
|
||||
public void setMaterialCode(String materialCode){
|
||||
this.materialCode = materialCode;
|
||||
}
|
||||
|
||||
public String getMaterialCode(){
|
||||
return materialCode;
|
||||
}
|
||||
public void setMaterialDesc(String materialDesc){
|
||||
this.materialDesc = materialDesc;
|
||||
}
|
||||
|
||||
public String getMaterialDesc(){
|
||||
return materialDesc;
|
||||
}
|
||||
public void setPlanDate(Date planDate){
|
||||
this.planDate = planDate;
|
||||
}
|
||||
|
||||
public Date getPlanDate(){
|
||||
return planDate;
|
||||
}
|
||||
public void setLocNumber(BigDecimal locNumber){
|
||||
this.locNumber = locNumber;
|
||||
}
|
||||
|
||||
public BigDecimal getLocNumber(){
|
||||
return locNumber;
|
||||
}
|
||||
public void setUnit(String Unit){
|
||||
this.Unit = Unit;
|
||||
}
|
||||
|
||||
public String getUnit(){
|
||||
return Unit;
|
||||
}
|
||||
public void setRealityNumber(BigDecimal realityNumber){
|
||||
this.realityNumber = realityNumber;
|
||||
}
|
||||
|
||||
public BigDecimal getRealityNumber(){
|
||||
return realityNumber;
|
||||
}
|
||||
public void setOrderStatus(String orderStatus){
|
||||
this.orderStatus = orderStatus;
|
||||
}
|
||||
|
||||
public String getOrderStatus(){
|
||||
return orderStatus;
|
||||
}
|
||||
public void setUserDefined1(String userDefined1){
|
||||
this.userDefined1 = userDefined1;
|
||||
}
|
||||
|
||||
public String getUserDefined1(){
|
||||
return userDefined1;
|
||||
}
|
||||
public void setLocCode(String locCode){
|
||||
this.locCode = locCode;
|
||||
}
|
||||
|
||||
public String getLocCode(){
|
||||
return locCode;
|
||||
}
|
||||
public void setUserDefined2(String userDefined2){
|
||||
this.userDefined2 = userDefined2;
|
||||
}
|
||||
|
||||
public String getUserDefined2(){
|
||||
return userDefined2;
|
||||
}
|
||||
public void setUserDefined3(String userDefined3){
|
||||
this.userDefined3 = userDefined3;
|
||||
}
|
||||
|
||||
public String getUserDefined3(){
|
||||
return userDefined3;
|
||||
}
|
||||
public void setUserDefined4(String userDefined4){
|
||||
this.userDefined4 = userDefined4;
|
||||
}
|
||||
|
||||
public String getUserDefined4(){
|
||||
return userDefined4;
|
||||
}
|
||||
public void setUserDefined5(String userDefined5){
|
||||
this.userDefined5 = userDefined5;
|
||||
}
|
||||
|
||||
public String getUserDefined5(){
|
||||
return userDefined5;
|
||||
}
|
||||
public void setUserDefined6(String userDefined6){
|
||||
this.userDefined6 = userDefined6;
|
||||
}
|
||||
|
||||
public String getUserDefined6(){
|
||||
return userDefined6;
|
||||
}
|
||||
public void setUserDefined7(String userDefined7){
|
||||
this.userDefined7 = userDefined7;
|
||||
}
|
||||
|
||||
public String getUserDefined7(){
|
||||
return userDefined7;
|
||||
}
|
||||
public void setUserDefined8(String userDefined8){
|
||||
this.userDefined8 = userDefined8;
|
||||
}
|
||||
|
||||
public String getUserDefined8(){
|
||||
return userDefined8;
|
||||
}
|
||||
public void setUserDefined9(String userDefined9){
|
||||
this.userDefined9 = userDefined9;
|
||||
}
|
||||
|
||||
public String getUserDefined9(){
|
||||
return userDefined9;
|
||||
}
|
||||
public void setUserDefined10(String userDefined10){
|
||||
this.userDefined10 = userDefined10;
|
||||
}
|
||||
|
||||
public String getUserDefined10(){
|
||||
return userDefined10;
|
||||
}
|
||||
public void setUserDefined11(String userDefined11){
|
||||
this.userDefined11 = userDefined11;
|
||||
}
|
||||
|
||||
public String getUserDefined11(){
|
||||
return userDefined11;
|
||||
}
|
||||
public void setCreateDate(Date createDate){
|
||||
this.createDate = createDate;
|
||||
}
|
||||
|
||||
public Date getCreateDate(){
|
||||
return createDate;
|
||||
}
|
||||
public void setLastUpdateBy(String lastUpdateBy){
|
||||
this.lastUpdateBy = lastUpdateBy;
|
||||
}
|
||||
|
||||
public String getLastUpdateBy(){
|
||||
return lastUpdateBy;
|
||||
}
|
||||
public void setLastUpdateDate(Date lastUpdateDate){
|
||||
this.lastUpdateDate = lastUpdateDate;
|
||||
}
|
||||
|
||||
public Date getLastUpdateDate(){
|
||||
return lastUpdateDate;
|
||||
}
|
||||
public void setActive(String Active){
|
||||
this.Active = Active;
|
||||
}
|
||||
|
||||
public String getActive(){
|
||||
return Active;
|
||||
}
|
||||
public void setEnterpriseId(String enterpriseId){
|
||||
this.enterpriseId = enterpriseId;
|
||||
}
|
||||
|
||||
public String getEnterpriseId(){
|
||||
return enterpriseId;
|
||||
}
|
||||
public void setEnterpriseCode(String enterpriseCode){
|
||||
this.enterpriseCode = enterpriseCode;
|
||||
}
|
||||
|
||||
public String getEnterpriseCode(){
|
||||
return enterpriseCode;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString(){
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("siteCode",getSiteCode())
|
||||
.append("ID",getID())
|
||||
.append("orderCode",getOrderCode())
|
||||
.append("materialCode",getMaterialCode())
|
||||
.append("materialDesc",getMaterialDesc())
|
||||
.append("planDate",getPlanDate())
|
||||
.append("locNumber",getLocNumber())
|
||||
.append("Unit",getUnit())
|
||||
.append("realityNumber",getRealityNumber())
|
||||
.append("orderStatus",getOrderStatus())
|
||||
.append("userDefined1",getUserDefined1())
|
||||
.append("locCode",getLocCode())
|
||||
.append("userDefined2",getUserDefined2())
|
||||
.append("userDefined3",getUserDefined3())
|
||||
.append("userDefined4",getUserDefined4())
|
||||
.append("userDefined5",getUserDefined5())
|
||||
.append("userDefined6",getUserDefined6())
|
||||
.append("userDefined7",getUserDefined7())
|
||||
.append("userDefined8",getUserDefined8())
|
||||
.append("userDefined9",getUserDefined9())
|
||||
.append("userDefined10",getUserDefined10())
|
||||
.append("userDefined11",getUserDefined11())
|
||||
.append("Remark",getRemark())
|
||||
.append("createBy",getCreateBy())
|
||||
.append("createDate",getCreateDate())
|
||||
.append("lastUpdateBy",getLastUpdateBy())
|
||||
.append("lastUpdateDate",getLastUpdateDate())
|
||||
.append("Active",getActive())
|
||||
.append("enterpriseId",getEnterpriseId())
|
||||
.append("enterpriseCode",getEnterpriseCode())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.op.wms.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.wms.domain.OdsProductEmbryoInventory;
|
||||
|
||||
/**
|
||||
* 成品盘点单Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-10
|
||||
*/
|
||||
public interface OdsProductEmbryoInventoryMapper {
|
||||
/**
|
||||
* 查询成品盘点单
|
||||
*
|
||||
* @param ID 成品盘点单主键
|
||||
* @return 成品盘点单
|
||||
*/
|
||||
public OdsProductEmbryoInventory selectOdsProductEmbryoInventoryByID(String ID);
|
||||
|
||||
/**
|
||||
* 查询成品盘点单列表
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 成品盘点单集合
|
||||
*/
|
||||
public List<OdsProductEmbryoInventory> selectOdsProductEmbryoInventoryList(OdsProductEmbryoInventory odsProductEmbryoInventory);
|
||||
|
||||
/**
|
||||
* 新增成品盘点单
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOdsProductEmbryoInventory(OdsProductEmbryoInventory odsProductEmbryoInventory);
|
||||
|
||||
/**
|
||||
* 修改成品盘点单
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOdsProductEmbryoInventory(OdsProductEmbryoInventory odsProductEmbryoInventory);
|
||||
|
||||
/**
|
||||
* 删除成品盘点单
|
||||
*
|
||||
* @param ID 成品盘点单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOdsProductEmbryoInventoryByID(String ID);
|
||||
|
||||
/**
|
||||
* 批量删除成品盘点单
|
||||
*
|
||||
* @param IDs 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOdsProductEmbryoInventoryByIDs(String[] IDs);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.op.wms.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.wms.domain.OdsProductEmbryoInventory;
|
||||
|
||||
/**
|
||||
* 成品盘点单Service接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-10
|
||||
*/
|
||||
public interface IOdsProductEmbryoInventoryService {
|
||||
/**
|
||||
* 查询成品盘点单
|
||||
*
|
||||
* @param ID 成品盘点单主键
|
||||
* @return 成品盘点单
|
||||
*/
|
||||
public OdsProductEmbryoInventory selectOdsProductEmbryoInventoryByID(String ID);
|
||||
|
||||
/**
|
||||
* 查询成品盘点单列表
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 成品盘点单集合
|
||||
*/
|
||||
public List<OdsProductEmbryoInventory> selectOdsProductEmbryoInventoryList(OdsProductEmbryoInventory odsProductEmbryoInventory);
|
||||
|
||||
/**
|
||||
* 新增成品盘点单
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOdsProductEmbryoInventory(OdsProductEmbryoInventory odsProductEmbryoInventory);
|
||||
|
||||
/**
|
||||
* 修改成品盘点单
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOdsProductEmbryoInventory(OdsProductEmbryoInventory odsProductEmbryoInventory);
|
||||
|
||||
/**
|
||||
* 批量删除成品盘点单
|
||||
*
|
||||
* @param IDs 需要删除的成品盘点单主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOdsProductEmbryoInventoryByIDs(String[] IDs);
|
||||
|
||||
/**
|
||||
* 删除成品盘点单信息
|
||||
*
|
||||
* @param ID 成品盘点单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOdsProductEmbryoInventoryByID(String ID);
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package com.op.wms.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.op.wms.domain.OdsProductEmbryoInventory;
|
||||
import com.op.wms.mapper.OdsProductEmbryoInventoryMapper;
|
||||
import com.op.wms.service.IOdsProductEmbryoInventoryService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 成品盘点单Service业务层处理
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-10
|
||||
*/
|
||||
@Service
|
||||
public class OdsProductEmbryoInventoryServiceImpl implements IOdsProductEmbryoInventoryService {
|
||||
@Autowired
|
||||
private OdsProductEmbryoInventoryMapper odsProductEmbryoInventoryMapper;
|
||||
|
||||
/**
|
||||
* 查询成品盘点单
|
||||
*
|
||||
* @param ID 成品盘点单主键
|
||||
* @return 成品盘点单
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public OdsProductEmbryoInventory selectOdsProductEmbryoInventoryByID(String ID) {
|
||||
return odsProductEmbryoInventoryMapper.selectOdsProductEmbryoInventoryByID(ID);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询成品盘点单列表
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 成品盘点单
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public List<OdsProductEmbryoInventory> selectOdsProductEmbryoInventoryList(OdsProductEmbryoInventory odsProductEmbryoInventory) {
|
||||
return odsProductEmbryoInventoryMapper.selectOdsProductEmbryoInventoryList(odsProductEmbryoInventory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增成品盘点单
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int insertOdsProductEmbryoInventory(OdsProductEmbryoInventory odsProductEmbryoInventory) {
|
||||
return odsProductEmbryoInventoryMapper.insertOdsProductEmbryoInventory(odsProductEmbryoInventory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改成品盘点单
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int updateOdsProductEmbryoInventory(OdsProductEmbryoInventory odsProductEmbryoInventory) {
|
||||
return odsProductEmbryoInventoryMapper.updateOdsProductEmbryoInventory(odsProductEmbryoInventory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除成品盘点单
|
||||
*
|
||||
* @param IDs 需要删除的成品盘点单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteOdsProductEmbryoInventoryByIDs(String[] IDs) {
|
||||
return odsProductEmbryoInventoryMapper.deleteOdsProductEmbryoInventoryByIDs(IDs);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除成品盘点单信息
|
||||
*
|
||||
* @param ID 成品盘点单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteOdsProductEmbryoInventoryByID(String ID) {
|
||||
return odsProductEmbryoInventoryMapper.deleteOdsProductEmbryoInventoryByID(ID);
|
||||
}
|
||||
}
|
@ -0,0 +1,375 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.op.wms.mapper.OdsProductEmbryoInventoryMapper">
|
||||
|
||||
<resultMap type="OdsProductEmbryoInventory" id="OdsProductEmbryoInventoryResult">
|
||||
<result property="siteCode" column="Site_code"/>
|
||||
<result property="ID" column="ID"/>
|
||||
<result property="orderCode" column="Order_Code"/>
|
||||
<result property="materialCode" column="Material_Code"/>
|
||||
<result property="materialDesc" column="Material_Desc"/>
|
||||
<result property="planDate" column="Plan_Date"/>
|
||||
<result property="locNumber" column="Loc_Number"/>
|
||||
<result property="Unit" column="Unit"/>
|
||||
<result property="realityNumber" column="Reality_Number"/>
|
||||
<result property="orderStatus" column="Order_Status"/>
|
||||
<result property="userDefined1" column="User_Defined1"/>
|
||||
<result property="locCode" column="Loc_Code"/>
|
||||
<result property="userDefined2" column="User_Defined2"/>
|
||||
<result property="userDefined3" column="User_Defined3"/>
|
||||
<result property="userDefined4" column="User_Defined4"/>
|
||||
<result property="userDefined5" column="User_Defined5"/>
|
||||
<result property="userDefined6" column="User_Defined6"/>
|
||||
<result property="userDefined7" column="User_Defined7"/>
|
||||
<result property="userDefined8" column="User_Defined8"/>
|
||||
<result property="userDefined9" column="User_Defined9"/>
|
||||
<result property="userDefined10" column="User_Defined10"/>
|
||||
<result property="userDefined11" column="User_Defined11"/>
|
||||
<result property="Remark" column="Remark"/>
|
||||
<result property="createBy" column="Create_By"/>
|
||||
<result property="createDate" column="Create_Date"/>
|
||||
<result property="lastUpdateBy" column="Last_Update_By"/>
|
||||
<result property="lastUpdateDate" column="Last_Update_Date"/>
|
||||
<result property="Active" column="Active"/>
|
||||
<result property="enterpriseId" column="Enterprise_Id"/>
|
||||
<result property="enterpriseCode" column="Enterprise_Code"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectOdsProductEmbryoInventoryVo">
|
||||
select Site_code, ID, Order_Code, Material_Code, Material_Desc, Plan_Date, Loc_Number, Unit, Reality_Number, Order_Status, User_Defined1, Loc_Code, User_Defined2, User_Defined3, User_Defined4, User_Defined5, User_Defined6, User_Defined7, User_Defined8, User_Defined9, User_Defined10, User_Defined11, Remark, Create_By, Create_Date, Last_Update_By, Last_Update_Date, Active, Enterprise_Id, Enterprise_Code from ods_product_embryo_inventory
|
||||
</sql>
|
||||
|
||||
<select id="selectOdsProductEmbryoInventoryList" parameterType="OdsProductEmbryoInventory" resultMap="OdsProductEmbryoInventoryResult">
|
||||
<include refid="selectOdsProductEmbryoInventoryVo"/>
|
||||
<where>
|
||||
<if test="siteCode != null and siteCode != ''">
|
||||
and Site_code = #{siteCode}
|
||||
</if>
|
||||
<if test="orderCode != null and orderCode != ''">
|
||||
and Order_Code = #{orderCode}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and Material_Code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialDesc != null and materialDesc != ''">
|
||||
and Material_Desc = #{materialDesc}
|
||||
</if>
|
||||
<if test="planDate != null ">
|
||||
and Plan_Date = #{planDate}
|
||||
</if>
|
||||
<if test="locNumber != null ">
|
||||
and Loc_Number = #{locNumber}
|
||||
</if>
|
||||
<if test="Unit != null and Unit != ''">
|
||||
and Unit = #{Unit}
|
||||
</if>
|
||||
<if test="realityNumber != null ">
|
||||
and Reality_Number = #{realityNumber}
|
||||
</if>
|
||||
<if test="orderStatus != null and orderStatus != ''">
|
||||
and Order_Status = #{orderStatus}
|
||||
</if>
|
||||
<if test="userDefined1 != null and userDefined1 != ''">
|
||||
and User_Defined1 = #{userDefined1}
|
||||
</if>
|
||||
<if test="locCode != null and locCode != ''">
|
||||
and Loc_Code = #{locCode}
|
||||
</if>
|
||||
<if test="userDefined2 != null and userDefined2 != ''">
|
||||
and User_Defined2 = #{userDefined2}
|
||||
</if>
|
||||
<if test="userDefined3 != null and userDefined3 != ''">
|
||||
and User_Defined3 = #{userDefined3}
|
||||
</if>
|
||||
<if test="userDefined4 != null and userDefined4 != ''">
|
||||
and User_Defined4 = #{userDefined4}
|
||||
</if>
|
||||
<if test="userDefined5 != null and userDefined5 != ''">
|
||||
and User_Defined5 = #{userDefined5}
|
||||
</if>
|
||||
<if test="userDefined6 != null and userDefined6 != ''">
|
||||
and User_Defined6 = #{userDefined6}
|
||||
</if>
|
||||
<if test="userDefined7 != null and userDefined7 != ''">
|
||||
and User_Defined7 = #{userDefined7}
|
||||
</if>
|
||||
<if test="userDefined8 != null and userDefined8 != ''">
|
||||
and User_Defined8 = #{userDefined8}
|
||||
</if>
|
||||
<if test="userDefined9 != null and userDefined9 != ''">
|
||||
and User_Defined9 = #{userDefined9}
|
||||
</if>
|
||||
<if test="userDefined10 != null and userDefined10 != ''">
|
||||
and User_Defined10 = #{userDefined10}
|
||||
</if>
|
||||
<if test="userDefined11 != null and userDefined11 != ''">
|
||||
and User_Defined11 = #{userDefined11}
|
||||
</if>
|
||||
<if test="Remark != null and Remark != ''">
|
||||
and Remark = #{Remark}
|
||||
</if>
|
||||
<if test="createBy != null and createBy != ''">
|
||||
and Create_By = #{createBy}
|
||||
</if>
|
||||
<if test="createDate != null ">
|
||||
and Create_Date = #{createDate}
|
||||
</if>
|
||||
<if test="lastUpdateBy != null and lastUpdateBy != ''">
|
||||
and Last_Update_By = #{lastUpdateBy}
|
||||
</if>
|
||||
<if test="lastUpdateDate != null ">
|
||||
and Last_Update_Date = #{lastUpdateDate}
|
||||
</if>
|
||||
<if test="Active != null and Active != ''">
|
||||
and Active = #{Active}
|
||||
</if>
|
||||
<if test="enterpriseId != null and enterpriseId != ''">
|
||||
and Enterprise_Id = #{enterpriseId}
|
||||
</if>
|
||||
<if test="enterpriseCode != null and enterpriseCode != ''">
|
||||
and Enterprise_Code = #{enterpriseCode}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectOdsProductEmbryoInventoryByID" parameterType="String"
|
||||
resultMap="OdsProductEmbryoInventoryResult">
|
||||
<include refid="selectOdsProductEmbryoInventoryVo"/>
|
||||
where ID = #{ID}
|
||||
</select>
|
||||
|
||||
<insert id="insertOdsProductEmbryoInventory" parameterType="OdsProductEmbryoInventory">
|
||||
insert into ods_product_embryo_inventory
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="siteCode != null">Site_code,
|
||||
</if>
|
||||
<if test="ID != null">ID,
|
||||
</if>
|
||||
<if test="orderCode != null">Order_Code,
|
||||
</if>
|
||||
<if test="materialCode != null">Material_Code,
|
||||
</if>
|
||||
<if test="materialDesc != null">Material_Desc,
|
||||
</if>
|
||||
<if test="planDate != null">Plan_Date,
|
||||
</if>
|
||||
<if test="locNumber != null">Loc_Number,
|
||||
</if>
|
||||
<if test="Unit != null">Unit,
|
||||
</if>
|
||||
<if test="realityNumber != null">Reality_Number,
|
||||
</if>
|
||||
<if test="orderStatus != null">Order_Status,
|
||||
</if>
|
||||
<if test="userDefined1 != null">User_Defined1,
|
||||
</if>
|
||||
<if test="locCode != null">Loc_Code,
|
||||
</if>
|
||||
<if test="userDefined2 != null">User_Defined2,
|
||||
</if>
|
||||
<if test="userDefined3 != null">User_Defined3,
|
||||
</if>
|
||||
<if test="userDefined4 != null">User_Defined4,
|
||||
</if>
|
||||
<if test="userDefined5 != null">User_Defined5,
|
||||
</if>
|
||||
<if test="userDefined6 != null">User_Defined6,
|
||||
</if>
|
||||
<if test="userDefined7 != null">User_Defined7,
|
||||
</if>
|
||||
<if test="userDefined8 != null">User_Defined8,
|
||||
</if>
|
||||
<if test="userDefined9 != null">User_Defined9,
|
||||
</if>
|
||||
<if test="userDefined10 != null">User_Defined10,
|
||||
</if>
|
||||
<if test="userDefined11 != null">User_Defined11,
|
||||
</if>
|
||||
<if test="Remark != null">Remark,
|
||||
</if>
|
||||
<if test="createBy != null">Create_By,
|
||||
</if>
|
||||
<if test="createDate != null">Create_Date,
|
||||
</if>
|
||||
<if test="lastUpdateBy != null">Last_Update_By,
|
||||
</if>
|
||||
<if test="lastUpdateDate != null">Last_Update_Date,
|
||||
</if>
|
||||
<if test="Active != null">Active,
|
||||
</if>
|
||||
<if test="enterpriseId != null">Enterprise_Id,
|
||||
</if>
|
||||
<if test="enterpriseCode != null">Enterprise_Code,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="siteCode != null">#{siteCode},
|
||||
</if>
|
||||
<if test="ID != null">#{ID},
|
||||
</if>
|
||||
<if test="orderCode != null">#{orderCode},
|
||||
</if>
|
||||
<if test="materialCode != null">#{materialCode},
|
||||
</if>
|
||||
<if test="materialDesc != null">#{materialDesc},
|
||||
</if>
|
||||
<if test="planDate != null">#{planDate},
|
||||
</if>
|
||||
<if test="locNumber != null">#{locNumber},
|
||||
</if>
|
||||
<if test="Unit != null">#{Unit},
|
||||
</if>
|
||||
<if test="realityNumber != null">#{realityNumber},
|
||||
</if>
|
||||
<if test="orderStatus != null">#{orderStatus},
|
||||
</if>
|
||||
<if test="userDefined1 != null">#{userDefined1},
|
||||
</if>
|
||||
<if test="locCode != null">#{locCode},
|
||||
</if>
|
||||
<if test="userDefined2 != null">#{userDefined2},
|
||||
</if>
|
||||
<if test="userDefined3 != null">#{userDefined3},
|
||||
</if>
|
||||
<if test="userDefined4 != null">#{userDefined4},
|
||||
</if>
|
||||
<if test="userDefined5 != null">#{userDefined5},
|
||||
</if>
|
||||
<if test="userDefined6 != null">#{userDefined6},
|
||||
</if>
|
||||
<if test="userDefined7 != null">#{userDefined7},
|
||||
</if>
|
||||
<if test="userDefined8 != null">#{userDefined8},
|
||||
</if>
|
||||
<if test="userDefined9 != null">#{userDefined9},
|
||||
</if>
|
||||
<if test="userDefined10 != null">#{userDefined10},
|
||||
</if>
|
||||
<if test="userDefined11 != null">#{userDefined11},
|
||||
</if>
|
||||
<if test="Remark != null">#{Remark},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="createDate != null">#{createDate},
|
||||
</if>
|
||||
<if test="lastUpdateBy != null">#{lastUpdateBy},
|
||||
</if>
|
||||
<if test="lastUpdateDate != null">#{lastUpdateDate},
|
||||
</if>
|
||||
<if test="Active != null">#{Active},
|
||||
</if>
|
||||
<if test="enterpriseId != null">#{enterpriseId},
|
||||
</if>
|
||||
<if test="enterpriseCode != null">#{enterpriseCode},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateOdsProductEmbryoInventory" parameterType="OdsProductEmbryoInventory">
|
||||
update ods_product_embryo_inventory
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="siteCode != null">Site_code =
|
||||
#{siteCode},
|
||||
</if>
|
||||
<if test="orderCode != null">Order_Code =
|
||||
#{orderCode},
|
||||
</if>
|
||||
<if test="materialCode != null">Material_Code =
|
||||
#{materialCode},
|
||||
</if>
|
||||
<if test="materialDesc != null">Material_Desc =
|
||||
#{materialDesc},
|
||||
</if>
|
||||
<if test="planDate != null">Plan_Date =
|
||||
#{planDate},
|
||||
</if>
|
||||
<if test="locNumber != null">Loc_Number =
|
||||
#{locNumber},
|
||||
</if>
|
||||
<if test="Unit != null">Unit =
|
||||
#{Unit},
|
||||
</if>
|
||||
<if test="realityNumber != null">Reality_Number =
|
||||
#{realityNumber},
|
||||
</if>
|
||||
<if test="orderStatus != null">Order_Status =
|
||||
#{orderStatus},
|
||||
</if>
|
||||
<if test="userDefined1 != null">User_Defined1 =
|
||||
#{userDefined1},
|
||||
</if>
|
||||
<if test="locCode != null">Loc_Code =
|
||||
#{locCode},
|
||||
</if>
|
||||
<if test="userDefined2 != null">User_Defined2 =
|
||||
#{userDefined2},
|
||||
</if>
|
||||
<if test="userDefined3 != null">User_Defined3 =
|
||||
#{userDefined3},
|
||||
</if>
|
||||
<if test="userDefined4 != null">User_Defined4 =
|
||||
#{userDefined4},
|
||||
</if>
|
||||
<if test="userDefined5 != null">User_Defined5 =
|
||||
#{userDefined5},
|
||||
</if>
|
||||
<if test="userDefined6 != null">User_Defined6 =
|
||||
#{userDefined6},
|
||||
</if>
|
||||
<if test="userDefined7 != null">User_Defined7 =
|
||||
#{userDefined7},
|
||||
</if>
|
||||
<if test="userDefined8 != null">User_Defined8 =
|
||||
#{userDefined8},
|
||||
</if>
|
||||
<if test="userDefined9 != null">User_Defined9 =
|
||||
#{userDefined9},
|
||||
</if>
|
||||
<if test="userDefined10 != null">User_Defined10 =
|
||||
#{userDefined10},
|
||||
</if>
|
||||
<if test="userDefined11 != null">User_Defined11 =
|
||||
#{userDefined11},
|
||||
</if>
|
||||
<if test="Remark != null">Remark =
|
||||
#{Remark},
|
||||
</if>
|
||||
<if test="createBy != null">Create_By =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="createDate != null">Create_Date =
|
||||
#{createDate},
|
||||
</if>
|
||||
<if test="lastUpdateBy != null">Last_Update_By =
|
||||
#{lastUpdateBy},
|
||||
</if>
|
||||
<if test="lastUpdateDate != null">Last_Update_Date =
|
||||
#{lastUpdateDate},
|
||||
</if>
|
||||
<if test="Active != null">Active =
|
||||
#{Active},
|
||||
</if>
|
||||
<if test="enterpriseId != null">Enterprise_Id =
|
||||
#{enterpriseId},
|
||||
</if>
|
||||
<if test="enterpriseCode != null">Enterprise_Code =
|
||||
#{enterpriseCode},
|
||||
</if>
|
||||
</trim>
|
||||
where ID = #{ID}
|
||||
</update>
|
||||
|
||||
<delete id="deleteOdsProductEmbryoInventoryByID" parameterType="String">
|
||||
delete from ods_product_embryo_inventory where ID = #{ID}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteOdsProductEmbryoInventoryByIDs" parameterType="String">
|
||||
delete from ods_product_embryo_inventory where ID in
|
||||
<foreach item="ID" collection="array" open="(" separator="," close=")">
|
||||
#{ID}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Loading…
Reference in New Issue