update
This commit is contained in:
@@ -1,19 +0,0 @@
|
|||||||
package com.lovenav.dao;
|
|
||||||
|
|
||||||
import com.lovenav.entity.CollectIconList;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
|
|
||||||
@Repository
|
|
||||||
public interface CollectIconListDao {
|
|
||||||
int deleteByPrimaryKey(Long id);
|
|
||||||
|
|
||||||
int insert(CollectIconList record);
|
|
||||||
|
|
||||||
int insertSelective(CollectIconList record);
|
|
||||||
|
|
||||||
CollectIconList selectByPrimaryKey(Long id);
|
|
||||||
|
|
||||||
int updateByPrimaryKeySelective(CollectIconList record);
|
|
||||||
|
|
||||||
int updateByPrimaryKey(CollectIconList record);
|
|
||||||
}
|
|
@@ -1,25 +0,0 @@
|
|||||||
package com.lovenav.entity;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 图标表
|
|
||||||
* ln_collect_icon_list
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
public class CollectIconList implements Serializable {
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 网址
|
|
||||||
*/
|
|
||||||
private String urlMd5;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 图片地址
|
|
||||||
*/
|
|
||||||
private String iconUrl;
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
}
|
|
@@ -1,63 +0,0 @@
|
|||||||
<?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.lovenav.dao.CollectIconListDao">
|
|
||||||
<resultMap id="BaseResultMap" type="com.lovenav.entity.CollectIconList">
|
|
||||||
<id column="id" jdbcType="BIGINT" property="id" />
|
|
||||||
<result column="url_md5" jdbcType="VARCHAR" property="urlMd5" />
|
|
||||||
<result column="icon_url" jdbcType="VARCHAR" property="iconUrl" />
|
|
||||||
</resultMap>
|
|
||||||
<sql id="Base_Column_List">
|
|
||||||
id, url_md5, icon_url
|
|
||||||
</sql>
|
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
||||||
select
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
from ln_collect_icon_list
|
|
||||||
where id = #{id,jdbcType=BIGINT}
|
|
||||||
</select>
|
|
||||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
||||||
delete from ln_collect_icon_list
|
|
||||||
where id = #{id,jdbcType=BIGINT}
|
|
||||||
</delete>
|
|
||||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.lovenav.entity.CollectIconList" useGeneratedKeys="true">
|
|
||||||
insert into ln_collect_icon_list (url_md5, icon_url)
|
|
||||||
values (#{urlMd5,jdbcType=VARCHAR}, #{iconUrl,jdbcType=VARCHAR})
|
|
||||||
</insert>
|
|
||||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.lovenav.entity.CollectIconList" useGeneratedKeys="true">
|
|
||||||
insert into ln_collect_icon_list
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="urlMd5 != null">
|
|
||||||
url_md5,
|
|
||||||
</if>
|
|
||||||
<if test="iconUrl != null">
|
|
||||||
icon_url,
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="urlMd5 != null">
|
|
||||||
#{urlMd5,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="iconUrl != null">
|
|
||||||
#{iconUrl,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
<update id="updateByPrimaryKeySelective" parameterType="com.lovenav.entity.CollectIconList">
|
|
||||||
update ln_collect_icon_list
|
|
||||||
<set>
|
|
||||||
<if test="urlMd5 != null">
|
|
||||||
url_md5 = #{urlMd5,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="iconUrl != null">
|
|
||||||
icon_url = #{iconUrl,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
</set>
|
|
||||||
where id = #{id,jdbcType=BIGINT}
|
|
||||||
</update>
|
|
||||||
<update id="updateByPrimaryKey" parameterType="com.lovenav.entity.CollectIconList">
|
|
||||||
update ln_collect_icon_list
|
|
||||||
set url_md5 = #{urlMd5,jdbcType=VARCHAR},
|
|
||||||
icon_url = #{iconUrl,jdbcType=VARCHAR}
|
|
||||||
where id = #{id,jdbcType=BIGINT}
|
|
||||||
</update>
|
|
||||||
</mapper>
|
|
Reference in New Issue
Block a user