parent
cffa246bf7
commit
25c155c60a
@ -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