|
|
@ -4,6 +4,7 @@ |
|
|
|
<resultMap id="BaseResultMap" type="com.ccsens.yanyuan.bean.po.FollowUp"> |
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" /> |
|
|
|
<result column="user_id" jdbcType="VARCHAR" property="userId" /> |
|
|
|
<result column="record_user_id" jdbcType="BIGINT" property="recordUserId" /> |
|
|
|
<result column="is_test" jdbcType="TINYINT" property="isTest" /> |
|
|
|
<result column="test_at" jdbcType="TIMESTAMP" property="testAt" /> |
|
|
|
<result column="mmse_score" jdbcType="VARCHAR" property="mmseScore" /> |
|
|
@ -83,9 +84,10 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, user_id, is_test, test_at, mmse_score, moca_score, adl_score, npi_score, total_score, |
|
|
|
first_medicine, second_medicine, third_medicine, forth_medicine, fifth_medicine, |
|
|
|
sixth_medicine, sev_name, sev_medicine, create_at, update_at, status, rec_status |
|
|
|
id, user_id, record_user_id, is_test, test_at, mmse_score, moca_score, adl_score, |
|
|
|
npi_score, total_score, first_medicine, second_medicine, third_medicine, forth_medicine, |
|
|
|
fifth_medicine, sixth_medicine, sev_name, sev_medicine, create_at, update_at, status, |
|
|
|
rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.yanyuan.bean.po.FollowUpExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -118,22 +120,22 @@ |
|
|
|
</if> |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.yanyuan.bean.po.FollowUp"> |
|
|
|
insert into u_follow_up (id, user_id, is_test, |
|
|
|
test_at, mmse_score, moca_score, |
|
|
|
adl_score, npi_score, total_score, |
|
|
|
first_medicine, second_medicine, third_medicine, |
|
|
|
forth_medicine, fifth_medicine, sixth_medicine, |
|
|
|
sev_name, sev_medicine, create_at, |
|
|
|
update_at, status, rec_status |
|
|
|
) |
|
|
|
values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{isTest,jdbcType=TINYINT}, |
|
|
|
#{testAt,jdbcType=TIMESTAMP}, #{mmseScore,jdbcType=VARCHAR}, #{mocaScore,jdbcType=VARCHAR}, |
|
|
|
#{adlScore,jdbcType=VARCHAR}, #{npiScore,jdbcType=VARCHAR}, #{totalScore,jdbcType=VARCHAR}, |
|
|
|
#{firstMedicine,jdbcType=VARCHAR}, #{secondMedicine,jdbcType=VARCHAR}, #{thirdMedicine,jdbcType=VARCHAR}, |
|
|
|
#{forthMedicine,jdbcType=VARCHAR}, #{fifthMedicine,jdbcType=VARCHAR}, #{sixthMedicine,jdbcType=VARCHAR}, |
|
|
|
#{sevName,jdbcType=VARCHAR}, #{sevMedicine,jdbcType=VARCHAR}, #{createAt,jdbcType=TIMESTAMP}, |
|
|
|
#{updateAt,jdbcType=TIMESTAMP}, #{status,jdbcType=TINYINT}, #{recStatus,jdbcType=TINYINT} |
|
|
|
) |
|
|
|
insert into u_follow_up (id, user_id, record_user_id, |
|
|
|
is_test, test_at, mmse_score, |
|
|
|
moca_score, adl_score, npi_score, |
|
|
|
total_score, first_medicine, second_medicine, |
|
|
|
third_medicine, forth_medicine, fifth_medicine, |
|
|
|
sixth_medicine, sev_name, sev_medicine, |
|
|
|
create_at, update_at, status, |
|
|
|
rec_status) |
|
|
|
values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{recordUserId,jdbcType=BIGINT}, |
|
|
|
#{isTest,jdbcType=TINYINT}, #{testAt,jdbcType=TIMESTAMP}, #{mmseScore,jdbcType=VARCHAR}, |
|
|
|
#{mocaScore,jdbcType=VARCHAR}, #{adlScore,jdbcType=VARCHAR}, #{npiScore,jdbcType=VARCHAR}, |
|
|
|
#{totalScore,jdbcType=VARCHAR}, #{firstMedicine,jdbcType=VARCHAR}, #{secondMedicine,jdbcType=VARCHAR}, |
|
|
|
#{thirdMedicine,jdbcType=VARCHAR}, #{forthMedicine,jdbcType=VARCHAR}, #{fifthMedicine,jdbcType=VARCHAR}, |
|
|
|
#{sixthMedicine,jdbcType=VARCHAR}, #{sevName,jdbcType=VARCHAR}, #{sevMedicine,jdbcType=VARCHAR}, |
|
|
|
#{createAt,jdbcType=TIMESTAMP}, #{updateAt,jdbcType=TIMESTAMP}, #{status,jdbcType=TINYINT}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.yanyuan.bean.po.FollowUp"> |
|
|
|
insert into u_follow_up |
|
|
@ -144,6 +146,9 @@ |
|
|
|
<if test="userId != null"> |
|
|
|
user_id, |
|
|
|
</if> |
|
|
|
<if test="recordUserId != null"> |
|
|
|
record_user_id, |
|
|
|
</if> |
|
|
|
<if test="isTest != null"> |
|
|
|
is_test, |
|
|
|
</if> |
|
|
@ -209,6 +214,9 @@ |
|
|
|
<if test="userId != null"> |
|
|
|
#{userId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="recordUserId != null"> |
|
|
|
#{recordUserId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="isTest != null"> |
|
|
|
#{isTest,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
@ -283,6 +291,9 @@ |
|
|
|
<if test="record.userId != null"> |
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.recordUserId != null"> |
|
|
|
record_user_id = #{record.recordUserId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.isTest != null"> |
|
|
|
is_test = #{record.isTest,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
@ -349,6 +360,7 @@ |
|
|
|
update u_follow_up |
|
|
|
set id = #{record.id,jdbcType=VARCHAR}, |
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR}, |
|
|
|
record_user_id = #{record.recordUserId,jdbcType=BIGINT}, |
|
|
|
is_test = #{record.isTest,jdbcType=TINYINT}, |
|
|
|
test_at = #{record.testAt,jdbcType=TIMESTAMP}, |
|
|
|
mmse_score = #{record.mmseScore,jdbcType=VARCHAR}, |
|
|
@ -378,6 +390,9 @@ |
|
|
|
<if test="userId != null"> |
|
|
|
user_id = #{userId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="recordUserId != null"> |
|
|
|
record_user_id = #{recordUserId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="isTest != null"> |
|
|
|
is_test = #{isTest,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
@ -441,6 +456,7 @@ |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.yanyuan.bean.po.FollowUp"> |
|
|
|
update u_follow_up |
|
|
|
set user_id = #{userId,jdbcType=VARCHAR}, |
|
|
|
record_user_id = #{recordUserId,jdbcType=BIGINT}, |
|
|
|
is_test = #{isTest,jdbcType=TINYINT}, |
|
|
|
test_at = #{testAt,jdbcType=TIMESTAMP}, |
|
|
|
mmse_score = #{mmseScore,jdbcType=VARCHAR}, |
|
|
|