| | |
| | | package com.matrix.system.shopXcx.api.service; |
| | | |
| | | import com.matrix.core.tools.LogUtil; |
| | | import com.matrix.biz.bean.BizUser; |
| | | import com.matrix.system.common.bean.BusParameterSettings; |
| | | import com.matrix.system.common.bean.CustomerDataDictionary; |
| | | import com.matrix.system.common.dao.BusParameterSettingsDao; |
| | | import com.matrix.system.common.dao.CustomerDataDictionaryDao; |
| | | import com.matrix.component.redis.RedisUserLoginUtils; |
| | | import com.matrix.system.common.constance.AppConstance; |
| | | |
| | | import com.matrix.core.tools.LogUtil; |
| | | import com.matrix.system.common.dao.BusParameterSettingsDao; |
| | | import com.matrix.system.shopXcx.api.vo.ShopCartBillVo; |
| | | import com.matrix.system.shopXcx.api.vo.ShopCartVo; |
| | | import com.matrix.system.shopXcx.bean.ShopCoupon; |
| | | import com.matrix.system.shopXcx.bean.ShopShoppingCart; |
| | | import com.matrix.system.shopXcx.dao.ShopShoppingCartDao; |
| | | import com.matrix.system.shopXcx.api.vo.ShopCartBillVo; |
| | | import com.matrix.system.shopXcx.api.vo.ShopCartVo; |
| | | import org.apache.commons.collections.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | // 1表示没有优惠的默认分组 |
| | | ShopCartVo def = new ShopCartVo(); |
| | | |
| | | /** |
| | | * 同城配送标题 |
| | | * //DataDictionary qsfy = dataDictionaryDao.selectByTypeCode(AppConstance.QSFY); |
| | | * //def.setMsg("2公里内满" + qsfy.getValue() + "元免配送费"); |
| | | */ |
| | | |
| | | def.setMsg("肽研官方商城"); |
| | | |
| | | def.setMsg("商城"); |
| | | def.setCartList(new ArrayList<>()); |
| | | // 组合默认分组 |
| | | cartList.add(def); |
| | |
| | | } |
| | | } |
| | | } else { |
| | | BusParameterSettings qsfy= busParameterSettingsDao.selectCompanyParamByCode(AppConstance.IN_PROVINCE_PACKAGE_LIST,17L); |
| | | |
| | | shopCartVo.setSubtotal(selectSum); |
| | | shopCartVo.setSrcPrice(selectSum); |
| | | if (selectSum.compareTo(new BigDecimal(qsfy.getParamValue())) < 0) { |
| | | shopCartVo.setSatisfactionCoupon(false); |
| | | } else { |
| | | shopCartVo.setSubtotal(selectSum); |
| | | shopCartVo.setSrcPrice(selectSum); |
| | | shopCartVo.setSatisfactionCoupon(true); |
| | | } |
| | | } |
| | | } |
| | | } |