|
|
@ -8,6 +8,8 @@ |
|
|
|
<result column="sort" jdbcType="INTEGER" property="sort" /> |
|
|
|
<result column="units" jdbcType="VARCHAR" property="units" /> |
|
|
|
<result column="type" jdbcType="TINYINT" property="type" /> |
|
|
|
<result column="reference_lower" jdbcType="DECIMAL" property="referenceLower" /> |
|
|
|
<result column="reference_upper" jdbcType="DECIMAL" property="referenceUpper" /> |
|
|
|
<result column="relevance_option_id" jdbcType="BIGINT" property="relevanceOptionId" /> |
|
|
|
<result column="search_criteria" jdbcType="TINYINT" property="searchCriteria" /> |
|
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|
|
@ -75,8 +77,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, question, code, sort, units, type, relevance_option_id, search_criteria, remark, |
|
|
|
operator, created_at, updated_at, rec_status |
|
|
|
id, question, code, sort, units, type, reference_lower, reference_upper, relevance_option_id, |
|
|
|
search_criteria, remark, operator, created_at, updated_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.QuestionExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -111,14 +113,16 @@ |
|
|
|
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.Question"> |
|
|
|
insert into t_question (id, question, code, |
|
|
|
sort, units, type, |
|
|
|
relevance_option_id, search_criteria, remark, |
|
|
|
operator, created_at, updated_at, |
|
|
|
rec_status) |
|
|
|
reference_lower, reference_upper, relevance_option_id, |
|
|
|
search_criteria, remark, operator, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{question,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, |
|
|
|
#{sort,jdbcType=INTEGER}, #{units,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, |
|
|
|
#{relevanceOptionId,jdbcType=BIGINT}, #{searchCriteria,jdbcType=TINYINT}, #{remark,jdbcType=VARCHAR}, |
|
|
|
#{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
#{referenceLower,jdbcType=DECIMAL}, #{referenceUpper,jdbcType=DECIMAL}, #{relevanceOptionId,jdbcType=BIGINT}, |
|
|
|
#{searchCriteria,jdbcType=TINYINT}, #{remark,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.Question"> |
|
|
|
insert into t_question |
|
|
@ -141,6 +145,12 @@ |
|
|
|
<if test="type != null"> |
|
|
|
type, |
|
|
|
</if> |
|
|
|
<if test="referenceLower != null"> |
|
|
|
reference_lower, |
|
|
|
</if> |
|
|
|
<if test="referenceUpper != null"> |
|
|
|
reference_upper, |
|
|
|
</if> |
|
|
|
<if test="relevanceOptionId != null"> |
|
|
|
relevance_option_id, |
|
|
|
</if> |
|
|
@ -182,6 +192,12 @@ |
|
|
|
<if test="type != null"> |
|
|
|
#{type,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="referenceLower != null"> |
|
|
|
#{referenceLower,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="referenceUpper != null"> |
|
|
|
#{referenceUpper,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="relevanceOptionId != null"> |
|
|
|
#{relevanceOptionId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -232,6 +248,12 @@ |
|
|
|
<if test="record.type != null"> |
|
|
|
type = #{record.type,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.referenceLower != null"> |
|
|
|
reference_lower = #{record.referenceLower,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="record.referenceUpper != null"> |
|
|
|
reference_upper = #{record.referenceUpper,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="record.relevanceOptionId != null"> |
|
|
|
relevance_option_id = #{record.relevanceOptionId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -266,6 +288,8 @@ |
|
|
|
sort = #{record.sort,jdbcType=INTEGER}, |
|
|
|
units = #{record.units,jdbcType=VARCHAR}, |
|
|
|
type = #{record.type,jdbcType=TINYINT}, |
|
|
|
reference_lower = #{record.referenceLower,jdbcType=DECIMAL}, |
|
|
|
reference_upper = #{record.referenceUpper,jdbcType=DECIMAL}, |
|
|
|
relevance_option_id = #{record.relevanceOptionId,jdbcType=BIGINT}, |
|
|
|
search_criteria = #{record.searchCriteria,jdbcType=TINYINT}, |
|
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
@ -295,6 +319,12 @@ |
|
|
|
<if test="type != null"> |
|
|
|
type = #{type,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="referenceLower != null"> |
|
|
|
reference_lower = #{referenceLower,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="referenceUpper != null"> |
|
|
|
reference_upper = #{referenceUpper,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="relevanceOptionId != null"> |
|
|
|
relevance_option_id = #{relevanceOptionId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -326,6 +356,8 @@ |
|
|
|
sort = #{sort,jdbcType=INTEGER}, |
|
|
|
units = #{units,jdbcType=VARCHAR}, |
|
|
|
type = #{type,jdbcType=TINYINT}, |
|
|
|
reference_lower = #{referenceLower,jdbcType=DECIMAL}, |
|
|
|
reference_upper = #{referenceUpper,jdbcType=DECIMAL}, |
|
|
|
relevance_option_id = #{relevanceOptionId,jdbcType=BIGINT}, |
|
|
|
search_criteria = #{searchCriteria,jdbcType=TINYINT}, |
|
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
|