弹窗和轮播图
parent
d357822dec
commit
b9c5de3a47
@ -0,0 +1,68 @@
|
|||||||
|
package com.flossom.common.core.domain.entity;
|
||||||
|
|
||||||
|
import com.flossom.common.core.annotation.Excel;
|
||||||
|
import com.flossom.common.core.web.domain.BaseEntity;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 站点管理日志记录对象 site_log
|
||||||
|
*
|
||||||
|
* @author flossom
|
||||||
|
* @date 2024-01-12
|
||||||
|
*/
|
||||||
|
public class SiteLog extends BaseEntity {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* $column.columnComment
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员id
|
||||||
|
*/
|
||||||
|
@Excel(name = "会员id")
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 站点id
|
||||||
|
*/
|
||||||
|
@Excel(name = "站点id")
|
||||||
|
private Long siteId;
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserId(Long userId) {
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getUserId() {
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSiteId(Long siteId) {
|
||||||
|
this.siteId = siteId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getSiteId() {
|
||||||
|
return siteId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("userId", getUserId())
|
||||||
|
.append("siteId", getSiteId())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.flossom.common.core.mapper;
|
||||||
|
|
||||||
|
import com.flossom.common.core.domain.entity.SiteLog;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 站点管理日志记录Mapper接口
|
||||||
|
*
|
||||||
|
* @author flossom
|
||||||
|
* @date 2024-01-12
|
||||||
|
*/
|
||||||
|
public interface SiteLogMapper {
|
||||||
|
/**
|
||||||
|
* 查询站点管理日志记录
|
||||||
|
*
|
||||||
|
* @param id 站点管理日志记录主键
|
||||||
|
* @return 站点管理日志记录
|
||||||
|
*/
|
||||||
|
public SiteLog selectSiteLogById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询站点管理日志记录列表
|
||||||
|
*
|
||||||
|
* @param siteLog 站点管理日志记录
|
||||||
|
* @return 站点管理日志记录集合
|
||||||
|
*/
|
||||||
|
public List<SiteLog> selectSiteLogList(SiteLog siteLog);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增站点管理日志记录
|
||||||
|
*
|
||||||
|
* @param siteLog 站点管理日志记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSiteLog(SiteLog siteLog);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改站点管理日志记录
|
||||||
|
*
|
||||||
|
* @param siteLog 站点管理日志记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSiteLog(SiteLog siteLog);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除站点管理日志记录
|
||||||
|
*
|
||||||
|
* @param id 站点管理日志记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSiteLogById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除站点管理日志记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSiteLogByIds(Long[] ids);
|
||||||
|
}
|
||||||
@ -0,0 +1,71 @@
|
|||||||
|
<?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.flossom.common.core.mapper.SiteLogMapper">
|
||||||
|
|
||||||
|
<resultMap type="SiteLog" id="SiteLogResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="userId" column="user_id" />
|
||||||
|
<result property="siteId" column="site_id" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectSiteLogVo">
|
||||||
|
select id, user_id, site_id, create_by, create_time from site_log
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectSiteLogList" parameterType="SiteLog" resultMap="SiteLogResult">
|
||||||
|
<include refid="selectSiteLogVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="userId != null "> and user_id = #{userId}</if>
|
||||||
|
<if test="siteId != null "> and site_id = #{siteId}</if>
|
||||||
|
<if test="params != null and params.beginTime != null"> and create_time >= #{params.beginTime},</if>
|
||||||
|
<if test="params != null and params.endTime != null"> and create_time <= #{params.endTime},</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectSiteLogById" parameterType="Long" resultMap="SiteLogResult">
|
||||||
|
<include refid="selectSiteLogVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertSiteLog" parameterType="SiteLog" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into site_log
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="userId != null">user_id,</if>
|
||||||
|
<if test="siteId != null">site_id,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="userId != null">#{userId},</if>
|
||||||
|
<if test="siteId != null">#{siteId},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateSiteLog" parameterType="SiteLog">
|
||||||
|
update site_log
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="userId != null">user_id = #{userId},</if>
|
||||||
|
<if test="siteId != null">site_id = #{siteId},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteSiteLogById" parameterType="Long">
|
||||||
|
delete from site_log where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteSiteLogByIds" parameterType="String">
|
||||||
|
delete from site_log where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
package com.flossom.miniProgram.service;
|
||||||
|
|
||||||
|
import com.flossom.common.core.domain.entity.SiteInfo;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface ISiteInfoService {
|
||||||
|
List<SiteInfo> popupList(Integer openType);
|
||||||
|
|
||||||
|
List<SiteInfo> carousel();
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue