|
@@ -9,10 +9,12 @@ import javax.servlet.ServletException;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
+import com.iamberry.wechat.core.entity.activity.ActivityDate;
|
|
|
import com.iamberry.wechat.core.entity.coupon.*;
|
|
|
import com.iamberry.wechat.core.entity.product.ProductColor;
|
|
|
import com.iamberry.wechat.face.coupon.ExchangeService;
|
|
|
import com.iamberry.wechat.face.porduct.ProductColorService;
|
|
|
+import com.iamberry.wechat.service.ActivityUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -256,7 +258,13 @@ public class OrderHandler {
|
|
|
dto.setMeonyProportion(0);
|
|
|
dto.setBalance(member.getUserIncome());
|
|
|
|
|
|
- dto.setUser38Interests(1); //有权益
|
|
|
+ ActivityDate activityDate = activityUtil.doubleTwelve();
|
|
|
+ if(activityDate.isStatus()&& activityUtil.getFullReduction(member.getUserOpenid())){
|
|
|
+ dto.setUser38Interests(1); //有权益
|
|
|
+ }else{
|
|
|
+ dto.setUser38Interests(2); //无权益
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
dto.setDisable(disable);
|
|
|
|
|
@@ -529,9 +537,22 @@ public class OrderHandler {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(true){
|
|
|
+ ActivityDate activityDate = activityUtil.doubleTwelve();
|
|
|
+ if(activityDate.isStatus()&& activityUtil.getFullReduction(member.getUserOpenid())){
|
|
|
if(total > 200000){
|
|
|
ProductColor productColor = productColorService.selectProductColorById(48);
|
|
|
+ OrderItem item = new OrderItem();
|
|
|
+ item.setItemNum(1);
|
|
|
+ item.setItemProductDiscount(0);
|
|
|
+ item.setItemProductId(productColor.getColorProductId());
|
|
|
+ item.setItemProductName(productColor.getColorProductName());
|
|
|
+ item.setItemProductPic(productColor.getColorImg());
|
|
|
+ item.setItemSalesOrderid(order.getSalesOrderid());
|
|
|
+ item.setItemTotal(0);
|
|
|
+ item.setItemProductType(productColor.getColorProductType());
|
|
|
+ item.setItemProductPrice(0);
|
|
|
+ item.setItemColorId(productColor.getColorId());
|
|
|
+ list.add(item);
|
|
|
}
|
|
|
}
|
|
|
|