<?xml version="1.0" encoding="UTF-8" ?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
<mapper namespace="com.landtool.lanbase.modules.res.dao.Res_AuditMapper" >
|
<resultMap id="BaseResultMap" type="com.landtool.lanbase.modules.res.entity.Res_Audit" >
|
<id column="AUDITID" property="auditid" jdbcType="DECIMAL" />
|
<result column="RESOURCEID" property="resourceid" jdbcType="DECIMAL" />
|
<result column="AUDITUSERID" property="audituserid" jdbcType="OTHER" />
|
<result column="AUDITTIME" property="audittime" jdbcType="TIMESTAMP" />
|
<result column="AUDITOPINION" property="auditopinion" jdbcType="OTHER" />
|
<result column="ISAGREED" property="isagreed" jdbcType="DECIMAL" />
|
<result column="AUDITLEV" property="auditlev" jdbcType="OTHER" />
|
<result column="RESULTFILEURL" property="resultfileurl" jdbcType="OTHER" />
|
<result column="ACTIONTYPE" property="actiontype" jdbcType="DECIMAL" />
|
<result column="ACTIONREASON" property="actionreason" jdbcType="OTHER" />
|
<result column="REMARK" property="remark" jdbcType="OTHER" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
AUDITID, RESOURCEID, AUDITUSERID, AUDITTIME, AUDITOPINION, ISAGREED, AUDITLEV, RESULTFILEURL,
|
ACTIONTYPE, ACTIONREASON, REMARK
|
</sql>
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
select
|
<include refid="Base_Column_List" />
|
from RES_AUDIT
|
where AUDITID = #{auditid,jdbcType=DECIMAL}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
delete from RES_AUDIT
|
where AUDITID = #{auditid,jdbcType=DECIMAL}
|
</delete>
|
<insert id="insert" parameterType="com.landtool.lanbase.modules.res.entity.Res_Audit" >
|
insert into RES_AUDIT (AUDITID, RESOURCEID, AUDITUSERID,
|
AUDITTIME, AUDITOPINION, ISAGREED,
|
AUDITLEV, RESULTFILEURL, ACTIONTYPE,
|
ACTIONREASON, REMARK)
|
values (#{auditid,jdbcType=DECIMAL}, #{resourceid,jdbcType=DECIMAL}, #{audituserid,jdbcType=OTHER},
|
#{audittime,jdbcType=TIMESTAMP}, #{auditopinion,jdbcType=OTHER}, #{isagreed,jdbcType=DECIMAL},
|
#{auditlev,jdbcType=OTHER}, #{resultfileurl,jdbcType=OTHER}, #{actiontype,jdbcType=DECIMAL},
|
#{actionreason,jdbcType=OTHER}, #{remark,jdbcType=OTHER})
|
</insert>
|
<insert id="insertSelective" parameterType="com.landtool.lanbase.modules.res.entity.Res_Audit" >
|
insert into RES_AUDIT
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
<if test="auditid != null" >
|
AUDITID,
|
</if>
|
<if test="resourceid != null" >
|
RESOURCEID,
|
</if>
|
<if test="audituserid != null" >
|
AUDITUSERID,
|
</if>
|
<if test="audittime != null" >
|
AUDITTIME,
|
</if>
|
<if test="auditopinion != null" >
|
AUDITOPINION,
|
</if>
|
<if test="isagreed != null" >
|
ISAGREED,
|
</if>
|
<if test="auditlev != null" >
|
AUDITLEV,
|
</if>
|
<if test="resultfileurl != null" >
|
RESULTFILEURL,
|
</if>
|
<if test="actiontype != null" >
|
ACTIONTYPE,
|
</if>
|
<if test="actionreason != null" >
|
ACTIONREASON,
|
</if>
|
<if test="remark != null" >
|
REMARK,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
<if test="auditid != null" >
|
#{auditid,jdbcType=DECIMAL},
|
</if>
|
<if test="resourceid != null" >
|
#{resourceid,jdbcType=DECIMAL},
|
</if>
|
<if test="audituserid != null" >
|
#{audituserid,jdbcType=OTHER},
|
</if>
|
<if test="audittime != null" >
|
#{audittime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="auditopinion != null" >
|
#{auditopinion,jdbcType=OTHER},
|
</if>
|
<if test="isagreed != null" >
|
#{isagreed,jdbcType=DECIMAL},
|
</if>
|
<if test="auditlev != null" >
|
#{auditlev,jdbcType=OTHER},
|
</if>
|
<if test="resultfileurl != null" >
|
#{resultfileurl,jdbcType=OTHER},
|
</if>
|
<if test="actiontype != null" >
|
#{actiontype,jdbcType=DECIMAL},
|
</if>
|
<if test="actionreason != null" >
|
#{actionreason,jdbcType=OTHER},
|
</if>
|
<if test="remark != null" >
|
#{remark,jdbcType=OTHER},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="com.landtool.lanbase.modules.res.entity.Res_Audit" >
|
update RES_AUDIT
|
<set >
|
<if test="resourceid != null" >
|
RESOURCEID = #{resourceid,jdbcType=DECIMAL},
|
</if>
|
<if test="audituserid != null" >
|
AUDITUSERID = #{audituserid,jdbcType=OTHER},
|
</if>
|
<if test="audittime != null" >
|
AUDITTIME = #{audittime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="auditopinion != null" >
|
AUDITOPINION = #{auditopinion,jdbcType=OTHER},
|
</if>
|
<if test="isagreed != null" >
|
ISAGREED = #{isagreed,jdbcType=DECIMAL},
|
</if>
|
<if test="auditlev != null" >
|
AUDITLEV = #{auditlev,jdbcType=OTHER},
|
</if>
|
<if test="resultfileurl != null" >
|
RESULTFILEURL = #{resultfileurl,jdbcType=OTHER},
|
</if>
|
<if test="actiontype != null" >
|
ACTIONTYPE = #{actiontype,jdbcType=DECIMAL},
|
</if>
|
<if test="actionreason != null" >
|
ACTIONREASON = #{actionreason,jdbcType=OTHER},
|
</if>
|
<if test="remark != null" >
|
REMARK = #{remark,jdbcType=OTHER},
|
</if>
|
</set>
|
where AUDITID = #{auditid,jdbcType=DECIMAL}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="com.landtool.lanbase.modules.res.entity.Res_Audit" >
|
update RES_AUDIT
|
set RESOURCEID = #{resourceid,jdbcType=DECIMAL},
|
AUDITUSERID = #{audituserid,jdbcType=OTHER},
|
AUDITTIME = #{audittime,jdbcType=TIMESTAMP},
|
AUDITOPINION = #{auditopinion,jdbcType=OTHER},
|
ISAGREED = #{isagreed,jdbcType=DECIMAL},
|
AUDITLEV = #{auditlev,jdbcType=OTHER},
|
RESULTFILEURL = #{resultfileurl,jdbcType=OTHER},
|
ACTIONTYPE = #{actiontype,jdbcType=DECIMAL},
|
ACTIONREASON = #{actionreason,jdbcType=OTHER},
|
REMARK = #{remark,jdbcType=OTHER}
|
where AUDITID = #{auditid,jdbcType=DECIMAL}
|
</update>
|
|
<select id="selectCountByResourceid" resultType="java.lang.Integer" parameterType="java.lang.Integer">
|
select count(*) from RES_AUDIT
|
where resourceid = #{resourceid,jdbcType=DECIMAL}
|
</select>
|
<delete id="deleteByResourceid" parameterType="java.lang.Integer">
|
delete from RES_AUDIT
|
where resourceid = #{resourceid,jdbcType=DECIMAL}
|
</delete>
|
</mapper>
|