Commit 07f359cf authored by 鲁鑫's avatar 鲁鑫

工艺实体类

parent 63d7e601
package com.huigou.topsun.technology.application;
/**
* @author 16508
* @description 针对表【process_material_item(工序物料关系表)】的数据库操作Service
* @createDate 2023-11-22 11:04:03
*/
public interface ProcessMaterialItemService {
}
package com.huigou.topsun.technology.application;
/**
* @author 16508
* @description 针对表【process_resource(工序资源)】的数据库操作Service
* @createDate 2023-11-22 11:04:03
*/
public interface ProcessResourceService {
}
package com.huigou.topsun.technology.application;
/**
* @author 16508
* @description 针对表【process(工序)】的数据库操作Service
* @createDate 2023-11-22 11:04:03
*/
public interface ProcessService {
}
package com.huigou.topsun.technology.application;
/**
* @author 16508
* @description 针对表【technology_process(工艺工序关系表)】的数据库操作Service
* @createDate 2023-11-22 11:04:03
*/
public interface TechnologyProcessService {
}
package com.huigou.topsun.technology.application;
/**
* @author 16508
* @description 针对表【technology(工艺)】的数据库操作Service
* @createDate 2023-11-22 11:04:03
*/
public interface TechnologyService {
}
package com.huigou.topsun.technology.application.impl;
import com.huigou.topsun.technology.application.ProcessMaterialItemService;
import org.springframework.stereotype.Service;
/**
* @author 16508
* @description 针对表【process_material_item(工序物料关系表)】的数据库操作Service实现
* @createDate 2023-11-22 11:04:03
*/
@Service
public class ProcessMaterialItemServiceImpl implements ProcessMaterialItemService{
}
package com.huigou.topsun.technology.application.impl;
import com.huigou.topsun.technology.application.ProcessResourceService;
import org.springframework.stereotype.Service;
/**
* @author 16508
* @description 针对表【process_resource(工序资源)】的数据库操作Service实现
* @createDate 2023-11-22 11:04:03
*/
@Service
public class ProcessResourceServiceImpl implements ProcessResourceService{
}
package com.huigou.topsun.technology.application.impl;
import com.huigou.topsun.technology.application.ProcessService;
import org.springframework.stereotype.Service;
/**
* @author 16508
* @description 针对表【process(工序)】的数据库操作Service实现
* @createDate 2023-11-22 11:04:03
*/
@Service
public class ProcessServiceImpl implements ProcessService{
}
package com.huigou.topsun.technology.application.impl;
import com.huigou.topsun.technology.application.TechnologyProcessService;
import org.springframework.stereotype.Service;
/**
* @author 16508
* @description 针对表【technology_process(工艺工序关系表)】的数据库操作Service实现
* @createDate 2023-11-22 11:04:03
*/
@Service
public class TechnologyProcessServiceImpl implements TechnologyProcessService{
}
package com.huigou.topsun.technology.application.impl;
import com.huigou.topsun.technology.application.TechnologyService;
import org.springframework.stereotype.Service;
/**
* @author 16508
* @description 针对表【technology(工艺)】的数据库操作Service实现
* @createDate 2023-11-22 11:04:03
*/
@Service
public class TechnologyServiceImpl implements TechnologyService{
}
package com.huigou.topsun.technology.domain;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
/**
* 工序
* @TableName process
*/
@Table(name="process")
@Data
public class Process implements Serializable {
/**
* 工序ID
*/
@Id
@Column(name = "process_id")
private String processId;
/**
* 工序名称
*/
@Column(name = "process_name")
private String processName;
/**
* 工序说明
*/
@Column(name = "process_remark")
private String processRemark;
/**
* 工时
*/
@Column(name = "work_hours")
private Double workHours;
/**
* 工序类别(process_type)
*/
@Column(name = "process_type")
private String processType;
/**
* 工序内容
*/
@Column(name = "process_content")
private String processContent;
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
Process other = (Process) that;
return (this.getProcessId() == null ? other.getProcessId() == null : this.getProcessId().equals(other.getProcessId()))
&& (this.getProcessName() == null ? other.getProcessName() == null : this.getProcessName().equals(other.getProcessName()))
&& (this.getProcessRemark() == null ? other.getProcessRemark() == null : this.getProcessRemark().equals(other.getProcessRemark()))
&& (this.getWorkHours() == null ? other.getWorkHours() == null : this.getWorkHours().equals(other.getWorkHours()))
&& (this.getProcessType() == null ? other.getProcessType() == null : this.getProcessType().equals(other.getProcessType()))
&& (this.getProcessContent() == null ? other.getProcessContent() == null : this.getProcessContent().equals(other.getProcessContent()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getProcessId() == null) ? 0 : getProcessId().hashCode());
result = prime * result + ((getProcessName() == null) ? 0 : getProcessName().hashCode());
result = prime * result + ((getProcessRemark() == null) ? 0 : getProcessRemark().hashCode());
result = prime * result + ((getWorkHours() == null) ? 0 : getWorkHours().hashCode());
result = prime * result + ((getProcessType() == null) ? 0 : getProcessType().hashCode());
result = prime * result + ((getProcessContent() == null) ? 0 : getProcessContent().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", processId=").append(processId);
sb.append(", processName=").append(processName);
sb.append(", processRemark=").append(processRemark);
sb.append(", workHours=").append(workHours);
sb.append(", processType=").append(processType);
sb.append(", processContent=").append(processContent);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.huigou.topsun.technology.domain;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
/**
* 工序物料关系表
* @TableName process_material_item
*/
@Table(name="process_material_item")
@Data
public class ProcessMaterialItem implements Serializable {
/**
* 工艺物料关系ID
*/
@Id
@Column(name = "process_material_item_id")
private String processMaterialItemId;
/**
* 工艺ID
*/
@Column(name = "technology_process_id")
private String technologyProcessId;
/**
* 物料ID
*/
@Column(name = "material_id")
private String materialId;
/**
* 使用的物料数量
*/
@Column(name = "material_number")
private Double materialNumber;
/**
* 物料计量单位
*/
@Column(name = "material_unit")
private String materialUnit;
/**
* sap物料相信内容
*/
@Column(name = "material_json")
private String materialJson;
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
ProcessMaterialItem other = (ProcessMaterialItem) that;
return (this.getProcessMaterialItemId() == null ? other.getProcessMaterialItemId() == null : this.getProcessMaterialItemId().equals(other.getProcessMaterialItemId()))
&& (this.getTechnologyProcessId() == null ? other.getTechnologyProcessId() == null : this.getTechnologyProcessId().equals(other.getTechnologyProcessId()))
&& (this.getMaterialId() == null ? other.getMaterialId() == null : this.getMaterialId().equals(other.getMaterialId()))
&& (this.getMaterialNumber() == null ? other.getMaterialNumber() == null : this.getMaterialNumber().equals(other.getMaterialNumber()))
&& (this.getMaterialUnit() == null ? other.getMaterialUnit() == null : this.getMaterialUnit().equals(other.getMaterialUnit()))
&& (this.getMaterialJson() == null ? other.getMaterialJson() == null : this.getMaterialJson().equals(other.getMaterialJson()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getProcessMaterialItemId() == null) ? 0 : getProcessMaterialItemId().hashCode());
result = prime * result + ((getTechnologyProcessId() == null) ? 0 : getTechnologyProcessId().hashCode());
result = prime * result + ((getMaterialId() == null) ? 0 : getMaterialId().hashCode());
result = prime * result + ((getMaterialNumber() == null) ? 0 : getMaterialNumber().hashCode());
result = prime * result + ((getMaterialUnit() == null) ? 0 : getMaterialUnit().hashCode());
result = prime * result + ((getMaterialJson() == null) ? 0 : getMaterialJson().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", processMaterialItemId=").append(processMaterialItemId);
sb.append(", technologyProcessId=").append(technologyProcessId);
sb.append(", materialId=").append(materialId);
sb.append(", materialNumber=").append(materialNumber);
sb.append(", materialUnit=").append(materialUnit);
sb.append(", materialJson=").append(materialJson);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.huigou.topsun.technology.domain;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
/**
* 工序资源
* @TableName process_resource
*/
@Table(name="process_resource")
@Data
public class ProcessResource implements Serializable {
/**
* ID
*/
@Id
@Column(name = "process_resource_id")
private String processResourceId;
/**
* 所属工序ID
*/
@Column(name = "technology_process_id")
private String technologyProcessId;
/**
* 使用的资源ID
*/
@Column(name = "resource_id")
private String resourceId;
/**
* 版本号
*/
private String version;
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
ProcessResource other = (ProcessResource) that;
return (this.getProcessResourceId() == null ? other.getProcessResourceId() == null : this.getProcessResourceId().equals(other.getProcessResourceId()))
&& (this.getTechnologyProcessId() == null ? other.getTechnologyProcessId() == null : this.getTechnologyProcessId().equals(other.getTechnologyProcessId()))
&& (this.getResourceId() == null ? other.getResourceId() == null : this.getResourceId().equals(other.getResourceId()))
&& (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getProcessResourceId() == null) ? 0 : getProcessResourceId().hashCode());
result = prime * result + ((getTechnologyProcessId() == null) ? 0 : getTechnologyProcessId().hashCode());
result = prime * result + ((getResourceId() == null) ? 0 : getResourceId().hashCode());
result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", processResourceId=").append(processResourceId);
sb.append(", technologyProcessId=").append(technologyProcessId);
sb.append(", resourceId=").append(resourceId);
sb.append(", version=").append(version);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.huigou.topsun.technology.domain;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
/**
* 工艺
* @TableName technology
*/
@Table(name="technology")
@Data
public class Technology implements Serializable {
/**
* 工艺路线ID
*/
@Id
@Column(name = "technology_id")
private String technologyId;
/**
* 工艺路线名称
*/
@Column(name = "technology_name")
private String technologyName;
/**
* 产品ID
*/
@Column(name = "product_id")
private String productId;
/**
* 工艺版本
*/
@Column(name = "technology_version")
private String technologyVersion;
/**
* 工艺类型(technology_type)
*/
@Column(name = "technology_type")
private String technologyType;
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
Technology other = (Technology) that;
return (this.getTechnologyId() == null ? other.getTechnologyId() == null : this.getTechnologyId().equals(other.getTechnologyId()))
&& (this.getTechnologyName() == null ? other.getTechnologyName() == null : this.getTechnologyName().equals(other.getTechnologyName()))
&& (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
&& (this.getTechnologyVersion() == null ? other.getTechnologyVersion() == null : this.getTechnologyVersion().equals(other.getTechnologyVersion()))
&& (this.getTechnologyType() == null ? other.getTechnologyType() == null : this.getTechnologyType().equals(other.getTechnologyType()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getTechnologyId() == null) ? 0 : getTechnologyId().hashCode());
result = prime * result + ((getTechnologyName() == null) ? 0 : getTechnologyName().hashCode());
result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
result = prime * result + ((getTechnologyVersion() == null) ? 0 : getTechnologyVersion().hashCode());
result = prime * result + ((getTechnologyType() == null) ? 0 : getTechnologyType().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", technologyId=").append(technologyId);
sb.append(", technologyName=").append(technologyName);
sb.append(", productId=").append(productId);
sb.append(", technologyVersion=").append(technologyVersion);
sb.append(", technologyType=").append(technologyType);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.huigou.topsun.technology.domain;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
/**
* 工艺工序关系表
* @TableName technology_process
*/
@Table(name="technology_process")
@Data
public class TechnologyProcess implements Serializable {
/**
* 工艺节点条目ID
*/
@Id
@Column(name = "technology_process_id")
private String technologyProcessId;
/**
* 工艺ID
*/
@Column(name = "technology_id")
private String technologyId;
/**
* 工序ID
*/
@Column(name = "process_id")
private String processId;
/**
* 条目序号
*/
@Column(name = "sort_num")
private Integer sortNum;
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
TechnologyProcess other = (TechnologyProcess) that;
return (this.getTechnologyProcessId() == null ? other.getTechnologyProcessId() == null : this.getTechnologyProcessId().equals(other.getTechnologyProcessId()))
&& (this.getTechnologyId() == null ? other.getTechnologyId() == null : this.getTechnologyId().equals(other.getTechnologyId()))
&& (this.getProcessId() == null ? other.getProcessId() == null : this.getProcessId().equals(other.getProcessId()))
&& (this.getSortNum() == null ? other.getSortNum() == null : this.getSortNum().equals(other.getSortNum()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getTechnologyProcessId() == null) ? 0 : getTechnologyProcessId().hashCode());
result = prime * result + ((getTechnologyId() == null) ? 0 : getTechnologyId().hashCode());
result = prime * result + ((getProcessId() == null) ? 0 : getProcessId().hashCode());
result = prime * result + ((getSortNum() == null) ? 0 : getSortNum().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", technologyProcessId=").append(technologyProcessId);
sb.append(", technologyId=").append(technologyId);
sb.append(", processId=").append(processId);
sb.append(", sortNum=").append(sortNum);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.huigou.topsun.technology.mapper;
import com.topsunit.query.annotations.Mapper;
/**
* @author 16508
* @description 针对表【process(工序)】的数据库操作Mapper
* @createDate 2023-11-22 11:04:03
* @Entity com.huigou.topsun.technology.domain.Process
*/
@Mapper(xml = "config/topsun/mapper/technology/ProcessMapper.xml")
public interface ProcessMapper {
}
package com.huigou.topsun.technology.mapper;
import com.topsunit.query.annotations.Mapper;
/**
* @author 16508
* @description 针对表【process_material_item(工序物料关系表)】的数据库操作Mapper
* @createDate 2023-11-22 11:04:03
* @Entity com.huigou.topsun.technology.domain.ProcessMaterialItem
*/
@Mapper(xml = "config/topsun/mapper/technology/ProcessMaterialItemMapper.xml")
public interface ProcessMaterialItemMapper {
}
package com.huigou.topsun.technology.mapper;
import com.topsunit.query.annotations.Mapper;
/**
* @author 16508
* @description 针对表【process_resource(工序资源)】的数据库操作Mapper
* @createDate 2023-11-22 11:04:03
* @Entity com.huigou.topsun.technology.domain.ProcessResource
*/
@Mapper(xml = "config/topsun/mapper/technology/ProcessResourceMapper.xml")
public interface ProcessResourceMapper {
}
package com.huigou.topsun.technology.mapper;
import com.topsunit.query.annotations.Mapper;
/**
* @author 16508
* @description 针对表【technology(工艺)】的数据库操作Mapper
* @createDate 2023-11-22 11:04:03
* @Entity com.huigou.topsun.technology.domain.Technology
*/
@Mapper(xml = "config/topsun/mapper/technology/TechnologyMapper.xml")
public interface TechnologyMapper {
}
package com.huigou.topsun.technology.mapper;
import com.topsunit.query.annotations.Mapper;
/**
* @author 16508
* @description 针对表【technology_process(工艺工序关系表)】的数据库操作Mapper
* @createDate 2023-11-22 11:04:03
* @Entity com.huigou.topsun.technology.domain.TechnologyProcess
*/
@Mapper(xml = "config/topsun/mapper/technology/TechnologyProcessMapper.xml")
public interface TechnologyProcessMapper {
}
package com.huigou.topsun.technology.repository;
import com.huigou.topsun.technology.domain.ProcessMaterialItem;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* @Auther: xin.lu
* @Date: 2023/11/22/11:11
* @Description:
*/
public interface ProcessMaterialItemRepository extends JpaRepository<ProcessMaterialItem,String> {
}
package com.huigou.topsun.technology.repository;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* @Auther: xin.lu
* @Date: 2023/11/22/11:11
* @Description:
*/
public interface ProcessRepository extends JpaRepository<Process,String> {
}
package com.huigou.topsun.technology.repository;
import com.huigou.topsun.technology.domain.ProcessResource;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* @Auther: xin.lu
* @Date: 2023/11/22/11:12
* @Description:
*/
public interface ProcessResourceRepository extends JpaRepository<ProcessResource,String> {
}
package com.huigou.topsun.technology.repository;
import com.huigou.topsun.technology.domain.TechnologyProcess;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* @Auther: xin.lu
* @Date: 2023/11/22/11:12
* @Description:
*/
public interface TechnologyProcessRepository extends JpaRepository<TechnologyProcess,String> {
}
package com.huigou.topsun.technology.repository;
import com.huigou.topsun.technology.domain.Technology;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* @Auther: xin.lu
* @Date: 2023/11/22/11:12
* @Description:
*/
public interface TechnologyRepository extends JpaRepository<Technology,String> {
}
<?xml version="1.0" encoding="UTF-8"?>
<query-mappings>
</query-mappings>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<query-mappings>
</query-mappings>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<query-mappings>
</query-mappings>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<query-mappings>
</query-mappings>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<query-mappings>
</query-mappings>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment