|  |  | 
 |  |  | import com.matrix.core.tools.WebUtil; | 
 |  |  | import com.matrix.system.common.bean.SysUsers; | 
 |  |  | import com.matrix.system.constance.Dictionary; | 
 |  |  | import com.matrix.system.hive.action.util.QueryUtil; | 
 |  |  | import com.matrix.system.shopXcx.bean.ShopCoupon; | 
 |  |  | import com.matrix.system.shopXcx.bean.ShopProduct; | 
 |  |  | import com.matrix.system.shopXcx.dao.ShopCouponDao; | 
 |  |  | 
 |  |  |      * @param shopCoupon | 
 |  |  |      */ | 
 |  |  |     private void productLabeling(ShopCoupon shopCoupon) { | 
 |  |  |         SysUsers user = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); | 
 |  |  |         Date now = new Date(); | 
 |  |  |         Boolean needUpdate = false; | 
 |  |  |         //优惠券处于可用状态 | 
 |  |  | 
 |  |  |             if (shopCoupon.getIsAll() == 1) { | 
 |  |  |                 ShopProduct productQuery = new ShopProduct(); | 
 |  |  |                 productQuery.setDelFlag(2); | 
 |  |  |                 productQuery.setCompanyId(user.getCompanyId()); | 
 |  |  |                 shopProductList = shopProductDao.selectByModel(productQuery); | 
 |  |  |             } else { | 
 |  |  |                 if (StringUtils.isNotBlank(shopCoupon.getProductIds())) { |