|
|
@ -13,6 +13,7 @@ |
|
|
|
<result column="submitter_user_id" jdbcType="BIGINT" property="submitterUserId" /> |
|
|
|
<result column="aduit_user_id" jdbcType="BIGINT" property="aduitUserId" /> |
|
|
|
<result column="audit_status" jdbcType="TINYINT" property="auditStatus" /> |
|
|
|
<result column="data_from" jdbcType="TINYINT" property="dataFrom" /> |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
@ -77,8 +78,8 @@ |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, hospital_name, department_name, department_code, position_name, position_code, |
|
|
|
submitter, submitter_phone, submitter_user_id, aduit_user_id, audit_status, created_at, |
|
|
|
updated_at, rec_status |
|
|
|
submitter, submitter_phone, submitter_user_id, aduit_user_id, audit_status, data_from, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.AccountManageExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -114,13 +115,15 @@ |
|
|
|
insert into t_qcp_account_manage (id, hospital_name, department_name, |
|
|
|
department_code, position_name, position_code, |
|
|
|
submitter, submitter_phone, submitter_user_id, |
|
|
|
aduit_user_id, audit_status, created_at, |
|
|
|
updated_at, rec_status) |
|
|
|
aduit_user_id, audit_status, data_from, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{hospitalName,jdbcType=VARCHAR}, #{departmentName,jdbcType=VARCHAR}, |
|
|
|
#{departmentCode,jdbcType=VARCHAR}, #{positionName,jdbcType=VARCHAR}, #{positionCode,jdbcType=VARCHAR}, |
|
|
|
#{submitter,jdbcType=VARCHAR}, #{submitterPhone,jdbcType=VARCHAR}, #{submitterUserId,jdbcType=BIGINT}, |
|
|
|
#{aduitUserId,jdbcType=BIGINT}, #{auditStatus,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
|
#{aduitUserId,jdbcType=BIGINT}, #{auditStatus,jdbcType=TINYINT}, #{dataFrom,jdbcType=TINYINT}, |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.AccountManage"> |
|
|
|
insert into t_qcp_account_manage |
|
|
@ -158,6 +161,9 @@ |
|
|
|
<if test="auditStatus != null"> |
|
|
|
audit_status, |
|
|
|
</if> |
|
|
|
<if test="dataFrom != null"> |
|
|
|
data_from, |
|
|
|
</if> |
|
|
|
<if test="createdAt != null"> |
|
|
|
created_at, |
|
|
|
</if> |
|
|
@ -202,6 +208,9 @@ |
|
|
|
<if test="auditStatus != null"> |
|
|
|
#{auditStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="dataFrom != null"> |
|
|
|
#{dataFrom,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="createdAt != null"> |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -255,6 +264,9 @@ |
|
|
|
<if test="record.auditStatus != null"> |
|
|
|
audit_status = #{record.auditStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.dataFrom != null"> |
|
|
|
data_from = #{record.dataFrom,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.createdAt != null"> |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -282,6 +294,7 @@ |
|
|
|
submitter_user_id = #{record.submitterUserId,jdbcType=BIGINT}, |
|
|
|
aduit_user_id = #{record.aduitUserId,jdbcType=BIGINT}, |
|
|
|
audit_status = #{record.auditStatus,jdbcType=TINYINT}, |
|
|
|
data_from = #{record.dataFrom,jdbcType=TINYINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
@ -322,6 +335,9 @@ |
|
|
|
<if test="auditStatus != null"> |
|
|
|
audit_status = #{auditStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="dataFrom != null"> |
|
|
|
data_from = #{dataFrom,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="createdAt != null"> |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -346,6 +362,7 @@ |
|
|
|
submitter_user_id = #{submitterUserId,jdbcType=BIGINT}, |
|
|
|
aduit_user_id = #{aduitUserId,jdbcType=BIGINT}, |
|
|
|
audit_status = #{auditStatus,jdbcType=TINYINT}, |
|
|
|
data_from = #{dataFrom,jdbcType=TINYINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
|