Merge branch 'master' of https://gitee.com/wjl2008_admin/nuttyreading-java into zcc
This commit is contained in:
@@ -251,7 +251,7 @@ public class CouponServiceImpl extends ServiceImpl<CouponDao, CouponEntity> impl
|
||||
ShopProduct shopProduct = shopProductDao.selectById(map.get("product_id").toString());
|
||||
for (int i=0;i<Integer.parseInt(map.get("quantity").toString());i++){
|
||||
insertCouponHistory(Integer.parseInt(map.get("coupon_id").toString()),
|
||||
ShiroUtils.getUId(), 1,"购买商品"+shopProduct.getProductName()+"赠送");
|
||||
order.getUserId(), 1,"购买商品"+shopProduct.getProductName()+"赠送");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -59,6 +59,7 @@ public class MedicalLabelAndMarketController {
|
||||
if (params.containsKey("medicineMarketId")&&!"".equals(params.get("medicineMarketId").toString())){
|
||||
wrapper.eq(ShopProductToMedicineMarket::getMedicineMarketId,params.get("medicineMarketId").toString());
|
||||
}
|
||||
wrapper.orderByAsc(ShopProductToMedicineMarket::getSort);
|
||||
Page<ShopProduct> page = productService.page(new Page<>(
|
||||
Long.parseLong(params.get("current").toString()), Long.parseLong(params.get("limit").toString())),wrapper);
|
||||
return R.ok().put("result", page);
|
||||
|
||||
@@ -203,6 +203,7 @@ public class VisitorController {
|
||||
if (params.containsKey("medicineMarketId")&&!"".equals(params.get("medicineMarketId").toString())){
|
||||
wrapper.eq(ShopProductToMedicineMarket::getMedicineMarketId,params.get("medicineMarketId").toString());
|
||||
}
|
||||
wrapper.orderByAsc(ShopProductToMedicineMarket::getSort);
|
||||
Page<ShopProduct> page = productService.page(new Page<>(
|
||||
Long.parseLong(params.get("current").toString()), Long.parseLong(params.get("limit").toString())),wrapper);
|
||||
return R.ok().put("result", page);
|
||||
|
||||
Reference in New Issue
Block a user