|
@@ -11,6 +11,7 @@ import com.caimei.modules.bulkpurchase.service.PurchaseProductService;
|
|
|
import com.caimei.modules.common.utils.ExcelUtil;
|
|
|
import com.caimei.modules.common.utils.UploadUtils;
|
|
|
import com.caimei.modules.coupon.entity.CmCouponOrderRecord;
|
|
|
+import com.caimei.modules.coupon.service.CmCouponService;
|
|
|
import com.caimei.modules.order.dao.CmDiscernReceiptDao;
|
|
|
import com.caimei.modules.order.dao.CmReceiptOrderRelationDao;
|
|
|
import com.caimei.modules.order.dao.CmReturnedPurchaseDao;
|
|
@@ -135,6 +136,8 @@ public class NewOrderController extends BaseController {
|
|
|
private CmPromotionDao cmPromotionDao;
|
|
|
@Autowired
|
|
|
private PurchaseProductService purchaseProductService;
|
|
|
+ @Autowired
|
|
|
+ private CmCouponService cmCouponService;
|
|
|
|
|
|
@ModelAttribute
|
|
|
public NewOrder get(@RequestParam(required = false) String id) {
|
|
@@ -238,8 +241,8 @@ public class NewOrderController extends BaseController {
|
|
|
orderProduct.setLadderPriceFlag(0);
|
|
|
}
|
|
|
}
|
|
|
+ Product product = productDao.get(orderProduct.getProductID().toString());
|
|
|
if (null == orderPromotions) {
|
|
|
- Product product = productDao.get(orderProduct.getProductID().toString());
|
|
|
if (1 == orderProduct.getLadderPriceFlag() && "1".equals(product.getLadderPriceFlag())) {
|
|
|
// 查询商品当前阶梯价格
|
|
|
List<ProductLadderPrice> ladderPriceList = purchaseProductService.findLadderPriceList(orderProduct.getProductID().longValue());
|
|
@@ -259,6 +262,13 @@ public class NewOrderController extends BaseController {
|
|
|
orderProduct.setIsActProduct("0");
|
|
|
}
|
|
|
}
|
|
|
+ //是否有优惠券可以查看
|
|
|
+ Boolean couponsLogo = cmCouponService.setCouponsLogo(newOrder.getUserID(), orderProduct.getProductID(), orderProduct.getShopID(), product.getCommodityType());
|
|
|
+ if (couponsLogo) {
|
|
|
+ orderProduct.setCouponsLogo(2);
|
|
|
+ } else {
|
|
|
+ orderProduct.setCouponsLogo(1);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (null != newOrder.getOrderID() && null != newOrder.getClauseName()) {
|