| | |
| | | import cn.lili.common.enums.ResultUtil; |
| | | import cn.lili.common.utils.StringUtils; |
| | | import cn.lili.common.vo.ResultMessage; |
| | | import cn.lili.modules.lmk.domain.entity.UserCheckTemplate; |
| | | import cn.lili.modules.lmk.domain.vo.OrderCountVO; |
| | | import cn.lili.modules.lmk.domain.vo.SelectVO; |
| | | import cn.lili.modules.lmk.service.UserCheckTemplateService; |
| | | import cn.lili.modules.member.entity.dto.MemberAddressDTO; |
| | | import cn.lili.modules.order.order.entity.dos.Order; |
| | | import cn.lili.modules.order.order.entity.dto.OrderExportDTO; |
| | |
| | | import cn.lili.modules.order.order.service.OrderPriceService; |
| | | import cn.lili.modules.order.order.service.OrderService; |
| | | import cn.lili.modules.store.entity.dos.Store; |
| | | import cn.lili.modules.store.entity.enums.StoreStatusEnum; |
| | | import cn.lili.modules.store.mapper.StoreMapper; |
| | | import cn.lili.utils.COSUtil; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | |
| | | |
| | | @Autowired |
| | | private COSUtil cosUtil; |
| | | @Autowired |
| | | private UserCheckTemplateService userCheckTemplateService; |
| | | |
| | | @ApiModelProperty(value = "店铺下拉") |
| | | @GetMapping("/storeSelect") |
| | |
| | | List<Store> storeList = |
| | | new LambdaQueryChainWrapper<>(storeMapper) |
| | | .eq(Store::getDeleteFlag,Boolean.FALSE) |
| | | .eq(Store::getStoreDisable, StoreStatusEnum.OPEN.name()) |
| | | .list(); |
| | | List<SelectVO> selectVOS = new ArrayList<>(); |
| | | for (Store store : storeList){ |
| | |
| | | } |
| | | }); |
| | | |
| | | |
| | | List<UserCheckTemplate> list = new LambdaQueryChainWrapper<>(userCheckTemplateService.getBaseMapper()) |
| | | .eq(UserCheckTemplate::getOrderSn, orderSn) |
| | | .eq(UserCheckTemplate::getDeleteFlag, Boolean.FALSE) |
| | | .list(); |
| | | for (UserCheckTemplate userCheckTemplate : list) { |
| | | if (StringUtils.isNotBlank(userCheckTemplate.getContent()) && userCheckTemplate.getContent().startsWith("image")){ |
| | | userCheckTemplate.setContent(cosUtil.getPreviewUrl(userCheckTemplate.getContent())); |
| | | } |
| | | if (StringUtils.isNotBlank(userCheckTemplate.getChooseImg()) && userCheckTemplate.getChooseImg().startsWith("image")){ |
| | | userCheckTemplate.setChooseImg(cosUtil.getPreviewUrl(userCheckTemplate.getChooseImg())); |
| | | } |
| | | } |
| | | orderDetailVO.setUserCheckTemplates(list); |
| | | return ResultUtil.data(orderDetailVO); |
| | | } |
| | | |