You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
2.9 KiB
XML
90 lines
2.9 KiB
XML
3 years ago
|
<?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.engine.organization.mapper.scheme.SchemeMapper">
|
||
|
<resultMap id="BaseResultMap" type="com.engine.organization.entity.scheme.po.SchemePO">
|
||
|
<result column="id" property="id"/>
|
||
|
<result column="scheme_no" property="schemeNo"/>
|
||
|
<result column="scheme_name" property="schemeName"/>
|
||
|
<result column="scheme_description" property="schemeDescription"/>
|
||
|
<result column="forbidden_tag" property="forbiddenTag"/>
|
||
|
<result column="creator" property="creator"/>
|
||
|
<result column="delete_type" property="deleteType"/>
|
||
|
<result column="create_time" property="createTime"/>
|
||
|
<result column="update_time" property="updateTime"/>
|
||
|
</resultMap>
|
||
|
|
||
|
<!-- 表字段 -->
|
||
|
<sql id="baseColumns">
|
||
|
t
|
||
|
.
|
||
|
id
|
||
|
, t.scheme_no
|
||
|
, t.scheme_name
|
||
|
, t.scheme_description
|
||
|
, t.forbidden_tag
|
||
|
, t.creator
|
||
|
, t.delete_type
|
||
|
, t.create_time
|
||
|
, t.update_time
|
||
|
</sql>
|
||
|
|
||
|
<insert id="insertIgnoreNull" parameterType="com.engine.organization.entity.scheme.po.SchemePO" keyProperty="id"
|
||
|
keyColumn="id" useGeneratedKeys="true">
|
||
|
INSERT INTO jcl_org_scheme
|
||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||
|
<if test="creator != null">
|
||
|
creator,
|
||
|
</if>
|
||
|
<if test="deleteType != null">
|
||
|
delete_type,
|
||
|
</if>
|
||
|
<if test="createTime != null">
|
||
|
create_time,
|
||
|
</if>
|
||
|
<if test="updateTime != null">
|
||
|
update_time,
|
||
|
</if>
|
||
|
<if test="id != null ">
|
||
|
id,
|
||
|
</if>
|
||
|
<if test="schemeNo != null ">
|
||
|
scheme_no,
|
||
|
</if>
|
||
|
<if test="schemeName != null ">
|
||
|
scheme_name,
|
||
|
</if>
|
||
|
<if test="schemeDescription != null ">
|
||
|
scheme_description,
|
||
|
</if>
|
||
|
<if test="forbiddenTag != null ">
|
||
|
forbidden_tag,
|
||
|
</if>
|
||
|
</trim>
|
||
|
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||
|
<if test="creator != null">
|
||
|
#{creator},
|
||
|
</if>
|
||
|
<if test="deleteType != null">
|
||
|
#{deleteType},
|
||
|
</if>
|
||
|
<if test="createTime != null">
|
||
|
#{createTime},
|
||
|
</if>
|
||
|
<if test="id != null ">
|
||
|
#{id},
|
||
|
</if>
|
||
|
<if test="schemeNo != null ">
|
||
|
#{scheme_no},
|
||
|
</if>
|
||
|
<if test="schemeName != null ">
|
||
|
#{scheme_name},
|
||
|
</if>
|
||
|
<if test="schemeDescription != null ">
|
||
|
#{scheme_description},
|
||
|
</if>
|
||
|
<if test="forbiddenTag != null ">
|
||
|
#{forbidden_tag},
|
||
|
</if>
|
||
|
</insert>
|
||
|
|
||
|
</mapper>
|