177 lines
6.5 KiB
XML
177 lines
6.5 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.MntAppMapper">
|
|
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.MntApp">
|
|
<id column="app_id" jdbcType="BIGINT" property="appId" />
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
<result column="upload_path" jdbcType="VARCHAR" property="uploadPath" />
|
|
<result column="deploy_path" jdbcType="VARCHAR" property="deployPath" />
|
|
<result column="backup_path" jdbcType="VARCHAR" property="backupPath" />
|
|
<result column="port" jdbcType="INTEGER" property="port" />
|
|
<result column="start_script" jdbcType="VARCHAR" property="startScript" />
|
|
<result column="deploy_script" jdbcType="VARCHAR" property="deployScript" />
|
|
<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">
|
|
app_id, name, upload_path, deploy_path, backup_path, port, start_script, deploy_script,
|
|
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_app
|
|
where app_id = #{appId,jdbcType=BIGINT}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
delete from mnt_app
|
|
where app_id = #{appId,jdbcType=BIGINT}
|
|
</delete>
|
|
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.MntApp">
|
|
insert into mnt_app (app_id, name, upload_path,
|
|
deploy_path, backup_path, port,
|
|
start_script, deploy_script, create_by,
|
|
update_by, create_time, update_time
|
|
)
|
|
values (#{appId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{uploadPath,jdbcType=VARCHAR},
|
|
#{deployPath,jdbcType=VARCHAR}, #{backupPath,jdbcType=VARCHAR}, #{port,jdbcType=INTEGER},
|
|
#{startScript,jdbcType=VARCHAR}, #{deployScript,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},
|
|
#{updateBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
|
)
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.MntApp">
|
|
insert into mnt_app
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="appId != null">
|
|
app_id,
|
|
</if>
|
|
<if test="name != null">
|
|
name,
|
|
</if>
|
|
<if test="uploadPath != null">
|
|
upload_path,
|
|
</if>
|
|
<if test="deployPath != null">
|
|
deploy_path,
|
|
</if>
|
|
<if test="backupPath != null">
|
|
backup_path,
|
|
</if>
|
|
<if test="port != null">
|
|
port,
|
|
</if>
|
|
<if test="startScript != null">
|
|
start_script,
|
|
</if>
|
|
<if test="deployScript != null">
|
|
deploy_script,
|
|
</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="appId != null">
|
|
#{appId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="name != null">
|
|
#{name,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="uploadPath != null">
|
|
#{uploadPath,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="deployPath != null">
|
|
#{deployPath,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="backupPath != null">
|
|
#{backupPath,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="port != null">
|
|
#{port,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="startScript != null">
|
|
#{startScript,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="deployScript != null">
|
|
#{deployScript,jdbcType=VARCHAR},
|
|
</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.MntApp">
|
|
update mnt_app
|
|
<set>
|
|
<if test="name != null">
|
|
name = #{name,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="uploadPath != null">
|
|
upload_path = #{uploadPath,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="deployPath != null">
|
|
deploy_path = #{deployPath,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="backupPath != null">
|
|
backup_path = #{backupPath,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="port != null">
|
|
port = #{port,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="startScript != null">
|
|
start_script = #{startScript,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="deployScript != null">
|
|
deploy_script = #{deployScript,jdbcType=VARCHAR},
|
|
</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 app_id = #{appId,jdbcType=BIGINT}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.MntApp">
|
|
update mnt_app
|
|
set name = #{name,jdbcType=VARCHAR},
|
|
upload_path = #{uploadPath,jdbcType=VARCHAR},
|
|
deploy_path = #{deployPath,jdbcType=VARCHAR},
|
|
backup_path = #{backupPath,jdbcType=VARCHAR},
|
|
port = #{port,jdbcType=INTEGER},
|
|
start_script = #{startScript,jdbcType=VARCHAR},
|
|
deploy_script = #{deployScript,jdbcType=VARCHAR},
|
|
create_by = #{createBy,jdbcType=VARCHAR},
|
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
where app_id = #{appId,jdbcType=BIGINT}
|
|
</update>
|
|
</mapper> |