gaoluyang
昨天 8c65f898ed6e5b0c7a94c792c4562f6ec831dccd
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package cn.iocoder.yudao.module.mes.dal.dataobject.pro.wage;
 
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
 
import java.math.BigDecimal;
 
/**
 * MES 质量工资规则 DO
 *
 * <p>按过程检验合格率区间调整报工工资:系数连乘或按不合格数量扣款。
 *
 * @author 超级管理员
 */
@TableName("mes_pro_wage_quality_rule")
@KeySequence("mes_pro_wage_quality_rule_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MesProWageQualityRuleDO extends BaseDO {
 
    /** 规则类型:合格率系数 */
    public static final int RULE_TYPE_COEFFICIENT = 1;
    /** 规则类型:不合格扣款 */
    public static final int RULE_TYPE_DEDUCTION = 2;
 
    @TableId
    private Long id;
    /**
     * 工序编号
     */
    private Long processId;
    /**
     * 工艺路线编号,空=不限路线
     */
    private Long routeId;
    /**
     * 规则类型:1-合格率系数 2-不合格扣款
     */
    private Integer ruleType;
    /**
     * 合格率下限(含),百分比
     */
    private BigDecimal minRate;
    /**
     * 合格率上限(不含),百分比;100 表示无上限
     */
    private BigDecimal maxRate;
    /**
     * 系数
     */
    private BigDecimal coefficient;
    /**
     * 每件扣款
     */
    private BigDecimal deductionPerUnit;
    /**
     * 优先级,越大越优先
     */
    private Integer priority;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 备注
     */
    private String remark;
 
}