106 lines
3.9 KiB
XML
106 lines
3.9 KiB
XML
<?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.chaozhanggui.system.cashierservice.dao.MntDeployMapper">
|
|
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.MntDeploy">
|
|
<id column="deploy_id" jdbcType="BIGINT" property="deployId" />
|
|
<result column="app_id" jdbcType="BIGINT" property="appId" />
|
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
deploy_id, app_id, create_by, update_by, create_time, update_time
|
|
</sql>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
from mnt_deploy
|
|
where deploy_id = #{deployId,jdbcType=BIGINT}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
delete from mnt_deploy
|
|
where deploy_id = #{deployId,jdbcType=BIGINT}
|
|
</delete>
|
|
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDeploy">
|
|
insert into mnt_deploy (deploy_id, app_id, create_by,
|
|
update_by, create_time, update_time
|
|
)
|
|
values (#{deployId,jdbcType=BIGINT}, #{appId,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR},
|
|
#{updateBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
|
)
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDeploy">
|
|
insert into mnt_deploy
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="deployId != null">
|
|
deploy_id,
|
|
</if>
|
|
<if test="appId != null">
|
|
app_id,
|
|
</if>
|
|
<if test="createBy != null">
|
|
create_by,
|
|
</if>
|
|
<if test="updateBy != null">
|
|
update_by,
|
|
</if>
|
|
<if test="createTime != null">
|
|
create_time,
|
|
</if>
|
|
<if test="updateTime != null">
|
|
update_time,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="deployId != null">
|
|
#{deployId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="appId != null">
|
|
#{appId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="createBy != null">
|
|
#{createBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="updateBy != null">
|
|
#{updateBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createTime != null">
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="updateTime != null">
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDeploy">
|
|
update mnt_deploy
|
|
<set>
|
|
<if test="appId != null">
|
|
app_id = #{appId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="createBy != null">
|
|
create_by = #{createBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="updateBy != null">
|
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createTime != null">
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="updateTime != null">
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</set>
|
|
where deploy_id = #{deployId,jdbcType=BIGINT}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDeploy">
|
|
update mnt_deploy
|
|
set app_id = #{appId,jdbcType=BIGINT},
|
|
create_by = #{createBy,jdbcType=VARCHAR},
|
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
where deploy_id = #{deployId,jdbcType=BIGINT}
|
|
</update>
|
|
</mapper> |