Commit ee730eb3 authored by wanglong's avatar wanglong

删除 无用代码

parent 58b6f65c
package com.yeejoin.amos.boot.module.ugp.api.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.boot.module.ugp.api.entity.TzUgpPath;
import com.yeejoin.amos.boot.module.ugp.api.entity.Verify;
import org.apache.ibatis.annotations.Mapper;
/**
* 页面路径表(TzUgpPath)表数据库访问层
*
* @author makejava
* @since 2022-12-09 18:52:40
*/
@Mapper
public interface TzUgpPathDao extends BaseMapper<TzUgpPath> {
}
\ No newline at end of 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=".dao.TzUgpPathDao">
<resultMap id="BaseResultMap" type="com.yeejoin.amos.boot.module.ugp.api.entity.TzUgpPath.java">
<!--@Table tz_ugp_path-->
<result property="sequenceNbr" column="sequence_nbr" jdbcType="INTEGER"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="url" column="url" jdbcType="VARCHAR"/>
<result property="status" column="status" jdbcType="INTEGER"/>
<result property="recUserId" column="rec_user_id" jdbcType="INTEGER"/>
<result property="recDate" column="rec_date" jdbcType="TIMESTAMP"/>
<result property="isDelete" column="is_delete" jdbcType="INTEGER"/>
<result property="recUserName" column="rec_user_name" jdbcType="VARCHAR"/>
</resultMap>
<!--查询单个-->
<select id="queryById" resultMap="BaseResultMap">
select
sequence_nbr, name, url, status, rec_user_id, rec_date, is_delete, rec_user_name
from ugp_amos_ugp_biz.tz_ugp_path
where = #{}
</select>
<!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="BaseResultMap">
select
sequence_nbr, name, url, status, rec_user_id, rec_date, is_delete, rec_user_name
from ugp_amos_ugp_biz.tz_ugp_path
limit #{offset}, #{limit}
</select>
<!--通过实体作为筛选条件查询-->
<select id="queryAll" resultMap="BaseResultMap">
select
sequence_nbr, name, url, status, rec_user_id, rec_date, is_delete, rec_user_name
from ugp_amos_ugp_biz.tz_ugp_path
<where>
<if test="sequenceNbr != null">
and sequence_nbr = #{sequenceNbr}
</if>
<if test="name != null and name != ''">
and name = #{name}
</if>
<if test="url != null and url != ''">
and url = #{url}
</if>
<if test="status != null">
and status = #{status}
</if>
<if test="recUserId != null">
and rec_user_id = #{recUserId}
</if>
<if test="recDate != null">
and rec_date = #{recDate}
</if>
<if test="isDelete != null">
and is_delete = #{isDelete}
</if>
<if test="recUserName != null and recUserName != ''">
and rec_user_name = #{recUserName}
</if>
</where>
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="" useGeneratedKeys="true">
insert into ugp_amos_ugp_biz.tz_ugp_path(sequence_nbr, name, url, status, rec_user_id, rec_date, is_delete, rec_user_name)
values (#{sequenceNbr}, #{name}, #{url}, #{status}, #{recUserId}, #{recDate}, #{isDelete}, #{recUserName})
</insert>
<!--通过主键修改数据-->
<update id="update">
update ugp_amos_ugp_biz.tz_ugp_path
<set>
<if test="sequenceNbr != null">
sequence_nbr = #{sequenceNbr},
</if>
<if test="name != null and name != ''">
name = #{name},
</if>
<if test="url != null and url != ''">
url = #{url},
</if>
<if test="status != null">
status = #{status},
</if>
<if test="recUserId != null">
rec_user_id = #{recUserId},
</if>
<if test="recDate != null">
rec_date = #{recDate},
</if>
<if test="isDelete != null">
is_delete = #{isDelete},
</if>
<if test="recUserName != null and recUserName != ''">
rec_user_name = #{recUserName},
</if>
</set>
where = #{}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete from ugp_amos_ugp_biz.tz_ugp_path where = #{}
</delete>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment