|
|
@@ -4,14 +4,14 @@
|
|
|
<resultMap id="BaseResultMap" type="com.goafanti.common.model.ExpenseAccountExamine">
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
<result column="eaid" jdbcType="INTEGER" property="eaid" />
|
|
|
- <result column="type" jdbcType="INTEGER" property="type" />
|
|
|
+ <result column="process_status" jdbcType="INTEGER" property="processStatus" />
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
<result column="auditor" jdbcType="VARCHAR" property="auditor" />
|
|
|
<result column="auditorName" jdbcType="VARCHAR" property="auditorname" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, eaid, `type`, `status`, auditor, auditorName, create_time
|
|
|
+ id, eaid, process_status, `status`, auditor, auditorName, create_time
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -19,16 +19,15 @@
|
|
|
from expense_account_examine
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
-
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
delete from expense_account_examine
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.ExpenseAccountExamine" useGeneratedKeys="true">
|
|
|
- insert into expense_account_examine (eaid, `type`, `status`,
|
|
|
+ insert into expense_account_examine (eaid, process_status, `status`,
|
|
|
auditor, auditorName, create_time
|
|
|
)
|
|
|
- values (#{eaid,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
|
|
|
+ values (#{eaid,jdbcType=INTEGER}, #{processStatus,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
|
|
|
#{auditor,jdbcType=VARCHAR}, #{auditorname,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}
|
|
|
)
|
|
|
</insert>
|
|
|
@@ -38,8 +37,8 @@
|
|
|
<if test="eaid != null">
|
|
|
eaid,
|
|
|
</if>
|
|
|
- <if test="type != null">
|
|
|
- `type`,
|
|
|
+ <if test="processStatus != null">
|
|
|
+ process_status,
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
`status`,
|
|
|
@@ -58,8 +57,8 @@
|
|
|
<if test="eaid != null">
|
|
|
#{eaid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="type != null">
|
|
|
- #{type,jdbcType=INTEGER},
|
|
|
+ <if test="processStatus != null">
|
|
|
+ #{processStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
#{status,jdbcType=INTEGER},
|
|
|
@@ -81,8 +80,8 @@
|
|
|
<if test="eaid != null">
|
|
|
eaid = #{eaid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="type != null">
|
|
|
- `type` = #{type,jdbcType=INTEGER},
|
|
|
+ <if test="processStatus != null">
|
|
|
+ process_status = #{processStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
@@ -102,7 +101,7 @@
|
|
|
<update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.ExpenseAccountExamine">
|
|
|
update expense_account_examine
|
|
|
set eaid = #{eaid,jdbcType=INTEGER},
|
|
|
- `type` = #{type,jdbcType=INTEGER},
|
|
|
+ process_status = #{processStatus,jdbcType=INTEGER},
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
auditor = #{auditor,jdbcType=VARCHAR},
|
|
|
auditorName = #{auditorname,jdbcType=VARCHAR},
|
|
|
@@ -113,10 +112,10 @@
|
|
|
|
|
|
|
|
|
<insert id="insertBatch">
|
|
|
- insert into expense_account_examine (eaid,type, `status`, auditor, auditorName)
|
|
|
+ insert into expense_account_examine (eaid,process_status, `status`, auditor, auditorName)
|
|
|
values
|
|
|
<foreach collection="list" item="e" separator=",">
|
|
|
- (#{e.eaid,jdbcType=INTEGER},#{e.type}, #{e.status,jdbcType=INTEGER}, #{e.auditor,jdbcType=VARCHAR},
|
|
|
+ (#{e.eaid,jdbcType=INTEGER},#{e.processStatus}, #{e.status,jdbcType=INTEGER}, #{e.auditor,jdbcType=VARCHAR},
|
|
|
#{e.auditorname,jdbcType=VARCHAR})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
@@ -133,6 +132,6 @@
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from expense_account_examine
|
|
|
- where eaid = #{id} and type= #{type}
|
|
|
+ where eaid = #{id} and process_status= #{processStatus}
|
|
|
</select>
|
|
|
</mapper>
|