update
This commit is contained in:
parent
dd432ead11
commit
026a299f88
@ -1,7 +0,0 @@
|
|||||||
package com.lovenav.controller;
|
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
@RestController
|
|
||||||
public class AdminController {
|
|
||||||
}
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.mapper;
|
package com.lovenav.dao;
|
||||||
|
|
||||||
import com.lovenav.entity.Admin;
|
import com.lovenav.entity.Admin;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
@ -1,6 +1,5 @@
|
|||||||
package com.lovenav.mapper;
|
package com.lovenav.dao;
|
||||||
|
|
||||||
import com.lovenav.entity.AdminMeta;
|
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
@Repository
|
@Repository
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.mapper;
|
package com.lovenav.dao;
|
||||||
|
|
||||||
import com.lovenav.entity.Attachment;
|
import com.lovenav.entity.Attachment;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.mapper;
|
package com.lovenav.dao;
|
||||||
|
|
||||||
import com.lovenav.entity.Auth;
|
import com.lovenav.entity.Auth;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.mapper;
|
package com.lovenav.dao;
|
||||||
|
|
||||||
import com.lovenav.entity.Banners;
|
import com.lovenav.entity.Banners;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.mapper;
|
package com.lovenav.dao;
|
||||||
|
|
||||||
import com.lovenav.entity.CollectIconList;
|
import com.lovenav.entity.CollectIconList;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.mapper;
|
package com.lovenav.dao;
|
||||||
|
|
||||||
import com.lovenav.entity.Comment;
|
import com.lovenav.entity.Comment;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.mapper;
|
package com.lovenav.dao;
|
||||||
|
|
||||||
import com.lovenav.entity.Config;
|
import com.lovenav.entity.Config;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.mapper;
|
package com.lovenav.dao;
|
||||||
|
|
||||||
import com.lovenav.entity.LoginLogs;
|
import com.lovenav.entity.LoginLogs;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.mapper;
|
package com.lovenav.dao;
|
||||||
|
|
||||||
import com.lovenav.entity.Notice;
|
import com.lovenav.entity.Notice;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.mapper;
|
package com.lovenav.dao;
|
||||||
|
|
||||||
import com.lovenav.entity.Role;
|
import com.lovenav.entity.Role;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.mapper;
|
package com.lovenav.dao;
|
||||||
|
|
||||||
import com.lovenav.entity.UrlAccess;
|
import com.lovenav.entity.UrlAccess;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.mapper;
|
package com.lovenav.dao;
|
||||||
|
|
||||||
import com.lovenav.entity.UrlCateList;
|
import com.lovenav.entity.UrlCateList;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.mapper;
|
package com.lovenav.dao;
|
||||||
|
|
||||||
import com.lovenav.entity.UrlList;
|
import com.lovenav.entity.UrlList;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.mapper;
|
package com.lovenav.dao;
|
||||||
|
|
||||||
import com.lovenav.entity.User;
|
import com.lovenav.entity.User;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.mapper;
|
package com.lovenav.dao;
|
||||||
|
|
||||||
import com.lovenav.entity.UserMeta;
|
import com.lovenav.entity.UserMeta;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
@ -1,48 +0,0 @@
|
|||||||
package com.lovenav.entity;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Date;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ln_admin
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
public class Admin implements Serializable {
|
|
||||||
/**
|
|
||||||
* id
|
|
||||||
*/
|
|
||||||
private Integer id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 管理员登录账号
|
|
||||||
*/
|
|
||||||
private String adminAccount;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 管理员登录密码
|
|
||||||
*/
|
|
||||||
private String adminPassword;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 管理员邮箱
|
|
||||||
*/
|
|
||||||
private String adminEmail;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 角色组id
|
|
||||||
*/
|
|
||||||
private Integer roleId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时间
|
|
||||||
*/
|
|
||||||
private Date createtime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 状态(0有效/1禁用)
|
|
||||||
*/
|
|
||||||
private Integer adminStatus;
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
}
|
|
@ -1,24 +0,0 @@
|
|||||||
package com.lovenav.entity;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 管理员资料表
|
|
||||||
* ln_admin_meta
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
public class AdminMeta implements Serializable {
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 管理员id
|
|
||||||
*/
|
|
||||||
private Long adminId;
|
|
||||||
|
|
||||||
private String metaKey;
|
|
||||||
|
|
||||||
private String metaValue;
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
package com.lovenav.service;
|
|
||||||
|
|
||||||
public interface AdminService {
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
package com.lovenav.service.serviceImpl;
|
|
||||||
|
|
||||||
public class AdminServiceImpl {
|
|
||||||
}
|
|
@ -1,7 +1,7 @@
|
|||||||
package com.lovenav.service.serviceImpl;
|
package com.lovenav.service.serviceImpl;
|
||||||
|
|
||||||
|
|
||||||
import com.lovenav.utls.EmailUtils;
|
import com.lovenav.utils.EmailUtils;
|
||||||
import com.lovenav.entity.User;
|
import com.lovenav.entity.User;
|
||||||
import com.lovenav.service.UserService;
|
import com.lovenav.service.UserService;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.utls;
|
package com.lovenav.utils;
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.lovenav.utls;
|
package com.lovenav.utils;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.utls;
|
package com.lovenav.utils;
|
||||||
|
|
||||||
import java.math.BigInteger;
|
import java.math.BigInteger;
|
||||||
import java.security.MessageDigest;
|
import java.security.MessageDigest;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.utls;
|
package com.lovenav.utils;
|
||||||
|
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.utls;
|
package com.lovenav.utils;
|
||||||
|
|
||||||
|
|
||||||
import com.lovenav.entity.User;
|
import com.lovenav.entity.User;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lovenav.utls;
|
package com.lovenav.utils;
|
||||||
//字符串的各种校验
|
//字符串的各种校验
|
||||||
public class StrUtils {
|
public class StrUtils {
|
||||||
|
|
@ -1,45 +0,0 @@
|
|||||||
package generate;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 后台菜单
|
|
||||||
* ln_auth
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
public class LnAuth implements Serializable {
|
|
||||||
private Integer id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 图标
|
|
||||||
*/
|
|
||||||
private String icon;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 菜单名称
|
|
||||||
*/
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 菜单路由
|
|
||||||
*/
|
|
||||||
private String routeUrl;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 上级id
|
|
||||||
*/
|
|
||||||
private Integer pid;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 是否作为菜单展示 1是0不是
|
|
||||||
*/
|
|
||||||
private Byte isMenu;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 权重
|
|
||||||
*/
|
|
||||||
private Integer weigh;
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
package generate;
|
|
||||||
|
|
||||||
import generate.LnAuth;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
|
|
||||||
@Repository
|
|
||||||
public interface LnAuthDao {
|
|
||||||
int deleteByPrimaryKey(Integer id);
|
|
||||||
|
|
||||||
int insert(LnAuth record);
|
|
||||||
|
|
||||||
int insertSelective(LnAuth record);
|
|
||||||
|
|
||||||
LnAuth selectByPrimaryKey(Integer id);
|
|
||||||
|
|
||||||
int updateByPrimaryKeySelective(LnAuth record);
|
|
||||||
|
|
||||||
int updateByPrimaryKey(LnAuth record);
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
package generate;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Date;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ln_banners
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
public class LnBanners implements Serializable {
|
|
||||||
/**
|
|
||||||
* id
|
|
||||||
*/
|
|
||||||
private Integer id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 图片url
|
|
||||||
*/
|
|
||||||
private String imgUrl;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 权重
|
|
||||||
*/
|
|
||||||
private Integer weigh;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 跳转链接
|
|
||||||
*/
|
|
||||||
private String url;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 状态(0有效/1无效)
|
|
||||||
*/
|
|
||||||
private Byte bannerStatus;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时间
|
|
||||||
*/
|
|
||||||
private Date createtime;
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
package generate;
|
|
||||||
|
|
||||||
import generate.LnBanners;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
|
|
||||||
@Repository
|
|
||||||
public interface LnBannersDao {
|
|
||||||
int deleteByPrimaryKey(Integer id);
|
|
||||||
|
|
||||||
int insert(LnBanners record);
|
|
||||||
|
|
||||||
int insertSelective(LnBanners record);
|
|
||||||
|
|
||||||
LnBanners selectByPrimaryKey(Integer id);
|
|
||||||
|
|
||||||
int updateByPrimaryKeySelective(LnBanners record);
|
|
||||||
|
|
||||||
int updateByPrimaryKey(LnBanners record);
|
|
||||||
}
|
|
@ -1,111 +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.mapper.AdminDao">
|
|
||||||
<resultMap id="BaseResultMap" type="com.lovenav.entity.Admin">
|
|
||||||
<id column="id" jdbcType="INTEGER" property="id" />
|
|
||||||
<result column="admin_account" jdbcType="VARCHAR" property="adminAccount" />
|
|
||||||
<result column="admin_password" jdbcType="VARCHAR" property="adminPassword" />
|
|
||||||
<result column="admin_email" jdbcType="VARCHAR" property="adminEmail" />
|
|
||||||
<result column="role_id" jdbcType="INTEGER" property="roleId" />
|
|
||||||
<result column="createtime" jdbcType="TIMESTAMP" property="createtime" />
|
|
||||||
<result column="admin_status" jdbcType="INTEGER" property="adminStatus" />
|
|
||||||
</resultMap>
|
|
||||||
<sql id="Base_Column_List">
|
|
||||||
id, admin_account, admin_password, admin_email, role_id, createtime, admin_status
|
|
||||||
</sql>
|
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
||||||
select
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
from ln_admin
|
|
||||||
where id = #{id,jdbcType=INTEGER}
|
|
||||||
</select>
|
|
||||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
||||||
delete from ln_admin
|
|
||||||
where id = #{id,jdbcType=INTEGER}
|
|
||||||
</delete>
|
|
||||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.lovenav.entity.Admin" useGeneratedKeys="true">
|
|
||||||
insert into ln_admin (admin_account, admin_password, admin_email,
|
|
||||||
role_id, createtime, admin_status
|
|
||||||
)
|
|
||||||
values (#{adminAccount,jdbcType=VARCHAR}, #{adminPassword,jdbcType=VARCHAR}, #{adminEmail,jdbcType=VARCHAR},
|
|
||||||
#{roleId,jdbcType=INTEGER}, #{createtime,jdbcType=TIMESTAMP}, #{adminStatus,jdbcType=INTEGER}
|
|
||||||
)
|
|
||||||
</insert>
|
|
||||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.lovenav.entity.Admin" useGeneratedKeys="true">
|
|
||||||
insert into ln_admin
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="adminAccount != null">
|
|
||||||
admin_account,
|
|
||||||
</if>
|
|
||||||
<if test="adminPassword != null">
|
|
||||||
admin_password,
|
|
||||||
</if>
|
|
||||||
<if test="adminEmail != null">
|
|
||||||
admin_email,
|
|
||||||
</if>
|
|
||||||
<if test="roleId != null">
|
|
||||||
role_id,
|
|
||||||
</if>
|
|
||||||
<if test="createtime != null">
|
|
||||||
createtime,
|
|
||||||
</if>
|
|
||||||
<if test="adminStatus != null">
|
|
||||||
admin_status,
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="adminAccount != null">
|
|
||||||
#{adminAccount,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="adminPassword != null">
|
|
||||||
#{adminPassword,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="adminEmail != null">
|
|
||||||
#{adminEmail,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="roleId != null">
|
|
||||||
#{roleId,jdbcType=INTEGER},
|
|
||||||
</if>
|
|
||||||
<if test="createtime != null">
|
|
||||||
#{createtime,jdbcType=TIMESTAMP},
|
|
||||||
</if>
|
|
||||||
<if test="adminStatus != null">
|
|
||||||
#{adminStatus,jdbcType=INTEGER},
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
<update id="updateByPrimaryKeySelective" parameterType="com.lovenav.entity.Admin">
|
|
||||||
update ln_admin
|
|
||||||
<set>
|
|
||||||
<if test="adminAccount != null">
|
|
||||||
admin_account = #{adminAccount,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="adminPassword != null">
|
|
||||||
admin_password = #{adminPassword,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="adminEmail != null">
|
|
||||||
admin_email = #{adminEmail,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="roleId != null">
|
|
||||||
role_id = #{roleId,jdbcType=INTEGER},
|
|
||||||
</if>
|
|
||||||
<if test="createtime != null">
|
|
||||||
createtime = #{createtime,jdbcType=TIMESTAMP},
|
|
||||||
</if>
|
|
||||||
<if test="adminStatus != null">
|
|
||||||
admin_status = #{adminStatus,jdbcType=INTEGER},
|
|
||||||
</if>
|
|
||||||
</set>
|
|
||||||
where id = #{id,jdbcType=INTEGER}
|
|
||||||
</update>
|
|
||||||
<update id="updateByPrimaryKey" parameterType="com.lovenav.entity.Admin">
|
|
||||||
update ln_admin
|
|
||||||
set admin_account = #{adminAccount,jdbcType=VARCHAR},
|
|
||||||
admin_password = #{adminPassword,jdbcType=VARCHAR},
|
|
||||||
admin_email = #{adminEmail,jdbcType=VARCHAR},
|
|
||||||
role_id = #{roleId,jdbcType=INTEGER},
|
|
||||||
createtime = #{createtime,jdbcType=TIMESTAMP},
|
|
||||||
admin_status = #{adminStatus,jdbcType=INTEGER}
|
|
||||||
where id = #{id,jdbcType=INTEGER}
|
|
||||||
</update>
|
|
||||||
</mapper>
|
|
@ -1,76 +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.mapper.AdminMetaDao">
|
|
||||||
<resultMap id="BaseResultMap" type="com.lovenav.entity.AdminMeta">
|
|
||||||
<id column="id" jdbcType="BIGINT" property="id" />
|
|
||||||
<result column="admin_id" jdbcType="BIGINT" property="adminId" />
|
|
||||||
<result column="meta_key" jdbcType="VARCHAR" property="metaKey" />
|
|
||||||
<result column="meta_value" jdbcType="VARCHAR" property="metaValue" />
|
|
||||||
</resultMap>
|
|
||||||
<sql id="Base_Column_List">
|
|
||||||
id, admin_id, meta_key, meta_value
|
|
||||||
</sql>
|
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
||||||
select
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
from ln_admin_meta
|
|
||||||
where id = #{id,jdbcType=BIGINT}
|
|
||||||
</select>
|
|
||||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
||||||
delete from ln_admin_meta
|
|
||||||
where id = #{id,jdbcType=BIGINT}
|
|
||||||
</delete>
|
|
||||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.lovenav.entity.AdminMeta" useGeneratedKeys="true">
|
|
||||||
insert into ln_admin_meta (admin_id, meta_key, meta_value
|
|
||||||
)
|
|
||||||
values (#{adminId,jdbcType=BIGINT}, #{metaKey,jdbcType=VARCHAR}, #{metaValue,jdbcType=VARCHAR}
|
|
||||||
)
|
|
||||||
</insert>
|
|
||||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.lovenav.entity.AdminMeta" useGeneratedKeys="true">
|
|
||||||
insert into ln_admin_meta
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="adminId != null">
|
|
||||||
admin_id,
|
|
||||||
</if>
|
|
||||||
<if test="metaKey != null">
|
|
||||||
meta_key,
|
|
||||||
</if>
|
|
||||||
<if test="metaValue != null">
|
|
||||||
meta_value,
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="adminId != null">
|
|
||||||
#{adminId,jdbcType=BIGINT},
|
|
||||||
</if>
|
|
||||||
<if test="metaKey != null">
|
|
||||||
#{metaKey,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="metaValue != null">
|
|
||||||
#{metaValue,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
<update id="updateByPrimaryKeySelective" parameterType="com.lovenav.entity.AdminMeta">
|
|
||||||
update ln_admin_meta
|
|
||||||
<set>
|
|
||||||
<if test="adminId != null">
|
|
||||||
admin_id = #{adminId,jdbcType=BIGINT},
|
|
||||||
</if>
|
|
||||||
<if test="metaKey != null">
|
|
||||||
meta_key = #{metaKey,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="metaValue != null">
|
|
||||||
meta_value = #{metaValue,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
</set>
|
|
||||||
where id = #{id,jdbcType=BIGINT}
|
|
||||||
</update>
|
|
||||||
<update id="updateByPrimaryKey" parameterType="com.lovenav.entity.AdminMeta">
|
|
||||||
update ln_admin_meta
|
|
||||||
set admin_id = #{adminId,jdbcType=BIGINT},
|
|
||||||
meta_key = #{metaKey,jdbcType=VARCHAR},
|
|
||||||
meta_value = #{metaValue,jdbcType=VARCHAR}
|
|
||||||
where id = #{id,jdbcType=BIGINT}
|
|
||||||
</update>
|
|
||||||
</mapper>
|
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lovenav.mapper.AttachmentDao">
|
<mapper namespace="com.lovenav.dao.AttachmentDao">
|
||||||
<resultMap id="BaseResultMap" type="com.lovenav.entity.Attachment">
|
<resultMap id="BaseResultMap" type="com.lovenav.entity.Attachment">
|
||||||
<id column="id" jdbcType="BIGINT" property="id" />
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
<result column="path" jdbcType="VARCHAR" property="path" />
|
<result column="path" jdbcType="VARCHAR" property="path" />
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lovenav.mapper.AuthDao">
|
<mapper namespace="com.lovenav.dao.AuthDao">
|
||||||
<resultMap id="BaseResultMap" type="com.lovenav.entity.Auth">
|
<resultMap id="BaseResultMap" type="com.lovenav.entity.Auth">
|
||||||
<id column="id" jdbcType="INTEGER" property="id" />
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||||||
<result column="icon" jdbcType="VARCHAR" property="icon" />
|
<result column="icon" jdbcType="VARCHAR" property="icon" />
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lovenav.mapper.BannersDao">
|
<mapper namespace="com.lovenav.dao.BannersDao">
|
||||||
<resultMap id="BaseResultMap" type="com.lovenav.entity.Banners">
|
<resultMap id="BaseResultMap" type="com.lovenav.entity.Banners">
|
||||||
<id column="id" jdbcType="INTEGER" property="id" />
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||||||
<result column="img_url" jdbcType="VARCHAR" property="imgUrl" />
|
<result column="img_url" jdbcType="VARCHAR" property="imgUrl" />
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lovenav.mapper.CollectIconListDao">
|
<mapper namespace="com.lovenav.dao.CollectIconListDao">
|
||||||
<resultMap id="BaseResultMap" type="com.lovenav.entity.CollectIconList">
|
<resultMap id="BaseResultMap" type="com.lovenav.entity.CollectIconList">
|
||||||
<id column="id" jdbcType="BIGINT" property="id" />
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
<result column="url_md5" jdbcType="VARCHAR" property="urlMd5" />
|
<result column="url_md5" jdbcType="VARCHAR" property="urlMd5" />
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lovenav.mapper.CommentDao">
|
<mapper namespace="com.lovenav.dao.CommentDao">
|
||||||
<resultMap id="BaseResultMap" type="com.lovenav.entity.Comment">
|
<resultMap id="BaseResultMap" type="com.lovenav.entity.Comment">
|
||||||
<id column="id" jdbcType="INTEGER" property="id" />
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||||||
<result column="url_id" jdbcType="INTEGER" property="urlId" />
|
<result column="url_id" jdbcType="INTEGER" property="urlId" />
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lovenav.mapper.ConfigDao">
|
<mapper namespace="com.lovenav.dao.ConfigDao">
|
||||||
<resultMap id="BaseResultMap" type="com.lovenav.entity.Config">
|
<resultMap id="BaseResultMap" type="com.lovenav.entity.Config">
|
||||||
<id column="id" jdbcType="INTEGER" property="id" />
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||||||
<result column="type" jdbcType="OTHER" property="type" />
|
<result column="type" jdbcType="OTHER" property="type" />
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lovenav.mapper.LoginLogsDao">
|
<mapper namespace="com.lovenav.dao.LoginLogsDao">
|
||||||
<resultMap id="BaseResultMap" type="com.lovenav.entity.LoginLogs">
|
<resultMap id="BaseResultMap" type="com.lovenav.entity.LoginLogs">
|
||||||
<id column="id" jdbcType="INTEGER" property="id" />
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||||||
<result column="login_ip" jdbcType="VARCHAR" property="loginIp" />
|
<result column="login_ip" jdbcType="VARCHAR" property="loginIp" />
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lovenav.mapper.NoticeDao">
|
<mapper namespace="com.lovenav.dao.NoticeDao">
|
||||||
<resultMap id="BaseResultMap" type="com.lovenav.entity.Notice">
|
<resultMap id="BaseResultMap" type="com.lovenav.entity.Notice">
|
||||||
<id column="id" jdbcType="INTEGER" property="id" />
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||||||
<result column="title" jdbcType="VARCHAR" property="title" />
|
<result column="title" jdbcType="VARCHAR" property="title" />
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lovenav.mapper.RoleDao">
|
<mapper namespace="com.lovenav.dao.RoleDao">
|
||||||
<resultMap id="BaseResultMap" type="com.lovenav.entity.Role">
|
<resultMap id="BaseResultMap" type="com.lovenav.entity.Role">
|
||||||
<id column="id" jdbcType="INTEGER" property="id" />
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||||||
<result column="role_name" jdbcType="VARCHAR" property="roleName" />
|
<result column="role_name" jdbcType="VARCHAR" property="roleName" />
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lovenav.mapper.UrlAccessDao">
|
<mapper namespace="com.lovenav.dao.UrlAccessDao">
|
||||||
<resultMap id="BaseResultMap" type="com.lovenav.entity.UrlAccess">
|
<resultMap id="BaseResultMap" type="com.lovenav.entity.UrlAccess">
|
||||||
<id column="id" jdbcType="INTEGER" property="id" />
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||||||
<result column="url_id" jdbcType="INTEGER" property="urlId" />
|
<result column="url_id" jdbcType="INTEGER" property="urlId" />
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lovenav.mapper.UrlCateListDao">
|
<mapper namespace="com.lovenav.dao.UrlCateListDao">
|
||||||
<resultMap id="BaseResultMap" type="com.lovenav.entity.UrlCateList">
|
<resultMap id="BaseResultMap" type="com.lovenav.entity.UrlCateList">
|
||||||
<id column="id" jdbcType="INTEGER" property="id" />
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lovenav.mapper.UrlListDao">
|
<mapper namespace="com.lovenav.dao.UrlListDao">
|
||||||
<resultMap id="BaseResultMap" type="com.lovenav.entity.UrlList">
|
<resultMap id="BaseResultMap" type="com.lovenav.entity.UrlList">
|
||||||
<id column="id" jdbcType="BIGINT" property="id" />
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lovenav.mapper.UserDao">
|
<mapper namespace="com.lovenav.dao.UserDao">
|
||||||
<resultMap id="BaseResultMap" type="com.lovenav.entity.User">
|
<resultMap id="BaseResultMap" type="com.lovenav.entity.User">
|
||||||
<id column="id" jdbcType="INTEGER" property="id" />
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||||||
<result column="user_login" jdbcType="VARCHAR" property="userLogin" />
|
<result column="user_login" jdbcType="VARCHAR" property="userLogin" />
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lovenav.mapper.UserMetaDao">
|
<mapper namespace="com.lovenav.dao.UserMetaDao">
|
||||||
<resultMap id="BaseResultMap" type="com.lovenav.entity.UserMeta">
|
<resultMap id="BaseResultMap" type="com.lovenav.entity.UserMeta">
|
||||||
<id column="id" jdbcType="BIGINT" property="id" />
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
<result column="user_id" jdbcType="BIGINT" property="userId" />
|
<result column="user_id" jdbcType="BIGINT" property="userId" />
|
Loading…
Reference in New Issue
Block a user