whycxzp
2022-08-02 f6841f4fa4b1ea10810123b5f283e8a79470ced7
更新散装件对象
3个文件已添加
266 ■■■■■ 已修改文件
src/main/java/com/whyc/factory/FaceEngineFactory.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/pojo/Component.java 205 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/pojo/ComponentProduct.java 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/factory/FaceEngineFactory.java
New file
@@ -0,0 +1,11 @@
package com.whyc.factory;
import com.arcsoft.face.FaceEngine;
import com.whyc.util.FaceIdentifyUtil;
public class FaceEngineFactory {
    private static FaceEngine faceEngine = FaceIdentifyUtil.init();
    public static FaceEngine getInstance() {
        return faceEngine;
    }
}
src/main/java/com/whyc/pojo/Component.java
New file
@@ -0,0 +1,205 @@
package com.whyc.pojo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import org.apache.ibatis.type.Alias;
import java.io.Serializable;
import java.util.Date;
/**
 * 散装件
 */
@TableName(schema = "db_doc",value = "tb_component")
@Alias("Component")
public class Component {
    private Integer   id;
    @ApiModelProperty("母料编号")
    private String type;
    @ApiModelProperty("类别")
    private String     category;
    @ApiModelProperty("子件编码")
    private String     subCode;
    @ApiModelProperty("子件名称")
    private String     subName;
    @ApiModelProperty("子件型号")
    private String     subModel;
    @ApiModelProperty("单位")
    private String     unit;
    @ApiModelProperty("子件数量")
    private Integer   quantity;
    @ApiModelProperty("生产商")
    private String     producer;
    @ApiModelProperty("封装类型/材质")
    private String     material;
    @ApiModelProperty("元件编号/料厚")
    private String     thickness;
    @ApiModelProperty("表面处理/物料详情")
    private String     surfaceDetail;
    @ApiModelProperty("备注")
    private String     notes;
    private String     pictureUrl;
    private String     fileUrl;
    @ApiModelProperty("上传人")
    private Long     upUserId;
    private Date    createDate;
    private Date updateDate;
    @ApiModelProperty("工程图纸url")
    private String dwgUrl;
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public String getCategory() {
        return category;
    }
    public void setCategory(String category) {
        this.category = category;
    }
    public String getSubCode() {
        return subCode;
    }
    public void setSubCode(String subCode) {
        this.subCode = subCode;
    }
    public String getSubName() {
        return subName;
    }
    public void setSubName(String subName) {
        this.subName = subName;
    }
    public String getSubModel() {
        return subModel;
    }
    public void setSubModel(String subModel) {
        this.subModel = subModel;
    }
    public String getUnit() {
        return unit;
    }
    public void setUnit(String unit) {
        this.unit = unit;
    }
    public Integer getQuantity() {
        return quantity;
    }
    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }
    public String getProducer() {
        return producer;
    }
    public void setProducer(String producer) {
        this.producer = producer;
    }
    public String getMaterial() {
        return material;
    }
    public void setMaterial(String material) {
        this.material = material;
    }
    public String getThickness() {
        return thickness;
    }
    public void setThickness(String thickness) {
        this.thickness = thickness;
    }
    public String getSurfaceDetail() {
        return surfaceDetail;
    }
    public void setSurfaceDetail(String surfaceDetail) {
        this.surfaceDetail = surfaceDetail;
    }
    public String getNotes() {
        return notes;
    }
    public void setNotes(String notes) {
        this.notes = notes;
    }
    public String getPictureUrl() {
        return pictureUrl;
    }
    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl;
    }
    public String getFileUrl() {
        return fileUrl;
    }
    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }
    public Long getUpUserId() {
        return upUserId;
    }
    public void setUpUserId(Long upUserId) {
        this.upUserId = upUserId;
    }
    public Date getCreateDate() {
        return createDate;
    }
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
    public Date getUpdateDate() {
        return updateDate;
    }
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
    public String getDwgUrl() {
        return dwgUrl;
    }
    public void setDwgUrl(String dwgUrl) {
        this.dwgUrl = dwgUrl;
    }
}
src/main/java/com/whyc/pojo/ComponentProduct.java
New file
@@ -0,0 +1,50 @@
package com.whyc.pojo;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import org.apache.ibatis.type.Alias;
@TableName(schema = "db_doc",value = "tb_component_product")
@Alias("ComponentProduct")
public class ComponentProduct {
    private Integer id;
    @ApiModelProperty("散装件id")
    private Integer componentId;
    @ApiModelProperty("母料型号")
    private String parentModel;
    @ApiModelProperty("子件名称")
    private String subName;
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getComponentId() {
        return componentId;
    }
    public void setComponentId(Integer componentId) {
        this.componentId = componentId;
    }
    public String getParentModel() {
        return parentModel;
    }
    public void setParentModel(String parentModel) {
        this.parentModel = parentModel;
    }
    public String getSubName() {
        return subName;
    }
    public void setSubName(String subName) {
        this.subName = subName;
    }
}