|
|
@ -33,6 +33,9 @@ |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
|
<result column="pci_status" jdbcType="TINYINT" property="pciStatus" /> |
|
|
|
<result column="submit_status" jdbcType="TINYINT" property="submitStatus" /> |
|
|
|
<result column="province" jdbcType="VARCHAR" property="province" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
@ -97,7 +100,8 @@ |
|
|
|
stroke_center, map_hospital, stroke_number, ais_number_four, jmrs_number_four, rtpa_number, |
|
|
|
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 |
|
|
|
user_id, questionnaire_id, created_at, updated_at, rec_status, pci_status, submit_status, |
|
|
|
province |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.QuestionnaireDetailExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -140,7 +144,8 @@ |
|
|
|
should_directly, dpt_median_number, prt_median_number, |
|
|
|
jmrs_number_two, death_number, user_id, |
|
|
|
questionnaire_id, created_at, updated_at, |
|
|
|
rec_status) |
|
|
|
rec_status, pci_status, submit_status, |
|
|
|
province) |
|
|
|
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}, |
|
|
@ -151,7 +156,8 @@ |
|
|
|
#{shouldDirectly,jdbcType=INTEGER}, #{dptMedianNumber,jdbcType=INTEGER}, #{prtMedianNumber,jdbcType=INTEGER}, |
|
|
|
#{jmrsNumberTwo,jdbcType=INTEGER}, #{deathNumber,jdbcType=INTEGER}, #{userId,jdbcType=BIGINT}, |
|
|
|
#{questionnaireId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
#{recStatus,jdbcType=TINYINT}, #{pciStatus,jdbcType=TINYINT}, #{submitStatus,jdbcType=TINYINT}, |
|
|
|
#{province,jdbcType=VARCHAR}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.QuestionnaireDetail"> |
|
|
|
insert into t_qcp_questionnaire_detail |
|
|
@ -249,6 +255,15 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
rec_status, |
|
|
|
</if> |
|
|
|
<if test="pciStatus != null"> |
|
|
|
pci_status, |
|
|
|
</if> |
|
|
|
<if test="submitStatus != null"> |
|
|
|
submit_status, |
|
|
|
</if> |
|
|
|
<if test="province != null"> |
|
|
|
province, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
@ -344,6 +359,15 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="pciStatus != null"> |
|
|
|
#{pciStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="submitStatus != null"> |
|
|
|
#{submitStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="province != null"> |
|
|
|
#{province,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.ccsens.carbasics.bean.po.QuestionnaireDetailExample" resultType="java.lang.Long"> |
|
|
@ -448,6 +472,15 @@ |
|
|
|
<if test="record.recStatus != null"> |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.pciStatus != null"> |
|
|
|
pci_status = #{record.pciStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.submitStatus != null"> |
|
|
|
submit_status = #{record.submitStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.province != null"> |
|
|
|
province = #{record.province,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -485,7 +518,10 @@ |
|
|
|
questionnaire_id = #{record.questionnaireId,jdbcType=BIGINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
pci_status = #{record.pciStatus,jdbcType=TINYINT}, |
|
|
|
submit_status = #{record.submitStatus,jdbcType=TINYINT}, |
|
|
|
province = #{record.province,jdbcType=VARCHAR} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
@ -583,6 +619,15 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="pciStatus != null"> |
|
|
|
pci_status = #{pciStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="submitStatus != null"> |
|
|
|
submit_status = #{submitStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="province != null"> |
|
|
|
province = #{province,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
@ -617,7 +662,10 @@ |
|
|
|
questionnaire_id = #{questionnaireId,jdbcType=BIGINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
pci_status = #{pciStatus,jdbcType=TINYINT}, |
|
|
|
submit_status = #{submitStatus,jdbcType=TINYINT}, |
|
|
|
province = #{province,jdbcType=VARCHAR} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |