|
|
|
@ -40,19 +40,19 @@ public interface HighApproveMapper extends HighApproveMapperExt { |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into high_approve (object_type, object_id, ", |
|
|
|
|
"approve_serial_no, remarks, ", |
|
|
|
|
"`status`, create_time, ", |
|
|
|
|
"update_time, submit_operator_id, ", |
|
|
|
|
"submit_operator_name, approve_operator_id, ", |
|
|
|
|
"approve_operator_name, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"object_name, approve_serial_no, ", |
|
|
|
|
"remarks, `status`, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"submit_operator_id, submit_operator_name, ", |
|
|
|
|
"approve_operator_id, approve_operator_name, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{objectType,jdbcType=INTEGER}, #{objectId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{approveSerialNo,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{submitOperatorId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{submitOperatorName,jdbcType=VARCHAR}, #{approveOperatorId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{approveOperatorName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{objectName,jdbcType=VARCHAR}, #{approveSerialNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{remarks,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{submitOperatorId,jdbcType=BIGINT}, #{submitOperatorName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{approveOperatorId,jdbcType=BIGINT}, #{approveOperatorName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(HighApprove record); |
|
|
|
@ -66,6 +66,7 @@ public interface HighApproveMapper extends HighApproveMapperExt { |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="object_type", property="objectType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="object_id", property="objectId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="object_name", property="objectName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="approve_serial_no", property="approveSerialNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@ -83,8 +84,8 @@ public interface HighApproveMapper extends HighApproveMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, object_type, object_id, approve_serial_no, remarks, `status`, create_time, ", |
|
|
|
|
"update_time, submit_operator_id, submit_operator_name, approve_operator_id, ", |
|
|
|
|
"id, object_type, object_id, object_name, approve_serial_no, remarks, `status`, ", |
|
|
|
|
"create_time, update_time, submit_operator_id, submit_operator_name, approve_operator_id, ", |
|
|
|
|
"approve_operator_name, ext_1, ext_2, ext_3", |
|
|
|
|
"from high_approve", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
@ -93,6 +94,7 @@ public interface HighApproveMapper extends HighApproveMapperExt { |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="object_type", property="objectType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="object_id", property="objectId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="object_name", property="objectName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="approve_serial_no", property="approveSerialNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@ -121,6 +123,7 @@ public interface HighApproveMapper extends HighApproveMapperExt { |
|
|
|
|
"update high_approve", |
|
|
|
|
"set object_type = #{objectType,jdbcType=INTEGER},", |
|
|
|
|
"object_id = #{objectId,jdbcType=BIGINT},", |
|
|
|
|
"object_name = #{objectName,jdbcType=VARCHAR},", |
|
|
|
|
"approve_serial_no = #{approveSerialNo,jdbcType=VARCHAR},", |
|
|
|
|
"remarks = #{remarks,jdbcType=VARCHAR},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|