其他模块迁移
parent
985742b79a
commit
3daf9986c2
@ -0,0 +1,372 @@
|
||||
package me.mofun.controller;
|
||||
|
||||
import me.mofun.entity.*;
|
||||
import me.mofun.entity.pojo.ParticipateJSON;
|
||||
import me.mofun.entity.pojo.ProductInfo;
|
||||
import me.mofun.entity.pojo.UserLimitBuy;
|
||||
import me.mofun.entity.vo.Pagination;
|
||||
import me.mofun.service.*;
|
||||
import me.mofun.util.DateUtil;
|
||||
import me.mofun.util.MD5Util;
|
||||
import me.mofun.util.MemCachedClientHelp;
|
||||
import me.mofun.util.UserNameUtil;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.Cookie;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
import java.util.*;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/products")
|
||||
public class ProductsController {
|
||||
|
||||
@Autowired
|
||||
private ISpellbuyrecordService spellbuyrecordService;
|
||||
|
||||
@Autowired
|
||||
private ISpellbuyproductService spellbuyproductService;
|
||||
|
||||
@Autowired
|
||||
private ILatestlotteryService latestlotteryService;
|
||||
|
||||
@Autowired
|
||||
private IProductimageService productImageService;
|
||||
|
||||
@Autowired
|
||||
private IUserService userService;
|
||||
|
||||
/**
|
||||
* 商品详情页
|
||||
*/
|
||||
@RequestMapping("/index/{id}.html")
|
||||
public ModelAndView index(@PathVariable String id,
|
||||
@RequestParam(defaultValue = "1") int pageNo,
|
||||
HttpServletResponse response) throws IOException {
|
||||
|
||||
ModelAndView mav = new ModelAndView();
|
||||
|
||||
if (pageNo == 0) {
|
||||
pageNo = 1;
|
||||
} else {
|
||||
pageNo += 1;
|
||||
}
|
||||
|
||||
List<ParticipateJSON> participateJSONList = new ArrayList<>();
|
||||
|
||||
// 获取商品信息
|
||||
List<Object[]> proList = spellbuyproductService.findBySpellbuyProductId(Integer.parseInt(id));
|
||||
ProductInfo productInfo = new ProductInfo();
|
||||
Product product = (Product) proList.get(0)[0];
|
||||
Spellbuyproduct spellbuyproduct = (Spellbuyproduct) proList.get(0)[1];
|
||||
|
||||
// 设置商品信息
|
||||
productInfo.setProductPeriod(spellbuyproduct.getProductPeriod());
|
||||
productInfo.setProductId(product.getProductId());
|
||||
productInfo.setStatus(spellbuyproduct.getSpStatus());
|
||||
productInfo.setHeadImage(product.getHeadImage());
|
||||
productInfo.setProductDetail(product.getProductDetail());
|
||||
productInfo.setProductName(product.getProductName());
|
||||
productInfo.setProductPrice(spellbuyproduct.getSpellbuyPrice());
|
||||
productInfo.setMarketPrice(spellbuyproduct.getMarketPrice().floatValue());
|
||||
productInfo.setActionName(spellbuyproduct.getActionName());
|
||||
productInfo.setSinglePrice(spellbuyproduct.getSpSinglePrice());
|
||||
productInfo.setProductTitle(product.getProductTitle());
|
||||
productInfo.setSpellbuyCount(spellbuyproduct.getSpellbuyCount());
|
||||
productInfo.setSpellbuyProductId(spellbuyproduct.getSpellbuyProductId());
|
||||
productInfo.setBuyLimited(spellbuyproduct.getSpellbuyLimit());
|
||||
|
||||
// 获取商品期数列表
|
||||
List<Object[]> objectList = spellbuyproductService.productPeriodList(spellbuyproduct.getFkProductId());
|
||||
TreeMap<Integer, Integer> productPeriodList = new TreeMap<>(new Comparator<Integer>() {
|
||||
public int compare(Integer o1, Integer o2) {
|
||||
return o2.hashCode() - o1.hashCode();
|
||||
}
|
||||
});
|
||||
|
||||
for (Object[] objects : objectList) {
|
||||
Spellbuyproduct sp = (Spellbuyproduct) objects[1];
|
||||
productPeriodList.put(sp.getProductPeriod(), sp.getSpellbuyProductId());
|
||||
}
|
||||
|
||||
// 获取商品图片
|
||||
List<Productimage> productimageList = productImageService.findByProductId(String.valueOf(product.getProductId()), "show");
|
||||
|
||||
// 获取参与记录
|
||||
Pagination pagination = spellbuyrecordService.LatestParticipate(id, pageNo, 6);
|
||||
List<Object[]> list = (List<Object[]>) pagination.getList();
|
||||
|
||||
for (Object[] objects : list) {
|
||||
ParticipateJSON participateJSON = new ParticipateJSON();
|
||||
Spellbuyrecord spellbuyrecord = (Spellbuyrecord) objects[0];
|
||||
User user = (User) objects[1];
|
||||
String userName = UserNameUtil.userName(user);
|
||||
|
||||
participateJSON.setBuyCount(spellbuyrecord.getBuyPrice().toString());
|
||||
participateJSON.setBuyDate(DateUtil.getTime(DateUtil.SDateTimeToDate(spellbuyrecord.getBuyDate())));
|
||||
participateJSON.setBuyId(spellbuyrecord.getSpellbuyRecordId().toString());
|
||||
participateJSON.setIp_address(user.getIpAddress());
|
||||
participateJSON.setIp_location(user.getIpLocation());
|
||||
participateJSON.setUserName(userName);
|
||||
participateJSON.setUserId(String.valueOf(user.getUserId()));
|
||||
participateJSON.setUserFace(user.getFaceImg());
|
||||
participateJSONList.add(participateJSON);
|
||||
}
|
||||
|
||||
int resultCount = spellbuyrecordService.LatestParticipateByCount(id);
|
||||
|
||||
// 将数据添加到Model中
|
||||
mav.addObject("productInfo", productInfo);
|
||||
mav.addObject("productPeriodList", productPeriodList);
|
||||
mav.addObject("productimageList", productimageList);
|
||||
mav.addObject("participateJSONList", participateJSONList);
|
||||
mav.addObject("resultCount", resultCount);
|
||||
mav.addObject("pageNo", pageNo);
|
||||
|
||||
// 根据状态返回不同页面
|
||||
if (productInfo.getStatus() == 2) {
|
||||
mav.setViewName("/WEB-INF/template/my/products/lottery");
|
||||
} else if (productInfo.getStatus() == 1) {
|
||||
response.sendRedirect("/lotteryDetail/" + productInfo.getSpellbuyProductId() + ".html");
|
||||
return null;
|
||||
} else {
|
||||
mav.setViewName("/WEB-INF/template/my/products/index");
|
||||
}
|
||||
|
||||
return mav;
|
||||
}
|
||||
|
||||
/**
|
||||
* 本商品往期拍购列表
|
||||
*/
|
||||
@GetMapping("/getProductNewList")
|
||||
@ResponseBody
|
||||
public TreeMap<Integer, Integer> getProductNewList(@RequestParam String id) {
|
||||
Spellbuyproduct spellbuyproduct = spellbuyproductService.getById(id);
|
||||
List<Object[]> objectList = spellbuyproductService.productPeriodList(spellbuyproduct.getFkProductId());
|
||||
TreeMap<Integer, Integer> productPeriodList = new TreeMap<>();
|
||||
|
||||
for (Object[] objects : objectList) {
|
||||
Spellbuyproduct sp = (Spellbuyproduct) objects[1];
|
||||
productPeriodList.put(sp.getProductPeriod(), sp.getSpellbuyProductId());
|
||||
}
|
||||
|
||||
return productPeriodList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页加载参与记录
|
||||
*/
|
||||
@GetMapping("/ajaxPage")
|
||||
@ResponseBody
|
||||
public List<ParticipateJSON> ajaxPage(@RequestParam String id,
|
||||
@RequestParam(defaultValue = "1") int pageNo,
|
||||
@RequestParam(defaultValue = "20") int pageSize) {
|
||||
|
||||
if (pageNo == 0) {
|
||||
pageNo = 1;
|
||||
} else {
|
||||
pageNo += 1;
|
||||
}
|
||||
|
||||
List<ParticipateJSON> participateJSONList = new ArrayList<>();
|
||||
Pagination pagination = spellbuyrecordService.LatestParticipate(id, pageNo, pageSize);
|
||||
List<Object[]> list = (List<Object[]>) pagination.getList();
|
||||
|
||||
for (Object[] objects : list) {
|
||||
ParticipateJSON participateJSON = new ParticipateJSON();
|
||||
Spellbuyrecord spellbuyrecord = (Spellbuyrecord) objects[0];
|
||||
User user = (User) objects[1];
|
||||
String userName = UserNameUtil.userName(user);
|
||||
|
||||
participateJSON.setBuyCount(spellbuyrecord.getBuyPrice().toString());
|
||||
participateJSON.setBuyDate(spellbuyrecord.getBuyDate());
|
||||
participateJSON.setBuyId(spellbuyrecord.getSpellbuyRecordId().toString());
|
||||
participateJSON.setIp_address(user.getIpAddress());
|
||||
participateJSON.setIp_location(user.getIpLocation());
|
||||
participateJSON.setUserName(userName);
|
||||
participateJSON.setUserId(String.valueOf(user.getUserId()));
|
||||
participateJSON.setUserFace(user.getFaceImg());
|
||||
participateJSONList.add(participateJSON);
|
||||
}
|
||||
|
||||
return participateJSONList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 我的购买记录
|
||||
*/
|
||||
@GetMapping("/getUserByHistory")
|
||||
@ResponseBody
|
||||
public List<Spellbuyrecord> getUserByHistory(@RequestParam String id, HttpServletRequest request) {
|
||||
Cookie[] cookies = request.getCookies();
|
||||
if (cookies != null) {
|
||||
for (Cookie cookie : cookies) {
|
||||
if (cookie.getName().equals("userId")) {
|
||||
String userId = cookie.getValue();
|
||||
if (StringUtils.isNotBlank(userId)) {
|
||||
return spellbuyrecordService.getUserByHistory(userId, id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* 从cookie中获取用户ID
|
||||
*/
|
||||
private String getUserIdFromCookie(HttpServletRequest request) {
|
||||
Cookie[] cookies = request.getCookies();
|
||||
if (cookies != null) {
|
||||
for (Cookie cookie : cookies) {
|
||||
if (cookie.getName().equals("userId")) {
|
||||
return cookie.getValue();
|
||||
}
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查限购情况
|
||||
*/
|
||||
@GetMapping("/checkUserLimitBuy")
|
||||
@ResponseBody
|
||||
public UserLimitBuy checkUserLimitBuy(@RequestParam String id,
|
||||
@RequestParam(required = false) String userId,
|
||||
HttpServletRequest request) {
|
||||
|
||||
String theUserId = StringUtils.isNotBlank(userId) ? userId : getUserIdFromCookie(request);
|
||||
UserLimitBuy u = new UserLimitBuy();
|
||||
u.setCode(0);
|
||||
|
||||
Spellbuyproduct spellbuyproduct = null;
|
||||
Spellbuyrecord spellbuyrecord = null;
|
||||
User user = null;
|
||||
|
||||
if (StringUtils.isNotBlank(theUserId)) {
|
||||
List<Object[]> objectList = spellbuyproductService.checkUserLimitBuy(id, theUserId);
|
||||
|
||||
for (Object[] objects : objectList) {
|
||||
spellbuyproduct = (Spellbuyproduct) objects[0];
|
||||
spellbuyrecord = (Spellbuyrecord) objects[1];
|
||||
user = (User) objects[2];
|
||||
break;
|
||||
}
|
||||
|
||||
if (spellbuyrecord == null) {
|
||||
spellbuyproduct = spellbuyproductService.getById(id);
|
||||
user = userService.findById(theUserId);
|
||||
}
|
||||
} else {
|
||||
spellbuyproduct = spellbuyproductService.getById(id);
|
||||
u.setCode(-10);
|
||||
}
|
||||
|
||||
if (spellbuyproduct != null) {
|
||||
u.setCode(spellbuyproduct.getFkProductId());
|
||||
u.setCodeLimitBuy(spellbuyproduct.getSpellbuyLimit());
|
||||
u.setCodeRemainNum(spellbuyproduct.getSpellbuyPrice() - spellbuyproduct.getSpellbuyCount());
|
||||
u.setCodeState(spellbuyproduct.getSpStatus());
|
||||
|
||||
if (u.getCodeRemainNum() <= 0) {
|
||||
u.setCode(-6);
|
||||
}
|
||||
}
|
||||
|
||||
if (user != null) {
|
||||
u.setUserMoney((float) (user.getBalance() != null ? user.getBalance().floatValue() : 0.0));
|
||||
}
|
||||
|
||||
if (user != null && spellbuyrecord != null) {
|
||||
u.setBuyNum(spellbuyrecord.getBuyPrice());
|
||||
}
|
||||
|
||||
return u;
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查商品关注情况
|
||||
*/
|
||||
@GetMapping("/checkCollectGoods")
|
||||
@ResponseBody
|
||||
public String checkCollectGoods() {
|
||||
return "10";
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加关注
|
||||
*/
|
||||
@PostMapping("/addCollectGoods")
|
||||
@ResponseBody
|
||||
public String addCollectGoods(@RequestParam String id) {
|
||||
return "10";
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否可以开奖
|
||||
*/
|
||||
@GetMapping("/isLottery")
|
||||
@ResponseBody
|
||||
public String isLottery(@RequestParam String id) {
|
||||
String key = MD5Util.encode(id + "status");
|
||||
String isLotteryJSON;
|
||||
|
||||
if (MemCachedClientHelp.getIMemcachedCache().get(key) == null) {
|
||||
Spellbuyproduct spellbuyproduct = spellbuyproductService.getById(id);
|
||||
long endDate = DateUtil.SDateTimeToDate(spellbuyproduct.getSpellbuyEndDate()).getTime();
|
||||
long nowDate = System.currentTimeMillis();
|
||||
|
||||
isLotteryJSON = "{\"spStatus\":\"" + spellbuyproduct.getSpStatus() + "\",\"date\":\"" + ((endDate - nowDate) / 1000) + "\"}";
|
||||
|
||||
try {
|
||||
MemCachedClientHelp.getIMemcachedCache().put(key, String.valueOf(endDate), new Date(10 * 60 * 1000));
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
} else {
|
||||
long endDate = Long.parseLong((String) MemCachedClientHelp.getIMemcachedCache().get(key));
|
||||
long nowDate = System.currentTimeMillis();
|
||||
isLotteryJSON = "{\"spStatus\":\"2\",\"date\":\"" + ((endDate - nowDate) / 1000) + "\"}";
|
||||
}
|
||||
|
||||
return isLotteryJSON;
|
||||
}
|
||||
|
||||
/**
|
||||
* 无店铺信息页面
|
||||
*/
|
||||
@RequestMapping("/index_no_shop_info")
|
||||
public ModelAndView indexNoShopInfo() {
|
||||
ModelAndView mav = new ModelAndView();
|
||||
mav.setViewName("/WEB-INF/template/my/products/index_NoShopInfo");
|
||||
return mav;
|
||||
}
|
||||
|
||||
/**
|
||||
* 服务逻辑页面
|
||||
*/
|
||||
@RequestMapping("/serviceLogic")
|
||||
public ModelAndView serviceLogic(@RequestParam String logicURL) {
|
||||
ModelAndView mav = new ModelAndView();
|
||||
mav.setViewName("/WEB-INF/template/my/products/serviceLogic/" + logicURL);
|
||||
return mav;
|
||||
}
|
||||
|
||||
/**
|
||||
* 产品类型菜单列表
|
||||
*/
|
||||
@RequestMapping("/productTypeMenuList")
|
||||
public ModelAndView productTypeMenuList() {
|
||||
ModelAndView mav = new ModelAndView();
|
||||
mav.setViewName("/root/my/productTypeMenuList");
|
||||
return mav;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,102 @@
|
||||
package me.mofun.entity.pojo;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ParticipateJSON implements Serializable {
|
||||
|
||||
private String userId;
|
||||
private String userName;
|
||||
private String userFace;
|
||||
private String ip_address;
|
||||
private String ip_location;
|
||||
private String buyCount;
|
||||
private String buyDate;
|
||||
private String buyId;
|
||||
|
||||
public ParticipateJSON() {
|
||||
super();
|
||||
}
|
||||
|
||||
public ParticipateJSON(String userId, String userName, String userFace,
|
||||
String ip_address, String ip_location, String buyCount,
|
||||
String buyDate, String buyId) {
|
||||
super();
|
||||
this.userId = userId;
|
||||
this.userName = userName;
|
||||
this.userFace = userFace;
|
||||
this.ip_address = ip_address;
|
||||
this.ip_location = ip_location;
|
||||
this.buyCount = buyCount;
|
||||
this.buyDate = buyDate;
|
||||
this.buyId = buyId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getUserFace() {
|
||||
return userFace;
|
||||
}
|
||||
|
||||
public void setUserFace(String userFace) {
|
||||
this.userFace = userFace;
|
||||
}
|
||||
|
||||
public String getIp_address() {
|
||||
return ip_address;
|
||||
}
|
||||
|
||||
public void setIp_address(String ip_address) {
|
||||
this.ip_address = ip_address;
|
||||
}
|
||||
|
||||
public String getIp_location() {
|
||||
return ip_location;
|
||||
}
|
||||
|
||||
public void setIp_location(String ip_location) {
|
||||
this.ip_location = ip_location;
|
||||
}
|
||||
|
||||
public String getBuyCount() {
|
||||
return buyCount;
|
||||
}
|
||||
|
||||
public void setBuyCount(String buyCount) {
|
||||
this.buyCount = buyCount;
|
||||
}
|
||||
|
||||
public String getBuyDate() {
|
||||
return buyDate;
|
||||
}
|
||||
|
||||
public void setBuyDate(String buyDate) {
|
||||
this.buyDate = buyDate;
|
||||
}
|
||||
|
||||
public String getBuyId() {
|
||||
return buyId;
|
||||
}
|
||||
|
||||
public void setBuyId(String buyId) {
|
||||
this.buyId = buyId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,192 @@
|
||||
package me.mofun.entity.pojo;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ProductInfo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 2984681206487401036L;
|
||||
|
||||
private Integer productId;
|
||||
private String productName;
|
||||
private String productTitle;
|
||||
private Integer productPrice;
|
||||
private Float marketPrice; //电商版新增字段:市场价
|
||||
private String actionName; //电商版新增字段:优惠活动名称
|
||||
private Integer singlePrice;//单次购买价格
|
||||
private String headImage;
|
||||
private String productDetail;
|
||||
private Integer spellbuyProductId;
|
||||
private Integer spellbuyCount;
|
||||
private Integer productPeriod; //商品期数
|
||||
private Integer status;
|
||||
private Integer buyLimited; //商品是否限购或该商品单人限购次数
|
||||
private Integer isVirtual;
|
||||
private Integer isNeedLogic;
|
||||
private String logicURL;
|
||||
private Integer shopId;
|
||||
|
||||
public ProductInfo() {
|
||||
super();
|
||||
}
|
||||
|
||||
public ProductInfo(Integer productId, String productName, String productTitle,
|
||||
Integer productPrice, Float marketPrice, String actionName, Integer singlePrice, String headImage,
|
||||
String productDetail, Integer spellbuyProductId,
|
||||
Integer spellbuyCount, Integer productPeriod, Integer status, Integer buyLimited, Integer isVirtual, Integer isNeedLogic, String logicURL) {
|
||||
super();
|
||||
this.productId = productId;
|
||||
this.productName = productName;
|
||||
this.productTitle = productTitle;
|
||||
this.productPrice = productPrice;
|
||||
this.marketPrice = marketPrice;
|
||||
this.actionName = actionName;
|
||||
this.singlePrice = singlePrice;
|
||||
this.headImage = headImage;
|
||||
this.productDetail = productDetail;
|
||||
this.spellbuyProductId = spellbuyProductId;
|
||||
this.spellbuyCount = spellbuyCount;
|
||||
this.productPeriod = productPeriod;
|
||||
this.status = status;
|
||||
this.buyLimited = buyLimited;
|
||||
this.isVirtual = isVirtual;
|
||||
this.isNeedLogic = isNeedLogic;
|
||||
this.logicURL = logicURL;
|
||||
}
|
||||
|
||||
public Integer getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(Integer productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getBuyLimited() {
|
||||
return buyLimited;
|
||||
}
|
||||
public void setBuyLimited(Integer buyLimited) {
|
||||
this.buyLimited = buyLimited;
|
||||
}
|
||||
|
||||
public String getProductName() {
|
||||
return productName;
|
||||
}
|
||||
public void setProductName(String productName) {
|
||||
this.productName = productName;
|
||||
}
|
||||
public String getProductTitle() {
|
||||
return productTitle;
|
||||
}
|
||||
public void setProductTitle(String productTitle) {
|
||||
this.productTitle = productTitle;
|
||||
}
|
||||
public Integer getProductPrice() {
|
||||
return productPrice;
|
||||
}
|
||||
public void setProductPrice(Integer productPrice) {
|
||||
this.productPrice = productPrice;
|
||||
}
|
||||
|
||||
public Float getMarketPrice() {
|
||||
return marketPrice;
|
||||
}
|
||||
|
||||
public void setMarketPrice(Float marketPrice) {
|
||||
this.marketPrice = marketPrice;
|
||||
}
|
||||
|
||||
public String getActionName() {
|
||||
return actionName;
|
||||
}
|
||||
|
||||
public void setActionName(String actionName) {
|
||||
this.actionName = actionName;
|
||||
}
|
||||
|
||||
|
||||
public String getHeadImage() {
|
||||
return headImage;
|
||||
}
|
||||
public void setHeadImage(String headImage) {
|
||||
this.headImage = headImage;
|
||||
}
|
||||
public String getProductDetail() {
|
||||
return productDetail;
|
||||
}
|
||||
public void setProductDetail(String productDetail) {
|
||||
this.productDetail = productDetail;
|
||||
}
|
||||
public Integer getSpellbuyProductId() {
|
||||
return spellbuyProductId;
|
||||
}
|
||||
public void setSpellbuyProductId(Integer spellbuyProductId) {
|
||||
this.spellbuyProductId = spellbuyProductId;
|
||||
}
|
||||
public Integer getSpellbuyCount() {
|
||||
return spellbuyCount;
|
||||
}
|
||||
public void setSpellbuyCount(Integer spellbuyCount) {
|
||||
this.spellbuyCount = spellbuyCount;
|
||||
}
|
||||
|
||||
public Integer getProductPeriod() {
|
||||
return productPeriod;
|
||||
}
|
||||
|
||||
public void setProductPeriod(Integer productPeriod) {
|
||||
this.productPeriod = productPeriod;
|
||||
}
|
||||
|
||||
public static long getSerialVersionUID() {
|
||||
return serialVersionUID;
|
||||
}
|
||||
|
||||
public Integer getSinglePrice() {
|
||||
return singlePrice;
|
||||
}
|
||||
|
||||
public void setSinglePrice(Integer singlePrice) {
|
||||
this.singlePrice = singlePrice;
|
||||
}
|
||||
|
||||
public int getIsVirtual() {
|
||||
return isVirtual;
|
||||
}
|
||||
|
||||
public void setIsVirtual(int isVirtual) {
|
||||
this.isVirtual = isVirtual;
|
||||
}
|
||||
|
||||
public int getIsNeedLogic() {
|
||||
return isNeedLogic;
|
||||
}
|
||||
|
||||
public void setIsNeedLogic(int isNeedLogic) {
|
||||
this.isNeedLogic = isNeedLogic;
|
||||
}
|
||||
|
||||
public String getLogicURL() {
|
||||
return logicURL;
|
||||
}
|
||||
|
||||
public void setLogicURL(String logicURL) {
|
||||
this.logicURL = logicURL;
|
||||
}
|
||||
|
||||
public Integer getShopId() {
|
||||
return shopId;
|
||||
}
|
||||
|
||||
public void setShopId(Integer shopId) {
|
||||
this.shopId = shopId;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue