| | |
| | | import com.matrix.system.common.tools.ServiceUtil; |
| | | import com.matrix.system.constance.Dictionary; |
| | | import com.matrix.system.constance.TableMapping; |
| | | import com.matrix.system.hive.bean.*; |
| | | import com.matrix.system.hive.bean.ShoppingGoods; |
| | | import com.matrix.system.hive.bean.ShoppingGoodsAssemble; |
| | | import com.matrix.system.hive.bean.ShoppingGoodsCategory; |
| | | import com.matrix.system.hive.bean.SysShopInfo; |
| | | import com.matrix.system.hive.dao.MoneyCardAssembleDao; |
| | | import com.matrix.system.hive.dao.ShoppingGoodsAssembleDao; |
| | | import com.matrix.system.hive.dao.ShoppingGoodsDao; |
| | | import com.matrix.system.hive.dao.SysShopInfoDao; |
| | | import com.matrix.system.hive.plugin.message.StringUtil; |
| | | import com.matrix.system.hive.service.ShoppingGoodsService; |
| | | import org.apache.commons.collections.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | import java.awt.event.WindowStateListener; |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDate; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | return DateUtil.stringToDate("9999-12-31", DateUtil.DATE_FORMAT_DD); |
| | | } |
| | | |
| | | if (type == 2 && shoppingGoods.getUseDateNum() == null && StringUtils.isNotBlank(shoppingGoods.getBuyDateUnit())) { |
| | | return DateUtil.stringToDate("9999-12-31", DateUtil.DATE_FORMAT_DD); |
| | | } |
| | | |
| | | if (type == 2 && buyDate == null) { |
| | | throw new GlobleException("购买日期不能为空"); |
| | | } |
| | |
| | | ShoppingGoodsDetailVo goodsDetailVo = new ShoppingGoodsDetailVo(); |
| | | goodsDetailVo.setImg(shoppingGoods.getImg()); |
| | | goodsDetailVo.setGoodsName(shoppingGoods.getName()); |
| | | goodsDetailVo.setGoodsNo(shoppingGoods.getGoodsNo()); |
| | | goodsDetailVo.setGoodsNo(shoppingGoods.getCode()); |
| | | goodsDetailVo.setGoodsType(shoppingGoods.getGoodType()); |
| | | goodsDetailVo.setDesc(shoppingGoods.getDescription()); |
| | | goodsDetailVo.setMaxSaleCnt(shoppingGoods.getCarMaxSaleCount()); |
| | | goodsDetailVo.setLimitBuyCnt(shoppingGoods.getCarUseCount().toString()); |
| | | goodsDetailVo.setLimitBuyCnt(shoppingGoods.getIsOnce()); |
| | | goodsDetailVo.setMaxUseCnt(shoppingGoods.getCarUseCount()); |
| | | goodsDetailVo.setMeasure(shoppingGoods.getMeasure()); |
| | | goodsDetailVo.setVolume(shoppingGoods.getVolume()); |
| | | goodsDetailVo.setSalePrice(BigDecimal.valueOf(shoppingGoods.getSealPice())); |