supplier V2.0.0版本发布
This commit is contained in:
1 parent
2b5d2c11ee
commit
d95d3b792a
1011 files changed
+29417
-16989
No files matched your search
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>supplier</artifactId>
|
||||
<groupId>co.yixiang</groupId>
|
||||
<version>2.0.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>supplier-system</artifactId>
|
||||
|
||||
<description>
|
||||
system系统模块
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- 通用工具-->
|
||||
<dependency>
|
||||
<groupId>co.yixiang</groupId>
|
||||
<artifactId>supplier-common</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,229 @@
|
||||
package co.yixiang.shop.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 优惠券主对象 store_coupon
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
public class StoreCoupon extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 表id */
|
||||
private Integer id;
|
||||
|
||||
/** 优惠券名字 */
|
||||
@Excel(name = "优惠券名字")
|
||||
private String name;
|
||||
|
||||
/** 发放类型 0下单赠送1 指定发放 2 免费领取 3线下发放 */
|
||||
private Integer type;
|
||||
|
||||
/** 优惠券金额 */
|
||||
@Excel(name = "优惠券金额")
|
||||
private Double money;
|
||||
|
||||
/** 使用条件,满多少金额 */
|
||||
@Excel(name = "使用条件,满多少金额")
|
||||
private Double condition;
|
||||
|
||||
/** 发放数量 */
|
||||
@Excel(name = "发放数量")
|
||||
private Long createnum;
|
||||
|
||||
/** 已领取数量 */
|
||||
@Excel(name = "已领取数量")
|
||||
private Long sendNum;
|
||||
|
||||
/** 已使用数量 */
|
||||
private Long useNum;
|
||||
|
||||
/** 发放开始时间 */
|
||||
private Long sendStartTime;
|
||||
|
||||
/** 发放结束时间 */
|
||||
private Long sendEndTime;
|
||||
|
||||
/** 使用开始时间 */
|
||||
@Excel(name = "使用开始时间")
|
||||
private Date useStartTime;
|
||||
|
||||
/** 使用结束时间 */
|
||||
@Excel(name = "使用结束时间")
|
||||
private Date useEndTime;
|
||||
|
||||
/** 添加时间 */
|
||||
private Long addTime;
|
||||
|
||||
/** 状态:1有效,2无效 */
|
||||
private Integer status;
|
||||
|
||||
/** 使用范围:0全店通用1指定商品可用2指定分类商品可用 */
|
||||
private Integer useType;
|
||||
|
||||
public void setId(Integer id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setType(Integer type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setMoney(Double money)
|
||||
{
|
||||
this.money = money;
|
||||
}
|
||||
|
||||
public Double getMoney()
|
||||
{
|
||||
return money;
|
||||
}
|
||||
public void setCondition(Double condition)
|
||||
{
|
||||
this.condition = condition;
|
||||
}
|
||||
|
||||
public Double getCondition()
|
||||
{
|
||||
return condition;
|
||||
}
|
||||
public void setCreatenum(Long createnum)
|
||||
{
|
||||
this.createnum = createnum;
|
||||
}
|
||||
|
||||
public Long getCreatenum()
|
||||
{
|
||||
return createnum;
|
||||
}
|
||||
public void setSendNum(Long sendNum)
|
||||
{
|
||||
this.sendNum = sendNum;
|
||||
}
|
||||
|
||||
public Long getSendNum()
|
||||
{
|
||||
return sendNum;
|
||||
}
|
||||
public void setUseNum(Long useNum)
|
||||
{
|
||||
this.useNum = useNum;
|
||||
}
|
||||
|
||||
public Long getUseNum()
|
||||
{
|
||||
return useNum;
|
||||
}
|
||||
public void setSendStartTime(Long sendStartTime)
|
||||
{
|
||||
this.sendStartTime = sendStartTime;
|
||||
}
|
||||
|
||||
public Long getSendStartTime()
|
||||
{
|
||||
return sendStartTime;
|
||||
}
|
||||
public void setSendEndTime(Long sendEndTime)
|
||||
{
|
||||
this.sendEndTime = sendEndTime;
|
||||
}
|
||||
|
||||
public Long getSendEndTime()
|
||||
{
|
||||
return sendEndTime;
|
||||
}
|
||||
|
||||
public void setUseStartTime(Date useStartTime)
|
||||
{
|
||||
this.useStartTime = useStartTime;
|
||||
}
|
||||
|
||||
public Date getUseStartTime()
|
||||
{
|
||||
return useStartTime;
|
||||
}
|
||||
public void setUseEndTime(Date useEndTime)
|
||||
{
|
||||
this.useEndTime = useEndTime;
|
||||
}
|
||||
|
||||
public Date getUseEndTime()
|
||||
{
|
||||
return useEndTime;
|
||||
}
|
||||
public void setAddTime(Long addTime)
|
||||
{
|
||||
this.addTime = addTime;
|
||||
}
|
||||
|
||||
public Long getAddTime()
|
||||
{
|
||||
return addTime;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setUseType(Integer useType)
|
||||
{
|
||||
this.useType = useType;
|
||||
}
|
||||
|
||||
public Integer getUseType()
|
||||
{
|
||||
return useType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("type", getType())
|
||||
.append("money", getMoney())
|
||||
.append("condition", getCondition())
|
||||
.append("createnum", getCreatenum())
|
||||
.append("sendNum", getSendNum())
|
||||
.append("useNum", getUseNum())
|
||||
.append("sendStartTime", getSendStartTime())
|
||||
.append("sendEndTime", getSendEndTime())
|
||||
.append("useStartTime", getUseStartTime())
|
||||
.append("useEndTime", getUseEndTime())
|
||||
.append("addTime", getAddTime())
|
||||
.append("status", getStatus())
|
||||
.append("useType", getUseType())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,163 @@
|
||||
package co.yixiang.shop.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 优惠券记录对象 store_coupon_list
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
public class StoreCouponList extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 表id */
|
||||
private Integer id;
|
||||
|
||||
/** 优惠券 对应coupon表id */
|
||||
@Excel(name = "优惠券 对应coupon表id")
|
||||
private Integer cid;
|
||||
|
||||
/** 发放类型 1 按订单发放 2 注册 3 邀请 4 按用户发放 */
|
||||
@Excel(name = "发放类型 1 按订单发放 2 注册 3 邀请 4 按用户发放")
|
||||
private Integer type;
|
||||
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Integer uid;
|
||||
|
||||
/** 订单id */
|
||||
@Excel(name = "订单id")
|
||||
private Integer orderId;
|
||||
|
||||
/** 优惠券来自订单ID */
|
||||
@Excel(name = "优惠券来自订单ID")
|
||||
private Long getOrderId;
|
||||
|
||||
/** 使用时间 */
|
||||
@Excel(name = "使用时间")
|
||||
private Long useTime;
|
||||
|
||||
/** 优惠券兑换码 */
|
||||
@Excel(name = "优惠券兑换码")
|
||||
private String code;
|
||||
|
||||
/** 发放时间 */
|
||||
@Excel(name = "发放时间")
|
||||
private Long sendTime;
|
||||
|
||||
/** 0未使用1已使用2已过期 */
|
||||
@Excel(name = "0未使用1已使用2已过期")
|
||||
private Integer status;
|
||||
|
||||
public void setId(Integer id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCid(Integer cid)
|
||||
{
|
||||
this.cid = cid;
|
||||
}
|
||||
|
||||
public Integer getCid()
|
||||
{
|
||||
return cid;
|
||||
}
|
||||
public void setType(Integer type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setUid(Integer uid)
|
||||
{
|
||||
this.uid = uid;
|
||||
}
|
||||
|
||||
public Integer getUid()
|
||||
{
|
||||
return uid;
|
||||
}
|
||||
public void setOrderId(Integer orderId)
|
||||
{
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public Integer getOrderId()
|
||||
{
|
||||
return orderId;
|
||||
}
|
||||
public void setGetOrderId(Long getOrderId)
|
||||
{
|
||||
this.getOrderId = getOrderId;
|
||||
}
|
||||
|
||||
public Long getGetOrderId()
|
||||
{
|
||||
return getOrderId;
|
||||
}
|
||||
public void setUseTime(Long useTime)
|
||||
{
|
||||
this.useTime = useTime;
|
||||
}
|
||||
|
||||
public Long getUseTime()
|
||||
{
|
||||
return useTime;
|
||||
}
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
public void setSendTime(Long sendTime)
|
||||
{
|
||||
this.sendTime = sendTime;
|
||||
}
|
||||
|
||||
public Long getSendTime()
|
||||
{
|
||||
return sendTime;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("cid", getCid())
|
||||
.append("type", getType())
|
||||
.append("uid", getUid())
|
||||
.append("orderId", getOrderId())
|
||||
.append("getOrderId", getGetOrderId())
|
||||
.append("useTime", getUseTime())
|
||||
.append("code", getCode())
|
||||
.append("sendTime", getSendTime())
|
||||
.append("status", getStatus())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,642 @@
|
||||
package co.yixiang.shop.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 商品主对象 store_goods
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-25
|
||||
*/
|
||||
public class StoreGoods extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 商品id */
|
||||
private Integer goodsId;
|
||||
|
||||
/** 分类id */
|
||||
@Excel(name = "分类id")
|
||||
private Long cateId;
|
||||
|
||||
private String brandName;
|
||||
|
||||
private String cateName;
|
||||
|
||||
//private
|
||||
|
||||
/** 扩展分类id */
|
||||
private Long extendCatId;
|
||||
|
||||
/** 商品编号 */
|
||||
@Excel(name = "商品编号")
|
||||
private String goodsSn;
|
||||
|
||||
/** 商品名称 */
|
||||
@Excel(name = "商品名称")
|
||||
private String goodsName;
|
||||
|
||||
/** 点击数 */
|
||||
private Integer clickCount;
|
||||
|
||||
/** 品牌id */
|
||||
@Excel(name = "品牌id")
|
||||
private Integer brandId;
|
||||
|
||||
/** 库存数量 */
|
||||
@Excel(name = "库存数量")
|
||||
private Integer storeCount;
|
||||
|
||||
/** 商品评论数 */
|
||||
private Integer commentCount;
|
||||
|
||||
/** 商品重量克为单位 */
|
||||
private Long weight;
|
||||
|
||||
/** 商品体积。单位立方米 */
|
||||
private Double volume;
|
||||
|
||||
/** 市场价(零售价) */
|
||||
@Excel(name = "市场价(零售价)")
|
||||
private Double marketPrice;
|
||||
|
||||
/** 本店价(供货价) */
|
||||
@Excel(name = "本店价(供货价)")
|
||||
private Double shopPrice;
|
||||
|
||||
/** 商品成本价 */
|
||||
private Double costPrice;
|
||||
|
||||
/** 价格阶梯 */
|
||||
private String priceLadder;
|
||||
|
||||
/** 商品关键词 */
|
||||
private String keywords;
|
||||
|
||||
/** 商品简单描述 */
|
||||
private String goodsRemark;
|
||||
|
||||
/** 商品详细描述 */
|
||||
private String goodsContent;
|
||||
|
||||
/** 手机端商品详情 */
|
||||
private String mobileContent;
|
||||
|
||||
/** 商品上传原始图(主图) */
|
||||
private String goodsLogo;
|
||||
|
||||
/** 是否为虚拟商品 1是,0否 */
|
||||
private Integer isVirtual;
|
||||
|
||||
/** 虚拟商品有效期 */
|
||||
private Long virtualIndate;
|
||||
|
||||
/** 虚拟商品购买上限 */
|
||||
private Integer virtualLimit;
|
||||
|
||||
/** 是否允许过期退款, 1是,0否 */
|
||||
private Integer virtualRefund;
|
||||
|
||||
/** 是否上架 0-未上架 1-销售中 */
|
||||
@Excel(name = "是否上架 0-未上架 1-销售中")
|
||||
private Integer isOnSale;
|
||||
|
||||
/** 是否包邮0否1是 */
|
||||
private Integer isFreeShipping;
|
||||
|
||||
/** 商品上架时间 */
|
||||
private Integer onTime;
|
||||
|
||||
/** 商品排序 */
|
||||
@Excel(name = "商品排序")
|
||||
private Integer sort;
|
||||
|
||||
/** 是否推荐0-未推荐 1-已推荐 */
|
||||
@Excel(name = "是否推荐0-未推荐 1-已推荐")
|
||||
private Integer isRecommend;
|
||||
|
||||
/** 是否新品0-不是 1-是 */
|
||||
@Excel(name = "是否新品0-不是 1-是")
|
||||
private Integer isNew;
|
||||
|
||||
/** 是否热卖 */
|
||||
private Integer isHot;
|
||||
|
||||
/** 最后更新时间 */
|
||||
private Integer lastUpdate;
|
||||
|
||||
/** 商品所属类型id,取值表goods_type的id */
|
||||
private Integer goodsType;
|
||||
|
||||
/** 商品规格类型,取值表goods_type的id */
|
||||
private Integer specType;
|
||||
|
||||
/** 购买商品赠送积分 */
|
||||
private Integer giveIntegral;
|
||||
|
||||
/** 积分兑换:0不参与积分兑换,积分和现金的兑换比例见后台配置 */
|
||||
private Integer exchangeIntegral;
|
||||
|
||||
/** 供货商ID */
|
||||
private Integer suppliersId;
|
||||
|
||||
/** 商品销量 */
|
||||
private Long salesSum;
|
||||
|
||||
/** 0默认1抢购2团购3优惠促销4预售5虚拟(5其实没用)6拼团 */
|
||||
private Integer promType;
|
||||
|
||||
/** 优惠活动id */
|
||||
private Long promId;
|
||||
|
||||
/** 佣金用于分销分成 */
|
||||
private Double commission;
|
||||
|
||||
/** SPU */
|
||||
private String spu;
|
||||
|
||||
/** SKU */
|
||||
private String sku;
|
||||
|
||||
/** 运费模板ID */
|
||||
private Long templateId;
|
||||
|
||||
/** 视频 */
|
||||
private String goodsVideo;
|
||||
|
||||
public String getCateName() {
|
||||
return cateName;
|
||||
}
|
||||
|
||||
public void setCateName(String cateName) {
|
||||
this.cateName = cateName;
|
||||
}
|
||||
|
||||
public String getBrandName() {
|
||||
return brandName;
|
||||
}
|
||||
|
||||
public void setBrandName(String brandName) {
|
||||
this.brandName = brandName;
|
||||
}
|
||||
|
||||
public void setGoodsId(Integer goodsId)
|
||||
{
|
||||
this.goodsId = goodsId;
|
||||
}
|
||||
|
||||
public Integer getGoodsId()
|
||||
{
|
||||
return goodsId;
|
||||
}
|
||||
public void setCateId(Long cateId)
|
||||
{
|
||||
this.cateId = cateId;
|
||||
}
|
||||
|
||||
public Long getCateId()
|
||||
{
|
||||
return cateId;
|
||||
}
|
||||
public void setExtendCatId(Long extendCatId)
|
||||
{
|
||||
this.extendCatId = extendCatId;
|
||||
}
|
||||
|
||||
public Long getExtendCatId()
|
||||
{
|
||||
return extendCatId;
|
||||
}
|
||||
public void setGoodsSn(String goodsSn)
|
||||
{
|
||||
this.goodsSn = goodsSn;
|
||||
}
|
||||
|
||||
public String getGoodsSn()
|
||||
{
|
||||
return goodsSn;
|
||||
}
|
||||
public void setGoodsName(String goodsName)
|
||||
{
|
||||
this.goodsName = goodsName;
|
||||
}
|
||||
|
||||
public String getGoodsName()
|
||||
{
|
||||
return goodsName;
|
||||
}
|
||||
public void setClickCount(Integer clickCount)
|
||||
{
|
||||
this.clickCount = clickCount;
|
||||
}
|
||||
|
||||
public Integer getClickCount()
|
||||
{
|
||||
return clickCount;
|
||||
}
|
||||
public void setBrandId(Integer brandId)
|
||||
{
|
||||
this.brandId = brandId;
|
||||
}
|
||||
|
||||
public Integer getBrandId()
|
||||
{
|
||||
return brandId;
|
||||
}
|
||||
public void setStoreCount(Integer storeCount)
|
||||
{
|
||||
this.storeCount = storeCount;
|
||||
}
|
||||
|
||||
public Integer getStoreCount()
|
||||
{
|
||||
return storeCount;
|
||||
}
|
||||
public void setCommentCount(Integer commentCount)
|
||||
{
|
||||
this.commentCount = commentCount;
|
||||
}
|
||||
|
||||
public Integer getCommentCount()
|
||||
{
|
||||
return commentCount;
|
||||
}
|
||||
public void setWeight(Long weight)
|
||||
{
|
||||
this.weight = weight;
|
||||
}
|
||||
|
||||
public Long getWeight()
|
||||
{
|
||||
return weight;
|
||||
}
|
||||
public void setVolume(Double volume)
|
||||
{
|
||||
this.volume = volume;
|
||||
}
|
||||
|
||||
public Double getVolume()
|
||||
{
|
||||
return volume;
|
||||
}
|
||||
public void setMarketPrice(Double marketPrice)
|
||||
{
|
||||
this.marketPrice = marketPrice;
|
||||
}
|
||||
|
||||
public Double getMarketPrice()
|
||||
{
|
||||
return marketPrice;
|
||||
}
|
||||
public void setShopPrice(Double shopPrice)
|
||||
{
|
||||
this.shopPrice = shopPrice;
|
||||
}
|
||||
|
||||
public Double getShopPrice()
|
||||
{
|
||||
return shopPrice;
|
||||
}
|
||||
public void setCostPrice(Double costPrice)
|
||||
{
|
||||
this.costPrice = costPrice;
|
||||
}
|
||||
|
||||
public Double getCostPrice()
|
||||
{
|
||||
return costPrice;
|
||||
}
|
||||
public void setPriceLadder(String priceLadder)
|
||||
{
|
||||
this.priceLadder = priceLadder;
|
||||
}
|
||||
|
||||
public String getPriceLadder()
|
||||
{
|
||||
return priceLadder;
|
||||
}
|
||||
public void setKeywords(String keywords)
|
||||
{
|
||||
this.keywords = keywords;
|
||||
}
|
||||
|
||||
public String getKeywords()
|
||||
{
|
||||
return keywords;
|
||||
}
|
||||
public void setGoodsRemark(String goodsRemark)
|
||||
{
|
||||
this.goodsRemark = goodsRemark;
|
||||
}
|
||||
|
||||
public String getGoodsRemark()
|
||||
{
|
||||
return goodsRemark;
|
||||
}
|
||||
public void setGoodsContent(String goodsContent)
|
||||
{
|
||||
this.goodsContent = goodsContent;
|
||||
}
|
||||
|
||||
public String getGoodsContent()
|
||||
{
|
||||
return goodsContent;
|
||||
}
|
||||
public void setMobileContent(String mobileContent)
|
||||
{
|
||||
this.mobileContent = mobileContent;
|
||||
}
|
||||
|
||||
public String getMobileContent()
|
||||
{
|
||||
return mobileContent;
|
||||
}
|
||||
public void setGoodsLogo(String goodsLogo)
|
||||
{
|
||||
this.goodsLogo = goodsLogo;
|
||||
}
|
||||
|
||||
public String getGoodsLogo()
|
||||
{
|
||||
return goodsLogo;
|
||||
}
|
||||
public void setIsVirtual(Integer isVirtual)
|
||||
{
|
||||
this.isVirtual = isVirtual;
|
||||
}
|
||||
|
||||
public Integer getIsVirtual()
|
||||
{
|
||||
return isVirtual;
|
||||
}
|
||||
public void setVirtualIndate(Long virtualIndate)
|
||||
{
|
||||
this.virtualIndate = virtualIndate;
|
||||
}
|
||||
|
||||
public Long getVirtualIndate()
|
||||
{
|
||||
return virtualIndate;
|
||||
}
|
||||
public void setVirtualLimit(Integer virtualLimit)
|
||||
{
|
||||
this.virtualLimit = virtualLimit;
|
||||
}
|
||||
|
||||
public Integer getVirtualLimit()
|
||||
{
|
||||
return virtualLimit;
|
||||
}
|
||||
public void setVirtualRefund(Integer virtualRefund)
|
||||
{
|
||||
this.virtualRefund = virtualRefund;
|
||||
}
|
||||
|
||||
public Integer getVirtualRefund()
|
||||
{
|
||||
return virtualRefund;
|
||||
}
|
||||
public void setIsOnSale(Integer isOnSale)
|
||||
{
|
||||
this.isOnSale = isOnSale;
|
||||
}
|
||||
|
||||
public Integer getIsOnSale()
|
||||
{
|
||||
return isOnSale;
|
||||
}
|
||||
public void setIsFreeShipping(Integer isFreeShipping)
|
||||
{
|
||||
this.isFreeShipping = isFreeShipping;
|
||||
}
|
||||
|
||||
public Integer getIsFreeShipping()
|
||||
{
|
||||
return isFreeShipping;
|
||||
}
|
||||
public void setOnTime(Integer onTime)
|
||||
{
|
||||
this.onTime = onTime;
|
||||
}
|
||||
|
||||
public Integer getOnTime()
|
||||
{
|
||||
return onTime;
|
||||
}
|
||||
public void setSort(Integer sort)
|
||||
{
|
||||
this.sort = sort;
|
||||
}
|
||||
|
||||
public Integer getSort()
|
||||
{
|
||||
return sort;
|
||||
}
|
||||
public void setIsRecommend(Integer isRecommend)
|
||||
{
|
||||
this.isRecommend = isRecommend;
|
||||
}
|
||||
|
||||
public Integer getIsRecommend()
|
||||
{
|
||||
return isRecommend;
|
||||
}
|
||||
public void setIsNew(Integer isNew)
|
||||
{
|
||||
this.isNew = isNew;
|
||||
}
|
||||
|
||||
public Integer getIsNew()
|
||||
{
|
||||
return isNew;
|
||||
}
|
||||
public void setIsHot(Integer isHot)
|
||||
{
|
||||
this.isHot = isHot;
|
||||
}
|
||||
|
||||
public Integer getIsHot()
|
||||
{
|
||||
return isHot;
|
||||
}
|
||||
public void setLastUpdate(Integer lastUpdate)
|
||||
{
|
||||
this.lastUpdate = lastUpdate;
|
||||
}
|
||||
|
||||
public Integer getLastUpdate()
|
||||
{
|
||||
return lastUpdate;
|
||||
}
|
||||
public void setGoodsType(Integer goodsType)
|
||||
{
|
||||
this.goodsType = goodsType;
|
||||
}
|
||||
|
||||
public Integer getGoodsType()
|
||||
{
|
||||
return goodsType;
|
||||
}
|
||||
public void setSpecType(Integer specType)
|
||||
{
|
||||
this.specType = specType;
|
||||
}
|
||||
|
||||
public Integer getSpecType()
|
||||
{
|
||||
return specType;
|
||||
}
|
||||
public void setGiveIntegral(Integer giveIntegral)
|
||||
{
|
||||
this.giveIntegral = giveIntegral;
|
||||
}
|
||||
|
||||
public Integer getGiveIntegral()
|
||||
{
|
||||
return giveIntegral;
|
||||
}
|
||||
public void setExchangeIntegral(Integer exchangeIntegral)
|
||||
{
|
||||
this.exchangeIntegral = exchangeIntegral;
|
||||
}
|
||||
|
||||
public Integer getExchangeIntegral()
|
||||
{
|
||||
return exchangeIntegral;
|
||||
}
|
||||
public void setSuppliersId(Integer suppliersId)
|
||||
{
|
||||
this.suppliersId = suppliersId;
|
||||
}
|
||||
|
||||
public Integer getSuppliersId()
|
||||
{
|
||||
return suppliersId;
|
||||
}
|
||||
public void setSalesSum(Long salesSum)
|
||||
{
|
||||
this.salesSum = salesSum;
|
||||
}
|
||||
|
||||
public Long getSalesSum()
|
||||
{
|
||||
return salesSum;
|
||||
}
|
||||
public void setPromType(Integer promType)
|
||||
{
|
||||
this.promType = promType;
|
||||
}
|
||||
|
||||
public Integer getPromType()
|
||||
{
|
||||
return promType;
|
||||
}
|
||||
public void setPromId(Long promId)
|
||||
{
|
||||
this.promId = promId;
|
||||
}
|
||||
|
||||
public Long getPromId()
|
||||
{
|
||||
return promId;
|
||||
}
|
||||
public void setCommission(Double commission)
|
||||
{
|
||||
this.commission = commission;
|
||||
}
|
||||
|
||||
public Double getCommission()
|
||||
{
|
||||
return commission;
|
||||
}
|
||||
public void setSpu(String spu)
|
||||
{
|
||||
this.spu = spu;
|
||||
}
|
||||
|
||||
public String getSpu()
|
||||
{
|
||||
return spu;
|
||||
}
|
||||
public void setSku(String sku)
|
||||
{
|
||||
this.sku = sku;
|
||||
}
|
||||
|
||||
public String getSku()
|
||||
{
|
||||
return sku;
|
||||
}
|
||||
public void setTemplateId(Long templateId)
|
||||
{
|
||||
this.templateId = templateId;
|
||||
}
|
||||
|
||||
public Long getTemplateId()
|
||||
{
|
||||
return templateId;
|
||||
}
|
||||
public void setGoodsVideo(String goodsVideo)
|
||||
{
|
||||
this.goodsVideo = goodsVideo;
|
||||
}
|
||||
|
||||
public String getGoodsVideo()
|
||||
{
|
||||
return goodsVideo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("goodsId", getGoodsId())
|
||||
.append("cateId", getCateId())
|
||||
.append("extendCatId", getExtendCatId())
|
||||
.append("goodsSn", getGoodsSn())
|
||||
.append("goodsName", getGoodsName())
|
||||
.append("clickCount", getClickCount())
|
||||
.append("brandId", getBrandId())
|
||||
.append("storeCount", getStoreCount())
|
||||
.append("commentCount", getCommentCount())
|
||||
.append("weight", getWeight())
|
||||
.append("volume", getVolume())
|
||||
.append("marketPrice", getMarketPrice())
|
||||
.append("shopPrice", getShopPrice())
|
||||
.append("costPrice", getCostPrice())
|
||||
.append("priceLadder", getPriceLadder())
|
||||
.append("keywords", getKeywords())
|
||||
.append("goodsRemark", getGoodsRemark())
|
||||
.append("goodsContent", getGoodsContent())
|
||||
.append("mobileContent", getMobileContent())
|
||||
.append("goodsLogo", getGoodsLogo())
|
||||
.append("isVirtual", getIsVirtual())
|
||||
.append("virtualIndate", getVirtualIndate())
|
||||
.append("virtualLimit", getVirtualLimit())
|
||||
.append("virtualRefund", getVirtualRefund())
|
||||
.append("isOnSale", getIsOnSale())
|
||||
.append("isFreeShipping", getIsFreeShipping())
|
||||
.append("onTime", getOnTime())
|
||||
.append("sort", getSort())
|
||||
.append("isRecommend", getIsRecommend())
|
||||
.append("isNew", getIsNew())
|
||||
.append("isHot", getIsHot())
|
||||
.append("lastUpdate", getLastUpdate())
|
||||
.append("goodsType", getGoodsType())
|
||||
.append("specType", getSpecType())
|
||||
.append("giveIntegral", getGiveIntegral())
|
||||
.append("exchangeIntegral", getExchangeIntegral())
|
||||
.append("suppliersId", getSuppliersId())
|
||||
.append("salesSum", getSalesSum())
|
||||
.append("promType", getPromType())
|
||||
.append("promId", getPromId())
|
||||
.append("commission", getCommission())
|
||||
.append("spu", getSpu())
|
||||
.append("sku", getSku())
|
||||
.append("templateId", getTemplateId())
|
||||
.append("goodsVideo", getGoodsVideo())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package co.yixiang.shop.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 商品关联的属性(与商品相关)对象 store_goods_attr
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-26
|
||||
*/
|
||||
public class StoreGoodsAttr extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 商品属性id自增 */
|
||||
private Integer goodsAttrId;
|
||||
|
||||
/** 商品id */
|
||||
@Excel(name = "商品id")
|
||||
private Integer goodsId;
|
||||
|
||||
/** 属性id */
|
||||
@Excel(name = "属性id")
|
||||
private Integer attrId;
|
||||
|
||||
/** 属性值 */
|
||||
@Excel(name = "属性值")
|
||||
private String attrValue;
|
||||
|
||||
/** 属性价格 */
|
||||
@Excel(name = "属性价格")
|
||||
private String attrPrice;
|
||||
|
||||
public void setGoodsAttrId(Integer goodsAttrId)
|
||||
{
|
||||
this.goodsAttrId = goodsAttrId;
|
||||
}
|
||||
|
||||
public Integer getGoodsAttrId()
|
||||
{
|
||||
return goodsAttrId;
|
||||
}
|
||||
public void setGoodsId(Integer goodsId)
|
||||
{
|
||||
this.goodsId = goodsId;
|
||||
}
|
||||
|
||||
public Integer getGoodsId()
|
||||
{
|
||||
return goodsId;
|
||||
}
|
||||
public void setAttrId(Integer attrId)
|
||||
{
|
||||
this.attrId = attrId;
|
||||
}
|
||||
|
||||
public Integer getAttrId()
|
||||
{
|
||||
return attrId;
|
||||
}
|
||||
public void setAttrValue(String attrValue)
|
||||
{
|
||||
this.attrValue = attrValue;
|
||||
}
|
||||
|
||||
public String getAttrValue()
|
||||
{
|
||||
return attrValue;
|
||||
}
|
||||
public void setAttrPrice(String attrPrice)
|
||||
{
|
||||
this.attrPrice = attrPrice;
|
||||
}
|
||||
|
||||
public String getAttrPrice()
|
||||
{
|
||||
return attrPrice;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("goodsAttrId", getGoodsAttrId())
|
||||
.append("goodsId", getGoodsId())
|
||||
.append("attrId", getAttrId())
|
||||
.append("attrValue", getAttrValue())
|
||||
.append("attrPrice", getAttrPrice())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
package co.yixiang.shop.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 商品的属性(独立)对象 store_goods_attribute
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-24
|
||||
*/
|
||||
public class StoreGoodsAttribute extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 属性id */
|
||||
private Long attrId;
|
||||
|
||||
/** 属性名称 */
|
||||
@Excel(name = "属性名称")
|
||||
private String attrName;
|
||||
|
||||
/** 属性分类id(商品模型id) */
|
||||
@Excel(name = "属性分类id(商品模型id)")
|
||||
private Integer typeId;
|
||||
|
||||
private String typeName;
|
||||
|
||||
/** 0不需要检索 1关键字检索 2范围检索 */
|
||||
private Integer attrIndex;
|
||||
|
||||
/** 0唯一属性 1单选属性 2复选属性 */
|
||||
private Integer attrType;
|
||||
|
||||
/** 0 手工录入 1从列表中选择 2多行文本框 */
|
||||
private Integer attrInputType;
|
||||
|
||||
/** 可选值列表 */
|
||||
private String attrValues;
|
||||
|
||||
/** 属性排序 */
|
||||
private Integer sort;
|
||||
|
||||
public String getTypeName() {
|
||||
return typeName;
|
||||
}
|
||||
|
||||
public void setTypeName(String typeName) {
|
||||
this.typeName = typeName;
|
||||
}
|
||||
|
||||
public void setAttrId(Long attrId)
|
||||
{
|
||||
this.attrId = attrId;
|
||||
}
|
||||
|
||||
public Long getAttrId()
|
||||
{
|
||||
return attrId;
|
||||
}
|
||||
public void setAttrName(String attrName)
|
||||
{
|
||||
this.attrName = attrName;
|
||||
}
|
||||
|
||||
public String getAttrName()
|
||||
{
|
||||
return attrName;
|
||||
}
|
||||
public void setTypeId(Integer typeId)
|
||||
{
|
||||
this.typeId = typeId;
|
||||
}
|
||||
|
||||
public Integer getTypeId()
|
||||
{
|
||||
return typeId;
|
||||
}
|
||||
public void setAttrIndex(Integer attrIndex)
|
||||
{
|
||||
this.attrIndex = attrIndex;
|
||||
}
|
||||
|
||||
public Integer getAttrIndex()
|
||||
{
|
||||
return attrIndex;
|
||||
}
|
||||
public void setAttrType(Integer attrType)
|
||||
{
|
||||
this.attrType = attrType;
|
||||
}
|
||||
|
||||
public Integer getAttrType()
|
||||
{
|
||||
return attrType;
|
||||
}
|
||||
public void setAttrInputType(Integer attrInputType)
|
||||
{
|
||||
this.attrInputType = attrInputType;
|
||||
}
|
||||
|
||||
public Integer getAttrInputType()
|
||||
{
|
||||
return attrInputType;
|
||||
}
|
||||
public void setAttrValues(String attrValues)
|
||||
{
|
||||
this.attrValues = attrValues;
|
||||
}
|
||||
|
||||
public String getAttrValues()
|
||||
{
|
||||
return attrValues;
|
||||
}
|
||||
public void setSort(Integer sort)
|
||||
{
|
||||
this.sort = sort;
|
||||
}
|
||||
|
||||
public Integer getSort()
|
||||
{
|
||||
return sort;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("attrId", getAttrId())
|
||||
.append("attrName", getAttrName())
|
||||
.append("typeId", getTypeId())
|
||||
.append("typeName", getTypeName())
|
||||
.append("attrIndex", getAttrIndex())
|
||||
.append("attrType", getAttrType())
|
||||
.append("attrInputType", getAttrInputType())
|
||||
.append("attrValues", getAttrValues())
|
||||
.append("sort", getSort())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
package co.yixiang.shop.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 产品品牌对象 store_goods_brand
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-23
|
||||
*/
|
||||
public class StoreGoodsBrand extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** null */
|
||||
private Long id;
|
||||
|
||||
/** 品牌logo */
|
||||
private String brandLogo;
|
||||
|
||||
/** 品牌封面 */
|
||||
private String brandCover;
|
||||
|
||||
/** 商品品牌名称 */
|
||||
@Excel(name = "商品品牌名称")
|
||||
private String brandTitle;
|
||||
|
||||
/** 商品品牌描述 */
|
||||
private String brandDesc;
|
||||
|
||||
/** 品牌图文信息 */
|
||||
private String brandDetail;
|
||||
|
||||
/** 商品分类排序 */
|
||||
private Long sort;
|
||||
|
||||
/** 商品状态 */
|
||||
@Excel(name = "商品状态")
|
||||
private Integer status;
|
||||
|
||||
/** 删除状态(1删除,0未删除) */
|
||||
private Integer isDeleted;
|
||||
|
||||
/** 创建时间 */
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createAt;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setBrandLogo(String brandLogo)
|
||||
{
|
||||
this.brandLogo = brandLogo;
|
||||
}
|
||||
|
||||
public String getBrandLogo()
|
||||
{
|
||||
return brandLogo;
|
||||
}
|
||||
public void setBrandCover(String brandCover)
|
||||
{
|
||||
this.brandCover = brandCover;
|
||||
}
|
||||
|
||||
public String getBrandCover()
|
||||
{
|
||||
return brandCover;
|
||||
}
|
||||
public void setBrandTitle(String brandTitle)
|
||||
{
|
||||
this.brandTitle = brandTitle;
|
||||
}
|
||||
|
||||
public String getBrandTitle()
|
||||
{
|
||||
return brandTitle;
|
||||
}
|
||||
public void setBrandDesc(String brandDesc)
|
||||
{
|
||||
this.brandDesc = brandDesc;
|
||||
}
|
||||
|
||||
public String getBrandDesc()
|
||||
{
|
||||
return brandDesc;
|
||||
}
|
||||
public void setBrandDetail(String brandDetail)
|
||||
{
|
||||
this.brandDetail = brandDetail;
|
||||
}
|
||||
|
||||
public String getBrandDetail()
|
||||
{
|
||||
return brandDetail;
|
||||
}
|
||||
public void setSort(Long sort)
|
||||
{
|
||||
this.sort = sort;
|
||||
}
|
||||
|
||||
public Long getSort()
|
||||
{
|
||||
return sort;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setIsDeleted(Integer isDeleted)
|
||||
{
|
||||
this.isDeleted = isDeleted;
|
||||
}
|
||||
|
||||
public Integer getIsDeleted()
|
||||
{
|
||||
return isDeleted;
|
||||
}
|
||||
public void setCreateAt(Date createAt)
|
||||
{
|
||||
this.createAt = createAt;
|
||||
}
|
||||
|
||||
public Date getCreateAt()
|
||||
{
|
||||
return createAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("brandLogo", getBrandLogo())
|
||||
.append("brandCover", getBrandCover())
|
||||
.append("brandTitle", getBrandTitle())
|
||||
.append("brandDesc", getBrandDesc())
|
||||
.append("brandDetail", getBrandDetail())
|
||||
.append("sort", getSort())
|
||||
.append("status", getStatus())
|
||||
.append("isDeleted", getIsDeleted())
|
||||
.append("createAt", getCreateAt())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
package co.yixiang.shop.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.core.domain.TreeEntity;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 商城商品分类对象 store_goods_cate
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-22
|
||||
*/
|
||||
public class StoreGoodsCate extends TreeEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** null */
|
||||
private Long id;
|
||||
|
||||
/** 上级分类编号 */
|
||||
@Excel(name = "上级分类编号")
|
||||
private Long pid;
|
||||
|
||||
/** 品牌ID */
|
||||
private Long brandId;
|
||||
|
||||
/** 商品分类名称 */
|
||||
@Excel(name = "商品分类名称")
|
||||
private String cateTitle;
|
||||
|
||||
/** 商品描述 */
|
||||
@Excel(name = "商品描述")
|
||||
private String cateDesc;
|
||||
|
||||
/** 缩略图url */
|
||||
private String imgUrl;
|
||||
|
||||
/** 商品分类排序 */
|
||||
@Excel(name = "商品分类排序")
|
||||
private Long sort;
|
||||
|
||||
/** 分类状态 */
|
||||
@Excel(name = "分类状态")
|
||||
private Integer status;
|
||||
|
||||
/** 删除状态(1删除,0未删除) */
|
||||
private Integer isDeleted;
|
||||
|
||||
/** 创建时间 */
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createAt;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setPid(Long pid)
|
||||
{
|
||||
this.pid = pid;
|
||||
}
|
||||
|
||||
public Long getPid()
|
||||
{
|
||||
return pid;
|
||||
}
|
||||
public void setBrandId(Long brandId)
|
||||
{
|
||||
this.brandId = brandId;
|
||||
}
|
||||
|
||||
public Long getBrandId()
|
||||
{
|
||||
return brandId;
|
||||
}
|
||||
public void setCateTitle(String cateTitle)
|
||||
{
|
||||
this.cateTitle = cateTitle;
|
||||
}
|
||||
|
||||
public String getCateTitle()
|
||||
{
|
||||
return cateTitle;
|
||||
}
|
||||
public void setCateDesc(String cateDesc)
|
||||
{
|
||||
this.cateDesc = cateDesc;
|
||||
}
|
||||
|
||||
public String getCateDesc()
|
||||
{
|
||||
return cateDesc;
|
||||
}
|
||||
public void setImgUrl(String imgUrl)
|
||||
{
|
||||
this.imgUrl = imgUrl;
|
||||
}
|
||||
|
||||
public String getImgUrl()
|
||||
{
|
||||
return imgUrl;
|
||||
}
|
||||
public void setSort(Long sort)
|
||||
{
|
||||
this.sort = sort;
|
||||
}
|
||||
|
||||
public Long getSort()
|
||||
{
|
||||
return sort;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setIsDeleted(Integer isDeleted)
|
||||
{
|
||||
this.isDeleted = isDeleted;
|
||||
}
|
||||
|
||||
public Integer getIsDeleted()
|
||||
{
|
||||
return isDeleted;
|
||||
}
|
||||
public void setCreateAt(Date createAt)
|
||||
{
|
||||
this.createAt = createAt;
|
||||
}
|
||||
|
||||
public Date getCreateAt()
|
||||
{
|
||||
return createAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("pid", getPid())
|
||||
.append("brandId", getBrandId())
|
||||
.append("cateTitle", getCateTitle())
|
||||
.append("cateDesc", getCateDesc())
|
||||
.append("imgUrl", getImgUrl())
|
||||
.append("sort", getSort())
|
||||
.append("status", getStatus())
|
||||
.append("isDeleted", getIsDeleted())
|
||||
.append("createAt", getCreateAt())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package co.yixiang.shop.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 商品类型(商品模型)对象 store_goods_type
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-24
|
||||
*/
|
||||
public class StoreGoodsType extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id自增 */
|
||||
private Integer id;
|
||||
|
||||
/** 类型名称 */
|
||||
@Excel(name = "类型名称")
|
||||
private String name;
|
||||
|
||||
public void setId(Integer id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,281 @@
|
||||
package co.yixiang.shop.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 商城会员信息对象 store_member
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-30
|
||||
*/
|
||||
public class StoreMember extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** null */
|
||||
private Long id;
|
||||
|
||||
/** vip编号 */
|
||||
private String vipNo;
|
||||
|
||||
/** 会员微信OPENID */
|
||||
private String openid;
|
||||
|
||||
/** 会员手机号 */
|
||||
@Excel(name = "会员手机号")
|
||||
private String phone;
|
||||
|
||||
/** 登录密码 */
|
||||
private String password;
|
||||
|
||||
/** 会员昵称 */
|
||||
@Excel(name = "会员昵称")
|
||||
private String nickname;
|
||||
|
||||
/** 会员头像 */
|
||||
@Excel(name = "会员头像")
|
||||
private String headimg;
|
||||
|
||||
/** 性别 */
|
||||
private String sex;
|
||||
|
||||
/** 会员级别 */
|
||||
@Excel(name = "会员级别")
|
||||
private Integer level;
|
||||
|
||||
/** 消费累计额度 用于用户等级 */
|
||||
private Double totalAmount;
|
||||
|
||||
/** 用户金额 */
|
||||
@Excel(name = "用户金额")
|
||||
private Double userMoney;
|
||||
|
||||
/** 累积分佣金额 */
|
||||
private Double distributMoney;
|
||||
|
||||
/** 冻结金额 */
|
||||
private Double frozenMoney;
|
||||
|
||||
/** 用户下线总数 */
|
||||
private Integer underlingNumber;
|
||||
|
||||
/** 消费积分 */
|
||||
@Excel(name = "消费积分")
|
||||
private Integer payPoints;
|
||||
|
||||
/** 默认收货地址 */
|
||||
private Integer addressId;
|
||||
|
||||
/** 会员状态0待审核 1-已审核 2-已拒绝 */
|
||||
private Integer status;
|
||||
|
||||
/** 创建时间 */
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createAt;
|
||||
|
||||
/** 审核时间 */
|
||||
private Long statusTime;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setVipNo(String vipNo)
|
||||
{
|
||||
this.vipNo = vipNo;
|
||||
}
|
||||
|
||||
public String getVipNo()
|
||||
{
|
||||
return vipNo;
|
||||
}
|
||||
public void setOpenid(String openid)
|
||||
{
|
||||
this.openid = openid;
|
||||
}
|
||||
|
||||
public String getOpenid()
|
||||
{
|
||||
return openid;
|
||||
}
|
||||
public void setPhone(String phone)
|
||||
{
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getPhone()
|
||||
{
|
||||
return phone;
|
||||
}
|
||||
public void setPassword(String password)
|
||||
{
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getPassword()
|
||||
{
|
||||
return password;
|
||||
}
|
||||
public void setNickname(String nickname)
|
||||
{
|
||||
this.nickname = nickname;
|
||||
}
|
||||
|
||||
public String getNickname()
|
||||
{
|
||||
return nickname;
|
||||
}
|
||||
public void setHeadimg(String headimg)
|
||||
{
|
||||
this.headimg = headimg;
|
||||
}
|
||||
|
||||
public String getHeadimg()
|
||||
{
|
||||
return headimg;
|
||||
}
|
||||
public void setSex(String sex)
|
||||
{
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public String getSex()
|
||||
{
|
||||
return sex;
|
||||
}
|
||||
public void setLevel(Integer level)
|
||||
{
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
public Integer getLevel()
|
||||
{
|
||||
return level;
|
||||
}
|
||||
public void setTotalAmount(Double totalAmount)
|
||||
{
|
||||
this.totalAmount = totalAmount;
|
||||
}
|
||||
|
||||
public Double getTotalAmount()
|
||||
{
|
||||
return totalAmount;
|
||||
}
|
||||
public void setUserMoney(Double userMoney)
|
||||
{
|
||||
this.userMoney = userMoney;
|
||||
}
|
||||
|
||||
public Double getUserMoney()
|
||||
{
|
||||
return userMoney;
|
||||
}
|
||||
public void setDistributMoney(Double distributMoney)
|
||||
{
|
||||
this.distributMoney = distributMoney;
|
||||
}
|
||||
|
||||
public Double getDistributMoney()
|
||||
{
|
||||
return distributMoney;
|
||||
}
|
||||
public void setFrozenMoney(Double frozenMoney)
|
||||
{
|
||||
this.frozenMoney = frozenMoney;
|
||||
}
|
||||
|
||||
public Double getFrozenMoney()
|
||||
{
|
||||
return frozenMoney;
|
||||
}
|
||||
public void setUnderlingNumber(Integer underlingNumber)
|
||||
{
|
||||
this.underlingNumber = underlingNumber;
|
||||
}
|
||||
|
||||
public Integer getUnderlingNumber()
|
||||
{
|
||||
return underlingNumber;
|
||||
}
|
||||
public void setPayPoints(Integer payPoints)
|
||||
{
|
||||
this.payPoints = payPoints;
|
||||
}
|
||||
|
||||
public Integer getPayPoints()
|
||||
{
|
||||
return payPoints;
|
||||
}
|
||||
public void setAddressId(Integer addressId)
|
||||
{
|
||||
this.addressId = addressId;
|
||||
}
|
||||
|
||||
public Integer getAddressId()
|
||||
{
|
||||
return addressId;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setCreateAt(Date createAt)
|
||||
{
|
||||
this.createAt = createAt;
|
||||
}
|
||||
|
||||
public Date getCreateAt()
|
||||
{
|
||||
return createAt;
|
||||
}
|
||||
public void setStatusTime(Long statusTime)
|
||||
{
|
||||
this.statusTime = statusTime;
|
||||
}
|
||||
|
||||
public Long getStatusTime()
|
||||
{
|
||||
return statusTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("vipNo", getVipNo())
|
||||
.append("openid", getOpenid())
|
||||
.append("phone", getPhone())
|
||||
.append("password", getPassword())
|
||||
.append("nickname", getNickname())
|
||||
.append("headimg", getHeadimg())
|
||||
.append("sex", getSex())
|
||||
.append("level", getLevel())
|
||||
.append("totalAmount", getTotalAmount())
|
||||
.append("userMoney", getUserMoney())
|
||||
.append("distributMoney", getDistributMoney())
|
||||
.append("frozenMoney", getFrozenMoney())
|
||||
.append("underlingNumber", getUnderlingNumber())
|
||||
.append("payPoints", getPayPoints())
|
||||
.append("addressId", getAddressId())
|
||||
.append("remark", getRemark())
|
||||
.append("status", getStatus())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createAt", getCreateAt())
|
||||
.append("statusTime", getStatusTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,769 @@
|
||||
package co.yixiang.shop.domain;
|
||||
|
||||
import co.yixiang.common.enums.OrderStatus;
|
||||
import co.yixiang.common.utils.OrderUtils;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单主对象 store_order
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
public class StoreOrder extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 订单id */
|
||||
private Integer orderId;
|
||||
|
||||
/** 订单编号 */
|
||||
@Excel(name = "订单编号")
|
||||
private String orderSn;
|
||||
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Integer userId;
|
||||
|
||||
/** 订单状态 0-未确认 1-已确认(已收货) 2-已评价 */
|
||||
@Excel(name = "订单状态 0-未确认 1-已确认(已收货) 2-已评价")
|
||||
private Integer orderStatus;
|
||||
|
||||
/** 发货状态 0-未发货 1-已发货 2-退货中 3-退货完成 */
|
||||
@Excel(name = "发货状态 0-未发货 1-已发货 2-退货中 3-退货完成")
|
||||
private Integer shippingStatus;
|
||||
|
||||
|
||||
|
||||
/** 支付状态 0-未支付 1-已支付 */
|
||||
@Excel(name = "支付状态 0-未支付 1-已支付")
|
||||
private Integer payStatus;
|
||||
|
||||
/** 收货人 */
|
||||
@Excel(name = "收货人")
|
||||
private String consignee;
|
||||
|
||||
/** 国家 */
|
||||
@Excel(name = "国家")
|
||||
private Long country;
|
||||
|
||||
/** 省份 */
|
||||
@Excel(name = "省份")
|
||||
private Long province;
|
||||
|
||||
/** 城市 */
|
||||
@Excel(name = "城市")
|
||||
private Long city;
|
||||
|
||||
/** 县区 */
|
||||
@Excel(name = "县区")
|
||||
private Long district;
|
||||
|
||||
/** 乡镇 */
|
||||
@Excel(name = "乡镇")
|
||||
private Long twon;
|
||||
|
||||
/** 地区地址 */
|
||||
@Excel(name = "地区地址")
|
||||
private String cityInfo;
|
||||
|
||||
/** 地址详细地址 */
|
||||
@Excel(name = "地址详细地址")
|
||||
private String address;
|
||||
|
||||
/** 邮政编码 */
|
||||
private String zipcode;
|
||||
|
||||
/** 手机 */
|
||||
@Excel(name = "手机")
|
||||
private String mobile;
|
||||
|
||||
/** 邮件 */
|
||||
private String email;
|
||||
|
||||
/** 收货方式 1-物流 2-快递 3-自取 */
|
||||
private Integer receiveType;
|
||||
|
||||
/** 物流code 单号 */
|
||||
@NotBlank(message = "物流单号不能为空")
|
||||
private String shippingCode;
|
||||
|
||||
/** 物流名称 */
|
||||
@NotBlank(message = "物流公司不能为空")
|
||||
private String shippingName;
|
||||
|
||||
/** 支付code */
|
||||
private String payCode;
|
||||
|
||||
/** 支付方式1-微信2-余额3-转账 */
|
||||
@Excel(name = "支付方式1-微信2-余额3-转账")
|
||||
private Integer payMethod;
|
||||
|
||||
/** 支付方式为转账的转账id */
|
||||
private Integer rechargeId;
|
||||
|
||||
/** 支付方式名称 */
|
||||
private String payName;
|
||||
|
||||
/** 发票抬头 */
|
||||
private String invoiceTitle;
|
||||
|
||||
/** 纳税人识别号 */
|
||||
private String taxpayer;
|
||||
|
||||
/** 商品总价 */
|
||||
@Excel(name = "商品总价")
|
||||
private Double goodsPrice;
|
||||
|
||||
/** 邮费 */
|
||||
private Double shippingPrice;
|
||||
|
||||
/** 使用余额 */
|
||||
private Double userMoney;
|
||||
|
||||
/** 优惠券抵扣 */
|
||||
@Excel(name = "优惠券抵扣")
|
||||
private Double couponPrice;
|
||||
|
||||
/** 使用积分 */
|
||||
private Integer integral;
|
||||
|
||||
/** 使用积分抵多少钱 */
|
||||
private Double integralMoney;
|
||||
|
||||
/** 应付款金额 */
|
||||
@Excel(name = "应付款金额")
|
||||
private Double orderAmount;
|
||||
|
||||
/** 订单总价 */
|
||||
@Excel(name = "订单总价")
|
||||
private Double totalAmount;
|
||||
|
||||
/** 下单时间 */
|
||||
@Excel(name = "下单时间")
|
||||
private Date addTime;
|
||||
|
||||
/** 最后新发货时间 */
|
||||
@Excel(name = "最后新发货时间")
|
||||
private Long shippingTime;
|
||||
|
||||
/** 收货确认时间 */
|
||||
@Excel(name = "收货确认时间")
|
||||
private Integer confirmTime;
|
||||
|
||||
/** 支付时间 */
|
||||
@Excel(name = "支付时间")
|
||||
private Integer payTime;
|
||||
|
||||
/** 第三方平台交易流水号 */
|
||||
private String transactionId;
|
||||
|
||||
/** 活动ID */
|
||||
private Long promId;
|
||||
|
||||
/** 订单类型:0普通订单4预售订单5虚拟订单6拼团订单 */
|
||||
private Integer promType;
|
||||
|
||||
/** 活动id */
|
||||
private Integer orderPromId;
|
||||
|
||||
/** 活动优惠金额 */
|
||||
private Double orderPromAmount;
|
||||
|
||||
/** 价格调整 */
|
||||
private Double discount;
|
||||
|
||||
/** 用户备注 */
|
||||
private String userNote;
|
||||
|
||||
/** 管理员备注 */
|
||||
private String adminNote;
|
||||
|
||||
/** 父单单号 */
|
||||
private String parentSn;
|
||||
|
||||
/** 是否已分成0未分成1已分成 */
|
||||
private Integer isDistribut;
|
||||
|
||||
/** 订金 */
|
||||
private Double paidMoney;
|
||||
|
||||
/** 删除|取消时间 */
|
||||
private Long deletedTime;
|
||||
|
||||
/** 用户假删除标识,1:删除,0未删除 */
|
||||
private Integer deleted;
|
||||
|
||||
/** 管理后台修改变动的价格 */
|
||||
@Excel(name = "管理后台修改变动的价格")
|
||||
private String editMoney;
|
||||
|
||||
private String orderStatusStr;
|
||||
|
||||
private StoreMember storeMember;
|
||||
|
||||
private List<StoreOrderGoods> storeOrderGoods;
|
||||
|
||||
public List<StoreOrderGoods> getStoreOrderGoods() {
|
||||
return storeOrderGoods;
|
||||
}
|
||||
|
||||
public void setStoreOrderGoods(List<StoreOrderGoods> storeOrderGoods) {
|
||||
this.storeOrderGoods = storeOrderGoods;
|
||||
}
|
||||
|
||||
public StoreMember getStoreMember() {
|
||||
return storeMember;
|
||||
}
|
||||
|
||||
public void setStoreMember(StoreMember storeMember) {
|
||||
this.storeMember = storeMember;
|
||||
}
|
||||
|
||||
public String getOrderStatusStr() {
|
||||
|
||||
if(payStatus != null || shippingStatus != null || orderStatus != null || deleted != null){
|
||||
int status = OrderUtils.orderStatus(payStatus,shippingStatus,orderStatus,deleted);
|
||||
return OrderStatus.getValue(status).getDesc();
|
||||
}
|
||||
return "==";
|
||||
}
|
||||
|
||||
public void setOrderStatusStr(String orderStatusStr) {
|
||||
this.orderStatusStr = orderStatusStr;
|
||||
}
|
||||
|
||||
public void setOrderId(Integer orderId)
|
||||
{
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public Integer getOrderId()
|
||||
{
|
||||
return orderId;
|
||||
}
|
||||
public void setOrderSn(String orderSn)
|
||||
{
|
||||
this.orderSn = orderSn;
|
||||
}
|
||||
|
||||
public String getOrderSn()
|
||||
{
|
||||
return orderSn;
|
||||
}
|
||||
public void setUserId(Integer userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Integer getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
public void setOrderStatus(Integer orderStatus)
|
||||
{
|
||||
this.orderStatus = orderStatus;
|
||||
}
|
||||
|
||||
public Integer getOrderStatus()
|
||||
{
|
||||
return orderStatus;
|
||||
}
|
||||
public void setShippingStatus(Integer shippingStatus)
|
||||
{
|
||||
this.shippingStatus = shippingStatus;
|
||||
}
|
||||
|
||||
public Integer getShippingStatus()
|
||||
{
|
||||
return shippingStatus;
|
||||
}
|
||||
public void setPayStatus(Integer payStatus)
|
||||
{
|
||||
this.payStatus = payStatus;
|
||||
}
|
||||
|
||||
public Integer getPayStatus()
|
||||
{
|
||||
return payStatus;
|
||||
}
|
||||
public void setConsignee(String consignee)
|
||||
{
|
||||
this.consignee = consignee;
|
||||
}
|
||||
|
||||
public String getConsignee()
|
||||
{
|
||||
return consignee;
|
||||
}
|
||||
public void setCountry(Long country)
|
||||
{
|
||||
this.country = country;
|
||||
}
|
||||
|
||||
public Long getCountry()
|
||||
{
|
||||
return country;
|
||||
}
|
||||
public void setProvince(Long province)
|
||||
{
|
||||
this.province = province;
|
||||
}
|
||||
|
||||
public Long getProvince()
|
||||
{
|
||||
return province;
|
||||
}
|
||||
public void setCity(Long city)
|
||||
{
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public Long getCity()
|
||||
{
|
||||
return city;
|
||||
}
|
||||
public void setDistrict(Long district)
|
||||
{
|
||||
this.district = district;
|
||||
}
|
||||
|
||||
public Long getDistrict()
|
||||
{
|
||||
return district;
|
||||
}
|
||||
public void setTwon(Long twon)
|
||||
{
|
||||
this.twon = twon;
|
||||
}
|
||||
|
||||
public Long getTwon()
|
||||
{
|
||||
return twon;
|
||||
}
|
||||
public void setCityInfo(String cityInfo)
|
||||
{
|
||||
this.cityInfo = cityInfo;
|
||||
}
|
||||
|
||||
public String getCityInfo()
|
||||
{
|
||||
return cityInfo;
|
||||
}
|
||||
public void setAddress(String address)
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getAddress()
|
||||
{
|
||||
return address;
|
||||
}
|
||||
public void setZipcode(String zipcode)
|
||||
{
|
||||
this.zipcode = zipcode;
|
||||
}
|
||||
|
||||
public String getZipcode()
|
||||
{
|
||||
return zipcode;
|
||||
}
|
||||
public void setMobile(String mobile)
|
||||
{
|
||||
this.mobile = mobile;
|
||||
}
|
||||
|
||||
public String getMobile()
|
||||
{
|
||||
return mobile;
|
||||
}
|
||||
public void setEmail(String email)
|
||||
{
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getEmail()
|
||||
{
|
||||
return email;
|
||||
}
|
||||
public void setReceiveType(Integer receiveType)
|
||||
{
|
||||
this.receiveType = receiveType;
|
||||
}
|
||||
|
||||
public Integer getReceiveType()
|
||||
{
|
||||
return receiveType;
|
||||
}
|
||||
public void setShippingCode(String shippingCode)
|
||||
{
|
||||
this.shippingCode = shippingCode;
|
||||
}
|
||||
|
||||
public String getShippingCode()
|
||||
{
|
||||
return shippingCode;
|
||||
}
|
||||
public void setShippingName(String shippingName)
|
||||
{
|
||||
this.shippingName = shippingName;
|
||||
}
|
||||
|
||||
public String getShippingName()
|
||||
{
|
||||
return shippingName;
|
||||
}
|
||||
public void setPayCode(String payCode)
|
||||
{
|
||||
this.payCode = payCode;
|
||||
}
|
||||
|
||||
public String getPayCode()
|
||||
{
|
||||
return payCode;
|
||||
}
|
||||
public void setPayMethod(Integer payMethod)
|
||||
{
|
||||
this.payMethod = payMethod;
|
||||
}
|
||||
|
||||
public Integer getPayMethod()
|
||||
{
|
||||
return payMethod;
|
||||
}
|
||||
public void setRechargeId(Integer rechargeId)
|
||||
{
|
||||
this.rechargeId = rechargeId;
|
||||
}
|
||||
|
||||
public Integer getRechargeId()
|
||||
{
|
||||
return rechargeId;
|
||||
}
|
||||
public void setPayName(String payName)
|
||||
{
|
||||
this.payName = payName;
|
||||
}
|
||||
|
||||
public String getPayName()
|
||||
{
|
||||
return payName;
|
||||
}
|
||||
public void setInvoiceTitle(String invoiceTitle)
|
||||
{
|
||||
this.invoiceTitle = invoiceTitle;
|
||||
}
|
||||
|
||||
public String getInvoiceTitle()
|
||||
{
|
||||
return invoiceTitle;
|
||||
}
|
||||
public void setTaxpayer(String taxpayer)
|
||||
{
|
||||
this.taxpayer = taxpayer;
|
||||
}
|
||||
|
||||
public String getTaxpayer()
|
||||
{
|
||||
return taxpayer;
|
||||
}
|
||||
public void setGoodsPrice(Double goodsPrice)
|
||||
{
|
||||
this.goodsPrice = goodsPrice;
|
||||
}
|
||||
|
||||
public Double getGoodsPrice()
|
||||
{
|
||||
return goodsPrice;
|
||||
}
|
||||
public void setShippingPrice(Double shippingPrice)
|
||||
{
|
||||
this.shippingPrice = shippingPrice;
|
||||
}
|
||||
|
||||
public Double getShippingPrice()
|
||||
{
|
||||
return shippingPrice;
|
||||
}
|
||||
public void setUserMoney(Double userMoney)
|
||||
{
|
||||
this.userMoney = userMoney;
|
||||
}
|
||||
|
||||
public Double getUserMoney()
|
||||
{
|
||||
return userMoney;
|
||||
}
|
||||
public void setCouponPrice(Double couponPrice)
|
||||
{
|
||||
this.couponPrice = couponPrice;
|
||||
}
|
||||
|
||||
public Double getCouponPrice()
|
||||
{
|
||||
return couponPrice;
|
||||
}
|
||||
public void setIntegral(Integer integral)
|
||||
{
|
||||
this.integral = integral;
|
||||
}
|
||||
|
||||
public Integer getIntegral()
|
||||
{
|
||||
return integral;
|
||||
}
|
||||
public void setIntegralMoney(Double integralMoney)
|
||||
{
|
||||
this.integralMoney = integralMoney;
|
||||
}
|
||||
|
||||
public Double getIntegralMoney()
|
||||
{
|
||||
return integralMoney;
|
||||
}
|
||||
public void setOrderAmount(Double orderAmount)
|
||||
{
|
||||
this.orderAmount = orderAmount;
|
||||
}
|
||||
|
||||
public Double getOrderAmount()
|
||||
{
|
||||
return orderAmount;
|
||||
}
|
||||
public void setTotalAmount(Double totalAmount)
|
||||
{
|
||||
this.totalAmount = totalAmount;
|
||||
}
|
||||
|
||||
public Double getTotalAmount()
|
||||
{
|
||||
return totalAmount;
|
||||
}
|
||||
public void setAddTime(Date addTime)
|
||||
{
|
||||
this.addTime = addTime;
|
||||
}
|
||||
|
||||
public Date getAddTime()
|
||||
{
|
||||
return addTime;
|
||||
}
|
||||
public void setShippingTime(Long shippingTime)
|
||||
{
|
||||
this.shippingTime = shippingTime;
|
||||
}
|
||||
|
||||
public Long getShippingTime()
|
||||
{
|
||||
return shippingTime;
|
||||
}
|
||||
public void setConfirmTime(Integer confirmTime)
|
||||
{
|
||||
this.confirmTime = confirmTime;
|
||||
}
|
||||
|
||||
public Integer getConfirmTime()
|
||||
{
|
||||
return confirmTime;
|
||||
}
|
||||
public void setPayTime(Integer payTime)
|
||||
{
|
||||
this.payTime = payTime;
|
||||
}
|
||||
|
||||
public Integer getPayTime()
|
||||
{
|
||||
return payTime;
|
||||
}
|
||||
public void setTransactionId(String transactionId)
|
||||
{
|
||||
this.transactionId = transactionId;
|
||||
}
|
||||
|
||||
public String getTransactionId()
|
||||
{
|
||||
return transactionId;
|
||||
}
|
||||
public void setPromId(Long promId)
|
||||
{
|
||||
this.promId = promId;
|
||||
}
|
||||
|
||||
public Long getPromId()
|
||||
{
|
||||
return promId;
|
||||
}
|
||||
public void setPromType(Integer promType)
|
||||
{
|
||||
this.promType = promType;
|
||||
}
|
||||
|
||||
public Integer getPromType()
|
||||
{
|
||||
return promType;
|
||||
}
|
||||
public void setOrderPromId(Integer orderPromId)
|
||||
{
|
||||
this.orderPromId = orderPromId;
|
||||
}
|
||||
|
||||
public Integer getOrderPromId()
|
||||
{
|
||||
return orderPromId;
|
||||
}
|
||||
public void setOrderPromAmount(Double orderPromAmount)
|
||||
{
|
||||
this.orderPromAmount = orderPromAmount;
|
||||
}
|
||||
|
||||
public Double getOrderPromAmount()
|
||||
{
|
||||
return orderPromAmount;
|
||||
}
|
||||
public void setDiscount(Double discount)
|
||||
{
|
||||
this.discount = discount;
|
||||
}
|
||||
|
||||
public Double getDiscount()
|
||||
{
|
||||
return discount;
|
||||
}
|
||||
public void setUserNote(String userNote)
|
||||
{
|
||||
this.userNote = userNote;
|
||||
}
|
||||
|
||||
public String getUserNote()
|
||||
{
|
||||
return userNote;
|
||||
}
|
||||
public void setAdminNote(String adminNote)
|
||||
{
|
||||
this.adminNote = adminNote;
|
||||
}
|
||||
|
||||
public String getAdminNote()
|
||||
{
|
||||
return adminNote;
|
||||
}
|
||||
public void setParentSn(String parentSn)
|
||||
{
|
||||
this.parentSn = parentSn;
|
||||
}
|
||||
|
||||
public String getParentSn()
|
||||
{
|
||||
return parentSn;
|
||||
}
|
||||
public void setIsDistribut(Integer isDistribut)
|
||||
{
|
||||
this.isDistribut = isDistribut;
|
||||
}
|
||||
|
||||
public Integer getIsDistribut()
|
||||
{
|
||||
return isDistribut;
|
||||
}
|
||||
public void setPaidMoney(Double paidMoney)
|
||||
{
|
||||
this.paidMoney = paidMoney;
|
||||
}
|
||||
|
||||
public Double getPaidMoney()
|
||||
{
|
||||
return paidMoney;
|
||||
}
|
||||
public void setDeletedTime(Long deletedTime)
|
||||
{
|
||||
this.deletedTime = deletedTime;
|
||||
}
|
||||
|
||||
public Long getDeletedTime()
|
||||
{
|
||||
return deletedTime;
|
||||
}
|
||||
public void setDeleted(Integer deleted)
|
||||
{
|
||||
this.deleted = deleted;
|
||||
}
|
||||
|
||||
public Integer getDeleted()
|
||||
{
|
||||
return deleted;
|
||||
}
|
||||
public void setEditMoney(String editMoney)
|
||||
{
|
||||
this.editMoney = editMoney;
|
||||
}
|
||||
|
||||
public String getEditMoney()
|
||||
{
|
||||
return editMoney;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("orderId", getOrderId())
|
||||
.append("orderSn", getOrderSn())
|
||||
.append("userId", getUserId())
|
||||
.append("orderStatus", getOrderStatus())
|
||||
.append("shippingStatus", getShippingStatus())
|
||||
.append("payStatus", getPayStatus())
|
||||
.append("consignee", getConsignee())
|
||||
.append("country", getCountry())
|
||||
.append("province", getProvince())
|
||||
.append("city", getCity())
|
||||
.append("district", getDistrict())
|
||||
.append("twon", getTwon())
|
||||
.append("cityInfo", getCityInfo())
|
||||
.append("address", getAddress())
|
||||
.append("zipcode", getZipcode())
|
||||
.append("mobile", getMobile())
|
||||
.append("email", getEmail())
|
||||
.append("receiveType", getReceiveType())
|
||||
.append("shippingCode", getShippingCode())
|
||||
.append("shippingName", getShippingName())
|
||||
.append("payCode", getPayCode())
|
||||
.append("payMethod", getPayMethod())
|
||||
.append("rechargeId", getRechargeId())
|
||||
.append("payName", getPayName())
|
||||
.append("invoiceTitle", getInvoiceTitle())
|
||||
.append("taxpayer", getTaxpayer())
|
||||
.append("goodsPrice", getGoodsPrice())
|
||||
.append("shippingPrice", getShippingPrice())
|
||||
.append("userMoney", getUserMoney())
|
||||
.append("couponPrice", getCouponPrice())
|
||||
.append("integral", getIntegral())
|
||||
.append("integralMoney", getIntegralMoney())
|
||||
.append("orderAmount", getOrderAmount())
|
||||
.append("totalAmount", getTotalAmount())
|
||||
.append("addTime", getAddTime())
|
||||
.append("shippingTime", getShippingTime())
|
||||
.append("confirmTime", getConfirmTime())
|
||||
.append("payTime", getPayTime())
|
||||
.append("transactionId", getTransactionId())
|
||||
.append("promId", getPromId())
|
||||
.append("promType", getPromType())
|
||||
.append("orderPromId", getOrderPromId())
|
||||
.append("orderPromAmount", getOrderPromAmount())
|
||||
.append("discount", getDiscount())
|
||||
.append("userNote", getUserNote())
|
||||
.append("adminNote", getAdminNote())
|
||||
.append("parentSn", getParentSn())
|
||||
.append("isDistribut", getIsDistribut())
|
||||
.append("paidMoney", getPaidMoney())
|
||||
.append("deletedTime", getDeletedTime())
|
||||
.append("deleted", getDeleted())
|
||||
.append("editMoney", getEditMoney())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,303 @@
|
||||
package co.yixiang.shop.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 订单商品与订单主关联对象 store_order_goods
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
public class StoreOrderGoods extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 表id自增 */
|
||||
private Integer recId;
|
||||
|
||||
/** 订单id */
|
||||
@Excel(name = "订单id")
|
||||
private Integer orderId;
|
||||
|
||||
/** 商品id */
|
||||
@Excel(name = "商品id")
|
||||
private Integer goodsId;
|
||||
|
||||
/** 商品名称 */
|
||||
@Excel(name = "商品名称")
|
||||
private String goodsName;
|
||||
|
||||
/** 商品货号 */
|
||||
@Excel(name = "商品货号")
|
||||
private String goodsSn;
|
||||
|
||||
/** 购买数量 */
|
||||
@Excel(name = "购买数量")
|
||||
private Integer goodsNum;
|
||||
|
||||
/** 市场价 */
|
||||
@Excel(name = "市场价")
|
||||
private Double marketPrice;
|
||||
|
||||
/** 本店价(供货价) */
|
||||
@Excel(name = "本店价(供货价)")
|
||||
private Double goodsPrice;
|
||||
|
||||
/** 商品成本价 */
|
||||
@Excel(name = "商品成本价")
|
||||
private Double costPrice;
|
||||
|
||||
/** 会员折扣价 */
|
||||
@Excel(name = "会员折扣价")
|
||||
private Double memberGoodsPrice;
|
||||
|
||||
/** 购买商品赠送积分 */
|
||||
@Excel(name = "购买商品赠送积分")
|
||||
private Integer giveIntegral;
|
||||
|
||||
/** 商品规格key */
|
||||
@Excel(name = "商品规格key")
|
||||
private String specKey;
|
||||
|
||||
/** 规格对应的中文名字 */
|
||||
@Excel(name = "规格对应的中文名字")
|
||||
private String specKeyName;
|
||||
|
||||
/** 条码 */
|
||||
@Excel(name = "条码")
|
||||
private String barCode;
|
||||
|
||||
/** 是否评价 */
|
||||
@Excel(name = "是否评价")
|
||||
private Integer isComment;
|
||||
|
||||
/** 0 普通订单,1 限时抢购, 2 团购 , 3 促销优惠,4预售 */
|
||||
@Excel(name = "0 普通订单,1 限时抢购, 2 团购 , 3 促销优惠,4预售")
|
||||
private Integer promType;
|
||||
|
||||
/** 活动id */
|
||||
@Excel(name = "活动id")
|
||||
private Long promId;
|
||||
|
||||
/** 0未发货,1已发货,2已换货,3已退货 */
|
||||
@Excel(name = "0未发货,1已发货,2已换货,3已退货")
|
||||
private Integer isSend;
|
||||
|
||||
/** 发货单ID */
|
||||
@Excel(name = "发货单ID")
|
||||
private Long deliveryId;
|
||||
|
||||
/** sku */
|
||||
@Excel(name = "sku")
|
||||
private String sku;
|
||||
|
||||
public void setRecId(Integer recId)
|
||||
{
|
||||
this.recId = recId;
|
||||
}
|
||||
|
||||
public Integer getRecId()
|
||||
{
|
||||
return recId;
|
||||
}
|
||||
public void setOrderId(Integer orderId)
|
||||
{
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public Integer getOrderId()
|
||||
{
|
||||
return orderId;
|
||||
}
|
||||
public void setGoodsId(Integer goodsId)
|
||||
{
|
||||
this.goodsId = goodsId;
|
||||
}
|
||||
|
||||
public Integer getGoodsId()
|
||||
{
|
||||
return goodsId;
|
||||
}
|
||||
public void setGoodsName(String goodsName)
|
||||
{
|
||||
this.goodsName = goodsName;
|
||||
}
|
||||
|
||||
public String getGoodsName()
|
||||
{
|
||||
return goodsName;
|
||||
}
|
||||
public void setGoodsSn(String goodsSn)
|
||||
{
|
||||
this.goodsSn = goodsSn;
|
||||
}
|
||||
|
||||
public String getGoodsSn()
|
||||
{
|
||||
return goodsSn;
|
||||
}
|
||||
public void setGoodsNum(Integer goodsNum)
|
||||
{
|
||||
this.goodsNum = goodsNum;
|
||||
}
|
||||
|
||||
public Integer getGoodsNum()
|
||||
{
|
||||
return goodsNum;
|
||||
}
|
||||
public void setMarketPrice(Double marketPrice)
|
||||
{
|
||||
this.marketPrice = marketPrice;
|
||||
}
|
||||
|
||||
public Double getMarketPrice()
|
||||
{
|
||||
return marketPrice;
|
||||
}
|
||||
public void setGoodsPrice(Double goodsPrice)
|
||||
{
|
||||
this.goodsPrice = goodsPrice;
|
||||
}
|
||||
|
||||
public Double getGoodsPrice()
|
||||
{
|
||||
return goodsPrice;
|
||||
}
|
||||
public void setCostPrice(Double costPrice)
|
||||
{
|
||||
this.costPrice = costPrice;
|
||||
}
|
||||
|
||||
public Double getCostPrice()
|
||||
{
|
||||
return costPrice;
|
||||
}
|
||||
public void setMemberGoodsPrice(Double memberGoodsPrice)
|
||||
{
|
||||
this.memberGoodsPrice = memberGoodsPrice;
|
||||
}
|
||||
|
||||
public Double getMemberGoodsPrice()
|
||||
{
|
||||
return memberGoodsPrice;
|
||||
}
|
||||
public void setGiveIntegral(Integer giveIntegral)
|
||||
{
|
||||
this.giveIntegral = giveIntegral;
|
||||
}
|
||||
|
||||
public Integer getGiveIntegral()
|
||||
{
|
||||
return giveIntegral;
|
||||
}
|
||||
public void setSpecKey(String specKey)
|
||||
{
|
||||
this.specKey = specKey;
|
||||
}
|
||||
|
||||
public String getSpecKey()
|
||||
{
|
||||
return specKey;
|
||||
}
|
||||
public void setSpecKeyName(String specKeyName)
|
||||
{
|
||||
this.specKeyName = specKeyName;
|
||||
}
|
||||
|
||||
public String getSpecKeyName()
|
||||
{
|
||||
return specKeyName;
|
||||
}
|
||||
public void setBarCode(String barCode)
|
||||
{
|
||||
this.barCode = barCode;
|
||||
}
|
||||
|
||||
public String getBarCode()
|
||||
{
|
||||
return barCode;
|
||||
}
|
||||
public void setIsComment(Integer isComment)
|
||||
{
|
||||
this.isComment = isComment;
|
||||
}
|
||||
|
||||
public Integer getIsComment()
|
||||
{
|
||||
return isComment;
|
||||
}
|
||||
public void setPromType(Integer promType)
|
||||
{
|
||||
this.promType = promType;
|
||||
}
|
||||
|
||||
public Integer getPromType()
|
||||
{
|
||||
return promType;
|
||||
}
|
||||
public void setPromId(Long promId)
|
||||
{
|
||||
this.promId = promId;
|
||||
}
|
||||
|
||||
public Long getPromId()
|
||||
{
|
||||
return promId;
|
||||
}
|
||||
public void setIsSend(Integer isSend)
|
||||
{
|
||||
this.isSend = isSend;
|
||||
}
|
||||
|
||||
public Integer getIsSend()
|
||||
{
|
||||
return isSend;
|
||||
}
|
||||
public void setDeliveryId(Long deliveryId)
|
||||
{
|
||||
this.deliveryId = deliveryId;
|
||||
}
|
||||
|
||||
public Long getDeliveryId()
|
||||
{
|
||||
return deliveryId;
|
||||
}
|
||||
public void setSku(String sku)
|
||||
{
|
||||
this.sku = sku;
|
||||
}
|
||||
|
||||
public String getSku()
|
||||
{
|
||||
return sku;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("recId", getRecId())
|
||||
.append("orderId", getOrderId())
|
||||
.append("goodsId", getGoodsId())
|
||||
.append("goodsName", getGoodsName())
|
||||
.append("goodsSn", getGoodsSn())
|
||||
.append("goodsNum", getGoodsNum())
|
||||
.append("marketPrice", getMarketPrice())
|
||||
.append("goodsPrice", getGoodsPrice())
|
||||
.append("costPrice", getCostPrice())
|
||||
.append("memberGoodsPrice", getMemberGoodsPrice())
|
||||
.append("giveIntegral", getGiveIntegral())
|
||||
.append("specKey", getSpecKey())
|
||||
.append("specKeyName", getSpecKeyName())
|
||||
.append("barCode", getBarCode())
|
||||
.append("isComment", getIsComment())
|
||||
.append("promType", getPromType())
|
||||
.append("promId", getPromId())
|
||||
.append("isSend", getIsSend())
|
||||
.append("deliveryId", getDeliveryId())
|
||||
.append("sku", getSku())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package co.yixiang.shop.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 订单商品备注对象 store_order_goods_remark
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
public class StoreOrderGoodsRemark extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Integer id;
|
||||
|
||||
/** 订单id */
|
||||
@Excel(name = "订单id")
|
||||
private Integer orderId;
|
||||
|
||||
/** 商品id */
|
||||
@Excel(name = "商品id")
|
||||
private Integer goodsId;
|
||||
|
||||
public void setId(Integer id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setOrderId(Integer orderId)
|
||||
{
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public Integer getOrderId()
|
||||
{
|
||||
return orderId;
|
||||
}
|
||||
public void setGoodsId(Integer goodsId)
|
||||
{
|
||||
this.goodsId = goodsId;
|
||||
}
|
||||
|
||||
public Integer getGoodsId()
|
||||
{
|
||||
return goodsId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("orderId", getOrderId())
|
||||
.append("goodsId", getGoodsId())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package co.yixiang.shop.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品规格(独立)对象 store_spec
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-25
|
||||
*/
|
||||
public class StoreSpec extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 规格表 */
|
||||
private Long id;
|
||||
|
||||
/** 规格类型 */
|
||||
@Excel(name = "规格类型")
|
||||
private Long typeId;
|
||||
|
||||
/** 规格名称 */
|
||||
@Excel(name = "规格名称")
|
||||
private String name;
|
||||
|
||||
private String specItem;
|
||||
|
||||
/** 排序 */
|
||||
private Long sort;
|
||||
|
||||
/** 是否需要检索:1是,0否 */
|
||||
private Integer searchIndex;
|
||||
|
||||
private List<StoreSpecItem> storeSpecItems;
|
||||
|
||||
public List<StoreSpecItem> getStoreSpecItems() {
|
||||
return storeSpecItems;
|
||||
}
|
||||
|
||||
public void setStoreSpecItems(List<StoreSpecItem> storeSpecItems) {
|
||||
this.storeSpecItems = storeSpecItems;
|
||||
}
|
||||
|
||||
public String getSpecItem() {
|
||||
return specItem;
|
||||
}
|
||||
|
||||
public void setSpecItem(String specItem) {
|
||||
this.specItem = specItem;
|
||||
}
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setTypeId(Long typeId)
|
||||
{
|
||||
this.typeId = typeId;
|
||||
}
|
||||
|
||||
public Long getTypeId()
|
||||
{
|
||||
return typeId;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setSort(Long sort)
|
||||
{
|
||||
this.sort = sort;
|
||||
}
|
||||
|
||||
public Long getSort()
|
||||
{
|
||||
return sort;
|
||||
}
|
||||
public void setSearchIndex(Integer searchIndex)
|
||||
{
|
||||
this.searchIndex = searchIndex;
|
||||
}
|
||||
|
||||
public Integer getSearchIndex()
|
||||
{
|
||||
return searchIndex;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("typeId", getTypeId())
|
||||
.append("name", getName())
|
||||
.append("specItem", getSpecItem())
|
||||
.append("sort", getSort())
|
||||
.append("searchIndex", getSearchIndex())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
package co.yixiang.shop.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 商品规格关联价格对象 store_spec_goods_price
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-26
|
||||
*/
|
||||
public class StoreSpecGoodsPrice extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 规格商品id */
|
||||
private Long itemId;
|
||||
|
||||
/** 商品id */
|
||||
@Excel(name = "商品id")
|
||||
private Long goodsId;
|
||||
|
||||
/** 规格键名 */
|
||||
@Excel(name = "规格键名")
|
||||
private String key;
|
||||
|
||||
/** 规格键名中文 */
|
||||
@Excel(name = "规格键名中文")
|
||||
private String keyName;
|
||||
|
||||
/** 价格(供货价格) */
|
||||
@Excel(name = "价格(供货价格)")
|
||||
private Double price;
|
||||
|
||||
/** 零售价格 */
|
||||
@Excel(name = "零售价格")
|
||||
private Double marketPrice;
|
||||
|
||||
/** 库存数量 */
|
||||
@Excel(name = "库存数量")
|
||||
private Long storeCount;
|
||||
|
||||
/** 商品条形码 */
|
||||
@Excel(name = "商品条形码")
|
||||
private String barCode;
|
||||
|
||||
/** SKU */
|
||||
@Excel(name = "SKU")
|
||||
private String sku;
|
||||
|
||||
/** 规格商品主图 */
|
||||
@Excel(name = "规格商品主图")
|
||||
private String specImg;
|
||||
|
||||
/** 活动id */
|
||||
@Excel(name = "活动id")
|
||||
private Integer promId;
|
||||
|
||||
/** 参加活动类型 */
|
||||
@Excel(name = "参加活动类型")
|
||||
private Integer promType;
|
||||
|
||||
|
||||
public void setItemId(Long itemId)
|
||||
{
|
||||
this.itemId = itemId;
|
||||
}
|
||||
|
||||
public Long getItemId()
|
||||
{
|
||||
return itemId;
|
||||
}
|
||||
public void setGoodsId(Long goodsId)
|
||||
{
|
||||
this.goodsId = goodsId;
|
||||
}
|
||||
|
||||
public Long getGoodsId()
|
||||
{
|
||||
return goodsId;
|
||||
}
|
||||
public void setKey(String key)
|
||||
{
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public String getKey()
|
||||
{
|
||||
return key;
|
||||
}
|
||||
public void setKeyName(String keyName)
|
||||
{
|
||||
this.keyName = keyName;
|
||||
}
|
||||
|
||||
public String getKeyName()
|
||||
{
|
||||
return keyName;
|
||||
}
|
||||
public void setPrice(Double price)
|
||||
{
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public Double getPrice()
|
||||
{
|
||||
return price;
|
||||
}
|
||||
public void setMarketPrice(Double marketPrice)
|
||||
{
|
||||
this.marketPrice = marketPrice;
|
||||
}
|
||||
|
||||
public Double getMarketPrice()
|
||||
{
|
||||
return marketPrice;
|
||||
}
|
||||
public void setStoreCount(Long storeCount)
|
||||
{
|
||||
this.storeCount = storeCount;
|
||||
}
|
||||
|
||||
public Long getStoreCount()
|
||||
{
|
||||
return storeCount;
|
||||
}
|
||||
public void setBarCode(String barCode)
|
||||
{
|
||||
this.barCode = barCode;
|
||||
}
|
||||
|
||||
public String getBarCode()
|
||||
{
|
||||
return barCode;
|
||||
}
|
||||
public void setSku(String sku)
|
||||
{
|
||||
this.sku = sku;
|
||||
}
|
||||
|
||||
public String getSku()
|
||||
{
|
||||
return sku;
|
||||
}
|
||||
public void setSpecImg(String specImg)
|
||||
{
|
||||
this.specImg = specImg;
|
||||
}
|
||||
|
||||
public String getSpecImg()
|
||||
{
|
||||
return specImg;
|
||||
}
|
||||
public void setPromId(Integer promId)
|
||||
{
|
||||
this.promId = promId;
|
||||
}
|
||||
|
||||
public Integer getPromId()
|
||||
{
|
||||
return promId;
|
||||
}
|
||||
public void setPromType(Integer promType)
|
||||
{
|
||||
this.promType = promType;
|
||||
}
|
||||
|
||||
public Integer getPromType()
|
||||
{
|
||||
return promType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("itemId", getItemId())
|
||||
.append("goodsId", getGoodsId())
|
||||
.append("key", getKey())
|
||||
.append("keyName", getKeyName())
|
||||
.append("price", getPrice())
|
||||
.append("marketPrice", getMarketPrice())
|
||||
.append("storeCount", getStoreCount())
|
||||
.append("barCode", getBarCode())
|
||||
.append("sku", getSku())
|
||||
.append("specImg", getSpecImg())
|
||||
.append("promId", getPromId())
|
||||
.append("promType", getPromType())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package co.yixiang.shop.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 规格项对象 store_spec_item
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-25
|
||||
*/
|
||||
public class StoreSpecItem extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 规格项id */
|
||||
private Long id;
|
||||
|
||||
/** 规格id */
|
||||
@Excel(name = "规格id")
|
||||
private Long specId;
|
||||
|
||||
/** 规格项 */
|
||||
@Excel(name = "规格项")
|
||||
private String item;
|
||||
|
||||
private Boolean selected;
|
||||
|
||||
public Boolean getSelected() {
|
||||
return selected;
|
||||
}
|
||||
|
||||
public void setSelected(Boolean selected) {
|
||||
this.selected = selected;
|
||||
}
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setSpecId(Long specId)
|
||||
{
|
||||
this.specId = specId;
|
||||
}
|
||||
|
||||
public Long getSpecId()
|
||||
{
|
||||
return specId;
|
||||
}
|
||||
public void setItem(String item)
|
||||
{
|
||||
this.item = item;
|
||||
}
|
||||
|
||||
public String getItem()
|
||||
{
|
||||
return item;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("specId", getSpecId())
|
||||
.append("item", getItem())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.mapper;
|
||||
|
||||
import co.yixiang.shop.domain.StoreCouponList;
|
||||
import co.yixiang.shop.domain.StoreCouponList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 优惠券记录Mapper接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
public interface StoreCouponListMapper
|
||||
{
|
||||
/**
|
||||
* 查询优惠券记录
|
||||
*
|
||||
* @param id 优惠券记录ID
|
||||
* @return 优惠券记录
|
||||
*/
|
||||
public StoreCouponList selectStoreCouponListById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询优惠券记录列表
|
||||
*
|
||||
* @param storeCouponList 优惠券记录
|
||||
* @return 优惠券记录集合
|
||||
*/
|
||||
public List<StoreCouponList> selectStoreCouponListList(StoreCouponList storeCouponList);
|
||||
|
||||
/**
|
||||
* 新增优惠券记录
|
||||
*
|
||||
* @param storeCouponList 优惠券记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreCouponList(StoreCouponList storeCouponList);
|
||||
|
||||
/**
|
||||
* 修改优惠券记录
|
||||
*
|
||||
* @param storeCouponList 优惠券记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreCouponList(StoreCouponList storeCouponList);
|
||||
|
||||
/**
|
||||
* 删除优惠券记录
|
||||
*
|
||||
* @param id 优惠券记录ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreCouponListById(Integer id);
|
||||
|
||||
/**
|
||||
* 批量删除优惠券记录
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreCouponListByIds(String[] ids);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.mapper;
|
||||
|
||||
import co.yixiang.shop.domain.StoreCoupon;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 优惠券主Mapper接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
public interface StoreCouponMapper
|
||||
{
|
||||
/**
|
||||
* 查询优惠券主
|
||||
*
|
||||
* @param id 优惠券主ID
|
||||
* @return 优惠券主
|
||||
*/
|
||||
public StoreCoupon selectStoreCouponById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询优惠券主列表
|
||||
*
|
||||
* @param storeCoupon 优惠券主
|
||||
* @return 优惠券主集合
|
||||
*/
|
||||
public List<StoreCoupon> selectStoreCouponList(StoreCoupon storeCoupon);
|
||||
|
||||
/**
|
||||
* 新增优惠券主
|
||||
*
|
||||
* @param storeCoupon 优惠券主
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreCoupon(StoreCoupon storeCoupon);
|
||||
|
||||
/**
|
||||
* 修改优惠券主
|
||||
*
|
||||
* @param storeCoupon 优惠券主
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreCoupon(StoreCoupon storeCoupon);
|
||||
|
||||
/**
|
||||
* 删除优惠券主
|
||||
*
|
||||
* @param id 优惠券主ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreCouponById(Integer id);
|
||||
|
||||
/**
|
||||
* 批量删除优惠券主
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreCouponByIds(String[] ids);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.mapper;
|
||||
|
||||
import co.yixiang.shop.domain.StoreGoodsAttr;
|
||||
import co.yixiang.shop.domain.StoreGoodsAttr;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品关联的属性(与商品相关)Mapper接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-26
|
||||
*/
|
||||
public interface StoreGoodsAttrMapper
|
||||
{
|
||||
/**
|
||||
* 查询商品关联的属性(与商品相关)
|
||||
*
|
||||
* @param goodsAttrId 商品关联的属性(与商品相关)ID
|
||||
* @return 商品关联的属性(与商品相关)
|
||||
*/
|
||||
public StoreGoodsAttr selectStoreGoodsAttrById(Integer goodsAttrId);
|
||||
|
||||
/**
|
||||
* 查询商品关联的属性(与商品相关)列表
|
||||
*
|
||||
* @param storeGoodsAttr 商品关联的属性(与商品相关)
|
||||
* @return 商品关联的属性(与商品相关)集合
|
||||
*/
|
||||
public List<StoreGoodsAttr> selectStoreGoodsAttrList(StoreGoodsAttr storeGoodsAttr);
|
||||
|
||||
/**
|
||||
* 新增商品关联的属性(与商品相关)
|
||||
*
|
||||
* @param storeGoodsAttr 商品关联的属性(与商品相关)
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreGoodsAttr(StoreGoodsAttr storeGoodsAttr);
|
||||
|
||||
/**
|
||||
* 修改商品关联的属性(与商品相关)
|
||||
*
|
||||
* @param storeGoodsAttr 商品关联的属性(与商品相关)
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreGoodsAttr(StoreGoodsAttr storeGoodsAttr);
|
||||
|
||||
/**
|
||||
* 删除商品关联的属性(与商品相关)
|
||||
*
|
||||
* @param goodsAttrId 商品关联的属性(与商品相关)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsAttrById(Integer goodsAttrId);
|
||||
|
||||
/**
|
||||
* 批量删除商品关联的属性(与商品相关)
|
||||
*
|
||||
* @param goodsAttrIds 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsAttrByIds(String[] goodsAttrIds);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.mapper;
|
||||
|
||||
import co.yixiang.shop.domain.StoreGoodsAttribute;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品的属性(独立)Mapper接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-24
|
||||
*/
|
||||
public interface StoreGoodsAttributeMapper
|
||||
{
|
||||
/**
|
||||
* 查询商品的属性(独立)
|
||||
*
|
||||
* @param attrId 商品的属性(独立)ID
|
||||
* @return 商品的属性(独立)
|
||||
*/
|
||||
public StoreGoodsAttribute selectStoreGoodsAttributeById(Long attrId);
|
||||
|
||||
/**
|
||||
* 查询商品的属性(独立)列表
|
||||
*
|
||||
* @param storeGoodsAttribute 商品的属性(独立)
|
||||
* @return 商品的属性(独立)集合
|
||||
*/
|
||||
public List<StoreGoodsAttribute> selectStoreGoodsAttributeList(StoreGoodsAttribute storeGoodsAttribute);
|
||||
|
||||
/**
|
||||
* 新增商品的属性(独立)
|
||||
*
|
||||
* @param storeGoodsAttribute 商品的属性(独立)
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreGoodsAttribute(StoreGoodsAttribute storeGoodsAttribute);
|
||||
|
||||
/**
|
||||
* 修改商品的属性(独立)
|
||||
*
|
||||
* @param storeGoodsAttribute 商品的属性(独立)
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreGoodsAttribute(StoreGoodsAttribute storeGoodsAttribute);
|
||||
|
||||
/**
|
||||
* 删除商品的属性(独立)
|
||||
*
|
||||
* @param attrId 商品的属性(独立)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsAttributeById(Long attrId);
|
||||
|
||||
/**
|
||||
* 批量删除商品的属性(独立)
|
||||
*
|
||||
* @param attrIds 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsAttributeByIds(String[] attrIds);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.mapper;
|
||||
|
||||
import co.yixiang.shop.domain.StoreGoodsBrand;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品品牌Mapper接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-23
|
||||
*/
|
||||
public interface StoreGoodsBrandMapper
|
||||
{
|
||||
/**
|
||||
* 查询产品品牌
|
||||
*
|
||||
* @param id 产品品牌ID
|
||||
* @return 产品品牌
|
||||
*/
|
||||
public StoreGoodsBrand selectStoreGoodsBrandById(Long id);
|
||||
|
||||
/**
|
||||
* 查询产品品牌列表
|
||||
*
|
||||
* @param storeGoodsBrand 产品品牌
|
||||
* @return 产品品牌集合
|
||||
*/
|
||||
public List<StoreGoodsBrand> selectStoreGoodsBrandList(StoreGoodsBrand storeGoodsBrand);
|
||||
|
||||
/**
|
||||
* 新增产品品牌
|
||||
*
|
||||
* @param storeGoodsBrand 产品品牌
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreGoodsBrand(StoreGoodsBrand storeGoodsBrand);
|
||||
|
||||
/**
|
||||
* 修改产品品牌
|
||||
*
|
||||
* @param storeGoodsBrand 产品品牌
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreGoodsBrand(StoreGoodsBrand storeGoodsBrand);
|
||||
|
||||
/**
|
||||
* 删除产品品牌
|
||||
*
|
||||
* @param id 产品品牌ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsBrandById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除产品品牌
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsBrandByIds(String[] ids);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.mapper;
|
||||
|
||||
import co.yixiang.shop.domain.StoreGoodsCate;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商城商品分类Mapper接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-22
|
||||
*/
|
||||
public interface StoreGoodsCateMapper
|
||||
{
|
||||
/**
|
||||
* 查询商城商品分类
|
||||
*
|
||||
* @param id 商城商品分类ID
|
||||
* @return 商城商品分类
|
||||
*/
|
||||
public StoreGoodsCate selectStoreGoodsCateById(Long id);
|
||||
|
||||
/**
|
||||
* 查询商城商品分类列表
|
||||
*
|
||||
* @param storeGoodsCate 商城商品分类
|
||||
* @return 商城商品分类集合
|
||||
*/
|
||||
public List<StoreGoodsCate> selectStoreGoodsCateList(StoreGoodsCate storeGoodsCate);
|
||||
|
||||
/**
|
||||
* 新增商城商品分类
|
||||
*
|
||||
* @param storeGoodsCate 商城商品分类
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreGoodsCate(StoreGoodsCate storeGoodsCate);
|
||||
|
||||
/**
|
||||
* 修改商城商品分类
|
||||
*
|
||||
* @param storeGoodsCate 商城商品分类
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreGoodsCate(StoreGoodsCate storeGoodsCate);
|
||||
|
||||
/**
|
||||
* 删除商城商品分类
|
||||
*
|
||||
* @param id 商城商品分类ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsCateById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除商城商品分类
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsCateByIds(String[] ids);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.mapper;
|
||||
|
||||
import co.yixiang.shop.domain.StoreGoods;
|
||||
import co.yixiang.shop.domain.StoreGoods;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品主Mapper接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-25
|
||||
*/
|
||||
public interface StoreGoodsMapper
|
||||
{
|
||||
/**
|
||||
* 查询商品主
|
||||
*
|
||||
* @param goodsId 商品主ID
|
||||
* @return 商品主
|
||||
*/
|
||||
public StoreGoods selectStoreGoodsById(Integer goodsId);
|
||||
|
||||
/**
|
||||
* 查询商品主列表
|
||||
*
|
||||
* @param storeGoods 商品主
|
||||
* @return 商品主集合
|
||||
*/
|
||||
public List<StoreGoods> selectStoreGoodsList(StoreGoods storeGoods);
|
||||
|
||||
/**
|
||||
* 新增商品主
|
||||
*
|
||||
* @param storeGoods 商品主
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreGoods(StoreGoods storeGoods);
|
||||
|
||||
/**
|
||||
* 修改商品主
|
||||
*
|
||||
* @param storeGoods 商品主
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreGoods(StoreGoods storeGoods);
|
||||
|
||||
/**
|
||||
* 删除商品主
|
||||
*
|
||||
* @param goodsId 商品主ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsById(Integer goodsId);
|
||||
|
||||
/**
|
||||
* 批量删除商品主
|
||||
*
|
||||
* @param goodsIds 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsByIds(String[] goodsIds);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.mapper;
|
||||
|
||||
import co.yixiang.shop.domain.StoreGoodsType;
|
||||
import co.yixiang.shop.domain.StoreGoodsType;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品类型(商品模型)Mapper接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-24
|
||||
*/
|
||||
public interface StoreGoodsTypeMapper
|
||||
{
|
||||
/**
|
||||
* 查询商品类型(商品模型)
|
||||
*
|
||||
* @param id 商品类型(商品模型)ID
|
||||
* @return 商品类型(商品模型)
|
||||
*/
|
||||
public StoreGoodsType selectStoreGoodsTypeById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询商品类型(商品模型)列表
|
||||
*
|
||||
* @param storeGoodsType 商品类型(商品模型)
|
||||
* @return 商品类型(商品模型)集合
|
||||
*/
|
||||
public List<StoreGoodsType> selectStoreGoodsTypeList(StoreGoodsType storeGoodsType);
|
||||
|
||||
/**
|
||||
* 新增商品类型(商品模型)
|
||||
*
|
||||
* @param storeGoodsType 商品类型(商品模型)
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreGoodsType(StoreGoodsType storeGoodsType);
|
||||
|
||||
/**
|
||||
* 修改商品类型(商品模型)
|
||||
*
|
||||
* @param storeGoodsType 商品类型(商品模型)
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreGoodsType(StoreGoodsType storeGoodsType);
|
||||
|
||||
/**
|
||||
* 删除商品类型(商品模型)
|
||||
*
|
||||
* @param id 商品类型(商品模型)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsTypeById(Integer id);
|
||||
|
||||
/**
|
||||
* 批量删除商品类型(商品模型)
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsTypeByIds(String[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package co.yixiang.shop.mapper;
|
||||
|
||||
import co.yixiang.shop.domain.StoreMember;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商城会员信息Mapper接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-30
|
||||
*/
|
||||
public interface StoreMemberMapper
|
||||
{
|
||||
/**
|
||||
* 查询商城会员信息
|
||||
*
|
||||
* @param id 商城会员信息ID
|
||||
* @return 商城会员信息
|
||||
*/
|
||||
public StoreMember selectStoreMemberById(Long id);
|
||||
|
||||
/**
|
||||
* 查询商城会员信息列表
|
||||
*
|
||||
* @param storeMember 商城会员信息
|
||||
* @return 商城会员信息集合
|
||||
*/
|
||||
public List<StoreMember> selectStoreMemberList(StoreMember storeMember);
|
||||
|
||||
/**
|
||||
* 新增商城会员信息
|
||||
*
|
||||
* @param storeMember 商城会员信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreMember(StoreMember storeMember);
|
||||
|
||||
/**
|
||||
* 修改商城会员信息
|
||||
*
|
||||
* @param storeMember 商城会员信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreMember(StoreMember storeMember);
|
||||
|
||||
/**
|
||||
* 删除商城会员信息
|
||||
*
|
||||
* @param id 商城会员信息ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreMemberById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除商城会员信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreMemberByIds(String[] ids);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.mapper;
|
||||
|
||||
import co.yixiang.shop.domain.StoreOrderGoods;
|
||||
import co.yixiang.shop.domain.StoreOrderGoods;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单商品与订单主关联Mapper接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
public interface StoreOrderGoodsMapper
|
||||
{
|
||||
/**
|
||||
* 查询订单商品与订单主关联
|
||||
*
|
||||
* @param recId 订单商品与订单主关联ID
|
||||
* @return 订单商品与订单主关联
|
||||
*/
|
||||
public StoreOrderGoods selectStoreOrderGoodsById(Integer recId);
|
||||
|
||||
/**
|
||||
* 查询订单商品与订单主关联列表
|
||||
*
|
||||
* @param storeOrderGoods 订单商品与订单主关联
|
||||
* @return 订单商品与订单主关联集合
|
||||
*/
|
||||
public List<StoreOrderGoods> selectStoreOrderGoodsList(StoreOrderGoods storeOrderGoods);
|
||||
|
||||
/**
|
||||
* 新增订单商品与订单主关联
|
||||
*
|
||||
* @param storeOrderGoods 订单商品与订单主关联
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreOrderGoods(StoreOrderGoods storeOrderGoods);
|
||||
|
||||
/**
|
||||
* 修改订单商品与订单主关联
|
||||
*
|
||||
* @param storeOrderGoods 订单商品与订单主关联
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreOrderGoods(StoreOrderGoods storeOrderGoods);
|
||||
|
||||
/**
|
||||
* 删除订单商品与订单主关联
|
||||
*
|
||||
* @param recId 订单商品与订单主关联ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreOrderGoodsById(Integer recId);
|
||||
|
||||
/**
|
||||
* 批量删除订单商品与订单主关联
|
||||
*
|
||||
* @param recIds 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreOrderGoodsByIds(String[] recIds);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package co.yixiang.shop.mapper;
|
||||
|
||||
import co.yixiang.shop.domain.StoreOrderGoodsRemark;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单商品备注Mapper接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
public interface StoreOrderGoodsRemarkMapper
|
||||
{
|
||||
/**
|
||||
* 查询订单商品备注
|
||||
*
|
||||
* @param id 订单商品备注ID
|
||||
* @return 订单商品备注
|
||||
*/
|
||||
public StoreOrderGoodsRemark selectStoreOrderGoodsRemarkById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询订单商品备注列表
|
||||
*
|
||||
* @param storeOrderGoodsRemark 订单商品备注
|
||||
* @return 订单商品备注集合
|
||||
*/
|
||||
public List<StoreOrderGoodsRemark> selectStoreOrderGoodsRemarkList(StoreOrderGoodsRemark storeOrderGoodsRemark);
|
||||
|
||||
/**
|
||||
* 新增订单商品备注
|
||||
*
|
||||
* @param storeOrderGoodsRemark 订单商品备注
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreOrderGoodsRemark(StoreOrderGoodsRemark storeOrderGoodsRemark);
|
||||
|
||||
/**
|
||||
* 修改订单商品备注
|
||||
*
|
||||
* @param storeOrderGoodsRemark 订单商品备注
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreOrderGoodsRemark(StoreOrderGoodsRemark storeOrderGoodsRemark);
|
||||
|
||||
/**
|
||||
* 删除订单商品备注
|
||||
*
|
||||
* @param id 订单商品备注ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreOrderGoodsRemarkById(Integer id);
|
||||
|
||||
/**
|
||||
* 批量删除订单商品备注
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreOrderGoodsRemarkByIds(String[] ids);
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package co.yixiang.shop.mapper;
|
||||
|
||||
import co.yixiang.shop.domain.StoreOrder;
|
||||
import co.yixiang.shop.domain.StoreOrder;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单主Mapper接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
public interface StoreOrderMapper
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* 查询订单主
|
||||
*
|
||||
* @param orderId 订单主ID
|
||||
* @return 订单主
|
||||
*/
|
||||
public StoreOrder selectStoreOrderById(Integer orderId);
|
||||
|
||||
/**
|
||||
* 查询订单主列表
|
||||
*
|
||||
* @param storeOrder 订单主
|
||||
* @return 订单主集合
|
||||
*/
|
||||
public List<StoreOrder> selectStoreOrderList(StoreOrder storeOrder);
|
||||
|
||||
/**
|
||||
* 新增订单主
|
||||
*
|
||||
* @param storeOrder 订单主
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreOrder(StoreOrder storeOrder);
|
||||
|
||||
/**
|
||||
* 修改订单主
|
||||
*
|
||||
* @param storeOrder 订单主
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreOrder(StoreOrder storeOrder);
|
||||
|
||||
/**
|
||||
* 删除订单主
|
||||
*
|
||||
* @param orderId 订单主ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreOrderById(Integer orderId);
|
||||
|
||||
/**
|
||||
* 批量删除订单主
|
||||
*
|
||||
* @param orderIds 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreOrderByIds(String[] orderIds);
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package co.yixiang.shop.mapper;
|
||||
|
||||
import co.yixiang.shop.domain.StoreSpecGoodsPrice;
|
||||
import co.yixiang.shop.domain.StoreSpecGoodsPrice;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品规格关联价格Mapper接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-26
|
||||
*/
|
||||
public interface StoreSpecGoodsPriceMapper
|
||||
{
|
||||
/**
|
||||
* 查询商品规格关联价格
|
||||
*
|
||||
* @param itemId 商品规格关联价格ID
|
||||
* @return 商品规格关联价格
|
||||
*/
|
||||
public StoreSpecGoodsPrice selectStoreSpecGoodsPriceById(Long itemId);
|
||||
|
||||
/**
|
||||
* 查询商品规格关联价格列表
|
||||
*
|
||||
* @param storeSpecGoodsPrice 商品规格关联价格
|
||||
* @return 商品规格关联价格集合
|
||||
*/
|
||||
public List<StoreSpecGoodsPrice> selectStoreSpecGoodsPriceList(StoreSpecGoodsPrice storeSpecGoodsPrice);
|
||||
|
||||
public String selectStoreSpecGoodsPriceItemStr(Long goodsId);
|
||||
|
||||
/**
|
||||
* 新增商品规格关联价格
|
||||
*
|
||||
* @param storeSpecGoodsPrice 商品规格关联价格
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreSpecGoodsPrice(StoreSpecGoodsPrice storeSpecGoodsPrice);
|
||||
|
||||
/**
|
||||
* 修改商品规格关联价格
|
||||
*
|
||||
* @param storeSpecGoodsPrice 商品规格关联价格
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreSpecGoodsPrice(StoreSpecGoodsPrice storeSpecGoodsPrice);
|
||||
|
||||
/**
|
||||
* 删除商品规格关联价格
|
||||
*
|
||||
* @param itemId 商品规格关联价格ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreSpecGoodsPriceById(Long itemId);
|
||||
|
||||
/**
|
||||
* 批量删除商品规格关联价格
|
||||
*
|
||||
* @param itemIds 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreSpecGoodsPriceByIds(String[] itemIds);
|
||||
|
||||
public int delStoreSpecGoodsPriceByGoodsId(int goodsId);
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package co.yixiang.shop.mapper;
|
||||
|
||||
import co.yixiang.shop.domain.StoreSpecItem;
|
||||
import co.yixiang.shop.domain.StoreSpecItem;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 规格项Mapper接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-25
|
||||
*/
|
||||
public interface StoreSpecItemMapper
|
||||
{
|
||||
/**
|
||||
* 查询规格项
|
||||
*
|
||||
* @param id 规格项ID
|
||||
* @return 规格项
|
||||
*/
|
||||
public StoreSpecItem selectStoreSpecItemById(Long id);
|
||||
|
||||
/**
|
||||
* 查询规格项列表
|
||||
*
|
||||
* @param storeSpecItem 规格项
|
||||
* @return 规格项集合
|
||||
*/
|
||||
public List<StoreSpecItem> selectStoreSpecItemList(StoreSpecItem storeSpecItem);
|
||||
|
||||
/**
|
||||
* 新增规格项
|
||||
*
|
||||
* @param storeSpecItem 规格项
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreSpecItem(StoreSpecItem storeSpecItem);
|
||||
|
||||
public int batchSpecItem(List<StoreSpecItem> itemList);
|
||||
|
||||
/**
|
||||
* 修改规格项
|
||||
*
|
||||
* @param storeSpecItem 规格项
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreSpecItem(StoreSpecItem storeSpecItem);
|
||||
|
||||
/**
|
||||
* 删除规格项
|
||||
*
|
||||
* @param id 规格项ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreSpecItemById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除规格项
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreSpecItemByIds(String[] ids);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.mapper;
|
||||
|
||||
import co.yixiang.shop.domain.StoreSpec;
|
||||
import co.yixiang.shop.domain.StoreSpec;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品规格(独立)Mapper接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-25
|
||||
*/
|
||||
public interface StoreSpecMapper
|
||||
{
|
||||
/**
|
||||
* 查询商品规格(独立)
|
||||
*
|
||||
* @param id 商品规格(独立)ID
|
||||
* @return 商品规格(独立)
|
||||
*/
|
||||
public StoreSpec selectStoreSpecById(Long id);
|
||||
|
||||
/**
|
||||
* 查询商品规格(独立)列表
|
||||
*
|
||||
* @param storeSpec 商品规格(独立)
|
||||
* @return 商品规格(独立)集合
|
||||
*/
|
||||
public List<StoreSpec> selectStoreSpecList(StoreSpec storeSpec);
|
||||
|
||||
/**
|
||||
* 新增商品规格(独立)
|
||||
*
|
||||
* @param storeSpec 商品规格(独立)
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreSpec(StoreSpec storeSpec);
|
||||
|
||||
/**
|
||||
* 修改商品规格(独立)
|
||||
*
|
||||
* @param storeSpec 商品规格(独立)
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreSpec(StoreSpec storeSpec);
|
||||
|
||||
/**
|
||||
* 删除商品规格(独立)
|
||||
*
|
||||
* @param id 商品规格(独立)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreSpecById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除商品规格(独立)
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreSpecByIds(String[] ids);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.service;
|
||||
|
||||
import co.yixiang.shop.domain.StoreCouponList;
|
||||
import co.yixiang.shop.domain.StoreCouponList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 优惠券记录Service接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
public interface IStoreCouponListService
|
||||
{
|
||||
/**
|
||||
* 查询优惠券记录
|
||||
*
|
||||
* @param id 优惠券记录ID
|
||||
* @return 优惠券记录
|
||||
*/
|
||||
public StoreCouponList selectStoreCouponListById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询优惠券记录列表
|
||||
*
|
||||
* @param storeCouponList 优惠券记录
|
||||
* @return 优惠券记录集合
|
||||
*/
|
||||
public List<StoreCouponList> selectStoreCouponListList(StoreCouponList storeCouponList);
|
||||
|
||||
/**
|
||||
* 新增优惠券记录
|
||||
*
|
||||
* @param storeCouponList 优惠券记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreCouponList(StoreCouponList storeCouponList);
|
||||
|
||||
/**
|
||||
* 修改优惠券记录
|
||||
*
|
||||
* @param storeCouponList 优惠券记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreCouponList(StoreCouponList storeCouponList);
|
||||
|
||||
/**
|
||||
* 批量删除优惠券记录
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreCouponListByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除优惠券记录信息
|
||||
*
|
||||
* @param id 优惠券记录ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreCouponListById(Integer id);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.service;
|
||||
|
||||
import co.yixiang.shop.domain.StoreCoupon;
|
||||
import co.yixiang.shop.domain.StoreCoupon;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 优惠券主Service接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
public interface IStoreCouponService
|
||||
{
|
||||
/**
|
||||
* 查询优惠券主
|
||||
*
|
||||
* @param id 优惠券主ID
|
||||
* @return 优惠券主
|
||||
*/
|
||||
public StoreCoupon selectStoreCouponById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询优惠券主列表
|
||||
*
|
||||
* @param storeCoupon 优惠券主
|
||||
* @return 优惠券主集合
|
||||
*/
|
||||
public List<StoreCoupon> selectStoreCouponList(StoreCoupon storeCoupon);
|
||||
|
||||
/**
|
||||
* 新增优惠券主
|
||||
*
|
||||
* @param storeCoupon 优惠券主
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreCoupon(StoreCoupon storeCoupon);
|
||||
|
||||
/**
|
||||
* 修改优惠券主
|
||||
*
|
||||
* @param storeCoupon 优惠券主
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreCoupon(StoreCoupon storeCoupon);
|
||||
|
||||
/**
|
||||
* 批量删除优惠券主
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreCouponByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除优惠券主信息
|
||||
*
|
||||
* @param id 优惠券主ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreCouponById(Integer id);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.service;
|
||||
|
||||
import co.yixiang.shop.domain.StoreGoodsAttr;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品关联的属性(与商品相关)Service接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-26
|
||||
*/
|
||||
public interface IStoreGoodsAttrService
|
||||
{
|
||||
/**
|
||||
* 查询商品关联的属性(与商品相关)
|
||||
*
|
||||
* @param goodsAttrId 商品关联的属性(与商品相关)ID
|
||||
* @return 商品关联的属性(与商品相关)
|
||||
*/
|
||||
public StoreGoodsAttr selectStoreGoodsAttrById(Integer goodsAttrId);
|
||||
|
||||
/**
|
||||
* 查询商品关联的属性(与商品相关)列表
|
||||
*
|
||||
* @param storeGoodsAttr 商品关联的属性(与商品相关)
|
||||
* @return 商品关联的属性(与商品相关)集合
|
||||
*/
|
||||
public List<StoreGoodsAttr> selectStoreGoodsAttrList(StoreGoodsAttr storeGoodsAttr);
|
||||
|
||||
/**
|
||||
* 新增商品关联的属性(与商品相关)
|
||||
*
|
||||
* @param storeGoodsAttr 商品关联的属性(与商品相关)
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreGoodsAttr(StoreGoodsAttr storeGoodsAttr);
|
||||
|
||||
/**
|
||||
* 修改商品关联的属性(与商品相关)
|
||||
*
|
||||
* @param storeGoodsAttr 商品关联的属性(与商品相关)
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreGoodsAttr(StoreGoodsAttr storeGoodsAttr);
|
||||
|
||||
/**
|
||||
* 批量删除商品关联的属性(与商品相关)
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsAttrByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除商品关联的属性(与商品相关)信息
|
||||
*
|
||||
* @param goodsAttrId 商品关联的属性(与商品相关)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsAttrById(Integer goodsAttrId);
|
||||
}
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.service;
|
||||
|
||||
import co.yixiang.shop.domain.StoreGoodsAttribute;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品的属性(独立)Service接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-24
|
||||
*/
|
||||
public interface IStoreGoodsAttributeService
|
||||
{
|
||||
/**
|
||||
* 查询商品的属性(独立)
|
||||
*
|
||||
* @param attrId 商品的属性(独立)ID
|
||||
* @return 商品的属性(独立)
|
||||
*/
|
||||
public StoreGoodsAttribute selectStoreGoodsAttributeById(Long attrId);
|
||||
|
||||
/**
|
||||
* 查询商品的属性(独立)列表
|
||||
*
|
||||
* @param storeGoodsAttribute 商品的属性(独立)
|
||||
* @return 商品的属性(独立)集合
|
||||
*/
|
||||
public List<StoreGoodsAttribute> selectStoreGoodsAttributeList(StoreGoodsAttribute storeGoodsAttribute);
|
||||
|
||||
/**
|
||||
* 新增商品的属性(独立)
|
||||
*
|
||||
* @param storeGoodsAttribute 商品的属性(独立)
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreGoodsAttribute(StoreGoodsAttribute storeGoodsAttribute);
|
||||
|
||||
/**
|
||||
* 修改商品的属性(独立)
|
||||
*
|
||||
* @param storeGoodsAttribute 商品的属性(独立)
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreGoodsAttribute(StoreGoodsAttribute storeGoodsAttribute);
|
||||
|
||||
/**
|
||||
* 批量删除商品的属性(独立)
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsAttributeByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除商品的属性(独立)信息
|
||||
*
|
||||
* @param attrId 商品的属性(独立)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsAttributeById(Long attrId);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.service;
|
||||
|
||||
import co.yixiang.shop.domain.StoreGoodsBrand;
|
||||
import co.yixiang.shop.domain.StoreGoodsBrand;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品品牌Service接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-23
|
||||
*/
|
||||
public interface IStoreGoodsBrandService
|
||||
{
|
||||
/**
|
||||
* 查询产品品牌
|
||||
*
|
||||
* @param id 产品品牌ID
|
||||
* @return 产品品牌
|
||||
*/
|
||||
public StoreGoodsBrand selectStoreGoodsBrandById(Long id);
|
||||
|
||||
/**
|
||||
* 查询产品品牌列表
|
||||
*
|
||||
* @param storeGoodsBrand 产品品牌
|
||||
* @return 产品品牌集合
|
||||
*/
|
||||
public List<StoreGoodsBrand> selectStoreGoodsBrandList(StoreGoodsBrand storeGoodsBrand);
|
||||
|
||||
/**
|
||||
* 新增产品品牌
|
||||
*
|
||||
* @param storeGoodsBrand 产品品牌
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreGoodsBrand(StoreGoodsBrand storeGoodsBrand);
|
||||
|
||||
/**
|
||||
* 修改产品品牌
|
||||
*
|
||||
* @param storeGoodsBrand 产品品牌
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreGoodsBrand(StoreGoodsBrand storeGoodsBrand);
|
||||
|
||||
/**
|
||||
* 批量删除产品品牌
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsBrandByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除产品品牌信息
|
||||
*
|
||||
* @param id 产品品牌ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsBrandById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package co.yixiang.shop.service;
|
||||
|
||||
import co.yixiang.shop.domain.StoreGoodsCate;
|
||||
import co.yixiang.shop.domain.StoreGoodsCate;
|
||||
import java.util.List;
|
||||
import co.yixiang.common.core.domain.Ztree;
|
||||
|
||||
/**
|
||||
* 商城商品分类Service接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-22
|
||||
*/
|
||||
public interface IStoreGoodsCateService
|
||||
{
|
||||
/**
|
||||
* 查询商城商品分类
|
||||
*
|
||||
* @param id 商城商品分类ID
|
||||
* @return 商城商品分类
|
||||
*/
|
||||
public StoreGoodsCate selectStoreGoodsCateById(Long id);
|
||||
|
||||
/**
|
||||
* 查询商城商品分类列表
|
||||
*
|
||||
* @param storeGoodsCate 商城商品分类
|
||||
* @return 商城商品分类集合
|
||||
*/
|
||||
public List<StoreGoodsCate> selectStoreGoodsCateList(StoreGoodsCate storeGoodsCate);
|
||||
|
||||
/**
|
||||
* 新增商城商品分类
|
||||
*
|
||||
* @param storeGoodsCate 商城商品分类
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreGoodsCate(StoreGoodsCate storeGoodsCate);
|
||||
|
||||
/**
|
||||
* 修改商城商品分类
|
||||
*
|
||||
* @param storeGoodsCate 商城商品分类
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreGoodsCate(StoreGoodsCate storeGoodsCate);
|
||||
|
||||
/**
|
||||
* 批量删除商城商品分类
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsCateByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除商城商品分类信息
|
||||
*
|
||||
* @param id 商城商品分类ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsCateById(Long id);
|
||||
|
||||
/**
|
||||
* 查询商城商品分类树列表
|
||||
*
|
||||
* @return 所有商城商品分类信息
|
||||
*/
|
||||
public List<Ztree> selectStoreGoodsCateTree();
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package co.yixiang.shop.service;
|
||||
|
||||
import co.yixiang.shop.domain.StoreGoods;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 商品主Service接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-25
|
||||
*/
|
||||
public interface IStoreGoodsService
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* 更新或者新增规格属性
|
||||
* @param specDataMap
|
||||
* @param attrDataMap
|
||||
* @param goodsId
|
||||
* @param goodsType
|
||||
* @return
|
||||
*/
|
||||
public int saveSpecAttr(Map<String,Map<String,String>> specDataMap,
|
||||
Map<String,String> attrDataMap,String goodsId,String goodsType);
|
||||
|
||||
/**
|
||||
* 获取规格字符串
|
||||
* @param goodsId
|
||||
* @return
|
||||
*/
|
||||
public String getGoodsItems(Long goodsId);
|
||||
|
||||
/**
|
||||
* 查询商品主
|
||||
*
|
||||
* @param goodsId 商品主ID
|
||||
* @return 商品主
|
||||
*/
|
||||
public StoreGoods selectStoreGoodsById(Integer goodsId);
|
||||
|
||||
/**
|
||||
* 查询商品主列表
|
||||
*
|
||||
* @param storeGoods 商品主
|
||||
* @return 商品主集合
|
||||
*/
|
||||
public List<StoreGoods> selectStoreGoodsList(StoreGoods storeGoods);
|
||||
|
||||
/**
|
||||
* 新增商品主
|
||||
*
|
||||
* @param storeGoods 商品主
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreGoods(StoreGoods storeGoods);
|
||||
|
||||
/**
|
||||
* 修改商品主
|
||||
*
|
||||
* @param storeGoods 商品主
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreGoods(StoreGoods storeGoods);
|
||||
|
||||
/**
|
||||
* 批量删除商品主
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除商品主信息
|
||||
*
|
||||
* @param goodsId 商品主ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsById(Integer goodsId);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.service;
|
||||
|
||||
import co.yixiang.shop.domain.StoreGoodsType;
|
||||
import co.yixiang.shop.domain.StoreGoodsType;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品类型(商品模型)Service接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-24
|
||||
*/
|
||||
public interface IStoreGoodsTypeService
|
||||
{
|
||||
/**
|
||||
* 查询商品类型(商品模型)
|
||||
*
|
||||
* @param id 商品类型(商品模型)ID
|
||||
* @return 商品类型(商品模型)
|
||||
*/
|
||||
public StoreGoodsType selectStoreGoodsTypeById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询商品类型(商品模型)列表
|
||||
*
|
||||
* @param storeGoodsType 商品类型(商品模型)
|
||||
* @return 商品类型(商品模型)集合
|
||||
*/
|
||||
public List<StoreGoodsType> selectStoreGoodsTypeList(StoreGoodsType storeGoodsType);
|
||||
|
||||
/**
|
||||
* 新增商品类型(商品模型)
|
||||
*
|
||||
* @param storeGoodsType 商品类型(商品模型)
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreGoodsType(StoreGoodsType storeGoodsType);
|
||||
|
||||
/**
|
||||
* 修改商品类型(商品模型)
|
||||
*
|
||||
* @param storeGoodsType 商品类型(商品模型)
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreGoodsType(StoreGoodsType storeGoodsType);
|
||||
|
||||
/**
|
||||
* 批量删除商品类型(商品模型)
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsTypeByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除商品类型(商品模型)信息
|
||||
*
|
||||
* @param id 商品类型(商品模型)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsTypeById(Integer id);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.service;
|
||||
|
||||
import co.yixiang.shop.domain.StoreMember;
|
||||
import co.yixiang.shop.domain.StoreMember;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商城会员信息Service接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-30
|
||||
*/
|
||||
public interface IStoreMemberService
|
||||
{
|
||||
/**
|
||||
* 查询商城会员信息
|
||||
*
|
||||
* @param id 商城会员信息ID
|
||||
* @return 商城会员信息
|
||||
*/
|
||||
public StoreMember selectStoreMemberById(Long id);
|
||||
|
||||
/**
|
||||
* 查询商城会员信息列表
|
||||
*
|
||||
* @param storeMember 商城会员信息
|
||||
* @return 商城会员信息集合
|
||||
*/
|
||||
public List<StoreMember> selectStoreMemberList(StoreMember storeMember);
|
||||
|
||||
/**
|
||||
* 新增商城会员信息
|
||||
*
|
||||
* @param storeMember 商城会员信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreMember(StoreMember storeMember);
|
||||
|
||||
/**
|
||||
* 修改商城会员信息
|
||||
*
|
||||
* @param storeMember 商城会员信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreMember(StoreMember storeMember);
|
||||
|
||||
/**
|
||||
* 批量删除商城会员信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreMemberByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除商城会员信息信息
|
||||
*
|
||||
* @param id 商城会员信息ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreMemberById(Long id);
|
||||
}
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.service;
|
||||
|
||||
import co.yixiang.shop.domain.StoreOrderGoodsRemark;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单商品备注Service接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
public interface IStoreOrderGoodsRemarkService
|
||||
{
|
||||
/**
|
||||
* 查询订单商品备注
|
||||
*
|
||||
* @param id 订单商品备注ID
|
||||
* @return 订单商品备注
|
||||
*/
|
||||
public StoreOrderGoodsRemark selectStoreOrderGoodsRemarkById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询订单商品备注列表
|
||||
*
|
||||
* @param storeOrderGoodsRemark 订单商品备注
|
||||
* @return 订单商品备注集合
|
||||
*/
|
||||
public List<StoreOrderGoodsRemark> selectStoreOrderGoodsRemarkList(StoreOrderGoodsRemark storeOrderGoodsRemark);
|
||||
|
||||
/**
|
||||
* 新增订单商品备注
|
||||
*
|
||||
* @param storeOrderGoodsRemark 订单商品备注
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreOrderGoodsRemark(StoreOrderGoodsRemark storeOrderGoodsRemark);
|
||||
|
||||
/**
|
||||
* 修改订单商品备注
|
||||
*
|
||||
* @param storeOrderGoodsRemark 订单商品备注
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreOrderGoodsRemark(StoreOrderGoodsRemark storeOrderGoodsRemark);
|
||||
|
||||
/**
|
||||
* 批量删除订单商品备注
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreOrderGoodsRemarkByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除订单商品备注信息
|
||||
*
|
||||
* @param id 订单商品备注ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreOrderGoodsRemarkById(Integer id);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.service;
|
||||
|
||||
import co.yixiang.shop.domain.StoreOrderGoods;
|
||||
import co.yixiang.shop.domain.StoreOrderGoods;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单商品与订单主关联Service接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
public interface IStoreOrderGoodsService
|
||||
{
|
||||
/**
|
||||
* 查询订单商品与订单主关联
|
||||
*
|
||||
* @param recId 订单商品与订单主关联ID
|
||||
* @return 订单商品与订单主关联
|
||||
*/
|
||||
public StoreOrderGoods selectStoreOrderGoodsById(Integer recId);
|
||||
|
||||
/**
|
||||
* 查询订单商品与订单主关联列表
|
||||
*
|
||||
* @param storeOrderGoods 订单商品与订单主关联
|
||||
* @return 订单商品与订单主关联集合
|
||||
*/
|
||||
public List<StoreOrderGoods> selectStoreOrderGoodsList(StoreOrderGoods storeOrderGoods);
|
||||
|
||||
/**
|
||||
* 新增订单商品与订单主关联
|
||||
*
|
||||
* @param storeOrderGoods 订单商品与订单主关联
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreOrderGoods(StoreOrderGoods storeOrderGoods);
|
||||
|
||||
/**
|
||||
* 修改订单商品与订单主关联
|
||||
*
|
||||
* @param storeOrderGoods 订单商品与订单主关联
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreOrderGoods(StoreOrderGoods storeOrderGoods);
|
||||
|
||||
/**
|
||||
* 批量删除订单商品与订单主关联
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreOrderGoodsByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除订单商品与订单主关联信息
|
||||
*
|
||||
* @param recId 订单商品与订单主关联ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreOrderGoodsById(Integer recId);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.service;
|
||||
|
||||
import co.yixiang.shop.domain.StoreOrder;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单主Service接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
public interface IStoreOrderService
|
||||
{
|
||||
/**
|
||||
* 查询订单主
|
||||
*
|
||||
* @param orderId 订单主ID
|
||||
* @return 订单主
|
||||
*/
|
||||
public StoreOrder selectStoreOrderById(Integer orderId);
|
||||
|
||||
/**
|
||||
* 查询订单主列表
|
||||
*
|
||||
* @param storeOrder 订单主
|
||||
* @return 订单主集合
|
||||
*/
|
||||
public List<StoreOrder> selectStoreOrderList(StoreOrder storeOrder);
|
||||
|
||||
/**
|
||||
* 新增订单主
|
||||
*
|
||||
* @param storeOrder 订单主
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreOrder(StoreOrder storeOrder);
|
||||
|
||||
/**
|
||||
* 修改订单主
|
||||
*
|
||||
* @param storeOrder 订单主
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreOrder(StoreOrder storeOrder);
|
||||
|
||||
/**
|
||||
* 批量删除订单主
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreOrderByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除订单主信息
|
||||
*
|
||||
* @param orderId 订单主ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreOrderById(Integer orderId);
|
||||
}
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.service;
|
||||
|
||||
import co.yixiang.shop.domain.StoreSpecGoodsPrice;
|
||||
import co.yixiang.shop.domain.StoreSpecGoodsPrice;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品规格关联价格Service接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-26
|
||||
*/
|
||||
public interface IStoreSpecGoodsPriceService
|
||||
{
|
||||
/**
|
||||
* 查询商品规格关联价格
|
||||
*
|
||||
* @param itemId 商品规格关联价格ID
|
||||
* @return 商品规格关联价格
|
||||
*/
|
||||
public StoreSpecGoodsPrice selectStoreSpecGoodsPriceById(Long itemId);
|
||||
|
||||
/**
|
||||
* 查询商品规格关联价格列表
|
||||
*
|
||||
* @param storeSpecGoodsPrice 商品规格关联价格
|
||||
* @return 商品规格关联价格集合
|
||||
*/
|
||||
public List<StoreSpecGoodsPrice> selectStoreSpecGoodsPriceList(StoreSpecGoodsPrice storeSpecGoodsPrice);
|
||||
|
||||
/**
|
||||
* 新增商品规格关联价格
|
||||
*
|
||||
* @param storeSpecGoodsPrice 商品规格关联价格
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreSpecGoodsPrice(StoreSpecGoodsPrice storeSpecGoodsPrice);
|
||||
|
||||
/**
|
||||
* 修改商品规格关联价格
|
||||
*
|
||||
* @param storeSpecGoodsPrice 商品规格关联价格
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreSpecGoodsPrice(StoreSpecGoodsPrice storeSpecGoodsPrice);
|
||||
|
||||
/**
|
||||
* 批量删除商品规格关联价格
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreSpecGoodsPriceByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除商品规格关联价格信息
|
||||
*
|
||||
* @param itemId 商品规格关联价格ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreSpecGoodsPriceById(Long itemId);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.service;
|
||||
|
||||
import co.yixiang.shop.domain.StoreSpecItem;
|
||||
import co.yixiang.shop.domain.StoreSpecItem;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 规格项Service接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-25
|
||||
*/
|
||||
public interface IStoreSpecItemService
|
||||
{
|
||||
/**
|
||||
* 查询规格项
|
||||
*
|
||||
* @param id 规格项ID
|
||||
* @return 规格项
|
||||
*/
|
||||
public StoreSpecItem selectStoreSpecItemById(Long id);
|
||||
|
||||
/**
|
||||
* 查询规格项列表
|
||||
*
|
||||
* @param storeSpecItem 规格项
|
||||
* @return 规格项集合
|
||||
*/
|
||||
public List<StoreSpecItem> selectStoreSpecItemList(StoreSpecItem storeSpecItem);
|
||||
|
||||
/**
|
||||
* 新增规格项
|
||||
*
|
||||
* @param storeSpecItem 规格项
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreSpecItem(StoreSpecItem storeSpecItem);
|
||||
|
||||
/**
|
||||
* 修改规格项
|
||||
*
|
||||
* @param storeSpecItem 规格项
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreSpecItem(StoreSpecItem storeSpecItem);
|
||||
|
||||
/**
|
||||
* 批量删除规格项
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreSpecItemByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除规格项信息
|
||||
*
|
||||
* @param id 规格项ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreSpecItemById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package co.yixiang.shop.service;
|
||||
|
||||
import co.yixiang.shop.domain.StoreSpec;
|
||||
import co.yixiang.shop.domain.StoreSpec;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品规格(独立)Service接口
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-25
|
||||
*/
|
||||
public interface IStoreSpecService
|
||||
{
|
||||
/**
|
||||
* 查询商品规格(独立)
|
||||
*
|
||||
* @param id 商品规格(独立)ID
|
||||
* @return 商品规格(独立)
|
||||
*/
|
||||
public StoreSpec selectStoreSpecById(Long id);
|
||||
|
||||
/**
|
||||
* 查询商品规格(独立)列表
|
||||
*
|
||||
* @param storeSpec 商品规格(独立)
|
||||
* @return 商品规格(独立)集合
|
||||
*/
|
||||
public List<StoreSpec> selectStoreSpecList(StoreSpec storeSpec);
|
||||
|
||||
/**
|
||||
* 新增商品规格(独立)
|
||||
*
|
||||
* @param storeSpec 商品规格(独立)
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreSpec(StoreSpec storeSpec);
|
||||
|
||||
/**
|
||||
* 修改商品规格(独立)
|
||||
*
|
||||
* @param storeSpec 商品规格(独立)
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreSpec(StoreSpec storeSpec);
|
||||
|
||||
/**
|
||||
* 批量删除商品规格(独立)
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreSpecByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除商品规格(独立)信息
|
||||
*
|
||||
* @param id 商品规格(独立)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreSpecById(Long id);
|
||||
}
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
package co.yixiang.shop.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.shop.domain.StoreCouponList;
|
||||
import co.yixiang.shop.mapper.StoreCouponListMapper;
|
||||
import co.yixiang.shop.service.IStoreCouponListService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import co.yixiang.shop.mapper.StoreCouponListMapper;
|
||||
import co.yixiang.shop.domain.StoreCouponList;
|
||||
import co.yixiang.shop.service.IStoreCouponListService;
|
||||
import co.yixiang.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 优惠券记录Service业务层处理
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
@Service
|
||||
public class StoreCouponListServiceImpl implements IStoreCouponListService
|
||||
{
|
||||
@Autowired
|
||||
private StoreCouponListMapper storeCouponListMapper;
|
||||
|
||||
/**
|
||||
* 查询优惠券记录
|
||||
*
|
||||
* @param id 优惠券记录ID
|
||||
* @return 优惠券记录
|
||||
*/
|
||||
@Override
|
||||
public StoreCouponList selectStoreCouponListById(Integer id)
|
||||
{
|
||||
return storeCouponListMapper.selectStoreCouponListById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询优惠券记录列表
|
||||
*
|
||||
* @param storeCouponList 优惠券记录
|
||||
* @return 优惠券记录
|
||||
*/
|
||||
@Override
|
||||
public List<StoreCouponList> selectStoreCouponListList(StoreCouponList storeCouponList)
|
||||
{
|
||||
return storeCouponListMapper.selectStoreCouponListList(storeCouponList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增优惠券记录
|
||||
*
|
||||
* @param storeCouponList 优惠券记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStoreCouponList(StoreCouponList storeCouponList)
|
||||
{
|
||||
return storeCouponListMapper.insertStoreCouponList(storeCouponList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改优惠券记录
|
||||
*
|
||||
* @param storeCouponList 优惠券记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStoreCouponList(StoreCouponList storeCouponList)
|
||||
{
|
||||
return storeCouponListMapper.updateStoreCouponList(storeCouponList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除优惠券记录对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStoreCouponListByIds(String ids)
|
||||
{
|
||||
return storeCouponListMapper.deleteStoreCouponListByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除优惠券记录信息
|
||||
*
|
||||
* @param id 优惠券记录ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreCouponListById(Integer id)
|
||||
{
|
||||
return storeCouponListMapper.deleteStoreCouponListById(id);
|
||||
}
|
||||
}
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
package co.yixiang.shop.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.shop.domain.StoreCoupon;
|
||||
import co.yixiang.shop.mapper.StoreCouponMapper;
|
||||
import co.yixiang.shop.service.IStoreCouponService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import co.yixiang.shop.mapper.StoreCouponMapper;
|
||||
import co.yixiang.shop.domain.StoreCoupon;
|
||||
import co.yixiang.shop.service.IStoreCouponService;
|
||||
import co.yixiang.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 优惠券主Service业务层处理
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
@Service
|
||||
public class StoreCouponServiceImpl implements IStoreCouponService
|
||||
{
|
||||
@Autowired
|
||||
private StoreCouponMapper storeCouponMapper;
|
||||
|
||||
/**
|
||||
* 查询优惠券主
|
||||
*
|
||||
* @param id 优惠券主ID
|
||||
* @return 优惠券主
|
||||
*/
|
||||
@Override
|
||||
public StoreCoupon selectStoreCouponById(Integer id)
|
||||
{
|
||||
return storeCouponMapper.selectStoreCouponById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询优惠券主列表
|
||||
*
|
||||
* @param storeCoupon 优惠券主
|
||||
* @return 优惠券主
|
||||
*/
|
||||
@Override
|
||||
public List<StoreCoupon> selectStoreCouponList(StoreCoupon storeCoupon)
|
||||
{
|
||||
return storeCouponMapper.selectStoreCouponList(storeCoupon);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增优惠券主
|
||||
*
|
||||
* @param storeCoupon 优惠券主
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStoreCoupon(StoreCoupon storeCoupon)
|
||||
{
|
||||
return storeCouponMapper.insertStoreCoupon(storeCoupon);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改优惠券主
|
||||
*
|
||||
* @param storeCoupon 优惠券主
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStoreCoupon(StoreCoupon storeCoupon)
|
||||
{
|
||||
return storeCouponMapper.updateStoreCoupon(storeCoupon);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除优惠券主对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStoreCouponByIds(String ids)
|
||||
{
|
||||
return storeCouponMapper.deleteStoreCouponByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除优惠券主信息
|
||||
*
|
||||
* @param id 优惠券主ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreCouponById(Integer id)
|
||||
{
|
||||
return storeCouponMapper.deleteStoreCouponById(id);
|
||||
}
|
||||
}
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
package co.yixiang.shop.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.shop.domain.StoreGoodsAttr;
|
||||
import co.yixiang.shop.mapper.StoreGoodsAttrMapper;
|
||||
import co.yixiang.shop.service.IStoreGoodsAttrService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import co.yixiang.shop.mapper.StoreGoodsAttrMapper;
|
||||
import co.yixiang.shop.domain.StoreGoodsAttr;
|
||||
import co.yixiang.shop.service.IStoreGoodsAttrService;
|
||||
import co.yixiang.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 商品关联的属性(与商品相关)Service业务层处理
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-26
|
||||
*/
|
||||
@Service
|
||||
public class StoreGoodsAttrServiceImpl implements IStoreGoodsAttrService
|
||||
{
|
||||
@Autowired
|
||||
private StoreGoodsAttrMapper storeGoodsAttrMapper;
|
||||
|
||||
/**
|
||||
* 查询商品关联的属性(与商品相关)
|
||||
*
|
||||
* @param goodsAttrId 商品关联的属性(与商品相关)ID
|
||||
* @return 商品关联的属性(与商品相关)
|
||||
*/
|
||||
@Override
|
||||
public StoreGoodsAttr selectStoreGoodsAttrById(Integer goodsAttrId)
|
||||
{
|
||||
return storeGoodsAttrMapper.selectStoreGoodsAttrById(goodsAttrId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询商品关联的属性(与商品相关)列表
|
||||
*
|
||||
* @param storeGoodsAttr 商品关联的属性(与商品相关)
|
||||
* @return 商品关联的属性(与商品相关)
|
||||
*/
|
||||
@Override
|
||||
public List<StoreGoodsAttr> selectStoreGoodsAttrList(StoreGoodsAttr storeGoodsAttr)
|
||||
{
|
||||
return storeGoodsAttrMapper.selectStoreGoodsAttrList(storeGoodsAttr);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增商品关联的属性(与商品相关)
|
||||
*
|
||||
* @param storeGoodsAttr 商品关联的属性(与商品相关)
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStoreGoodsAttr(StoreGoodsAttr storeGoodsAttr)
|
||||
{
|
||||
return storeGoodsAttrMapper.insertStoreGoodsAttr(storeGoodsAttr);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品关联的属性(与商品相关)
|
||||
*
|
||||
* @param storeGoodsAttr 商品关联的属性(与商品相关)
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStoreGoodsAttr(StoreGoodsAttr storeGoodsAttr)
|
||||
{
|
||||
return storeGoodsAttrMapper.updateStoreGoodsAttr(storeGoodsAttr);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品关联的属性(与商品相关)对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStoreGoodsAttrByIds(String ids)
|
||||
{
|
||||
return storeGoodsAttrMapper.deleteStoreGoodsAttrByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品关联的属性(与商品相关)信息
|
||||
*
|
||||
* @param goodsAttrId 商品关联的属性(与商品相关)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsAttrById(Integer goodsAttrId)
|
||||
{
|
||||
return storeGoodsAttrMapper.deleteStoreGoodsAttrById(goodsAttrId);
|
||||
}
|
||||
}
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
package co.yixiang.shop.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.shop.domain.StoreGoodsAttribute;
|
||||
import co.yixiang.shop.mapper.StoreGoodsAttributeMapper;
|
||||
import co.yixiang.shop.service.IStoreGoodsAttributeService;
|
||||
import co.yixiang.shop.service.IStoreGoodsTypeService;
|
||||
import co.yixiang.shop.service.IStoreGoodsTypeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import co.yixiang.shop.mapper.StoreGoodsAttributeMapper;
|
||||
import co.yixiang.shop.domain.StoreGoodsAttribute;
|
||||
import co.yixiang.shop.service.IStoreGoodsAttributeService;
|
||||
import co.yixiang.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 商品的属性(独立)Service业务层处理
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-24
|
||||
*/
|
||||
@Service
|
||||
public class StoreGoodsAttributeServiceImpl implements IStoreGoodsAttributeService
|
||||
{
|
||||
@Autowired
|
||||
private StoreGoodsAttributeMapper storeGoodsAttributeMapper;
|
||||
@Autowired
|
||||
private IStoreGoodsTypeService storeGoodsTypeService;
|
||||
|
||||
/**
|
||||
* 查询商品的属性(独立)
|
||||
*
|
||||
* @param attrId 商品的属性(独立)ID
|
||||
* @return 商品的属性(独立)
|
||||
*/
|
||||
@Override
|
||||
public StoreGoodsAttribute selectStoreGoodsAttributeById(Long attrId)
|
||||
{
|
||||
return storeGoodsAttributeMapper.selectStoreGoodsAttributeById(attrId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询商品的属性(独立)列表
|
||||
*
|
||||
* @param storeGoodsAttribute 商品的属性(独立)
|
||||
* @return 商品的属性(独立)
|
||||
*/
|
||||
@Override
|
||||
public List<StoreGoodsAttribute> selectStoreGoodsAttributeList(StoreGoodsAttribute storeGoodsAttribute)
|
||||
{
|
||||
List<StoreGoodsAttribute> list = storeGoodsAttributeMapper.selectStoreGoodsAttributeList(storeGoodsAttribute);
|
||||
for (StoreGoodsAttribute attr : list) {
|
||||
String typeName = storeGoodsTypeService.selectStoreGoodsTypeById(attr.getTypeId()).getName();
|
||||
attr.setTypeName(typeName);
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增商品的属性(独立)
|
||||
*
|
||||
* @param storeGoodsAttribute 商品的属性(独立)
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStoreGoodsAttribute(StoreGoodsAttribute storeGoodsAttribute)
|
||||
{
|
||||
return storeGoodsAttributeMapper.insertStoreGoodsAttribute(storeGoodsAttribute);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品的属性(独立)
|
||||
*
|
||||
* @param storeGoodsAttribute 商品的属性(独立)
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStoreGoodsAttribute(StoreGoodsAttribute storeGoodsAttribute)
|
||||
{
|
||||
return storeGoodsAttributeMapper.updateStoreGoodsAttribute(storeGoodsAttribute);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品的属性(独立)对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStoreGoodsAttributeByIds(String ids)
|
||||
{
|
||||
return storeGoodsAttributeMapper.deleteStoreGoodsAttributeByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品的属性(独立)信息
|
||||
*
|
||||
* @param attrId 商品的属性(独立)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsAttributeById(Long attrId)
|
||||
{
|
||||
return storeGoodsAttributeMapper.deleteStoreGoodsAttributeById(attrId);
|
||||
}
|
||||
}
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
package co.yixiang.shop.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.shop.domain.StoreGoodsBrand;
|
||||
import co.yixiang.shop.mapper.StoreGoodsBrandMapper;
|
||||
import co.yixiang.shop.service.IStoreGoodsBrandService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import co.yixiang.shop.mapper.StoreGoodsBrandMapper;
|
||||
import co.yixiang.shop.domain.StoreGoodsBrand;
|
||||
import co.yixiang.shop.service.IStoreGoodsBrandService;
|
||||
import co.yixiang.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 产品品牌Service业务层处理
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-23
|
||||
*/
|
||||
@Service
|
||||
public class StoreGoodsBrandServiceImpl implements IStoreGoodsBrandService
|
||||
{
|
||||
@Autowired
|
||||
private StoreGoodsBrandMapper storeGoodsBrandMapper;
|
||||
|
||||
/**
|
||||
* 查询产品品牌
|
||||
*
|
||||
* @param id 产品品牌ID
|
||||
* @return 产品品牌
|
||||
*/
|
||||
@Override
|
||||
public StoreGoodsBrand selectStoreGoodsBrandById(Long id)
|
||||
{
|
||||
return storeGoodsBrandMapper.selectStoreGoodsBrandById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询产品品牌列表
|
||||
*
|
||||
* @param storeGoodsBrand 产品品牌
|
||||
* @return 产品品牌
|
||||
*/
|
||||
@Override
|
||||
public List<StoreGoodsBrand> selectStoreGoodsBrandList(StoreGoodsBrand storeGoodsBrand)
|
||||
{
|
||||
return storeGoodsBrandMapper.selectStoreGoodsBrandList(storeGoodsBrand);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增产品品牌
|
||||
*
|
||||
* @param storeGoodsBrand 产品品牌
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStoreGoodsBrand(StoreGoodsBrand storeGoodsBrand)
|
||||
{
|
||||
return storeGoodsBrandMapper.insertStoreGoodsBrand(storeGoodsBrand);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改产品品牌
|
||||
*
|
||||
* @param storeGoodsBrand 产品品牌
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStoreGoodsBrand(StoreGoodsBrand storeGoodsBrand)
|
||||
{
|
||||
return storeGoodsBrandMapper.updateStoreGoodsBrand(storeGoodsBrand);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除产品品牌对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStoreGoodsBrandByIds(String ids)
|
||||
{
|
||||
return storeGoodsBrandMapper.deleteStoreGoodsBrandByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除产品品牌信息
|
||||
*
|
||||
* @param id 产品品牌ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsBrandById(Long id)
|
||||
{
|
||||
return storeGoodsBrandMapper.deleteStoreGoodsBrandById(id);
|
||||
}
|
||||
}
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
package co.yixiang.shop.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import co.yixiang.common.core.domain.Ztree;
|
||||
import co.yixiang.common.exception.BusinessException;
|
||||
import co.yixiang.shop.domain.StoreGoodsCate;
|
||||
import co.yixiang.shop.mapper.StoreGoodsCateMapper;
|
||||
import co.yixiang.shop.service.IStoreGoodsCateService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import co.yixiang.shop.mapper.StoreGoodsCateMapper;
|
||||
import co.yixiang.shop.domain.StoreGoodsCate;
|
||||
import co.yixiang.shop.service.IStoreGoodsCateService;
|
||||
import co.yixiang.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 商城商品分类Service业务层处理
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-22
|
||||
*/
|
||||
@Service
|
||||
public class StoreGoodsCateServiceImpl implements IStoreGoodsCateService
|
||||
{
|
||||
@Autowired
|
||||
private StoreGoodsCateMapper storeGoodsCateMapper;
|
||||
|
||||
/**
|
||||
* 查询商城商品分类
|
||||
*
|
||||
* @param id 商城商品分类ID
|
||||
* @return 商城商品分类
|
||||
*/
|
||||
@Override
|
||||
public StoreGoodsCate selectStoreGoodsCateById(Long id)
|
||||
{
|
||||
return storeGoodsCateMapper.selectStoreGoodsCateById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询商城商品分类列表
|
||||
*
|
||||
* @param storeGoodsCate 商城商品分类
|
||||
* @return 商城商品分类
|
||||
*/
|
||||
@Override
|
||||
public List<StoreGoodsCate> selectStoreGoodsCateList(StoreGoodsCate storeGoodsCate)
|
||||
{
|
||||
return storeGoodsCateMapper.selectStoreGoodsCateList(storeGoodsCate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增商城商品分类
|
||||
*
|
||||
* @param storeGoodsCate 商城商品分类
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStoreGoodsCate(StoreGoodsCate storeGoodsCate)
|
||||
{
|
||||
return storeGoodsCateMapper.insertStoreGoodsCate(storeGoodsCate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商城商品分类
|
||||
*
|
||||
* @param storeGoodsCate 商城商品分类
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStoreGoodsCate(StoreGoodsCate storeGoodsCate)
|
||||
{
|
||||
return storeGoodsCateMapper.updateStoreGoodsCate(storeGoodsCate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商城商品分类对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStoreGoodsCateByIds(String ids)
|
||||
{
|
||||
return storeGoodsCateMapper.deleteStoreGoodsCateByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商城商品分类信息
|
||||
*
|
||||
* @param id 商城商品分类ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsCateById(Long id)
|
||||
{
|
||||
StoreGoodsCate goodsCate = new StoreGoodsCate();
|
||||
goodsCate.setPid(id);
|
||||
List<StoreGoodsCate> goodsCates = storeGoodsCateMapper
|
||||
.selectStoreGoodsCateList(goodsCate);
|
||||
if(!goodsCates.isEmpty()) throw new BusinessException("请先删除子分类");
|
||||
return storeGoodsCateMapper.deleteStoreGoodsCateById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询商城商品分类树列表
|
||||
*
|
||||
* @return 所有商城商品分类信息
|
||||
*/
|
||||
@Override
|
||||
public List<Ztree> selectStoreGoodsCateTree()
|
||||
{
|
||||
List<StoreGoodsCate> storeGoodsCateList = storeGoodsCateMapper.selectStoreGoodsCateList(new StoreGoodsCate());
|
||||
List<Ztree> ztrees = new ArrayList<Ztree>();
|
||||
for (StoreGoodsCate storeGoodsCate : storeGoodsCateList)
|
||||
{
|
||||
Ztree ztree = new Ztree();
|
||||
ztree.setId(storeGoodsCate.getId());
|
||||
ztree.setpId(storeGoodsCate.getPid());
|
||||
ztree.setName(storeGoodsCate.getCateTitle());
|
||||
ztree.setTitle(storeGoodsCate.getCateTitle());
|
||||
ztrees.add(ztree);
|
||||
}
|
||||
return ztrees;
|
||||
}
|
||||
}
|
||||
+201
@@ -0,0 +1,201 @@
|
||||
package co.yixiang.shop.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import co.yixiang.shop.domain.StoreGoods;
|
||||
import co.yixiang.shop.domain.StoreGoodsAttr;
|
||||
import co.yixiang.shop.domain.StoreSpecGoodsPrice;
|
||||
import co.yixiang.shop.mapper.StoreGoodsBrandMapper;
|
||||
import co.yixiang.shop.mapper.StoreGoodsMapper;
|
||||
import co.yixiang.shop.mapper.StoreSpecGoodsPriceMapper;
|
||||
import co.yixiang.shop.service.IStoreGoodsAttrService;
|
||||
import co.yixiang.shop.service.IStoreGoodsService;
|
||||
import co.yixiang.shop.service.IStoreSpecGoodsPriceService;
|
||||
import co.yixiang.shop.domain.StoreGoodsAttr;
|
||||
import co.yixiang.shop.domain.StoreSpecGoodsPrice;
|
||||
import co.yixiang.shop.mapper.StoreGoodsBrandMapper;
|
||||
import co.yixiang.shop.mapper.StoreSpecGoodsPriceMapper;
|
||||
import co.yixiang.shop.service.IStoreGoodsAttrService;
|
||||
import co.yixiang.shop.service.IStoreSpecGoodsPriceService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import co.yixiang.shop.mapper.StoreGoodsMapper;
|
||||
import co.yixiang.shop.domain.StoreGoods;
|
||||
import co.yixiang.shop.service.IStoreGoodsService;
|
||||
import co.yixiang.common.core.text.Convert;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
/**
|
||||
* 商品主Service业务层处理
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-25
|
||||
*/
|
||||
@Service
|
||||
public class StoreGoodsServiceImpl implements IStoreGoodsService
|
||||
{
|
||||
@Autowired
|
||||
private StoreGoodsMapper storeGoodsMapper;
|
||||
|
||||
@Autowired
|
||||
private StoreGoodsBrandMapper storeGoodsBrandMapper;
|
||||
|
||||
@Autowired
|
||||
private StoreSpecGoodsPriceMapper storeSpecGoodsPriceMapper;
|
||||
|
||||
@Autowired
|
||||
private IStoreSpecGoodsPriceService storeSpecGoodsPriceService;
|
||||
|
||||
@Autowired
|
||||
protected IStoreGoodsAttrService storeGoodsAttrService;
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public int saveSpecAttr(Map<String,Map<String,String>> specDataMap,
|
||||
Map<String,String> attrDataMap,String goodsId,String goodsType) {
|
||||
//新增或者更新规格
|
||||
StoreSpecGoodsPrice storeSpecGoodsPrice = new StoreSpecGoodsPrice();
|
||||
StoreSpecGoodsPrice goodsPriceDomain = new StoreSpecGoodsPrice();
|
||||
storeSpecGoodsPrice.setGoodsId(Long.valueOf(goodsId));
|
||||
goodsPriceDomain.setGoodsId(Long.valueOf(goodsId));
|
||||
storeSpecGoodsPriceMapper.delStoreSpecGoodsPriceByGoodsId(Integer.valueOf(goodsId));
|
||||
|
||||
for(Map.Entry<String, Map<String,String>> entry : specDataMap.entrySet()){
|
||||
String mapKey = entry.getKey();
|
||||
Map map = entry.getValue();
|
||||
storeSpecGoodsPrice.setKey(mapKey);
|
||||
// List<StoreSpecGoodsPrice> storeSpecGoodsPrices = storeSpecGoodsPriceService
|
||||
// .selectStoreSpecGoodsPriceList(storeSpecGoodsPrice);
|
||||
|
||||
goodsPriceDomain.setKey(mapKey);
|
||||
goodsPriceDomain.setPrice(Double.valueOf(map.get("price").toString()));
|
||||
goodsPriceDomain.setMarketPrice(Double.valueOf(map.get("market_price").toString()));
|
||||
goodsPriceDomain.setStoreCount(Long.valueOf(map.get("store_count").toString()));
|
||||
goodsPriceDomain.setKeyName(map.get("key_name").toString());
|
||||
storeSpecGoodsPriceService.insertStoreSpecGoodsPrice(goodsPriceDomain);
|
||||
|
||||
// if(storeSpecGoodsPrices.isEmpty()){
|
||||
// goodsPriceDomain.setKeyName(map.get("key_name").toString());
|
||||
// storeSpecGoodsPriceService.insertStoreSpecGoodsPrice(goodsPriceDomain);
|
||||
// }else{
|
||||
// goodsPriceDomain.setItemId(storeSpecGoodsPrices.get(0).getItemId());
|
||||
// storeSpecGoodsPriceService.updateStoreSpecGoodsPrice(goodsPriceDomain);
|
||||
// }
|
||||
//System.out.println(mapKey+":"+map);
|
||||
|
||||
}
|
||||
|
||||
//新增或者更新属性
|
||||
StoreGoodsAttr goodsAttr = new StoreGoodsAttr();
|
||||
StoreGoodsAttr goodsAttrDomain = new StoreGoodsAttr();
|
||||
goodsAttr.setGoodsId(Integer.valueOf(goodsId));
|
||||
goodsAttrDomain.setGoodsId(Integer.valueOf(goodsId));
|
||||
for (Map.Entry<String, String> entry : attrDataMap.entrySet()) {
|
||||
String attrId = entry.getKey();
|
||||
String attrValue = entry.getValue();
|
||||
goodsAttr.setAttrId(Integer.valueOf(attrId));
|
||||
List<StoreGoodsAttr> attrList = storeGoodsAttrService
|
||||
.selectStoreGoodsAttrList(goodsAttr);
|
||||
goodsAttrDomain.setAttrValue(attrValue);
|
||||
goodsAttrDomain.setAttrId(Integer.valueOf(attrId));
|
||||
if(attrList.isEmpty()){
|
||||
storeGoodsAttrService.insertStoreGoodsAttr(goodsAttrDomain);
|
||||
}else{
|
||||
goodsAttrDomain.setGoodsAttrId(attrList.get(0).getGoodsAttrId());
|
||||
storeGoodsAttrService.updateStoreGoodsAttr(goodsAttrDomain);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//商品更新模型
|
||||
StoreGoods storeGoods = new StoreGoods();
|
||||
storeGoods.setGoodsId(Integer.valueOf(goodsId));
|
||||
storeGoods.setGoodsType(Integer.valueOf(goodsType));
|
||||
this.updateStoreGoods(storeGoods);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGoodsItems(Long goodsId) {
|
||||
return storeSpecGoodsPriceMapper.selectStoreSpecGoodsPriceItemStr(goodsId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询商品主
|
||||
*
|
||||
* @param goodsId 商品主ID
|
||||
* @return 商品主
|
||||
*/
|
||||
@Override
|
||||
public StoreGoods selectStoreGoodsById(Integer goodsId)
|
||||
{
|
||||
return storeGoodsMapper.selectStoreGoodsById(goodsId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询商品主列表
|
||||
*
|
||||
* @param storeGoods 商品
|
||||
* @return 商品主
|
||||
*/
|
||||
@Override
|
||||
public List<StoreGoods> selectStoreGoodsList(StoreGoods storeGoods)
|
||||
{
|
||||
List<StoreGoods> storeGoodsList = storeGoodsMapper.selectStoreGoodsList(storeGoods);
|
||||
for (StoreGoods goods : storeGoodsList){
|
||||
String brandName = storeGoodsBrandMapper
|
||||
.selectStoreGoodsBrandById(goods.getBrandId().longValue()).getBrandTitle();
|
||||
goods.setBrandName(brandName);
|
||||
}
|
||||
return storeGoodsList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增商品主
|
||||
*
|
||||
* @param storeGoods 商品主
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStoreGoods(StoreGoods storeGoods)
|
||||
{
|
||||
return storeGoodsMapper.insertStoreGoods(storeGoods);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品主
|
||||
*
|
||||
* @param storeGoods 商品主
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStoreGoods(StoreGoods storeGoods)
|
||||
{
|
||||
return storeGoodsMapper.updateStoreGoods(storeGoods);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品主对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStoreGoodsByIds(String ids)
|
||||
{
|
||||
return storeGoodsMapper.deleteStoreGoodsByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品主信息
|
||||
*
|
||||
* @param goodsId 商品主ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsById(Integer goodsId)
|
||||
{
|
||||
return storeGoodsMapper.deleteStoreGoodsById(goodsId);
|
||||
}
|
||||
}
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
package co.yixiang.shop.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.shop.domain.StoreGoodsType;
|
||||
import co.yixiang.shop.mapper.StoreGoodsTypeMapper;
|
||||
import co.yixiang.shop.service.IStoreGoodsTypeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import co.yixiang.shop.mapper.StoreGoodsTypeMapper;
|
||||
import co.yixiang.shop.domain.StoreGoodsType;
|
||||
import co.yixiang.shop.service.IStoreGoodsTypeService;
|
||||
import co.yixiang.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 商品类型(商品模型)Service业务层处理
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-24
|
||||
*/
|
||||
@Service
|
||||
public class StoreGoodsTypeServiceImpl implements IStoreGoodsTypeService
|
||||
{
|
||||
@Autowired
|
||||
private StoreGoodsTypeMapper storeGoodsTypeMapper;
|
||||
|
||||
/**
|
||||
* 查询商品类型(商品模型)
|
||||
*
|
||||
* @param id 商品类型(商品模型)ID
|
||||
* @return 商品类型(商品模型)
|
||||
*/
|
||||
@Override
|
||||
public StoreGoodsType selectStoreGoodsTypeById(Integer id)
|
||||
{
|
||||
return storeGoodsTypeMapper.selectStoreGoodsTypeById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询商品类型(商品模型)列表
|
||||
*
|
||||
* @param storeGoodsType 商品类型(商品模型)
|
||||
* @return 商品类型(商品模型)
|
||||
*/
|
||||
@Override
|
||||
public List<StoreGoodsType> selectStoreGoodsTypeList(StoreGoodsType storeGoodsType)
|
||||
{
|
||||
return storeGoodsTypeMapper.selectStoreGoodsTypeList(storeGoodsType);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增商品类型(商品模型)
|
||||
*
|
||||
* @param storeGoodsType 商品类型(商品模型)
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStoreGoodsType(StoreGoodsType storeGoodsType)
|
||||
{
|
||||
return storeGoodsTypeMapper.insertStoreGoodsType(storeGoodsType);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品类型(商品模型)
|
||||
*
|
||||
* @param storeGoodsType 商品类型(商品模型)
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStoreGoodsType(StoreGoodsType storeGoodsType)
|
||||
{
|
||||
return storeGoodsTypeMapper.updateStoreGoodsType(storeGoodsType);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品类型(商品模型)对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStoreGoodsTypeByIds(String ids)
|
||||
{
|
||||
return storeGoodsTypeMapper.deleteStoreGoodsTypeByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品类型(商品模型)信息
|
||||
*
|
||||
* @param id 商品类型(商品模型)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreGoodsTypeById(Integer id)
|
||||
{
|
||||
return storeGoodsTypeMapper.deleteStoreGoodsTypeById(id);
|
||||
}
|
||||
}
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
package co.yixiang.shop.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import co.yixiang.common.utils.DateUtils;
|
||||
import co.yixiang.shop.domain.StoreMember;
|
||||
import co.yixiang.shop.mapper.StoreMemberMapper;
|
||||
import co.yixiang.shop.service.IStoreMemberService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import co.yixiang.shop.mapper.StoreMemberMapper;
|
||||
import co.yixiang.shop.domain.StoreMember;
|
||||
import co.yixiang.shop.service.IStoreMemberService;
|
||||
import co.yixiang.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 商城会员信息Service业务层处理
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-30
|
||||
*/
|
||||
@Service
|
||||
public class StoreMemberServiceImpl implements IStoreMemberService
|
||||
{
|
||||
@Autowired
|
||||
private StoreMemberMapper storeMemberMapper;
|
||||
|
||||
/**
|
||||
* 查询商城会员信息
|
||||
*
|
||||
* @param id 商城会员信息ID
|
||||
* @return 商城会员信息
|
||||
*/
|
||||
@Override
|
||||
public StoreMember selectStoreMemberById(Long id)
|
||||
{
|
||||
return storeMemberMapper.selectStoreMemberById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询商城会员信息列表
|
||||
*
|
||||
* @param storeMember 商城会员信息
|
||||
* @return 商城会员信息
|
||||
*/
|
||||
@Override
|
||||
public List<StoreMember> selectStoreMemberList(StoreMember storeMember)
|
||||
{
|
||||
return storeMemberMapper.selectStoreMemberList(storeMember);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增商城会员信息
|
||||
*
|
||||
* @param storeMember 商城会员信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStoreMember(StoreMember storeMember)
|
||||
{
|
||||
storeMember.setCreateTime(DateUtils.getNowDate());
|
||||
return storeMemberMapper.insertStoreMember(storeMember);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商城会员信息
|
||||
*
|
||||
* @param storeMember 商城会员信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStoreMember(StoreMember storeMember)
|
||||
{
|
||||
storeMember.setUpdateTime(DateUtils.getNowDate());
|
||||
return storeMemberMapper.updateStoreMember(storeMember);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商城会员信息对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStoreMemberByIds(String ids)
|
||||
{
|
||||
return storeMemberMapper.deleteStoreMemberByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商城会员信息信息
|
||||
*
|
||||
* @param id 商城会员信息ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreMemberById(Long id)
|
||||
{
|
||||
return storeMemberMapper.deleteStoreMemberById(id);
|
||||
}
|
||||
}
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
package co.yixiang.shop.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.shop.domain.StoreOrderGoodsRemark;
|
||||
import co.yixiang.shop.mapper.StoreOrderGoodsRemarkMapper;
|
||||
import co.yixiang.shop.service.IStoreOrderGoodsRemarkService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import co.yixiang.shop.mapper.StoreOrderGoodsRemarkMapper;
|
||||
import co.yixiang.shop.domain.StoreOrderGoodsRemark;
|
||||
import co.yixiang.shop.service.IStoreOrderGoodsRemarkService;
|
||||
import co.yixiang.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 订单商品备注Service业务层处理
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
@Service
|
||||
public class StoreOrderGoodsRemarkServiceImpl implements IStoreOrderGoodsRemarkService
|
||||
{
|
||||
@Autowired
|
||||
private StoreOrderGoodsRemarkMapper storeOrderGoodsRemarkMapper;
|
||||
|
||||
/**
|
||||
* 查询订单商品备注
|
||||
*
|
||||
* @param id 订单商品备注ID
|
||||
* @return 订单商品备注
|
||||
*/
|
||||
@Override
|
||||
public StoreOrderGoodsRemark selectStoreOrderGoodsRemarkById(Integer id)
|
||||
{
|
||||
return storeOrderGoodsRemarkMapper.selectStoreOrderGoodsRemarkById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询订单商品备注列表
|
||||
*
|
||||
* @param storeOrderGoodsRemark 订单商品备注
|
||||
* @return 订单商品备注
|
||||
*/
|
||||
@Override
|
||||
public List<StoreOrderGoodsRemark> selectStoreOrderGoodsRemarkList(StoreOrderGoodsRemark storeOrderGoodsRemark)
|
||||
{
|
||||
return storeOrderGoodsRemarkMapper.selectStoreOrderGoodsRemarkList(storeOrderGoodsRemark);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增订单商品备注
|
||||
*
|
||||
* @param storeOrderGoodsRemark 订单商品备注
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStoreOrderGoodsRemark(StoreOrderGoodsRemark storeOrderGoodsRemark)
|
||||
{
|
||||
return storeOrderGoodsRemarkMapper.insertStoreOrderGoodsRemark(storeOrderGoodsRemark);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改订单商品备注
|
||||
*
|
||||
* @param storeOrderGoodsRemark 订单商品备注
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStoreOrderGoodsRemark(StoreOrderGoodsRemark storeOrderGoodsRemark)
|
||||
{
|
||||
return storeOrderGoodsRemarkMapper.updateStoreOrderGoodsRemark(storeOrderGoodsRemark);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除订单商品备注对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStoreOrderGoodsRemarkByIds(String ids)
|
||||
{
|
||||
return storeOrderGoodsRemarkMapper.deleteStoreOrderGoodsRemarkByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除订单商品备注信息
|
||||
*
|
||||
* @param id 订单商品备注ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreOrderGoodsRemarkById(Integer id)
|
||||
{
|
||||
return storeOrderGoodsRemarkMapper.deleteStoreOrderGoodsRemarkById(id);
|
||||
}
|
||||
}
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
package co.yixiang.shop.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.shop.domain.StoreOrderGoods;
|
||||
import co.yixiang.shop.mapper.StoreOrderGoodsMapper;
|
||||
import co.yixiang.shop.service.IStoreOrderGoodsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import co.yixiang.shop.mapper.StoreOrderGoodsMapper;
|
||||
import co.yixiang.shop.domain.StoreOrderGoods;
|
||||
import co.yixiang.shop.service.IStoreOrderGoodsService;
|
||||
import co.yixiang.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 订单商品与订单主关联Service业务层处理
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
@Service
|
||||
public class StoreOrderGoodsServiceImpl implements IStoreOrderGoodsService
|
||||
{
|
||||
@Autowired
|
||||
private StoreOrderGoodsMapper storeOrderGoodsMapper;
|
||||
|
||||
/**
|
||||
* 查询订单商品与订单主关联
|
||||
*
|
||||
* @param recId 订单商品与订单主关联ID
|
||||
* @return 订单商品与订单主关联
|
||||
*/
|
||||
@Override
|
||||
public StoreOrderGoods selectStoreOrderGoodsById(Integer recId)
|
||||
{
|
||||
return storeOrderGoodsMapper.selectStoreOrderGoodsById(recId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询订单商品与订单主关联列表
|
||||
*
|
||||
* @param storeOrderGoods 订单商品与订单主关联
|
||||
* @return 订单商品与订单主关联
|
||||
*/
|
||||
@Override
|
||||
public List<StoreOrderGoods> selectStoreOrderGoodsList(StoreOrderGoods storeOrderGoods)
|
||||
{
|
||||
return storeOrderGoodsMapper.selectStoreOrderGoodsList(storeOrderGoods);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增订单商品与订单主关联
|
||||
*
|
||||
* @param storeOrderGoods 订单商品与订单主关联
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStoreOrderGoods(StoreOrderGoods storeOrderGoods)
|
||||
{
|
||||
return storeOrderGoodsMapper.insertStoreOrderGoods(storeOrderGoods);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改订单商品与订单主关联
|
||||
*
|
||||
* @param storeOrderGoods 订单商品与订单主关联
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStoreOrderGoods(StoreOrderGoods storeOrderGoods)
|
||||
{
|
||||
return storeOrderGoodsMapper.updateStoreOrderGoods(storeOrderGoods);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除订单商品与订单主关联对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStoreOrderGoodsByIds(String ids)
|
||||
{
|
||||
return storeOrderGoodsMapper.deleteStoreOrderGoodsByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除订单商品与订单主关联信息
|
||||
*
|
||||
* @param recId 订单商品与订单主关联ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreOrderGoodsById(Integer recId)
|
||||
{
|
||||
return storeOrderGoodsMapper.deleteStoreOrderGoodsById(recId);
|
||||
}
|
||||
}
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
package co.yixiang.shop.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.shop.domain.StoreOrder;
|
||||
import co.yixiang.shop.domain.StoreOrderGoods;
|
||||
import co.yixiang.shop.mapper.StoreOrderMapper;
|
||||
import co.yixiang.shop.service.IStoreOrderService;
|
||||
import co.yixiang.shop.domain.StoreOrderGoods;
|
||||
import co.yixiang.shop.service.IStoreOrderGoodsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import co.yixiang.shop.mapper.StoreOrderMapper;
|
||||
import co.yixiang.shop.domain.StoreOrder;
|
||||
import co.yixiang.shop.service.IStoreOrderService;
|
||||
import co.yixiang.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 订单主Service业务层处理
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-29
|
||||
*/
|
||||
@Service
|
||||
public class StoreOrderServiceImpl implements IStoreOrderService
|
||||
{
|
||||
@Autowired
|
||||
private StoreOrderMapper storeOrderMapper;
|
||||
|
||||
@Autowired
|
||||
private IStoreOrderGoodsService storeOrderGoodsService;
|
||||
|
||||
/**
|
||||
* 查询订单主
|
||||
*
|
||||
* @param orderId 订单主ID
|
||||
* @return 订单主
|
||||
*/
|
||||
@Override
|
||||
public StoreOrder selectStoreOrderById(Integer orderId)
|
||||
{
|
||||
return storeOrderMapper.selectStoreOrderById(orderId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询订单主列表
|
||||
*
|
||||
* @param storeOrder 订单主
|
||||
* @return 订单主
|
||||
*/
|
||||
@Override
|
||||
public List<StoreOrder> selectStoreOrderList(StoreOrder storeOrder)
|
||||
{
|
||||
List<StoreOrder> list = storeOrderMapper.selectStoreOrderList(storeOrder);
|
||||
StoreOrderGoods orderGoods = new StoreOrderGoods();
|
||||
for (StoreOrder order : list) {
|
||||
orderGoods.setOrderId(order.getOrderId());
|
||||
List<StoreOrderGoods> orderGoodsList = storeOrderGoodsService
|
||||
.selectStoreOrderGoodsList(orderGoods);
|
||||
order.setStoreOrderGoods(orderGoodsList);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增订单主
|
||||
*
|
||||
* @param storeOrder 订单主
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStoreOrder(StoreOrder storeOrder)
|
||||
{
|
||||
return storeOrderMapper.insertStoreOrder(storeOrder);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改订单主
|
||||
*
|
||||
* @param storeOrder 订单主
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStoreOrder(StoreOrder storeOrder)
|
||||
{
|
||||
return storeOrderMapper.updateStoreOrder(storeOrder);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除订单主对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStoreOrderByIds(String ids)
|
||||
{
|
||||
return storeOrderMapper.deleteStoreOrderByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除订单主信息
|
||||
*
|
||||
* @param orderId 订单主ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreOrderById(Integer orderId)
|
||||
{
|
||||
return storeOrderMapper.deleteStoreOrderById(orderId);
|
||||
}
|
||||
}
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
package co.yixiang.shop.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.shop.domain.StoreSpecGoodsPrice;
|
||||
import co.yixiang.shop.mapper.StoreSpecGoodsPriceMapper;
|
||||
import co.yixiang.shop.service.IStoreSpecGoodsPriceService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import co.yixiang.shop.mapper.StoreSpecGoodsPriceMapper;
|
||||
import co.yixiang.shop.domain.StoreSpecGoodsPrice;
|
||||
import co.yixiang.shop.service.IStoreSpecGoodsPriceService;
|
||||
import co.yixiang.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 商品规格关联价格Service业务层处理
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-26
|
||||
*/
|
||||
@Service
|
||||
public class StoreSpecGoodsPriceServiceImpl implements IStoreSpecGoodsPriceService
|
||||
{
|
||||
@Autowired
|
||||
private StoreSpecGoodsPriceMapper storeSpecGoodsPriceMapper;
|
||||
|
||||
/**
|
||||
* 查询商品规格关联价格
|
||||
*
|
||||
* @param itemId 商品规格关联价格ID
|
||||
* @return 商品规格关联价格
|
||||
*/
|
||||
@Override
|
||||
public StoreSpecGoodsPrice selectStoreSpecGoodsPriceById(Long itemId)
|
||||
{
|
||||
return storeSpecGoodsPriceMapper.selectStoreSpecGoodsPriceById(itemId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询商品规格关联价格列表
|
||||
*
|
||||
* @param storeSpecGoodsPrice 商品规格关联价格
|
||||
* @return 商品规格关联价格
|
||||
*/
|
||||
@Override
|
||||
public List<StoreSpecGoodsPrice> selectStoreSpecGoodsPriceList(StoreSpecGoodsPrice storeSpecGoodsPrice)
|
||||
{
|
||||
return storeSpecGoodsPriceMapper.selectStoreSpecGoodsPriceList(storeSpecGoodsPrice);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增商品规格关联价格
|
||||
*
|
||||
* @param storeSpecGoodsPrice 商品规格关联价格
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStoreSpecGoodsPrice(StoreSpecGoodsPrice storeSpecGoodsPrice)
|
||||
{
|
||||
return storeSpecGoodsPriceMapper.insertStoreSpecGoodsPrice(storeSpecGoodsPrice);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品规格关联价格
|
||||
*
|
||||
* @param storeSpecGoodsPrice 商品规格关联价格
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStoreSpecGoodsPrice(StoreSpecGoodsPrice storeSpecGoodsPrice)
|
||||
{
|
||||
return storeSpecGoodsPriceMapper.updateStoreSpecGoodsPrice(storeSpecGoodsPrice);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品规格关联价格对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStoreSpecGoodsPriceByIds(String ids)
|
||||
{
|
||||
return storeSpecGoodsPriceMapper.deleteStoreSpecGoodsPriceByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品规格关联价格信息
|
||||
*
|
||||
* @param itemId 商品规格关联价格ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreSpecGoodsPriceById(Long itemId)
|
||||
{
|
||||
return storeSpecGoodsPriceMapper.deleteStoreSpecGoodsPriceById(itemId);
|
||||
}
|
||||
}
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
package co.yixiang.shop.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.shop.domain.StoreSpecItem;
|
||||
import co.yixiang.shop.mapper.StoreSpecItemMapper;
|
||||
import co.yixiang.shop.service.IStoreSpecItemService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import co.yixiang.shop.mapper.StoreSpecItemMapper;
|
||||
import co.yixiang.shop.domain.StoreSpecItem;
|
||||
import co.yixiang.shop.service.IStoreSpecItemService;
|
||||
import co.yixiang.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 规格项Service业务层处理
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-25
|
||||
*/
|
||||
@Service
|
||||
public class StoreSpecItemServiceImpl implements IStoreSpecItemService
|
||||
{
|
||||
@Autowired
|
||||
private StoreSpecItemMapper storeSpecItemMapper;
|
||||
|
||||
/**
|
||||
* 查询规格项
|
||||
*
|
||||
* @param id 规格项ID
|
||||
* @return 规格项
|
||||
*/
|
||||
@Override
|
||||
public StoreSpecItem selectStoreSpecItemById(Long id)
|
||||
{
|
||||
return storeSpecItemMapper.selectStoreSpecItemById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询规格项列表
|
||||
*
|
||||
* @param storeSpecItem 规格项
|
||||
* @return 规格项
|
||||
*/
|
||||
@Override
|
||||
public List<StoreSpecItem> selectStoreSpecItemList(StoreSpecItem storeSpecItem)
|
||||
{
|
||||
return storeSpecItemMapper.selectStoreSpecItemList(storeSpecItem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增规格项
|
||||
*
|
||||
* @param storeSpecItem 规格项
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStoreSpecItem(StoreSpecItem storeSpecItem)
|
||||
{
|
||||
|
||||
return storeSpecItemMapper.insertStoreSpecItem(storeSpecItem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改规格项
|
||||
*
|
||||
* @param storeSpecItem 规格项
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStoreSpecItem(StoreSpecItem storeSpecItem)
|
||||
{
|
||||
return storeSpecItemMapper.updateStoreSpecItem(storeSpecItem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除规格项对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStoreSpecItemByIds(String ids)
|
||||
{
|
||||
return storeSpecItemMapper.deleteStoreSpecItemByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除规格项信息
|
||||
*
|
||||
* @param id 规格项ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreSpecItemById(Long id)
|
||||
{
|
||||
return storeSpecItemMapper.deleteStoreSpecItemById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
package co.yixiang.shop.service.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import co.yixiang.common.utils.StringUtils;
|
||||
import co.yixiang.shop.domain.StoreSpec;
|
||||
import co.yixiang.shop.domain.StoreSpecItem;
|
||||
import co.yixiang.shop.mapper.StoreSpecItemMapper;
|
||||
import co.yixiang.shop.mapper.StoreSpecMapper;
|
||||
import co.yixiang.shop.service.IStoreSpecService;
|
||||
import co.yixiang.shop.domain.StoreSpecItem;
|
||||
import co.yixiang.shop.mapper.StoreSpecItemMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import co.yixiang.shop.mapper.StoreSpecMapper;
|
||||
import co.yixiang.shop.domain.StoreSpec;
|
||||
import co.yixiang.shop.service.IStoreSpecService;
|
||||
import co.yixiang.common.core.text.Convert;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
/**
|
||||
* 商品规格(独立)Service业务层处理
|
||||
*
|
||||
* @author hupeng
|
||||
* @date 2019-08-25
|
||||
*/
|
||||
@Service
|
||||
public class StoreSpecServiceImpl implements IStoreSpecService
|
||||
{
|
||||
@Autowired
|
||||
private StoreSpecMapper storeSpecMapper;
|
||||
|
||||
@Autowired
|
||||
private StoreSpecItemMapper storeSpecItemMapper;
|
||||
|
||||
/**
|
||||
* 查询商品规格(独立)
|
||||
*
|
||||
* @param id 商品规格(独立)ID
|
||||
* @return 商品规格(独立)
|
||||
*/
|
||||
@Override
|
||||
public StoreSpec selectStoreSpecById(Long id)
|
||||
{
|
||||
StoreSpec storeSpec = storeSpecMapper.selectStoreSpecById(id);
|
||||
StoreSpecItem storeSpecItem = new StoreSpecItem();
|
||||
storeSpecItem.setSpecId(id);
|
||||
List<StoreSpecItem> itemList = storeSpecItemMapper.selectStoreSpecItemList(storeSpecItem);
|
||||
List<String> strList = itemList.stream().map(StoreSpecItem::getItem).collect(Collectors.toList());
|
||||
String str = org.apache.commons.lang3.StringUtils.join(strList,"\n");
|
||||
storeSpec.setSpecItem(str);
|
||||
//System.out.println(storeSpec);
|
||||
return storeSpec;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询商品规格(独立)列表
|
||||
*
|
||||
* @param storeSpec 商品规格(独立)
|
||||
* @return 商品规格(独立)
|
||||
*/
|
||||
@Override
|
||||
public List<StoreSpec> selectStoreSpecList(StoreSpec storeSpec)
|
||||
{
|
||||
List<StoreSpec> list = storeSpecMapper.selectStoreSpecList(storeSpec);
|
||||
StoreSpecItem storeSpecItem = new StoreSpecItem();
|
||||
for (StoreSpec storeSpec1 : list) {
|
||||
storeSpecItem.setSpecId(storeSpec1.getId());
|
||||
List<StoreSpecItem> itemList = storeSpecItemMapper.selectStoreSpecItemList(storeSpecItem);
|
||||
List<String> strList = itemList.stream().map(StoreSpecItem::getItem).collect(Collectors.toList());
|
||||
String str = org.apache.commons.lang3.StringUtils.join(strList,",");
|
||||
storeSpec1.setSpecItem(str);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增商品规格(独立)
|
||||
*
|
||||
* @param storeSpec 商品规格(独立)
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int insertStoreSpec(StoreSpec storeSpec)
|
||||
{
|
||||
int rows = 1;
|
||||
storeSpecMapper.insertStoreSpec(storeSpec);
|
||||
List<String> itemList = StringUtils.stringToList(storeSpec.getSpecItem());
|
||||
List<StoreSpecItem> specItems = new ArrayList<>();
|
||||
for (String item : itemList) {
|
||||
StoreSpecItem specItem = new StoreSpecItem();
|
||||
specItem.setItem(item);
|
||||
specItem.setSpecId(storeSpec.getId());
|
||||
|
||||
specItems.add(specItem);
|
||||
}
|
||||
if(specItems.size() > 0){
|
||||
rows = storeSpecItemMapper.batchSpecItem(specItems);
|
||||
}
|
||||
return rows;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品规格(独立)
|
||||
*
|
||||
* @param storeSpec 商品规格(独立)
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int updateStoreSpec(StoreSpec storeSpec)
|
||||
{
|
||||
int rows = 1;
|
||||
storeSpecMapper.updateStoreSpec(storeSpec);
|
||||
List<String> itemList = StringUtils.stringToList(storeSpec.getSpecItem());
|
||||
List<StoreSpecItem> specItems = new ArrayList<>();
|
||||
|
||||
for (String item : itemList) {
|
||||
StoreSpecItem specItem = new StoreSpecItem();
|
||||
specItem.setItem(item);
|
||||
specItem.setSpecId(storeSpec.getId());
|
||||
if(StringUtils.isEmpty(storeSpecItemMapper.selectStoreSpecItemList(specItem))){
|
||||
specItems.add(specItem);
|
||||
}
|
||||
}
|
||||
if(specItems.size() > 0){
|
||||
rows = storeSpecItemMapper.batchSpecItem(specItems);
|
||||
}
|
||||
//return rows;
|
||||
return rows;
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品规格(独立)对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStoreSpecByIds(String ids)
|
||||
{
|
||||
return storeSpecMapper.deleteStoreSpecByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品规格(独立)信息
|
||||
*
|
||||
* @param id 商品规格(独立)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreSpecById(Long id)
|
||||
{
|
||||
return storeSpecMapper.deleteStoreSpecById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package co.yixiang.shop.vo;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @ClassName SpecVO
|
||||
* @Author hupeng <610796224@qq.com>
|
||||
* @Date 2019/8/27
|
||||
**/
|
||||
public class SpecAttrVO {
|
||||
private String goodsId;
|
||||
|
||||
private Map<String,String> item;
|
||||
|
||||
public String getGoodsId() {
|
||||
return goodsId;
|
||||
}
|
||||
|
||||
public void setGoodsId(String goodsId) {
|
||||
this.goodsId = goodsId;
|
||||
}
|
||||
|
||||
public Map<String, String> getItem() {
|
||||
return item;
|
||||
}
|
||||
|
||||
public void setItem(Map<String, String> item) {
|
||||
this.item = item;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package co.yixiang.shop.vo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName SpecVO
|
||||
* @Author hupeng <610796224@qq.com>
|
||||
* @Date 2019/8/27
|
||||
**/
|
||||
public class SpecVO {
|
||||
private String goodsId;
|
||||
|
||||
private List<String> list;
|
||||
|
||||
public String getGoodsId() {
|
||||
return goodsId;
|
||||
}
|
||||
|
||||
public void setGoodsId(String goodsId) {
|
||||
this.goodsId = goodsId;
|
||||
}
|
||||
|
||||
public List<String> getList() {
|
||||
return list;
|
||||
}
|
||||
|
||||
public void setList(List<String> list) {
|
||||
this.list = list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SpecVO{" +
|
||||
"goodsId='" + goodsId + '\'' +
|
||||
", list=" + list +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package co.yixiang.system.domain;
|
||||
|
||||
import javax.validation.constraints.*;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.annotation.Excel.ColumnType;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 参数配置表 sys_config
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysConfig extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 参数主键 */
|
||||
@Excel(name = "参数主键", cellType = ColumnType.NUMERIC)
|
||||
private Long configId;
|
||||
|
||||
/** 参数名称 */
|
||||
@Excel(name = "参数名称")
|
||||
private String configName;
|
||||
|
||||
/** 参数键名 */
|
||||
@Excel(name = "参数键名")
|
||||
private String configKey;
|
||||
|
||||
/** 参数键值 */
|
||||
@Excel(name = "参数键值")
|
||||
private String configValue;
|
||||
|
||||
/** 系统内置(Y是 N否) */
|
||||
@Excel(name = "系统内置", readConverterExp = "Y=是,N=否")
|
||||
private String configType;
|
||||
|
||||
public Long getConfigId()
|
||||
{
|
||||
return configId;
|
||||
}
|
||||
|
||||
public void setConfigId(Long configId)
|
||||
{
|
||||
this.configId = configId;
|
||||
}
|
||||
|
||||
@NotBlank(message = "参数名称不能为空")
|
||||
@Size(min = 0, max = 100, message = "参数名称不能超过100个字符")
|
||||
public String getConfigName()
|
||||
{
|
||||
return configName;
|
||||
}
|
||||
|
||||
public void setConfigName(String configName)
|
||||
{
|
||||
this.configName = configName;
|
||||
}
|
||||
|
||||
@NotBlank(message = "参数键名长度不能为空")
|
||||
@Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符")
|
||||
public String getConfigKey()
|
||||
{
|
||||
return configKey;
|
||||
}
|
||||
|
||||
public void setConfigKey(String configKey)
|
||||
{
|
||||
this.configKey = configKey;
|
||||
}
|
||||
|
||||
@NotBlank(message = "参数键值不能为空")
|
||||
@Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符")
|
||||
public String getConfigValue()
|
||||
{
|
||||
return configValue;
|
||||
}
|
||||
|
||||
public void setConfigValue(String configValue)
|
||||
{
|
||||
this.configValue = configValue;
|
||||
}
|
||||
|
||||
public String getConfigType()
|
||||
{
|
||||
return configType;
|
||||
}
|
||||
|
||||
public void setConfigType(String configType)
|
||||
{
|
||||
this.configType = configType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("configId", getConfigId())
|
||||
.append("configName", getConfigName())
|
||||
.append("configKey", getConfigKey())
|
||||
.append("configValue", getConfigValue())
|
||||
.append("configType", getConfigType())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
package co.yixiang.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import java.util.Date;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.annotation.Excel.ColumnType;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 系统访问记录表 sys_logininfor
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysLogininfor extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
@Excel(name = "序号", cellType = ColumnType.NUMERIC)
|
||||
private Long infoId;
|
||||
|
||||
/** 用户账号 */
|
||||
@Excel(name = "用户账号")
|
||||
private String loginName;
|
||||
|
||||
/** 登录状态 0成功 1失败 */
|
||||
@Excel(name = "登录状态", readConverterExp = "0=成功,1=失败")
|
||||
private String status;
|
||||
|
||||
/** 登录IP地址 */
|
||||
@Excel(name = "登录地址")
|
||||
private String ipaddr;
|
||||
|
||||
/** 登录地点 */
|
||||
@Excel(name = "登录地点")
|
||||
private String loginLocation;
|
||||
|
||||
/** 浏览器类型 */
|
||||
@Excel(name = "浏览器")
|
||||
private String browser;
|
||||
|
||||
/** 操作系统 */
|
||||
@Excel(name = "操作系统")
|
||||
private String os;
|
||||
|
||||
/** 提示消息 */
|
||||
@Excel(name = "提示消息")
|
||||
private String msg;
|
||||
|
||||
/** 访问时间 */
|
||||
@Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date loginTime;
|
||||
|
||||
public Long getInfoId()
|
||||
{
|
||||
return infoId;
|
||||
}
|
||||
|
||||
public void setInfoId(Long infoId)
|
||||
{
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
public String getLoginName()
|
||||
{
|
||||
return loginName;
|
||||
}
|
||||
|
||||
public void setLoginName(String loginName)
|
||||
{
|
||||
this.loginName = loginName;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getIpaddr()
|
||||
{
|
||||
return ipaddr;
|
||||
}
|
||||
|
||||
public void setIpaddr(String ipaddr)
|
||||
{
|
||||
this.ipaddr = ipaddr;
|
||||
}
|
||||
|
||||
public String getLoginLocation()
|
||||
{
|
||||
return loginLocation;
|
||||
}
|
||||
|
||||
public void setLoginLocation(String loginLocation)
|
||||
{
|
||||
this.loginLocation = loginLocation;
|
||||
}
|
||||
|
||||
public String getBrowser()
|
||||
{
|
||||
return browser;
|
||||
}
|
||||
|
||||
public void setBrowser(String browser)
|
||||
{
|
||||
this.browser = browser;
|
||||
}
|
||||
|
||||
public String getOs()
|
||||
{
|
||||
return os;
|
||||
}
|
||||
|
||||
public void setOs(String os)
|
||||
{
|
||||
this.os = os;
|
||||
}
|
||||
|
||||
public String getMsg()
|
||||
{
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg)
|
||||
{
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Date getLoginTime()
|
||||
{
|
||||
return loginTime;
|
||||
}
|
||||
|
||||
public void setLoginTime(Date loginTime)
|
||||
{
|
||||
this.loginTime = loginTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("infoId", getInfoId())
|
||||
.append("loginName", getLoginName())
|
||||
.append("ipaddr", getIpaddr())
|
||||
.append("loginLocation", getLoginLocation())
|
||||
.append("browser", getBrowser())
|
||||
.append("os", getOs())
|
||||
.append("status", getStatus())
|
||||
.append("msg", getMsg())
|
||||
.append("loginTime", getLoginTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package co.yixiang.system.domain;
|
||||
|
||||
import javax.validation.constraints.*;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 通知公告表 sys_notice
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysNotice extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 公告ID */
|
||||
private Long noticeId;
|
||||
|
||||
/** 公告标题 */
|
||||
private String noticeTitle;
|
||||
|
||||
/** 公告类型(1通知 2公告) */
|
||||
private String noticeType;
|
||||
|
||||
/** 公告内容 */
|
||||
private String noticeContent;
|
||||
|
||||
/** 公告状态(0正常 1关闭) */
|
||||
private String status;
|
||||
|
||||
public Long getNoticeId()
|
||||
{
|
||||
return noticeId;
|
||||
}
|
||||
|
||||
public void setNoticeId(Long noticeId)
|
||||
{
|
||||
this.noticeId = noticeId;
|
||||
}
|
||||
|
||||
public void setNoticeTitle(String noticeTitle)
|
||||
{
|
||||
this.noticeTitle = noticeTitle;
|
||||
}
|
||||
|
||||
@NotBlank(message = "公告标题不能为空")
|
||||
@Size(min = 0, max = 50, message = "公告标题不能超过50个字符")
|
||||
public String getNoticeTitle()
|
||||
{
|
||||
return noticeTitle;
|
||||
}
|
||||
|
||||
public void setNoticeType(String noticeType)
|
||||
{
|
||||
this.noticeType = noticeType;
|
||||
}
|
||||
|
||||
public String getNoticeType()
|
||||
{
|
||||
return noticeType;
|
||||
}
|
||||
|
||||
public void setNoticeContent(String noticeContent)
|
||||
{
|
||||
this.noticeContent = noticeContent;
|
||||
}
|
||||
|
||||
public String getNoticeContent()
|
||||
{
|
||||
return noticeContent;
|
||||
}
|
||||
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("noticeId", getNoticeId())
|
||||
.append("noticeTitle", getNoticeTitle())
|
||||
.append("noticeType", getNoticeType())
|
||||
.append("noticeContent", getNoticeContent())
|
||||
.append("status", getStatus())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,277 @@
|
||||
package co.yixiang.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import java.util.Date;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.annotation.Excel.ColumnType;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 操作日志记录表 oper_log
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysOperLog extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 日志主键 */
|
||||
@Excel(name = "操作序号", cellType = ColumnType.NUMERIC)
|
||||
private Long operId;
|
||||
|
||||
/** 操作模块 */
|
||||
@Excel(name = "操作模块")
|
||||
private String title;
|
||||
|
||||
/** 业务类型(0其它 1新增 2修改 3删除) */
|
||||
@Excel(name = "业务类型", readConverterExp = "0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据")
|
||||
private Integer businessType;
|
||||
|
||||
/** 业务类型数组 */
|
||||
private Integer[] businessTypes;
|
||||
|
||||
/** 请求方法 */
|
||||
@Excel(name = "请求方法")
|
||||
private String method;
|
||||
|
||||
/** 请求方式 */
|
||||
@Excel(name = "请求方式")
|
||||
private String requestMethod;
|
||||
|
||||
/** 操作类别(0其它 1后台用户 2手机端用户) */
|
||||
@Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户")
|
||||
private Integer operatorType;
|
||||
|
||||
/** 操作人员 */
|
||||
@Excel(name = "操作人员")
|
||||
private String operName;
|
||||
|
||||
/** 部门名称 */
|
||||
@Excel(name = "部门名称")
|
||||
private String deptName;
|
||||
|
||||
/** 请求url */
|
||||
@Excel(name = "请求地址")
|
||||
private String operUrl;
|
||||
|
||||
/** 操作地址 */
|
||||
@Excel(name = "操作地址")
|
||||
private String operIp;
|
||||
|
||||
/** 操作地点 */
|
||||
@Excel(name = "操作地点")
|
||||
private String operLocation;
|
||||
|
||||
/** 请求参数 */
|
||||
@Excel(name = "请求参数")
|
||||
private String operParam;
|
||||
|
||||
/** 返回参数 */
|
||||
@Excel(name = "返回参数")
|
||||
private String jsonResult;
|
||||
|
||||
/** 操作状态(0正常 1异常) */
|
||||
@Excel(name = "状态", readConverterExp = "0=正常,1=异常")
|
||||
private Integer status;
|
||||
|
||||
/** 错误消息 */
|
||||
@Excel(name = "错误消息")
|
||||
private String errorMsg;
|
||||
|
||||
/** 操作时间 */
|
||||
@Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date operTime;
|
||||
|
||||
public Long getOperId()
|
||||
{
|
||||
return operId;
|
||||
}
|
||||
|
||||
public void setOperId(Long operId)
|
||||
{
|
||||
this.operId = operId;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public Integer getBusinessType()
|
||||
{
|
||||
return businessType;
|
||||
}
|
||||
|
||||
public void setBusinessType(Integer businessType)
|
||||
{
|
||||
this.businessType = businessType;
|
||||
}
|
||||
|
||||
public Integer[] getBusinessTypes()
|
||||
{
|
||||
return businessTypes;
|
||||
}
|
||||
|
||||
public void setBusinessTypes(Integer[] businessTypes)
|
||||
{
|
||||
this.businessTypes = businessTypes;
|
||||
}
|
||||
|
||||
public String getMethod()
|
||||
{
|
||||
return method;
|
||||
}
|
||||
|
||||
public void setMethod(String method)
|
||||
{
|
||||
this.method = method;
|
||||
}
|
||||
|
||||
public String getRequestMethod()
|
||||
{
|
||||
return requestMethod;
|
||||
}
|
||||
|
||||
public void setRequestMethod(String requestMethod)
|
||||
{
|
||||
this.requestMethod = requestMethod;
|
||||
}
|
||||
|
||||
public Integer getOperatorType()
|
||||
{
|
||||
return operatorType;
|
||||
}
|
||||
|
||||
public void setOperatorType(Integer operatorType)
|
||||
{
|
||||
this.operatorType = operatorType;
|
||||
}
|
||||
|
||||
public String getOperName()
|
||||
{
|
||||
return operName;
|
||||
}
|
||||
|
||||
public void setOperName(String operName)
|
||||
{
|
||||
this.operName = operName;
|
||||
}
|
||||
|
||||
public String getDeptName()
|
||||
{
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName)
|
||||
{
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
public String getOperUrl()
|
||||
{
|
||||
return operUrl;
|
||||
}
|
||||
|
||||
public void setOperUrl(String operUrl)
|
||||
{
|
||||
this.operUrl = operUrl;
|
||||
}
|
||||
|
||||
public String getOperIp()
|
||||
{
|
||||
return operIp;
|
||||
}
|
||||
|
||||
public void setOperIp(String operIp)
|
||||
{
|
||||
this.operIp = operIp;
|
||||
}
|
||||
|
||||
public String getOperLocation()
|
||||
{
|
||||
return operLocation;
|
||||
}
|
||||
|
||||
public void setOperLocation(String operLocation)
|
||||
{
|
||||
this.operLocation = operLocation;
|
||||
}
|
||||
|
||||
public String getOperParam()
|
||||
{
|
||||
return operParam;
|
||||
}
|
||||
|
||||
public void setOperParam(String operParam)
|
||||
{
|
||||
this.operParam = operParam;
|
||||
}
|
||||
|
||||
public String getJsonResult()
|
||||
{
|
||||
return jsonResult;
|
||||
}
|
||||
|
||||
public void setJsonResult(String jsonResult)
|
||||
{
|
||||
this.jsonResult = jsonResult;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getErrorMsg()
|
||||
{
|
||||
return errorMsg;
|
||||
}
|
||||
|
||||
public void setErrorMsg(String errorMsg)
|
||||
{
|
||||
this.errorMsg = errorMsg;
|
||||
}
|
||||
|
||||
public Date getOperTime()
|
||||
{
|
||||
return operTime;
|
||||
}
|
||||
|
||||
public void setOperTime(Date operTime)
|
||||
{
|
||||
this.operTime = operTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("operId", getOperId())
|
||||
.append("title", getTitle())
|
||||
.append("businessType", getBusinessType())
|
||||
.append("businessTypes", getBusinessTypes())
|
||||
.append("method", getMethod())
|
||||
.append("requestMethod", getRequestMethod())
|
||||
.append("operatorType", getOperatorType())
|
||||
.append("operName", getOperName())
|
||||
.append("deptName", getDeptName())
|
||||
.append("operUrl", getOperUrl())
|
||||
.append("operIp", getOperIp())
|
||||
.append("operLocation", getOperLocation())
|
||||
.append("operParam", getOperParam())
|
||||
.append("status", getStatus())
|
||||
.append("errorMsg", getErrorMsg())
|
||||
.append("operTime", getOperTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
package co.yixiang.system.domain;
|
||||
|
||||
import javax.validation.constraints.*;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.annotation.Excel;
|
||||
import co.yixiang.common.annotation.Excel.ColumnType;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 岗位表 sys_post
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysPost extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 岗位序号 */
|
||||
@Excel(name = "岗位序号", cellType = ColumnType.NUMERIC)
|
||||
private Long postId;
|
||||
|
||||
/** 岗位编码 */
|
||||
@Excel(name = "岗位编码")
|
||||
private String postCode;
|
||||
|
||||
/** 岗位名称 */
|
||||
@Excel(name = "岗位名称")
|
||||
private String postName;
|
||||
|
||||
/** 岗位排序 */
|
||||
@Excel(name = "岗位排序", cellType = ColumnType.NUMERIC)
|
||||
private String postSort;
|
||||
|
||||
/** 状态(0正常 1停用) */
|
||||
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
|
||||
private String status;
|
||||
|
||||
/** 用户是否存在此岗位标识 默认不存在 */
|
||||
private boolean flag = false;
|
||||
|
||||
public Long getPostId()
|
||||
{
|
||||
return postId;
|
||||
}
|
||||
|
||||
public void setPostId(Long postId)
|
||||
{
|
||||
this.postId = postId;
|
||||
}
|
||||
|
||||
@NotBlank(message = "岗位编码不能为空")
|
||||
@Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符")
|
||||
public String getPostCode()
|
||||
{
|
||||
return postCode;
|
||||
}
|
||||
|
||||
public void setPostCode(String postCode)
|
||||
{
|
||||
this.postCode = postCode;
|
||||
}
|
||||
|
||||
@NotBlank(message = "岗位名称不能为空")
|
||||
@Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符")
|
||||
public String getPostName()
|
||||
{
|
||||
return postName;
|
||||
}
|
||||
|
||||
public void setPostName(String postName)
|
||||
{
|
||||
this.postName = postName;
|
||||
}
|
||||
|
||||
@NotBlank(message = "显示顺序不能为空")
|
||||
public String getPostSort()
|
||||
{
|
||||
return postSort;
|
||||
}
|
||||
|
||||
public void setPostSort(String postSort)
|
||||
{
|
||||
this.postSort = postSort;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public boolean isFlag()
|
||||
{
|
||||
return flag;
|
||||
}
|
||||
|
||||
public void setFlag(boolean flag)
|
||||
{
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("postId", getPostId())
|
||||
.append("postCode", getPostCode())
|
||||
.append("postName", getPostName())
|
||||
.append("postSort", getPostSort())
|
||||
.append("status", getStatus())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package co.yixiang.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 角色和部门关联 sys_role_dept
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysRoleDept
|
||||
{
|
||||
/** 角色ID */
|
||||
private Long roleId;
|
||||
|
||||
/** 部门ID */
|
||||
private Long deptId;
|
||||
|
||||
public Long getRoleId()
|
||||
{
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Long roleId)
|
||||
{
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public Long getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setDeptId(Long deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("roleId", getRoleId())
|
||||
.append("deptId", getDeptId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package co.yixiang.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 角色和菜单关联 sys_role_menu
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysRoleMenu
|
||||
{
|
||||
/** 角色ID */
|
||||
private Long roleId;
|
||||
|
||||
/** 菜单ID */
|
||||
private Long menuId;
|
||||
|
||||
public Long getRoleId()
|
||||
{
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Long roleId)
|
||||
{
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public Long getMenuId()
|
||||
{
|
||||
return menuId;
|
||||
}
|
||||
|
||||
public void setMenuId(Long menuId)
|
||||
{
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("roleId", getRoleId())
|
||||
.append("menuId", getMenuId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,177 @@
|
||||
package co.yixiang.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import co.yixiang.common.core.domain.BaseEntity;
|
||||
import co.yixiang.common.enums.OnlineStatus;
|
||||
|
||||
/**
|
||||
* 当前在线会话 sys_user_online
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysUserOnline extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 用户会话id */
|
||||
private String sessionId;
|
||||
|
||||
/** 部门名称 */
|
||||
private String deptName;
|
||||
|
||||
/** 登录名称 */
|
||||
private String loginName;
|
||||
|
||||
/** 登录IP地址 */
|
||||
private String ipaddr;
|
||||
|
||||
/** 登录地址 */
|
||||
private String loginLocation;
|
||||
|
||||
/** 浏览器类型 */
|
||||
private String browser;
|
||||
|
||||
/** 操作系统 */
|
||||
private String os;
|
||||
|
||||
/** session创建时间 */
|
||||
private Date startTimestamp;
|
||||
|
||||
/** session最后访问时间 */
|
||||
private Date lastAccessTime;
|
||||
|
||||
/** 超时时间,单位为分钟 */
|
||||
private Long expireTime;
|
||||
|
||||
/** 在线状态 */
|
||||
private OnlineStatus status = OnlineStatus.on_line;
|
||||
|
||||
public String getSessionId()
|
||||
{
|
||||
return sessionId;
|
||||
}
|
||||
|
||||
public void setSessionId(String sessionId)
|
||||
{
|
||||
this.sessionId = sessionId;
|
||||
}
|
||||
|
||||
public String getDeptName()
|
||||
{
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName)
|
||||
{
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
public String getLoginName()
|
||||
{
|
||||
return loginName;
|
||||
}
|
||||
|
||||
public void setLoginName(String loginName)
|
||||
{
|
||||
this.loginName = loginName;
|
||||
}
|
||||
|
||||
public String getIpaddr()
|
||||
{
|
||||
return ipaddr;
|
||||
}
|
||||
|
||||
public void setIpaddr(String ipaddr)
|
||||
{
|
||||
this.ipaddr = ipaddr;
|
||||
}
|
||||
|
||||
public String getLoginLocation()
|
||||
{
|
||||
return loginLocation;
|
||||
}
|
||||
|
||||
public void setLoginLocation(String loginLocation)
|
||||
{
|
||||
this.loginLocation = loginLocation;
|
||||
}
|
||||
|
||||
public String getBrowser()
|
||||
{
|
||||
return browser;
|
||||
}
|
||||
|
||||
public void setBrowser(String browser)
|
||||
{
|
||||
this.browser = browser;
|
||||
}
|
||||
|
||||
public String getOs()
|
||||
{
|
||||
return os;
|
||||
}
|
||||
|
||||
public void setOs(String os)
|
||||
{
|
||||
this.os = os;
|
||||
}
|
||||
|
||||
public Date getStartTimestamp()
|
||||
{
|
||||
return startTimestamp;
|
||||
}
|
||||
|
||||
public void setStartTimestamp(Date startTimestamp)
|
||||
{
|
||||
this.startTimestamp = startTimestamp;
|
||||
}
|
||||
|
||||
public Date getLastAccessTime()
|
||||
{
|
||||
return lastAccessTime;
|
||||
}
|
||||
|
||||
public void setLastAccessTime(Date lastAccessTime)
|
||||
{
|
||||
this.lastAccessTime = lastAccessTime;
|
||||
}
|
||||
|
||||
public Long getExpireTime()
|
||||
{
|
||||
return expireTime;
|
||||
}
|
||||
|
||||
public void setExpireTime(Long expireTime)
|
||||
{
|
||||
this.expireTime = expireTime;
|
||||
}
|
||||
|
||||
public OnlineStatus getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(OnlineStatus status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("sessionId", getSessionId())
|
||||
.append("loginName", getLoginName())
|
||||
.append("deptName", getDeptName())
|
||||
.append("ipaddr", getIpaddr())
|
||||
.append("loginLocation", getLoginLocation())
|
||||
.append("browser", getBrowser())
|
||||
.append("os", getOs())
|
||||
.append("status", getStatus())
|
||||
.append("startTimestamp", getStartTimestamp())
|
||||
.append("lastAccessTime", getLastAccessTime())
|
||||
.append("expireTime", getExpireTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package co.yixiang.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 用户和岗位关联 sys_user_post
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysUserPost
|
||||
{
|
||||
/** 用户ID */
|
||||
private Long userId;
|
||||
|
||||
/** 岗位ID */
|
||||
private Long postId;
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getPostId()
|
||||
{
|
||||
return postId;
|
||||
}
|
||||
|
||||
public void setPostId(Long postId)
|
||||
{
|
||||
this.postId = postId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("userId", getUserId())
|
||||
.append("postId", getPostId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package co.yixiang.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 用户和角色关联 sys_user_role
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysUserRole
|
||||
{
|
||||
/** 用户ID */
|
||||
private Long userId;
|
||||
|
||||
/** 角色ID */
|
||||
private Long roleId;
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getRoleId()
|
||||
{
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Long roleId)
|
||||
{
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("userId", getUserId())
|
||||
.append("roleId", getRoleId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package co.yixiang.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import co.yixiang.system.domain.SysConfig;
|
||||
|
||||
/**
|
||||
* 参数配置 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysConfigMapper
|
||||
{
|
||||
/**
|
||||
* 查询参数配置信息
|
||||
*
|
||||
* @param config 参数配置信息
|
||||
* @return 参数配置信息
|
||||
*/
|
||||
public SysConfig selectConfig(SysConfig config);
|
||||
|
||||
/**
|
||||
* 查询参数配置列表
|
||||
*
|
||||
* @param config 参数配置信息
|
||||
* @return 参数配置集合
|
||||
*/
|
||||
public List<SysConfig> selectConfigList(SysConfig config);
|
||||
|
||||
/**
|
||||
* 根据键名查询参数配置信息
|
||||
*
|
||||
* @param configKey 参数键名
|
||||
* @return 参数配置信息
|
||||
*/
|
||||
public SysConfig checkConfigKeyUnique(String configKey);
|
||||
|
||||
/**
|
||||
* 新增参数配置
|
||||
*
|
||||
* @param config 参数配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertConfig(SysConfig config);
|
||||
|
||||
/**
|
||||
* 修改参数配置
|
||||
*
|
||||
* @param config 参数配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateConfig(SysConfig config);
|
||||
|
||||
/**
|
||||
* 删除参数配置
|
||||
*
|
||||
* @param configId 参数主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteConfigById(Long configId);
|
||||
|
||||
/**
|
||||
* 批量删除参数配置
|
||||
*
|
||||
* @param configIds 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteConfigByIds(String[] configIds);
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
package co.yixiang.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import co.yixiang.common.core.domain.entity.SysDept;
|
||||
|
||||
/**
|
||||
* 部门管理 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysDeptMapper
|
||||
{
|
||||
/**
|
||||
* 查询部门人数
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int selectDeptCount(SysDept dept);
|
||||
|
||||
/**
|
||||
* 查询部门是否存在用户
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int checkDeptExistUser(Long deptId);
|
||||
|
||||
/**
|
||||
* 查询部门管理数据
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 部门信息集合
|
||||
*/
|
||||
public List<SysDept> selectDeptList(SysDept dept);
|
||||
|
||||
/**
|
||||
* 删除部门管理信息
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeptById(Long deptId);
|
||||
|
||||
/**
|
||||
* 新增部门信息
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDept(SysDept dept);
|
||||
|
||||
/**
|
||||
* 修改部门信息
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDept(SysDept dept);
|
||||
|
||||
/**
|
||||
* 修改子元素关系
|
||||
*
|
||||
* @param depts 子元素
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeptChildren(@Param("depts") List<SysDept> depts);
|
||||
|
||||
/**
|
||||
* 根据部门ID查询信息
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 部门信息
|
||||
*/
|
||||
public SysDept selectDeptById(Long deptId);
|
||||
|
||||
/**
|
||||
* 校验部门名称是否唯一
|
||||
*
|
||||
* @param deptName 部门名称
|
||||
* @param parentId 父部门ID
|
||||
* @return 结果
|
||||
*/
|
||||
public SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId);
|
||||
|
||||
/**
|
||||
* 根据角色ID查询部门
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 部门列表
|
||||
*/
|
||||
public List<String> selectRoleDeptTree(Long roleId);
|
||||
|
||||
/**
|
||||
* 修改所在部门的父级部门状态
|
||||
*
|
||||
* @param dept 部门
|
||||
*/
|
||||
public void updateDeptStatus(SysDept dept);
|
||||
|
||||
/**
|
||||
* 根据ID查询所有子部门
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 部门列表
|
||||
*/
|
||||
public List<SysDept> selectChildrenDeptById(Long deptId);
|
||||
|
||||
/**
|
||||
* 根据ID查询所有子部门(正常状态)
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 子部门数
|
||||
*/
|
||||
public int selectNormalChildrenDeptById(Long deptId);
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package co.yixiang.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import co.yixiang.common.core.domain.entity.SysDictData;
|
||||
|
||||
/**
|
||||
* 字典表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysDictDataMapper
|
||||
{
|
||||
/**
|
||||
* 根据条件分页查询字典数据
|
||||
*
|
||||
* @param dictData 字典数据信息
|
||||
* @return 字典数据集合信息
|
||||
*/
|
||||
public List<SysDictData> selectDictDataList(SysDictData dictData);
|
||||
|
||||
/**
|
||||
* 根据字典类型查询字典数据
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return 字典数据集合信息
|
||||
*/
|
||||
public List<SysDictData> selectDictDataByType(String dictType);
|
||||
|
||||
/**
|
||||
* 根据字典类型和字典键值查询字典数据信息
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @param dictValue 字典键值
|
||||
* @return 字典标签
|
||||
*/
|
||||
public String selectDictLabel(@Param("dictType") String dictType, @Param("dictValue") String dictValue);
|
||||
|
||||
/**
|
||||
* 根据字典数据ID查询信息
|
||||
*
|
||||
* @param dictCode 字典数据ID
|
||||
* @return 字典数据
|
||||
*/
|
||||
public SysDictData selectDictDataById(Long dictCode);
|
||||
|
||||
/**
|
||||
* 查询字典数据
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return 字典数据
|
||||
*/
|
||||
public int countDictDataByType(String dictType);
|
||||
|
||||
/**
|
||||
* 通过字典ID删除字典数据信息
|
||||
*
|
||||
* @param dictCode 字典数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDictDataById(Long dictCode);
|
||||
|
||||
/**
|
||||
* 批量删除字典数据
|
||||
*
|
||||
* @param ids 需要删除的数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDictDataByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 新增字典数据信息
|
||||
*
|
||||
* @param dictData 字典数据信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDictData(SysDictData dictData);
|
||||
|
||||
/**
|
||||
* 修改字典数据信息
|
||||
*
|
||||
* @param dictData 字典数据信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDictData(SysDictData dictData);
|
||||
|
||||
/**
|
||||
* 同步修改字典类型
|
||||
*
|
||||
* @param oldDictType 旧字典类型
|
||||
* @param newDictType 新旧字典类型
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDictDataType(@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType);
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package co.yixiang.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import co.yixiang.common.core.domain.entity.SysDictType;
|
||||
|
||||
/**
|
||||
* 字典表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysDictTypeMapper
|
||||
{
|
||||
/**
|
||||
* 根据条件分页查询字典类型
|
||||
*
|
||||
* @param dictType 字典类型信息
|
||||
* @return 字典类型集合信息
|
||||
*/
|
||||
public List<SysDictType> selectDictTypeList(SysDictType dictType);
|
||||
|
||||
/**
|
||||
* 根据所有字典类型
|
||||
*
|
||||
* @return 字典类型集合信息
|
||||
*/
|
||||
public List<SysDictType> selectDictTypeAll();
|
||||
|
||||
/**
|
||||
* 根据字典类型ID查询信息
|
||||
*
|
||||
* @param dictId 字典类型ID
|
||||
* @return 字典类型
|
||||
*/
|
||||
public SysDictType selectDictTypeById(Long dictId);
|
||||
|
||||
/**
|
||||
* 根据字典类型查询信息
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return 字典类型
|
||||
*/
|
||||
public SysDictType selectDictTypeByType(String dictType);
|
||||
|
||||
/**
|
||||
* 通过字典ID删除字典信息
|
||||
*
|
||||
* @param dictId 字典ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDictTypeById(Long dictId);
|
||||
|
||||
/**
|
||||
* 批量删除字典类型
|
||||
*
|
||||
* @param ids 需要删除的数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDictTypeByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 新增字典类型信息
|
||||
*
|
||||
* @param dictType 字典类型信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDictType(SysDictType dictType);
|
||||
|
||||
/**
|
||||
* 修改字典类型信息
|
||||
*
|
||||
* @param dictType 字典类型信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDictType(SysDictType dictType);
|
||||
|
||||
/**
|
||||
* 校验字典类型称是否唯一
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return 结果
|
||||
*/
|
||||
public SysDictType checkDictTypeUnique(String dictType);
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package co.yixiang.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import co.yixiang.system.domain.SysLogininfor;
|
||||
|
||||
/**
|
||||
* 系统访问日志情况信息 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysLogininforMapper
|
||||
{
|
||||
/**
|
||||
* 新增系统登录日志
|
||||
*
|
||||
* @param logininfor 访问日志对象
|
||||
*/
|
||||
public void insertLogininfor(SysLogininfor logininfor);
|
||||
|
||||
/**
|
||||
* 查询系统登录日志集合
|
||||
*
|
||||
* @param logininfor 访问日志对象
|
||||
* @return 登录记录集合
|
||||
*/
|
||||
public List<SysLogininfor> selectLogininforList(SysLogininfor logininfor);
|
||||
|
||||
/**
|
||||
* 批量删除系统登录日志
|
||||
*
|
||||
* @param ids 需要删除的数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteLogininforByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 清空系统登录日志
|
||||
*
|
||||
* @return 结果
|
||||
*/
|
||||
public int cleanLogininfor();
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
package co.yixiang.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import co.yixiang.common.core.domain.entity.SysMenu;
|
||||
|
||||
/**
|
||||
* 菜单表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysMenuMapper
|
||||
{
|
||||
/**
|
||||
* 查询系统所有菜单(含按钮)
|
||||
*
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<SysMenu> selectMenuAll();
|
||||
|
||||
/**
|
||||
* 根据用户ID查询菜单
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<SysMenu> selectMenuAllByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 查询系统正常显示菜单(不含按钮)
|
||||
*
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<SysMenu> selectMenuNormalAll();
|
||||
|
||||
/**
|
||||
* 根据用户ID查询菜单
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<SysMenu> selectMenusByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询权限
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 权限列表
|
||||
*/
|
||||
public List<String> selectPermsByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 根据角色ID查询菜单
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<String> selectMenuTree(Long roleId);
|
||||
|
||||
/**
|
||||
* 查询系统菜单列表
|
||||
*
|
||||
* @param menu 菜单信息
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<SysMenu> selectMenuList(SysMenu menu);
|
||||
|
||||
/**
|
||||
* 查询系统菜单列表
|
||||
*
|
||||
* @param menu 菜单信息
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<SysMenu> selectMenuListByUserId(SysMenu menu);
|
||||
|
||||
/**
|
||||
* 删除菜单管理信息
|
||||
*
|
||||
* @param menuId 菜单ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMenuById(Long menuId);
|
||||
|
||||
/**
|
||||
* 根据菜单ID查询信息
|
||||
*
|
||||
* @param menuId 菜单ID
|
||||
* @return 菜单信息
|
||||
*/
|
||||
public SysMenu selectMenuById(Long menuId);
|
||||
|
||||
/**
|
||||
* 查询菜单数量
|
||||
*
|
||||
* @param parentId 菜单父ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int selectCountMenuByParentId(Long parentId);
|
||||
|
||||
/**
|
||||
* 新增菜单信息
|
||||
*
|
||||
* @param menu 菜单信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMenu(SysMenu menu);
|
||||
|
||||
/**
|
||||
* 修改菜单信息
|
||||
*
|
||||
* @param menu 菜单信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMenu(SysMenu menu);
|
||||
|
||||
/**
|
||||
* 校验菜单名称是否唯一
|
||||
*
|
||||
* @param menuName 菜单名称
|
||||
* @param parentId 父菜单ID
|
||||
* @return 结果
|
||||
*/
|
||||
public SysMenu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId);
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package co.yixiang.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.system.domain.SysNotice;
|
||||
import co.yixiang.system.domain.SysNotice;
|
||||
|
||||
/**
|
||||
* 公告 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysNoticeMapper
|
||||
{
|
||||
/**
|
||||
* 查询公告信息
|
||||
*
|
||||
* @param noticeId 公告ID
|
||||
* @return 公告信息
|
||||
*/
|
||||
public SysNotice selectNoticeById(Long noticeId);
|
||||
|
||||
/**
|
||||
* 查询公告列表
|
||||
*
|
||||
* @param notice 公告信息
|
||||
* @return 公告集合
|
||||
*/
|
||||
public List<SysNotice> selectNoticeList(SysNotice notice);
|
||||
|
||||
/**
|
||||
* 新增公告
|
||||
*
|
||||
* @param notice 公告信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertNotice(SysNotice notice);
|
||||
|
||||
/**
|
||||
* 修改公告
|
||||
*
|
||||
* @param notice 公告信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateNotice(SysNotice notice);
|
||||
|
||||
/**
|
||||
* 批量删除公告
|
||||
*
|
||||
* @param noticeIds 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNoticeByIds(String[] noticeIds);
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package co.yixiang.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import co.yixiang.system.domain.SysOperLog;
|
||||
|
||||
/**
|
||||
* 操作日志 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysOperLogMapper
|
||||
{
|
||||
/**
|
||||
* 新增操作日志
|
||||
*
|
||||
* @param operLog 操作日志对象
|
||||
*/
|
||||
public void insertOperlog(SysOperLog operLog);
|
||||
|
||||
/**
|
||||
* 查询系统操作日志集合
|
||||
*
|
||||
* @param operLog 操作日志对象
|
||||
* @return 操作日志集合
|
||||
*/
|
||||
public List<SysOperLog> selectOperLogList(SysOperLog operLog);
|
||||
|
||||
/**
|
||||
* 批量删除系统操作日志
|
||||
*
|
||||
* @param ids 需要删除的数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOperLogByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 查询操作日志详细
|
||||
*
|
||||
* @param operId 操作ID
|
||||
* @return 操作日志对象
|
||||
*/
|
||||
public SysOperLog selectOperLogById(Long operId);
|
||||
|
||||
/**
|
||||
* 清空操作日志
|
||||
*/
|
||||
public void cleanOperLog();
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
package co.yixiang.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.system.domain.SysPost;
|
||||
import co.yixiang.system.domain.SysPost;
|
||||
|
||||
/**
|
||||
* 岗位信息 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysPostMapper
|
||||
{
|
||||
/**
|
||||
* 查询岗位数据集合
|
||||
*
|
||||
* @param post 岗位信息
|
||||
* @return 岗位数据集合
|
||||
*/
|
||||
public List<SysPost> selectPostList(SysPost post);
|
||||
|
||||
/**
|
||||
* 查询所有岗位
|
||||
*
|
||||
* @return 岗位列表
|
||||
*/
|
||||
public List<SysPost> selectPostAll();
|
||||
|
||||
/**
|
||||
* 根据用户ID查询岗位
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 岗位列表
|
||||
*/
|
||||
public List<SysPost> selectPostsByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 通过岗位ID查询岗位信息
|
||||
*
|
||||
* @param postId 岗位ID
|
||||
* @return 角色对象信息
|
||||
*/
|
||||
public SysPost selectPostById(Long postId);
|
||||
|
||||
/**
|
||||
* 批量删除岗位信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePostByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 修改岗位信息
|
||||
*
|
||||
* @param post 岗位信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePost(SysPost post);
|
||||
|
||||
/**
|
||||
* 新增岗位信息
|
||||
*
|
||||
* @param post 岗位信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPost(SysPost post);
|
||||
|
||||
/**
|
||||
* 校验岗位名称
|
||||
*
|
||||
* @param postName 岗位名称
|
||||
* @return 结果
|
||||
*/
|
||||
public SysPost checkPostNameUnique(String postName);
|
||||
|
||||
/**
|
||||
* 校验岗位编码
|
||||
*
|
||||
* @param postCode 岗位编码
|
||||
* @return 结果
|
||||
*/
|
||||
public SysPost checkPostCodeUnique(String postCode);
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package co.yixiang.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import co.yixiang.system.domain.SysRoleDept;
|
||||
|
||||
/**
|
||||
* 角色与部门关联表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysRoleDeptMapper
|
||||
{
|
||||
/**
|
||||
* 通过角色ID删除角色和部门关联
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRoleDeptByRoleId(Long roleId);
|
||||
|
||||
/**
|
||||
* 批量删除角色部门关联信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRoleDept(Long[] ids);
|
||||
|
||||
/**
|
||||
* 查询部门使用数量
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int selectCountRoleDeptByDeptId(Long deptId);
|
||||
|
||||
/**
|
||||
* 批量新增角色部门信息
|
||||
*
|
||||
* @param roleDeptList 角色部门列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchRoleDept(List<SysRoleDept> roleDeptList);
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package co.yixiang.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import co.yixiang.common.core.domain.entity.SysRole;
|
||||
|
||||
/**
|
||||
* 角色表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysRoleMapper
|
||||
{
|
||||
/**
|
||||
* 根据条件分页查询角色数据
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 角色数据集合信息
|
||||
*/
|
||||
public List<SysRole> selectRoleList(SysRole role);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询角色
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 角色列表
|
||||
*/
|
||||
public List<SysRole> selectRolesByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 通过角色ID查询角色
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 角色对象信息
|
||||
*/
|
||||
public SysRole selectRoleById(Long roleId);
|
||||
|
||||
/**
|
||||
* 通过角色ID删除角色
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRoleById(Long roleId);
|
||||
|
||||
/**
|
||||
* 批量角色用户信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRoleByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 修改角色信息
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateRole(SysRole role);
|
||||
|
||||
/**
|
||||
* 新增角色信息
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertRole(SysRole role);
|
||||
|
||||
/**
|
||||
* 校验角色名称是否唯一
|
||||
*
|
||||
* @param roleName 角色名称
|
||||
* @return 角色信息
|
||||
*/
|
||||
public SysRole checkRoleNameUnique(String roleName);
|
||||
|
||||
/**
|
||||
* 校验角色权限是否唯一
|
||||
*
|
||||
* @param roleKey 角色权限
|
||||
* @return 角色信息
|
||||
*/
|
||||
public SysRole checkRoleKeyUnique(String roleKey);
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package co.yixiang.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.system.domain.SysRoleMenu;
|
||||
|
||||
/**
|
||||
* 角色与菜单关联表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysRoleMenuMapper
|
||||
{
|
||||
/**
|
||||
* 通过角色ID删除角色和菜单关联
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRoleMenuByRoleId(Long roleId);
|
||||
|
||||
/**
|
||||
* 批量删除角色菜单关联信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRoleMenu(Long[] ids);
|
||||
|
||||
/**
|
||||
* 查询菜单使用数量
|
||||
*
|
||||
* @param menuId 菜单ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int selectCountRoleMenuByMenuId(Long menuId);
|
||||
|
||||
/**
|
||||
* 批量新增角色菜单信息
|
||||
*
|
||||
* @param roleMenuList 角色菜单列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchRoleMenu(List<SysRoleMenu> roleMenuList);
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
package co.yixiang.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import co.yixiang.common.core.domain.entity.SysUser;
|
||||
|
||||
/**
|
||||
* 用户表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysUserMapper
|
||||
{
|
||||
/**
|
||||
* 根据条件分页查询用户列表
|
||||
*
|
||||
* @param sysUser 用户信息
|
||||
* @return 用户信息集合信息
|
||||
*/
|
||||
public List<SysUser> selectUserList(SysUser sysUser);
|
||||
|
||||
/**
|
||||
* 根据条件分页查询未已配用户角色列表
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 用户信息集合信息
|
||||
*/
|
||||
public List<SysUser> selectAllocatedList(SysUser user);
|
||||
|
||||
/**
|
||||
* 根据条件分页查询未分配用户角色列表
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 用户信息集合信息
|
||||
*/
|
||||
public List<SysUser> selectUnallocatedList(SysUser user);
|
||||
|
||||
/**
|
||||
* 通过用户名查询用户
|
||||
*
|
||||
* @param userName 用户名
|
||||
* @return 用户对象信息
|
||||
*/
|
||||
public SysUser selectUserByLoginName(String userName);
|
||||
|
||||
/**
|
||||
* 通过手机号码查询用户
|
||||
*
|
||||
* @param phoneNumber 手机号码
|
||||
* @return 用户对象信息
|
||||
*/
|
||||
public SysUser selectUserByPhoneNumber(String phoneNumber);
|
||||
|
||||
/**
|
||||
* 通过邮箱查询用户
|
||||
*
|
||||
* @param email 邮箱
|
||||
* @return 用户对象信息
|
||||
*/
|
||||
public SysUser selectUserByEmail(String email);
|
||||
|
||||
/**
|
||||
* 通过用户ID查询用户
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 用户对象信息
|
||||
*/
|
||||
public SysUser selectUserById(Long userId);
|
||||
|
||||
/**
|
||||
* 通过用户ID删除用户
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserById(Long userId);
|
||||
|
||||
/**
|
||||
* 批量删除用户信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 修改用户信息
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateUser(SysUser user);
|
||||
|
||||
/**
|
||||
* 新增用户信息
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertUser(SysUser user);
|
||||
|
||||
/**
|
||||
* 校验用户名称是否唯一
|
||||
*
|
||||
* @param loginName 登录名称
|
||||
* @return 结果
|
||||
*/
|
||||
public int checkLoginNameUnique(String loginName);
|
||||
|
||||
/**
|
||||
* 校验手机号码是否唯一
|
||||
*
|
||||
* @param phonenumber 手机号码
|
||||
* @return 结果
|
||||
*/
|
||||
public SysUser checkPhoneUnique(String phonenumber);
|
||||
|
||||
/**
|
||||
* 校验email是否唯一
|
||||
*
|
||||
* @param email 用户邮箱
|
||||
* @return 结果
|
||||
*/
|
||||
public SysUser checkEmailUnique(String email);
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package co.yixiang.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.system.domain.SysUserOnline;
|
||||
|
||||
/**
|
||||
* 在线用户 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysUserOnlineMapper
|
||||
{
|
||||
/**
|
||||
* 通过会话序号查询信息
|
||||
*
|
||||
* @param sessionId 会话ID
|
||||
* @return 在线用户信息
|
||||
*/
|
||||
public SysUserOnline selectOnlineById(String sessionId);
|
||||
|
||||
/**
|
||||
* 通过会话序号删除信息
|
||||
*
|
||||
* @param sessionId 会话ID
|
||||
* @return 在线用户信息
|
||||
*/
|
||||
public int deleteOnlineById(String sessionId);
|
||||
|
||||
/**
|
||||
* 保存会话信息
|
||||
*
|
||||
* @param online 会话信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int saveOnline(SysUserOnline online);
|
||||
|
||||
/**
|
||||
* 查询会话集合
|
||||
*
|
||||
* @param userOnline 会话参数
|
||||
* @return 会话集合
|
||||
*/
|
||||
public List<SysUserOnline> selectUserOnlineList(SysUserOnline userOnline);
|
||||
|
||||
/**
|
||||
* 查询过期会话集合
|
||||
*
|
||||
* @param lastAccessTime 过期时间
|
||||
* @return 会话集合
|
||||
*/
|
||||
public List<SysUserOnline> selectOnlineByExpired(String lastAccessTime);
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package co.yixiang.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.system.domain.SysUserPost;
|
||||
|
||||
/**
|
||||
* 用户与岗位关联表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysUserPostMapper
|
||||
{
|
||||
/**
|
||||
* 通过用户ID删除用户和岗位关联
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserPostByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 通过岗位ID查询岗位使用数量
|
||||
*
|
||||
* @param postId 岗位ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int countUserPostById(Long postId);
|
||||
|
||||
/**
|
||||
* 批量删除用户和岗位关联
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserPost(Long[] ids);
|
||||
|
||||
/**
|
||||
* 批量新增用户岗位信息
|
||||
*
|
||||
* @param userPostList 用户角色列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchUserPost(List<SysUserPost> userPostList);
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package co.yixiang.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import co.yixiang.system.domain.SysUserRole;
|
||||
|
||||
/**
|
||||
* 用户与角色关联表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysUserRoleMapper
|
||||
{
|
||||
/**
|
||||
* 通过用户ID查询用户和角色关联
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 用户和角色关联列表
|
||||
*/
|
||||
public List<SysUserRole> selectUserRoleByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 通过用户ID删除用户和角色关联
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserRoleByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 批量删除用户和角色关联
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserRole(Long[] ids);
|
||||
|
||||
/**
|
||||
* 通过角色ID查询角色使用数量
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int countUserRoleByRoleId(Long roleId);
|
||||
|
||||
/**
|
||||
* 批量新增用户角色信息
|
||||
*
|
||||
* @param userRoleList 用户角色列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchUserRole(List<SysUserRole> userRoleList);
|
||||
|
||||
/**
|
||||
* 删除用户和角色关联信息
|
||||
*
|
||||
* @param userRole 用户和角色关联信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserRoleInfo(SysUserRole userRole);
|
||||
|
||||
/**
|
||||
* 批量取消授权用户角色
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @param userIds 需要删除的用户数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserRoleInfos(@Param("roleId") Long roleId, @Param("userIds") Long[] userIds);
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package co.yixiang.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import co.yixiang.system.domain.SysConfig;
|
||||
|
||||
/**
|
||||
* 参数配置 服务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysConfigService
|
||||
{
|
||||
/**
|
||||
* 查询参数配置信息
|
||||
*
|
||||
* @param configId 参数配置ID
|
||||
* @return 参数配置信息
|
||||
*/
|
||||
public SysConfig selectConfigById(Long configId);
|
||||
|
||||
/**
|
||||
* 根据键名查询参数配置信息
|
||||
*
|
||||
* @param configKey 参数键名
|
||||
* @return 参数键值
|
||||
*/
|
||||
public String selectConfigByKey(String configKey);
|
||||
|
||||
/**
|
||||
* 查询参数配置列表
|
||||
*
|
||||
* @param config 参数配置信息
|
||||
* @return 参数配置集合
|
||||
*/
|
||||
public List<SysConfig> selectConfigList(SysConfig config);
|
||||
|
||||
/**
|
||||
* 新增参数配置
|
||||
*
|
||||
* @param config 参数配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertConfig(SysConfig config);
|
||||
|
||||
/**
|
||||
* 修改参数配置
|
||||
*
|
||||
* @param config 参数配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateConfig(SysConfig config);
|
||||
|
||||
/**
|
||||
* 批量删除参数配置信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public void deleteConfigByIds(String ids);
|
||||
|
||||
/**
|
||||
* 加载参数缓存数据
|
||||
*/
|
||||
public void loadingConfigCache();
|
||||
|
||||
/**
|
||||
* 清空参数缓存数据
|
||||
*/
|
||||
public void clearConfigCache();
|
||||
|
||||
/**
|
||||
* 重置参数缓存数据
|
||||
*/
|
||||
public void resetConfigCache();
|
||||
|
||||
/**
|
||||
* 校验参数键名是否唯一
|
||||
*
|
||||
* @param config 参数信息
|
||||
* @return 结果
|
||||
*/
|
||||
public String checkConfigKeyUnique(SysConfig config);
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package co.yixiang.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import co.yixiang.common.core.domain.Ztree;
|
||||
import co.yixiang.common.core.domain.entity.SysDept;
|
||||
import co.yixiang.common.core.domain.entity.SysRole;
|
||||
|
||||
/**
|
||||
* 部门管理 服务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysDeptService
|
||||
{
|
||||
/**
|
||||
* 查询部门管理数据
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 部门信息集合
|
||||
*/
|
||||
public List<SysDept> selectDeptList(SysDept dept);
|
||||
|
||||
/**
|
||||
* 查询部门管理树
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 所有部门信息
|
||||
*/
|
||||
public List<Ztree> selectDeptTree(SysDept dept);
|
||||
|
||||
/**
|
||||
* 查询部门管理树(排除下级)
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 所有部门信息
|
||||
*/
|
||||
public List<Ztree> selectDeptTreeExcludeChild(SysDept dept);
|
||||
|
||||
/**
|
||||
* 根据角色ID查询菜单
|
||||
*
|
||||
* @param role 角色对象
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<Ztree> roleDeptTreeData(SysRole role);
|
||||
|
||||
/**
|
||||
* 查询部门人数
|
||||
*
|
||||
* @param parentId 父部门ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int selectDeptCount(Long parentId);
|
||||
|
||||
/**
|
||||
* 查询部门是否存在用户
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 结果 true 存在 false 不存在
|
||||
*/
|
||||
public boolean checkDeptExistUser(Long deptId);
|
||||
|
||||
/**
|
||||
* 删除部门管理信息
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeptById(Long deptId);
|
||||
|
||||
/**
|
||||
* 新增保存部门信息
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDept(SysDept dept);
|
||||
|
||||
/**
|
||||
* 修改保存部门信息
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDept(SysDept dept);
|
||||
|
||||
/**
|
||||
* 根据部门ID查询信息
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 部门信息
|
||||
*/
|
||||
public SysDept selectDeptById(Long deptId);
|
||||
|
||||
/**
|
||||
* 根据ID查询所有子部门(正常状态)
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 子部门数
|
||||
*/
|
||||
public int selectNormalChildrenDeptById(Long deptId);
|
||||
|
||||
/**
|
||||
* 校验部门名称是否唯一
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 结果
|
||||
*/
|
||||
public String checkDeptNameUnique(SysDept dept);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package co.yixiang.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import co.yixiang.common.core.domain.entity.SysDictData;
|
||||
|
||||
/**
|
||||
* 字典 业务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysDictDataService
|
||||
{
|
||||
/**
|
||||
* 根据条件分页查询字典数据
|
||||
*
|
||||
* @param dictData 字典数据信息
|
||||
* @return 字典数据集合信息
|
||||
*/
|
||||
public List<SysDictData> selectDictDataList(SysDictData dictData);
|
||||
|
||||
/**
|
||||
* 根据字典类型和字典键值查询字典数据信息
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @param dictValue 字典键值
|
||||
* @return 字典标签
|
||||
*/
|
||||
public String selectDictLabel(String dictType, String dictValue);
|
||||
|
||||
/**
|
||||
* 根据字典数据ID查询信息
|
||||
*
|
||||
* @param dictCode 字典数据ID
|
||||
* @return 字典数据
|
||||
*/
|
||||
public SysDictData selectDictDataById(Long dictCode);
|
||||
|
||||
/**
|
||||
* 批量删除字典数据
|
||||
*
|
||||
* @param ids 需要删除的数据
|
||||
* @return 结果
|
||||
*/
|
||||
public void deleteDictDataByIds(String ids);
|
||||
|
||||
/**
|
||||
* 新增保存字典数据信息
|
||||
*
|
||||
* @param dictData 字典数据信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDictData(SysDictData dictData);
|
||||
|
||||
/**
|
||||
* 修改保存字典数据信息
|
||||
*
|
||||
* @param dictData 字典数据信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDictData(SysDictData dictData);
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
package co.yixiang.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import co.yixiang.common.core.domain.Ztree;
|
||||
import co.yixiang.common.core.domain.entity.SysDictData;
|
||||
import co.yixiang.common.core.domain.entity.SysDictType;
|
||||
|
||||
/**
|
||||
* 字典 业务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysDictTypeService
|
||||
{
|
||||
/**
|
||||
* 根据条件分页查询字典类型
|
||||
*
|
||||
* @param dictType 字典类型信息
|
||||
* @return 字典类型集合信息
|
||||
*/
|
||||
public List<SysDictType> selectDictTypeList(SysDictType dictType);
|
||||
|
||||
/**
|
||||
* 根据所有字典类型
|
||||
*
|
||||
* @return 字典类型集合信息
|
||||
*/
|
||||
public List<SysDictType> selectDictTypeAll();
|
||||
|
||||
/**
|
||||
* 根据字典类型查询字典数据
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return 字典数据集合信息
|
||||
*/
|
||||
public List<SysDictData> selectDictDataByType(String dictType);
|
||||
|
||||
/**
|
||||
* 根据字典类型ID查询信息
|
||||
*
|
||||
* @param dictId 字典类型ID
|
||||
* @return 字典类型
|
||||
*/
|
||||
public SysDictType selectDictTypeById(Long dictId);
|
||||
|
||||
/**
|
||||
* 根据字典类型查询信息
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return 字典类型
|
||||
*/
|
||||
public SysDictType selectDictTypeByType(String dictType);
|
||||
|
||||
/**
|
||||
* 批量删除字典类型
|
||||
*
|
||||
* @param ids 需要删除的数据
|
||||
* @return 结果
|
||||
* @throws Exception 异常
|
||||
*/
|
||||
public void deleteDictTypeByIds(String ids);
|
||||
|
||||
/**
|
||||
* 加载字典缓存数据
|
||||
*/
|
||||
public void loadingDictCache();
|
||||
|
||||
/**
|
||||
* 清空字典缓存数据
|
||||
*/
|
||||
public void clearDictCache();
|
||||
|
||||
/**
|
||||
* 重置字典缓存数据
|
||||
*/
|
||||
public void resetDictCache();
|
||||
|
||||
/**
|
||||
* 新增保存字典类型信息
|
||||
*
|
||||
* @param dictType 字典类型信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDictType(SysDictType dictType);
|
||||
|
||||
/**
|
||||
* 修改保存字典类型信息
|
||||
*
|
||||
* @param dictType 字典类型信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDictType(SysDictType dictType);
|
||||
|
||||
/**
|
||||
* 校验字典类型称是否唯一
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return 结果
|
||||
*/
|
||||
public String checkDictTypeUnique(SysDictType dictType);
|
||||
|
||||
/**
|
||||
* 查询字典类型树
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return 所有字典类型
|
||||
*/
|
||||
public List<Ztree> selectDictTree(SysDictType dictType);
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package co.yixiang.system.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.system.domain.SysLogininfor;
|
||||
import co.yixiang.system.domain.SysLogininfor;
|
||||
|
||||
/**
|
||||
* 系统访问日志情况信息 服务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysLogininforService
|
||||
{
|
||||
/**
|
||||
* 新增系统登录日志
|
||||
*
|
||||
* @param logininfor 访问日志对象
|
||||
*/
|
||||
public void insertLogininfor(SysLogininfor logininfor);
|
||||
|
||||
/**
|
||||
* 查询系统登录日志集合
|
||||
*
|
||||
* @param logininfor 访问日志对象
|
||||
* @return 登录记录集合
|
||||
*/
|
||||
public List<SysLogininfor> selectLogininforList(SysLogininfor logininfor);
|
||||
|
||||
/**
|
||||
* 批量删除系统登录日志
|
||||
*
|
||||
* @param ids 需要删除的数据
|
||||
* @return
|
||||
*/
|
||||
public int deleteLogininforByIds(String ids);
|
||||
|
||||
/**
|
||||
* 清空系统登录日志
|
||||
*/
|
||||
public void cleanLogininfor();
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
package co.yixiang.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import co.yixiang.common.core.domain.Ztree;
|
||||
import co.yixiang.common.core.domain.entity.SysMenu;
|
||||
import co.yixiang.common.core.domain.entity.SysRole;
|
||||
import co.yixiang.common.core.domain.entity.SysUser;
|
||||
|
||||
/**
|
||||
* 菜单 业务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysMenuService
|
||||
{
|
||||
/**
|
||||
* 根据用户ID查询菜单
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<SysMenu> selectMenusByUser(SysUser user);
|
||||
|
||||
/**
|
||||
* 查询系统菜单列表
|
||||
*
|
||||
* @param menu 菜单信息
|
||||
* @param userId 用户ID
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<SysMenu> selectMenuList(SysMenu menu, Long userId);
|
||||
|
||||
/**
|
||||
* 查询菜单集合
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 所有菜单信息
|
||||
*/
|
||||
public List<SysMenu> selectMenuAll(Long userId);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询权限
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 权限列表
|
||||
*/
|
||||
public Set<String> selectPermsByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 根据角色ID查询菜单
|
||||
*
|
||||
* @param role 角色对象
|
||||
* @param userId 用户ID
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<Ztree> roleMenuTreeData(SysRole role, Long userId);
|
||||
|
||||
/**
|
||||
* 查询所有菜单信息
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<Ztree> menuTreeData(Long userId);
|
||||
|
||||
/**
|
||||
* 查询系统所有权限
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 权限列表
|
||||
*/
|
||||
public Map<String, String> selectPermsAll(Long userId);
|
||||
|
||||
/**
|
||||
* 删除菜单管理信息
|
||||
*
|
||||
* @param menuId 菜单ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMenuById(Long menuId);
|
||||
|
||||
/**
|
||||
* 根据菜单ID查询信息
|
||||
*
|
||||
* @param menuId 菜单ID
|
||||
* @return 菜单信息
|
||||
*/
|
||||
public SysMenu selectMenuById(Long menuId);
|
||||
|
||||
/**
|
||||
* 查询菜单数量
|
||||
*
|
||||
* @param parentId 菜单父ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int selectCountMenuByParentId(Long parentId);
|
||||
|
||||
/**
|
||||
* 查询菜单使用数量
|
||||
*
|
||||
* @param menuId 菜单ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int selectCountRoleMenuByMenuId(Long menuId);
|
||||
|
||||
/**
|
||||
* 新增保存菜单信息
|
||||
*
|
||||
* @param menu 菜单信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMenu(SysMenu menu);
|
||||
|
||||
/**
|
||||
* 修改保存菜单信息
|
||||
*
|
||||
* @param menu 菜单信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMenu(SysMenu menu);
|
||||
|
||||
/**
|
||||
* 校验菜单名称是否唯一
|
||||
*
|
||||
* @param menu 菜单信息
|
||||
* @return 结果
|
||||
*/
|
||||
public String checkMenuNameUnique(SysMenu menu);
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package co.yixiang.system.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.system.domain.SysNotice;
|
||||
|
||||
/**
|
||||
* 公告 服务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysNoticeService
|
||||
{
|
||||
/**
|
||||
* 查询公告信息
|
||||
*
|
||||
* @param noticeId 公告ID
|
||||
* @return 公告信息
|
||||
*/
|
||||
public SysNotice selectNoticeById(Long noticeId);
|
||||
|
||||
/**
|
||||
* 查询公告列表
|
||||
*
|
||||
* @param notice 公告信息
|
||||
* @return 公告集合
|
||||
*/
|
||||
public List<SysNotice> selectNoticeList(SysNotice notice);
|
||||
|
||||
/**
|
||||
* 新增公告
|
||||
*
|
||||
* @param notice 公告信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertNotice(SysNotice notice);
|
||||
|
||||
/**
|
||||
* 修改公告
|
||||
*
|
||||
* @param notice 公告信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateNotice(SysNotice notice);
|
||||
|
||||
/**
|
||||
* 删除公告信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNoticeByIds(String ids);
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package co.yixiang.system.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.system.domain.SysOperLog;
|
||||
import co.yixiang.system.domain.SysOperLog;
|
||||
|
||||
/**
|
||||
* 操作日志 服务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysOperLogService
|
||||
{
|
||||
/**
|
||||
* 新增操作日志
|
||||
*
|
||||
* @param operLog 操作日志对象
|
||||
*/
|
||||
public void insertOperlog(SysOperLog operLog);
|
||||
|
||||
/**
|
||||
* 查询系统操作日志集合
|
||||
*
|
||||
* @param operLog 操作日志对象
|
||||
* @return 操作日志集合
|
||||
*/
|
||||
public List<SysOperLog> selectOperLogList(SysOperLog operLog);
|
||||
|
||||
/**
|
||||
* 批量删除系统操作日志
|
||||
*
|
||||
* @param ids 需要删除的数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOperLogByIds(String ids);
|
||||
|
||||
/**
|
||||
* 查询操作日志详细
|
||||
*
|
||||
* @param operId 操作ID
|
||||
* @return 操作日志对象
|
||||
*/
|
||||
public SysOperLog selectOperLogById(Long operId);
|
||||
|
||||
/**
|
||||
* 清空操作日志
|
||||
*/
|
||||
public void cleanOperLog();
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package co.yixiang.system.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import co.yixiang.system.domain.SysPost;
|
||||
|
||||
/**
|
||||
* 岗位信息 服务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysPostService
|
||||
{
|
||||
/**
|
||||
* 查询岗位信息集合
|
||||
*
|
||||
* @param post 岗位信息
|
||||
* @return 岗位信息集合
|
||||
*/
|
||||
public List<SysPost> selectPostList(SysPost post);
|
||||
|
||||
/**
|
||||
* 查询所有岗位
|
||||
*
|
||||
* @return 岗位列表
|
||||
*/
|
||||
public List<SysPost> selectPostAll();
|
||||
|
||||
/**
|
||||
* 根据用户ID查询岗位
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 岗位列表
|
||||
*/
|
||||
public List<SysPost> selectPostsByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 通过岗位ID查询岗位信息
|
||||
*
|
||||
* @param postId 岗位ID
|
||||
* @return 角色对象信息
|
||||
*/
|
||||
public SysPost selectPostById(Long postId);
|
||||
|
||||
/**
|
||||
* 批量删除岗位信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
* @throws Exception 异常
|
||||
*/
|
||||
public int deletePostByIds(String ids) throws Exception;
|
||||
|
||||
/**
|
||||
* 新增保存岗位信息
|
||||
*
|
||||
* @param post 岗位信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPost(SysPost post);
|
||||
|
||||
/**
|
||||
* 修改保存岗位信息
|
||||
*
|
||||
* @param post 岗位信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePost(SysPost post);
|
||||
|
||||
/**
|
||||
* 通过岗位ID查询岗位使用数量
|
||||
*
|
||||
* @param postId 岗位ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int countUserPostById(Long postId);
|
||||
|
||||
/**
|
||||
* 校验岗位名称
|
||||
*
|
||||
* @param post 岗位信息
|
||||
* @return 结果
|
||||
*/
|
||||
public String checkPostNameUnique(SysPost post);
|
||||
|
||||
/**
|
||||
* 校验岗位编码
|
||||
*
|
||||
* @param post 岗位信息
|
||||
* @return 结果
|
||||
*/
|
||||
public String checkPostCodeUnique(SysPost post);
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
package co.yixiang.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import co.yixiang.common.core.domain.entity.SysRole;
|
||||
import co.yixiang.system.domain.SysUserRole;
|
||||
|
||||
/**
|
||||
* 角色业务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysRoleService
|
||||
{
|
||||
/**
|
||||
* 根据条件分页查询角色数据
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 角色数据集合信息
|
||||
*/
|
||||
public List<SysRole> selectRoleList(SysRole role);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询角色
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 权限列表
|
||||
*/
|
||||
public Set<String> selectRoleKeys(Long userId);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询角色
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 角色列表
|
||||
*/
|
||||
public List<SysRole> selectRolesByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 查询所有角色
|
||||
*
|
||||
* @return 角色列表
|
||||
*/
|
||||
public List<SysRole> selectRoleAll();
|
||||
|
||||
/**
|
||||
* 通过角色ID查询角色
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 角色对象信息
|
||||
*/
|
||||
public SysRole selectRoleById(Long roleId);
|
||||
|
||||
/**
|
||||
* 通过角色ID删除角色
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 结果
|
||||
*/
|
||||
public boolean deleteRoleById(Long roleId);
|
||||
|
||||
/**
|
||||
* 批量删除角色用户信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
* @throws Exception 异常
|
||||
*/
|
||||
public int deleteRoleByIds(String ids);
|
||||
|
||||
/**
|
||||
* 新增保存角色信息
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertRole(SysRole role);
|
||||
|
||||
/**
|
||||
* 修改保存角色信息
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateRole(SysRole role);
|
||||
|
||||
/**
|
||||
* 修改数据权限信息
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int authDataScope(SysRole role);
|
||||
|
||||
/**
|
||||
* 校验角色名称是否唯一
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 结果
|
||||
*/
|
||||
public String checkRoleNameUnique(SysRole role);
|
||||
|
||||
/**
|
||||
* 校验角色权限是否唯一
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 结果
|
||||
*/
|
||||
public String checkRoleKeyUnique(SysRole role);
|
||||
|
||||
/**
|
||||
* 校验角色是否允许操作
|
||||
*
|
||||
* @param role 角色信息
|
||||
*/
|
||||
public void checkRoleAllowed(SysRole role);
|
||||
|
||||
/**
|
||||
* 通过角色ID查询角色使用数量
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int countUserRoleByRoleId(Long roleId);
|
||||
|
||||
/**
|
||||
* 角色状态修改
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int changeStatus(SysRole role);
|
||||
|
||||
/**
|
||||
* 取消授权用户角色
|
||||
*
|
||||
* @param userRole 用户和角色关联信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAuthUser(SysUserRole userRole);
|
||||
|
||||
/**
|
||||
* 批量取消授权用户角色
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @param userIds 需要删除的用户数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAuthUsers(Long roleId, String userIds);
|
||||
|
||||
/**
|
||||
* 批量选择授权用户角色
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @param userIds 需要删除的用户数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAuthUsers(Long roleId, String userIds);
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package co.yixiang.system.service;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import co.yixiang.system.domain.SysUserOnline;
|
||||
|
||||
/**
|
||||
* 在线用户 服务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysUserOnlineService
|
||||
{
|
||||
/**
|
||||
* 通过会话序号查询信息
|
||||
*
|
||||
* @param sessionId 会话ID
|
||||
* @return 在线用户信息
|
||||
*/
|
||||
public SysUserOnline selectOnlineById(String sessionId);
|
||||
|
||||
/**
|
||||
* 通过会话序号删除信息
|
||||
*
|
||||
* @param sessionId 会话ID
|
||||
* @return 在线用户信息
|
||||
*/
|
||||
public void deleteOnlineById(String sessionId);
|
||||
|
||||
/**
|
||||
* 通过会话序号删除信息
|
||||
*
|
||||
* @param sessions 会话ID集合
|
||||
* @return 在线用户信息
|
||||
*/
|
||||
public void batchDeleteOnline(List<String> sessions);
|
||||
|
||||
/**
|
||||
* 保存会话信息
|
||||
*
|
||||
* @param online 会话信息
|
||||
*/
|
||||
public void saveOnline(SysUserOnline online);
|
||||
|
||||
/**
|
||||
* 查询会话集合
|
||||
*
|
||||
* @param userOnline 分页参数
|
||||
* @return 会话集合
|
||||
*/
|
||||
public List<SysUserOnline> selectUserOnlineList(SysUserOnline userOnline);
|
||||
|
||||
/**
|
||||
* 强退用户
|
||||
*
|
||||
* @param sessionId 会话ID
|
||||
*/
|
||||
public void forceLogout(String sessionId);
|
||||
|
||||
/**
|
||||
* 清理用户缓存
|
||||
*
|
||||
* @param loginName 登录名称
|
||||
* @param sessionId 会话ID
|
||||
*/
|
||||
public void removeUserCache(String loginName, String sessionId);
|
||||
|
||||
/**
|
||||
* 查询会话集合
|
||||
*
|
||||
* @param expiredDate 有效期
|
||||
* @return 会话集合
|
||||
*/
|
||||
public List<SysUserOnline> selectOnlineByExpired(Date expiredDate);
|
||||
}
|
||||
Loaded 100 of 1011 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user