|
|
@ -36,6 +36,7 @@ |
|
|
|
<result column="pci_status" jdbcType="TINYINT" property="pciStatus" /> |
|
|
|
<result column="submit_status" jdbcType="TINYINT" property="submitStatus" /> |
|
|
|
<result column="province" jdbcType="VARCHAR" property="province" /> |
|
|
|
<result column="position_id" jdbcType="BIGINT" property="positionId" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
@ -101,7 +102,7 @@ |
|
|
|
dnt_number, dnt_number_four, dnt_number_six, sich_number, jmrs_number_one, ais_number_six, |
|
|
|
should_directly, dpt_median_number, prt_median_number, jmrs_number_two, death_number, |
|
|
|
user_id, questionnaire_id, created_at, updated_at, rec_status, pci_status, submit_status, |
|
|
|
province |
|
|
|
province, position_id |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.QuestionnaireDetailExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -145,7 +146,7 @@ |
|
|
|
jmrs_number_two, death_number, user_id, |
|
|
|
questionnaire_id, created_at, updated_at, |
|
|
|
rec_status, pci_status, submit_status, |
|
|
|
province) |
|
|
|
province, position_id) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{city,jdbcType=VARCHAR}, #{county,jdbcType=VARCHAR}, |
|
|
|
#{hospitalLevel,jdbcType=TINYINT}, #{hospitalName,jdbcType=VARCHAR}, #{departments,jdbcType=VARCHAR}, |
|
|
|
#{name,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{advancedStrokeCenter,jdbcType=TINYINT}, |
|
|
@ -157,7 +158,7 @@ |
|
|
|
#{jmrsNumberTwo,jdbcType=INTEGER}, #{deathNumber,jdbcType=INTEGER}, #{userId,jdbcType=BIGINT}, |
|
|
|
#{questionnaireId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}, #{pciStatus,jdbcType=TINYINT}, #{submitStatus,jdbcType=TINYINT}, |
|
|
|
#{province,jdbcType=VARCHAR}) |
|
|
|
#{province,jdbcType=VARCHAR}, #{positionId,jdbcType=BIGINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.QuestionnaireDetail"> |
|
|
|
insert into t_qcp_questionnaire_detail |
|
|
@ -264,6 +265,9 @@ |
|
|
|
<if test="province != null"> |
|
|
|
province, |
|
|
|
</if> |
|
|
|
<if test="positionId != null"> |
|
|
|
position_id, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
@ -368,6 +372,9 @@ |
|
|
|
<if test="province != null"> |
|
|
|
#{province,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="positionId != null"> |
|
|
|
#{positionId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.ccsens.carbasics.bean.po.QuestionnaireDetailExample" resultType="java.lang.Long"> |
|
|
@ -481,6 +488,9 @@ |
|
|
|
<if test="record.province != null"> |
|
|
|
province = #{record.province,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.positionId != null"> |
|
|
|
position_id = #{record.positionId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -521,7 +531,8 @@ |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
pci_status = #{record.pciStatus,jdbcType=TINYINT}, |
|
|
|
submit_status = #{record.submitStatus,jdbcType=TINYINT}, |
|
|
|
province = #{record.province,jdbcType=VARCHAR} |
|
|
|
province = #{record.province,jdbcType=VARCHAR}, |
|
|
|
position_id = #{record.positionId,jdbcType=BIGINT} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
@ -628,6 +639,9 @@ |
|
|
|
<if test="province != null"> |
|
|
|
province = #{province,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="positionId != null"> |
|
|
|
position_id = #{positionId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
@ -665,7 +679,8 @@ |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
pci_status = #{pciStatus,jdbcType=TINYINT}, |
|
|
|
submit_status = #{submitStatus,jdbcType=TINYINT}, |
|
|
|
province = #{province,jdbcType=VARCHAR} |
|
|
|
province = #{province,jdbcType=VARCHAR}, |
|
|
|
position_id = #{positionId,jdbcType=BIGINT} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |