jinlin
2024-04-09 4d2033854f0770dba993bff26ea09a0a523682fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.zt.life.modules.mainPart.taskReliability.model;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zt.common.entity.BusiEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
 
/**
 * model_line
 *
 * @author zt generator
 * @since 1.0.0 2024-02-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("model_node_algorithm")
public class ModelNodeAlgorithm extends ModelNode {
 
    public static ModelNodeAlgorithm from(ModelNode node) {
        ModelNodeAlgorithm modelNodeAlgorithm = new ModelNodeAlgorithm();
        modelNodeAlgorithm.setId(node.getId());
        modelNodeAlgorithm.setPicId(node.getPicId());
        modelNodeAlgorithm.setModelId(node.getModelId());
        modelNodeAlgorithm.setDataId(node.getDataId());
        modelNodeAlgorithm.setNodeType(node.getNodeType());
        modelNodeAlgorithm.setNodeTypeExt(node.getNodeTypeExt());
        modelNodeAlgorithm.setName(node.getName());
        modelNodeAlgorithm.setVoteNum(node.getVoteNum());
        modelNodeAlgorithm.setRemark(node.getRemark());
        modelNodeAlgorithm.setInLineNum(node.getInLineNum());
        modelNodeAlgorithm.setOutLineNum(node.getOutLineNum());
        modelNodeAlgorithm.setPositionX(node.getPositionX());
        modelNodeAlgorithm.setPositionY(node.getPositionY());
        return modelNodeAlgorithm;
    }
}