diff --git a/src/main/java/club/joylink/rtss/entity/paper/PaperComposition.java b/src/main/java/club/joylink/rtss/entity/paper/PaperComposition.java index 7a5fc9fb1..93152d27a 100644 --- a/src/main/java/club/joylink/rtss/entity/paper/PaperComposition.java +++ b/src/main/java/club/joylink/rtss/entity/paper/PaperComposition.java @@ -28,7 +28,7 @@ public class PaperComposition implements Serializable { /** * 组织id */ - private String companyId; + private Long orgId; /** * 启用起始时间 diff --git a/src/main/java/club/joylink/rtss/entity/paper/PaperCompositionExample.java b/src/main/java/club/joylink/rtss/entity/paper/PaperCompositionExample.java index 399256f4b..76513cace 100644 --- a/src/main/java/club/joylink/rtss/entity/paper/PaperCompositionExample.java +++ b/src/main/java/club/joylink/rtss/entity/paper/PaperCompositionExample.java @@ -325,73 +325,63 @@ public class PaperCompositionExample { return (Criteria) this; } - public Criteria andCompanyIdIsNull() { - addCriterion("company_id is null"); + public Criteria andOrgIdIsNull() { + addCriterion("org_id is null"); return (Criteria) this; } - public Criteria andCompanyIdIsNotNull() { - addCriterion("company_id is not null"); + public Criteria andOrgIdIsNotNull() { + addCriterion("org_id is not null"); return (Criteria) this; } - public Criteria andCompanyIdEqualTo(String value) { - addCriterion("company_id =", value, "companyId"); + public Criteria andOrgIdEqualTo(Long value) { + addCriterion("org_id =", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdNotEqualTo(String value) { - addCriterion("company_id <>", value, "companyId"); + public Criteria andOrgIdNotEqualTo(Long value) { + addCriterion("org_id <>", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdGreaterThan(String value) { - addCriterion("company_id >", value, "companyId"); + public Criteria andOrgIdGreaterThan(Long value) { + addCriterion("org_id >", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdGreaterThanOrEqualTo(String value) { - addCriterion("company_id >=", value, "companyId"); + public Criteria andOrgIdGreaterThanOrEqualTo(Long value) { + addCriterion("org_id >=", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdLessThan(String value) { - addCriterion("company_id <", value, "companyId"); + public Criteria andOrgIdLessThan(Long value) { + addCriterion("org_id <", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdLessThanOrEqualTo(String value) { - addCriterion("company_id <=", value, "companyId"); + public Criteria andOrgIdLessThanOrEqualTo(Long value) { + addCriterion("org_id <=", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdLike(String value) { - addCriterion("company_id like", value, "companyId"); + public Criteria andOrgIdIn(List values) { + addCriterion("org_id in", values, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdNotLike(String value) { - addCriterion("company_id not like", value, "companyId"); + public Criteria andOrgIdNotIn(List values) { + addCriterion("org_id not in", values, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdIn(List values) { - addCriterion("company_id in", values, "companyId"); + public Criteria andOrgIdBetween(Long value1, Long value2) { + addCriterion("org_id between", value1, value2, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdNotIn(List values) { - addCriterion("company_id not in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdBetween(String value1, String value2) { - addCriterion("company_id between", value1, value2, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotBetween(String value1, String value2) { - addCriterion("company_id not between", value1, value2, "companyId"); + public Criteria andOrgIdNotBetween(Long value1, Long value2) { + addCriterion("org_id not between", value1, value2, "orgId"); return (Criteria) this; } diff --git a/src/main/java/club/joylink/rtss/entity/paper/PaperRule.java b/src/main/java/club/joylink/rtss/entity/paper/PaperRule.java index bb793ae03..99f78d54d 100644 --- a/src/main/java/club/joylink/rtss/entity/paper/PaperRule.java +++ b/src/main/java/club/joylink/rtss/entity/paper/PaperRule.java @@ -37,7 +37,7 @@ public class PaperRule implements Serializable { /** * 该类型题目数量 */ - private Integer sum; + private Integer amount; /** * 每题分值 diff --git a/src/main/java/club/joylink/rtss/entity/paper/PaperRuleExample.java b/src/main/java/club/joylink/rtss/entity/paper/PaperRuleExample.java index cdaace55b..0aea7493f 100644 --- a/src/main/java/club/joylink/rtss/entity/paper/PaperRuleExample.java +++ b/src/main/java/club/joylink/rtss/entity/paper/PaperRuleExample.java @@ -434,63 +434,63 @@ public class PaperRuleExample { return (Criteria) this; } - public Criteria andSumIsNull() { - addCriterion("`sum` is null"); + public Criteria andAmountIsNull() { + addCriterion("amount is null"); return (Criteria) this; } - public Criteria andSumIsNotNull() { - addCriterion("`sum` is not null"); + public Criteria andAmountIsNotNull() { + addCriterion("amount is not null"); return (Criteria) this; } - public Criteria andSumEqualTo(Integer value) { - addCriterion("`sum` =", value, "sum"); + public Criteria andAmountEqualTo(Integer value) { + addCriterion("amount =", value, "amount"); return (Criteria) this; } - public Criteria andSumNotEqualTo(Integer value) { - addCriterion("`sum` <>", value, "sum"); + public Criteria andAmountNotEqualTo(Integer value) { + addCriterion("amount <>", value, "amount"); return (Criteria) this; } - public Criteria andSumGreaterThan(Integer value) { - addCriterion("`sum` >", value, "sum"); + public Criteria andAmountGreaterThan(Integer value) { + addCriterion("amount >", value, "amount"); return (Criteria) this; } - public Criteria andSumGreaterThanOrEqualTo(Integer value) { - addCriterion("`sum` >=", value, "sum"); + public Criteria andAmountGreaterThanOrEqualTo(Integer value) { + addCriterion("amount >=", value, "amount"); return (Criteria) this; } - public Criteria andSumLessThan(Integer value) { - addCriterion("`sum` <", value, "sum"); + public Criteria andAmountLessThan(Integer value) { + addCriterion("amount <", value, "amount"); return (Criteria) this; } - public Criteria andSumLessThanOrEqualTo(Integer value) { - addCriterion("`sum` <=", value, "sum"); + public Criteria andAmountLessThanOrEqualTo(Integer value) { + addCriterion("amount <=", value, "amount"); return (Criteria) this; } - public Criteria andSumIn(List values) { - addCriterion("`sum` in", values, "sum"); + public Criteria andAmountIn(List values) { + addCriterion("amount in", values, "amount"); return (Criteria) this; } - public Criteria andSumNotIn(List values) { - addCriterion("`sum` not in", values, "sum"); + public Criteria andAmountNotIn(List values) { + addCriterion("amount not in", values, "amount"); return (Criteria) this; } - public Criteria andSumBetween(Integer value1, Integer value2) { - addCriterion("`sum` between", value1, value2, "sum"); + public Criteria andAmountBetween(Integer value1, Integer value2) { + addCriterion("amount between", value1, value2, "amount"); return (Criteria) this; } - public Criteria andSumNotBetween(Integer value1, Integer value2) { - addCriterion("`sum` not between", value1, value2, "sum"); + public Criteria andAmountNotBetween(Integer value1, Integer value2) { + addCriterion("amount not between", value1, value2, "amount"); return (Criteria) this; } diff --git a/src/main/java/club/joylink/rtss/entity/paper/PaperUser.java b/src/main/java/club/joylink/rtss/entity/paper/PaperUser.java index 246a6623f..ae08a3cdf 100644 --- a/src/main/java/club/joylink/rtss/entity/paper/PaperUser.java +++ b/src/main/java/club/joylink/rtss/entity/paper/PaperUser.java @@ -28,7 +28,7 @@ public class PaperUser implements Serializable { /** * 组织id */ - private String companyId; + private Long orgId; /** * 用户最终得分 diff --git a/src/main/java/club/joylink/rtss/entity/paper/PaperUserExample.java b/src/main/java/club/joylink/rtss/entity/paper/PaperUserExample.java index 519ecb62c..f01601d12 100644 --- a/src/main/java/club/joylink/rtss/entity/paper/PaperUserExample.java +++ b/src/main/java/club/joylink/rtss/entity/paper/PaperUserExample.java @@ -305,73 +305,63 @@ public class PaperUserExample { return (Criteria) this; } - public Criteria andCompanyIdIsNull() { - addCriterion("company_id is null"); + public Criteria andOrgIdIsNull() { + addCriterion("org_id is null"); return (Criteria) this; } - public Criteria andCompanyIdIsNotNull() { - addCriterion("company_id is not null"); + public Criteria andOrgIdIsNotNull() { + addCriterion("org_id is not null"); return (Criteria) this; } - public Criteria andCompanyIdEqualTo(String value) { - addCriterion("company_id =", value, "companyId"); + public Criteria andOrgIdEqualTo(Long value) { + addCriterion("org_id =", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdNotEqualTo(String value) { - addCriterion("company_id <>", value, "companyId"); + public Criteria andOrgIdNotEqualTo(Long value) { + addCriterion("org_id <>", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdGreaterThan(String value) { - addCriterion("company_id >", value, "companyId"); + public Criteria andOrgIdGreaterThan(Long value) { + addCriterion("org_id >", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdGreaterThanOrEqualTo(String value) { - addCriterion("company_id >=", value, "companyId"); + public Criteria andOrgIdGreaterThanOrEqualTo(Long value) { + addCriterion("org_id >=", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdLessThan(String value) { - addCriterion("company_id <", value, "companyId"); + public Criteria andOrgIdLessThan(Long value) { + addCriterion("org_id <", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdLessThanOrEqualTo(String value) { - addCriterion("company_id <=", value, "companyId"); + public Criteria andOrgIdLessThanOrEqualTo(Long value) { + addCriterion("org_id <=", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdLike(String value) { - addCriterion("company_id like", value, "companyId"); + public Criteria andOrgIdIn(List values) { + addCriterion("org_id in", values, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdNotLike(String value) { - addCriterion("company_id not like", value, "companyId"); + public Criteria andOrgIdNotIn(List values) { + addCriterion("org_id not in", values, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdIn(List values) { - addCriterion("company_id in", values, "companyId"); + public Criteria andOrgIdBetween(Long value1, Long value2) { + addCriterion("org_id between", value1, value2, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdNotIn(List values) { - addCriterion("company_id not in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdBetween(String value1, String value2) { - addCriterion("company_id between", value1, value2, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotBetween(String value1, String value2) { - addCriterion("company_id not between", value1, value2, "companyId"); + public Criteria andOrgIdNotBetween(Long value1, Long value2) { + addCriterion("org_id not between", value1, value2, "orgId"); return (Criteria) this; } diff --git a/src/main/java/club/joylink/rtss/entity/paper/PaperUserQuestion.java b/src/main/java/club/joylink/rtss/entity/paper/PaperUserQuestion.java index 26715d391..80db38f41 100644 --- a/src/main/java/club/joylink/rtss/entity/paper/PaperUserQuestion.java +++ b/src/main/java/club/joylink/rtss/entity/paper/PaperUserQuestion.java @@ -22,7 +22,7 @@ public class PaperUserQuestion implements Serializable { /** * 组织id */ - private String companyId; + private Long orgId; /** * 试题类型:1-理论题,2-实训题 diff --git a/src/main/java/club/joylink/rtss/entity/paper/PaperUserQuestionExample.java b/src/main/java/club/joylink/rtss/entity/paper/PaperUserQuestionExample.java index 4b4e3a415..d3c729fa9 100644 --- a/src/main/java/club/joylink/rtss/entity/paper/PaperUserQuestionExample.java +++ b/src/main/java/club/joylink/rtss/entity/paper/PaperUserQuestionExample.java @@ -244,73 +244,63 @@ public class PaperUserQuestionExample { return (Criteria) this; } - public Criteria andCompanyIdIsNull() { - addCriterion("company_id is null"); + public Criteria andOrgIdIsNull() { + addCriterion("org_id is null"); return (Criteria) this; } - public Criteria andCompanyIdIsNotNull() { - addCriterion("company_id is not null"); + public Criteria andOrgIdIsNotNull() { + addCriterion("org_id is not null"); return (Criteria) this; } - public Criteria andCompanyIdEqualTo(String value) { - addCriterion("company_id =", value, "companyId"); + public Criteria andOrgIdEqualTo(Long value) { + addCriterion("org_id =", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdNotEqualTo(String value) { - addCriterion("company_id <>", value, "companyId"); + public Criteria andOrgIdNotEqualTo(Long value) { + addCriterion("org_id <>", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdGreaterThan(String value) { - addCriterion("company_id >", value, "companyId"); + public Criteria andOrgIdGreaterThan(Long value) { + addCriterion("org_id >", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdGreaterThanOrEqualTo(String value) { - addCriterion("company_id >=", value, "companyId"); + public Criteria andOrgIdGreaterThanOrEqualTo(Long value) { + addCriterion("org_id >=", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdLessThan(String value) { - addCriterion("company_id <", value, "companyId"); + public Criteria andOrgIdLessThan(Long value) { + addCriterion("org_id <", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdLessThanOrEqualTo(String value) { - addCriterion("company_id <=", value, "companyId"); + public Criteria andOrgIdLessThanOrEqualTo(Long value) { + addCriterion("org_id <=", value, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdLike(String value) { - addCriterion("company_id like", value, "companyId"); + public Criteria andOrgIdIn(List values) { + addCriterion("org_id in", values, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdNotLike(String value) { - addCriterion("company_id not like", value, "companyId"); + public Criteria andOrgIdNotIn(List values) { + addCriterion("org_id not in", values, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdIn(List values) { - addCriterion("company_id in", values, "companyId"); + public Criteria andOrgIdBetween(Long value1, Long value2) { + addCriterion("org_id between", value1, value2, "orgId"); return (Criteria) this; } - public Criteria andCompanyIdNotIn(List values) { - addCriterion("company_id not in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdBetween(String value1, String value2) { - addCriterion("company_id between", value1, value2, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotBetween(String value1, String value2) { - addCriterion("company_id not between", value1, value2, "companyId"); + public Criteria andOrgIdNotBetween(Long value1, Long value2) { + addCriterion("org_id not between", value1, value2, "orgId"); return (Criteria) this; } diff --git a/src/main/resources/mybatis/mapper/PaperCompositionDAO.xml b/src/main/resources/mybatis/mapper/PaperCompositionDAO.xml index 66d2134da..65a595af0 100644 --- a/src/main/resources/mybatis/mapper/PaperCompositionDAO.xml +++ b/src/main/resources/mybatis/mapper/PaperCompositionDAO.xml @@ -5,7 +5,7 @@ - + @@ -74,8 +74,8 @@ - id, `name`, profile, company_id, start_time, end_time, valid_duration, pass_score, - creator_id, create_time, update_time, `state` + id, `name`, profile, org_id, start_time, end_time, valid_duration, pass_score, creator_id, + create_time, update_time, `state` select @@ -111,10 +111,10 @@ insert into paper_rule (id, pc_id, `type`, - subType, tags, `sum`, + subType, tags, amount, score) values (#{id,jdbcType=BIGINT}, #{pcId,jdbcType=BIGINT}, #{type,jdbcType=INTEGER}, - #{subtype,jdbcType=INTEGER}, #{tags,jdbcType=VARCHAR}, #{sum,jdbcType=INTEGER}, + #{subtype,jdbcType=INTEGER}, #{tags,jdbcType=VARCHAR}, #{amount,jdbcType=INTEGER}, #{score,jdbcType=INTEGER}) @@ -135,8 +135,8 @@ tags, - - `sum`, + + amount, score, @@ -158,8 +158,8 @@ #{tags,jdbcType=VARCHAR}, - - #{sum,jdbcType=INTEGER}, + + #{amount,jdbcType=INTEGER}, #{score,jdbcType=INTEGER}, @@ -190,8 +190,8 @@ tags = #{record.tags,jdbcType=VARCHAR}, - - `sum` = #{record.sum,jdbcType=INTEGER}, + + amount = #{record.amount,jdbcType=INTEGER}, score = #{record.score,jdbcType=INTEGER}, @@ -208,7 +208,7 @@ `type` = #{record.type,jdbcType=INTEGER}, subType = #{record.subtype,jdbcType=INTEGER}, tags = #{record.tags,jdbcType=VARCHAR}, - `sum` = #{record.sum,jdbcType=INTEGER}, + amount = #{record.amount,jdbcType=INTEGER}, score = #{record.score,jdbcType=INTEGER} @@ -229,8 +229,8 @@ tags = #{tags,jdbcType=VARCHAR}, - - `sum` = #{sum,jdbcType=INTEGER}, + + amount = #{amount,jdbcType=INTEGER}, score = #{score,jdbcType=INTEGER}, @@ -244,7 +244,7 @@ `type` = #{type,jdbcType=INTEGER}, subType = #{subtype,jdbcType=INTEGER}, tags = #{tags,jdbcType=VARCHAR}, - `sum` = #{sum,jdbcType=INTEGER}, + amount = #{amount,jdbcType=INTEGER}, score = #{score,jdbcType=INTEGER} where id = #{id,jdbcType=BIGINT} diff --git a/src/main/resources/mybatis/mapper/PaperUserDAO.xml b/src/main/resources/mybatis/mapper/PaperUserDAO.xml index 4f20ea74e..e5718591e 100644 --- a/src/main/resources/mybatis/mapper/PaperUserDAO.xml +++ b/src/main/resources/mybatis/mapper/PaperUserDAO.xml @@ -5,7 +5,7 @@ - + @@ -71,7 +71,7 @@ - id, user_id, pc_id, company_id, score, start_time, end_time, cause, create_time + id, user_id, pc_id, org_id, score, start_time, end_time, cause, create_time select @@ -109,10 +109,10 @@ - insert into paper_user_question (id, pu_id, company_id, + insert into paper_user_question (id, pu_id, org_id, `type`, question_id, `state` ) - values (#{id,jdbcType=BIGINT}, #{puId,jdbcType=BIGINT}, #{companyId,jdbcType=VARCHAR}, + values (#{id,jdbcType=BIGINT}, #{puId,jdbcType=BIGINT}, #{orgId,jdbcType=BIGINT}, #{type,jdbcType=INTEGER}, #{questionId,jdbcType=BIGINT}, #{state,jdbcType=INTEGER} ) @@ -125,8 +125,8 @@ pu_id, - - company_id, + + org_id, `type`, @@ -145,8 +145,8 @@ #{puId,jdbcType=BIGINT}, - - #{companyId,jdbcType=VARCHAR}, + + #{orgId,jdbcType=BIGINT}, #{type,jdbcType=INTEGER}, @@ -174,8 +174,8 @@ pu_id = #{record.puId,jdbcType=BIGINT}, - - company_id = #{record.companyId,jdbcType=VARCHAR}, + + org_id = #{record.orgId,jdbcType=BIGINT}, `type` = #{record.type,jdbcType=INTEGER}, @@ -195,7 +195,7 @@ update paper_user_question set id = #{record.id,jdbcType=BIGINT}, pu_id = #{record.puId,jdbcType=BIGINT}, - company_id = #{record.companyId,jdbcType=VARCHAR}, + org_id = #{record.orgId,jdbcType=BIGINT}, `type` = #{record.type,jdbcType=INTEGER}, question_id = #{record.questionId,jdbcType=BIGINT}, `state` = #{record.state,jdbcType=INTEGER} @@ -209,8 +209,8 @@ pu_id = #{puId,jdbcType=BIGINT}, - - company_id = #{companyId,jdbcType=VARCHAR}, + + org_id = #{orgId,jdbcType=BIGINT}, `type` = #{type,jdbcType=INTEGER}, @@ -227,7 +227,7 @@ update paper_user_question set pu_id = #{puId,jdbcType=BIGINT}, - company_id = #{companyId,jdbcType=VARCHAR}, + org_id = #{orgId,jdbcType=BIGINT}, `type` = #{type,jdbcType=INTEGER}, question_id = #{questionId,jdbcType=BIGINT}, `state` = #{state,jdbcType=INTEGER}