|
@ -14,10 +14,12 @@ import com.yxt.common.core.query.PagerQuery; |
|
|
import com.yxt.common.core.result.ResultBean; |
|
|
import com.yxt.common.core.result.ResultBean; |
|
|
import com.yxt.common.core.vo.PagerVo; |
|
|
import com.yxt.common.core.vo.PagerVo; |
|
|
import com.yxt.yythmall.api.appletgiftbag.*; |
|
|
import com.yxt.yythmall.api.appletgiftbag.*; |
|
|
|
|
|
import com.yxt.yythmall.api.lpkcustomer.LpkCustomer; |
|
|
import com.yxt.yythmall.api.lpkgiftcard.LpkGiftCardQuery; |
|
|
import com.yxt.yythmall.api.lpkgiftcard.LpkGiftCardQuery; |
|
|
import com.yxt.yythmall.api.lpkgoods.*; |
|
|
import com.yxt.yythmall.api.lpkgoods.*; |
|
|
import com.yxt.yythmall.api.shoppingcart.ShoppingCartQuery; |
|
|
import com.yxt.yythmall.api.shoppingcart.ShoppingCartQuery; |
|
|
import com.yxt.yythmall.api.shoppingcart.ShoppingCartVo; |
|
|
import com.yxt.yythmall.api.shoppingcart.ShoppingCartVo; |
|
|
|
|
|
import com.yxt.yythmall.biz.lpkcustomer.LpkCustomerService; |
|
|
import com.yxt.yythmall.biz.shoppingcart.ShoppingCartService; |
|
|
import com.yxt.yythmall.biz.shoppingcart.ShoppingCartService; |
|
|
import com.yxt.yythmall.mallplus.biz.pms.service.IPmsBrandService; |
|
|
import com.yxt.yythmall.mallplus.biz.pms.service.IPmsBrandService; |
|
|
import com.yxt.yythmall.mallplus.mbg.pms.entity.brand.BrandVo; |
|
|
import com.yxt.yythmall.mallplus.mbg.pms.entity.brand.BrandVo; |
|
@ -50,6 +52,8 @@ public class LpkGoodsService extends MybatisBaseService<LpkGoodsMapper, LpkGoods |
|
|
ShoppingCartService shoppingCartService; |
|
|
ShoppingCartService shoppingCartService; |
|
|
@Autowired |
|
|
@Autowired |
|
|
private com.yxt.yythmall.mallplus.biz.pms.service.IPmsBrandService IPmsBrandService; |
|
|
private com.yxt.yythmall.mallplus.biz.pms.service.IPmsBrandService IPmsBrandService; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
LpkCustomerService lpkCustomerService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ResultBean<PagerVo<LpkGoodsVo>> goodsListPage(PagerQuery<LpkGoodsQuery> pq) { |
|
|
public ResultBean<PagerVo<LpkGoodsVo>> goodsListPage(PagerQuery<LpkGoodsQuery> pq) { |
|
@ -225,6 +229,13 @@ public class LpkGoodsService extends MybatisBaseService<LpkGoodsMapper, LpkGoods |
|
|
double i=Double.valueOf(s.getGoodsNumber()); |
|
|
double i=Double.valueOf(s.getGoodsNumber()); |
|
|
s.setGoodsNumber(String.valueOf((int)i)); |
|
|
s.setGoodsNumber(String.valueOf((int)i)); |
|
|
s.setIconUrl(fileUploadComponent.getUrlPrefix()+s.getIconUrl()); |
|
|
s.setIconUrl(fileUploadComponent.getUrlPrefix()+s.getIconUrl()); |
|
|
|
|
|
if(s.getPeriodValidity()!=null){ |
|
|
|
|
|
//1>2 1 、1<2 -1 、1=2 0
|
|
|
|
|
|
int k= s.getPeriodValidity().compareTo(new Date()); |
|
|
|
|
|
if(k==-1){ |
|
|
|
|
|
s.setState("1"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
return rb.success().setData(vo); |
|
|
return rb.success().setData(vo); |
|
|
} |
|
|
} |
|
@ -271,6 +282,10 @@ public class LpkGoodsService extends MybatisBaseService<LpkGoodsMapper, LpkGoods |
|
|
if(StringUtils.isBlank(query.getCustomerSid())){ |
|
|
if(StringUtils.isBlank(query.getCustomerSid())){ |
|
|
return rb.setMsg("参数不全"); |
|
|
return rb.setMsg("参数不全"); |
|
|
} |
|
|
} |
|
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
|
|
Date date=new Date(); |
|
|
|
|
|
String p=sdf.format(date); |
|
|
|
|
|
query.setPeriodValidity(p); |
|
|
List<GiftBagGoodss> giftBagGoodss=baseMapper.getAllGoodsApplets(query); |
|
|
List<GiftBagGoodss> giftBagGoodss=baseMapper.getAllGoodsApplets(query); |
|
|
ShoppingCartQuery query1=new ShoppingCartQuery(); |
|
|
ShoppingCartQuery query1=new ShoppingCartQuery(); |
|
|
query1.setBrandId(query.getBrandId()); |
|
|
query1.setBrandId(query.getBrandId()); |
|
|