parent
cffa246bf7
commit
25c155c60a
@ -1,116 +1,65 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 广告对象 b_poster
|
||||
*
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-11-21
|
||||
*/
|
||||
public class BPoster extends BaseEntity
|
||||
{
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class BPoster extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/** 广告名称 */
|
||||
/**
|
||||
* 广告名称
|
||||
*/
|
||||
@Excel(name = "广告名称")
|
||||
private String posterName;
|
||||
|
||||
/** 有效起始时间 */
|
||||
/**
|
||||
* 有效起始时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "有效起始时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@Excel(name = "有效起始时间" , width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date startTime;
|
||||
|
||||
/** 有效结束时间 */
|
||||
/**
|
||||
* 有效结束时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "有效结束时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@Excel(name = "有效结束时间" , width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date endTime;
|
||||
|
||||
/** 视频封面 */
|
||||
/**
|
||||
* 视频封面
|
||||
*/
|
||||
@Excel(name = "视频封面")
|
||||
private String videoLogo;
|
||||
|
||||
/** 视频路径 */
|
||||
/**
|
||||
* 视频路径
|
||||
*/
|
||||
@Excel(name = "视频路径")
|
||||
private String videoPath;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setPosterName(String posterName)
|
||||
{
|
||||
this.posterName = posterName;
|
||||
}
|
||||
|
||||
public String getPosterName()
|
||||
{
|
||||
return posterName;
|
||||
}
|
||||
public void setStartTime(Date startTime)
|
||||
{
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Date getStartTime()
|
||||
{
|
||||
return startTime;
|
||||
}
|
||||
public void setEndTime(Date endTime)
|
||||
{
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public Date getEndTime()
|
||||
{
|
||||
return endTime;
|
||||
}
|
||||
public void setVideoLogo(String videoLogo)
|
||||
{
|
||||
this.videoLogo = videoLogo;
|
||||
}
|
||||
|
||||
public String getVideoLogo()
|
||||
{
|
||||
return videoLogo;
|
||||
}
|
||||
public void setVideoPath(String videoPath)
|
||||
{
|
||||
this.videoPath = videoPath;
|
||||
}
|
||||
|
||||
public String getVideoPath()
|
||||
{
|
||||
return videoPath;
|
||||
}
|
||||
/**
|
||||
* 广告关联的商户id
|
||||
*/
|
||||
private List<Long> shanghuIdList;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("posterName", getPosterName())
|
||||
.append("startTime", getStartTime())
|
||||
.append("endTime", getEndTime())
|
||||
.append("videoLogo", getVideoLogo())
|
||||
.append("videoPath", getVideoPath())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,131 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 商户对象 b_shanghu
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-11-21
|
||||
*/
|
||||
public class SysShanghu extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 商户名称
|
||||
*/
|
||||
@Excel(name = "商户名称")
|
||||
private String posName;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
@Excel(name = "手机号")
|
||||
private String phoneNumber;
|
||||
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
@Excel(name = "联系人")
|
||||
private String linkMan;
|
||||
|
||||
/**
|
||||
* 城市
|
||||
*/
|
||||
@Excel(name = "城市")
|
||||
private String city;
|
||||
|
||||
/**
|
||||
* 地址信息
|
||||
*/
|
||||
@Excel(name = "地址信息")
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 广告标识
|
||||
*/
|
||||
@Excel(name = "广告标识")
|
||||
private Long posterId;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getPosName() {
|
||||
return posName;
|
||||
}
|
||||
|
||||
public void setPosName(String posName) {
|
||||
this.posName = posName;
|
||||
}
|
||||
|
||||
public String getPhoneNumber() {
|
||||
return phoneNumber;
|
||||
}
|
||||
|
||||
public void setPhoneNumber(String phoneNumber) {
|
||||
this.phoneNumber = phoneNumber;
|
||||
}
|
||||
|
||||
public String getLinkMan() {
|
||||
return linkMan;
|
||||
}
|
||||
|
||||
public void setLinkMan(String linkMan) {
|
||||
this.linkMan = linkMan;
|
||||
}
|
||||
|
||||
public String getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public Long getPosterId() {
|
||||
return posterId;
|
||||
}
|
||||
|
||||
public void setPosterId(Long posterId) {
|
||||
this.posterId = posterId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("posName", getPosName())
|
||||
.append("phoneNumber", getPhoneNumber())
|
||||
.append("linkMan", getLinkMan())
|
||||
.append("city", getCity())
|
||||
.append("address", getAddress())
|
||||
.append("posterId", getPosterId())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import com.ruoyi.system.domain.SysShanghu;
|
||||
|
||||
/**
|
||||
* 商户Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-11-21
|
||||
*/
|
||||
public interface SysShanghuMapper {
|
||||
|
||||
|
||||
/**
|
||||
* 新增商户
|
||||
*
|
||||
* @param bShanghu 商户
|
||||
* @return 结果
|
||||
*/
|
||||
int insertBShanghu(SysShanghu bShanghu);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
<?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.ruoyi.system.mapper.SysShanghuMapper">
|
||||
|
||||
|
||||
<resultMap type="BShanghu" id="BShanghuResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="posName" column="pos_name" />
|
||||
<result property="phoneNumber" column="phone_number" />
|
||||
<result property="linkMan" column="link_man" />
|
||||
<result property="city" column="city" />
|
||||
<result property="address" column="address" />
|
||||
<result property="posterId" column="poster_id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<insert id="insertBShanghu" parameterType="com.ruoyi.system.domain.SysShanghu" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into b_shanghu
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="posName != null and posName != ''">pos_name,</if>
|
||||
<if test="phoneNumber != null and phoneNumber != ''">phone_number,</if>
|
||||
<if test="linkMan != null and linkMan != ''">link_man,</if>
|
||||
<if test="city != null and city != ''">city,</if>
|
||||
<if test="address != null and address != ''">address,</if>
|
||||
<if test="posterId != null">poster_id,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="posName != null and posName != ''">#{posName},</if>
|
||||
<if test="phoneNumber != null and phoneNumber != ''">#{phoneNumber},</if>
|
||||
<if test="linkMan != null and linkMan != ''">#{linkMan},</if>
|
||||
<if test="city != null and city != ''">#{city},</if>
|
||||
<if test="address != null and address != ''">#{address},</if>
|
||||
<if test="posterId != null">#{posterId},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
</mapper>
|
Loading…
Reference in new issue