New file |
| | |
| | | <?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.dy.pipIrrGlobal.daoSe.SeAuditsMapper"> |
| | | <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoSe.SeAudits"> |
| | | <!--@mbg.generated--> |
| | | <!--@Table se_audits--> |
| | | <id column="id" jdbcType="BIGINT" property="id" /> |
| | | <result column="general_id" jdbcType="BIGINT" property="generalId" /> |
| | | <result column="audit_status" jdbcType="TINYINT" property="auditStatus" /> |
| | | <result column="audit_opinion" jdbcType="VARCHAR" property="auditOpinion" /> |
| | | <result column="operator" jdbcType="BIGINT" property="operator" /> |
| | | <result column="operate_dt" jdbcType="TIMESTAMP" property="operateDt" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List"> |
| | | <!--@mbg.generated--> |
| | | id, general_id, audit_status, audit_opinion, `operator`, operate_dt |
| | | </sql> |
| | | <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
| | | <!--@mbg.generated--> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from se_audits |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
| | | <!--@mbg.generated--> |
| | | delete from se_audits |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoSe.SeAudits"> |
| | | <!--@mbg.generated--> |
| | | insert into se_audits (id, general_id, audit_status, |
| | | audit_opinion, `operator`, operate_dt |
| | | ) |
| | | values (#{id,jdbcType=BIGINT}, #{generalId,jdbcType=BIGINT}, #{auditStatus,jdbcType=TINYINT}, |
| | | #{auditOpinion,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, #{operateDt,jdbcType=TIMESTAMP} |
| | | ) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoSe.SeAudits"> |
| | | <!--@mbg.generated--> |
| | | insert into se_audits |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | id, |
| | | </if> |
| | | <if test="generalId != null"> |
| | | general_id, |
| | | </if> |
| | | <if test="auditStatus != null"> |
| | | audit_status, |
| | | </if> |
| | | <if test="auditOpinion != null"> |
| | | audit_opinion, |
| | | </if> |
| | | <if test="operator != null"> |
| | | `operator`, |
| | | </if> |
| | | <if test="operateDt != null"> |
| | | operate_dt, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | #{id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="generalId != null"> |
| | | #{generalId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="auditStatus != null"> |
| | | #{auditStatus,jdbcType=TINYINT}, |
| | | </if> |
| | | <if test="auditOpinion != null"> |
| | | #{auditOpinion,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="operator != null"> |
| | | #{operator,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="operateDt != null"> |
| | | #{operateDt,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoSe.SeAudits"> |
| | | <!--@mbg.generated--> |
| | | update se_audits |
| | | <set> |
| | | <if test="generalId != null"> |
| | | general_id = #{generalId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="auditStatus != null"> |
| | | audit_status = #{auditStatus,jdbcType=TINYINT}, |
| | | </if> |
| | | <if test="auditOpinion != null"> |
| | | audit_opinion = #{auditOpinion,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="operator != null"> |
| | | `operator` = #{operator,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="operateDt != null"> |
| | | operate_dt = #{operateDt,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoSe.SeAudits"> |
| | | <!--@mbg.generated--> |
| | | update se_audits |
| | | set general_id = #{generalId,jdbcType=BIGINT}, |
| | | audit_status = #{auditStatus,jdbcType=TINYINT}, |
| | | audit_opinion = #{auditOpinion,jdbcType=VARCHAR}, |
| | | `operator` = #{operator,jdbcType=BIGINT}, |
| | | operate_dt = #{operateDt,jdbcType=TIMESTAMP} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |