|
|
@ -4,6 +4,7 @@ import cn.hutool.core.bean.BeanUtil; |
|
|
|
import cn.hutool.core.date.DateTime; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.yxt.common.base.config.component.FileUploadComponent; |
|
|
|
import com.yxt.common.base.service.MybatisBaseService; |
|
|
|
import com.yxt.common.base.utils.PagerUtil; |
|
|
|
import com.yxt.common.base.utils.StringUtils; |
|
|
@ -53,8 +54,8 @@ public class LpkReserveOrderService extends MybatisBaseService<LpkReserveOrderMa |
|
|
|
LpkGiftBagGoodsService lpkGiftBagGoodsService; |
|
|
|
@Autowired |
|
|
|
LpkStoreService lpkStoreService; |
|
|
|
@Value("${image.url.prefix:http://127.0.0.1:8080/upload/}") |
|
|
|
private String urlPrefix; |
|
|
|
@Autowired |
|
|
|
private FileUploadComponent fileUploadComponent; |
|
|
|
|
|
|
|
public ResultBean submission(LpkReserveOrderDto dto) { |
|
|
|
ResultBean rb = new ResultBean(); |
|
|
@ -142,7 +143,7 @@ public class LpkReserveOrderService extends MybatisBaseService<LpkReserveOrderMa |
|
|
|
goodsVo.setGoods(s.getGoodsName()); |
|
|
|
goodsVo.setNum(s.getGoodsNumber()); |
|
|
|
goodsVo.setGoodsSid(s.getGoodsSid()); |
|
|
|
goodsVo.setPic(urlPrefix + s.getPicUrl()); |
|
|
|
goodsVo.setPic(fileUploadComponent.getUrlPrefix() + s.getPicUrl()); |
|
|
|
if (null != goods) { |
|
|
|
if (goods.getGoodsNumber() != s.getGoodsNumber()) { |
|
|
|
goodsVo.setLNum(s.getGoodsNumber() - goods.getGoodsNumber()); |
|
|
|