Jelajahi Sumber

新增卡号填涂位数

wangliang 2 tahun lalu
induk
melakukan
ac9b3d998f

+ 9 - 0
distributed-print-business/src/main/java/com/qmth/distributed/print/business/bean/dto/CardRuleDto.java

@@ -30,6 +30,15 @@ public class CardRuleDto {
     private String createId;
     private Long createTime;
     private List<SysOrg> orgs;
+    private Integer fillNumber;
+
+    public Integer getFillNumber() {
+        return fillNumber;
+    }
+
+    public void setFillNumber(Integer fillNumber) {
+        this.fillNumber = fillNumber;
+    }
 
     public String getId() {
         return id;

+ 12 - 0
distributed-print-business/src/main/java/com/qmth/distributed/print/business/entity/BasicCardRule.java

@@ -103,10 +103,22 @@ public class BasicCardRule extends BaseEntity implements Serializable {
      */
     private String remark;
 
+    @ApiModelProperty(value = "卡号填涂位数")
+    @TableField("fill_number")
+    private Integer fillNumber;
+
     @JsonSerialize(using = ToStringSerializer.class)
     @TableField(exist = false)
     private Long[] orgIds;
 
+    public Integer getFillNumber() {
+        return fillNumber;
+    }
+
+    public void setFillNumber(Integer fillNumber) {
+        this.fillNumber = fillNumber;
+    }
+
     public static long getSerialVersionUID() {
         return serialVersionUID;
     }

+ 1 - 0
distributed-print-business/src/main/resources/db/1、init-table.sql

@@ -84,6 +84,7 @@ CREATE TABLE `basic_card_rule` (
                                    `create_time` bigint DEFAULT NULL COMMENT '创建时间',
                                    `update_id` bigint DEFAULT NULL COMMENT '更新人',
                                    `update_time` bigint DEFAULT NULL COMMENT '更新时间',
+                                   `fill_number` tinyint DEFAULT NULL COMMENT '卡号填涂位数',
                                    PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='题卡规则';
 

+ 2 - 1
distributed-print-business/src/main/resources/mapper/BasicCardRuleMapper.xml

@@ -24,11 +24,12 @@
         <result column="create_time" property="createTime" />
         <result column="update_id" property="updateId" />
         <result column="update_time" property="updateTime" />
+        <result column="fill_number" property="fillNumber" />
     </resultMap>
 
     <!-- 通用查询结果列 -->
     <sql id="Base_Column_List">
-        select id, school_id, name, exam_number_style, paper_type, exam_absent, write_sign, discipline, required_fields, extend_fields, title_rule, attention, objective_attention, subjective_attention, enable, remark, create_id, create_time, update_id, update_time from basic_card_rule
+        select id, school_id, name, exam_number_style, paper_type, exam_absent, write_sign, discipline, required_fields, extend_fields, title_rule, attention, objective_attention, subjective_attention, enable, remark, create_id, create_time, update_id, update_time, fill_number from basic_card_rule
     </sql>
     <select id="listPage" resultType="com.qmth.distributed.print.business.bean.dto.CardRuleDto">
         <include refid="Base_Column_List"></include>