| | |
| | | private RedisClient redisClient; |
| | | |
| | | private Long companyId = 35L; |
| | | private Long shopId = 38L; |
| | | private Long shopId = 60L; |
| | | |
| | | public List<Map<String, Object>> dataMove() { |
| | | return jdbcTemplate.queryForList("select * from sys_vip_info limit 10"); |
| | |
| | | } else { |
| | | shoppingGoods.setIsOnce("1"); |
| | | } |
| | | |
| | | if ("否".equals(shoppingGoods.getIsPresent())) { |
| | | shoppingGoods.setIsPresent("0"); |
| | | } else { |
| | | shoppingGoods.setIsPresent("1"); |
| | | |
| | | if (StrUtil.isNotBlank(shoppingGoods.getIsPresent())) { |
| | | if ("否".equals(shoppingGoods.getIsPresent())) { |
| | | shoppingGoods.setIsPresent("0"); |
| | | } else { |
| | | shoppingGoods.setIsPresent("1"); |
| | | } |
| | | } |
| | | |
| | | Long oldId = shoppingGoods.getId(); |
| | |
| | | |
| | | Long oldIdTc = assembleGood.getAssembleSkuId() == null ? assembleGood.getAssembleProjId() : assembleGood.getAssembleSkuId(); |
| | | if (assembleGood.getShoppingGoods() != null) { |
| | | |
| | | if ("否".equals(assembleGood.getShoppingGoods().getIsOnce())) { |
| | | assembleGood.getShoppingGoods().setIsOnce("0"); |
| | | } else { |
| | | assembleGood.getShoppingGoods().setIsOnce("1"); |
| | | } |
| | | |
| | | if (StrUtil.isNotBlank(assembleGood.getShoppingGoods().getIsPresent())) { |
| | | if ("否".equals(assembleGood.getShoppingGoods().getIsPresent())) { |
| | | assembleGood.getShoppingGoods().setIsPresent("0"); |
| | | } else { |
| | | assembleGood.getShoppingGoods().setIsPresent("1"); |
| | | } |
| | | } |
| | | |
| | | assembleGood.getShoppingGoods().setId(null); |
| | | shoppingGoodsDao.insert(assembleGood.getShoppingGoods()); |
| | |
| | | Integer cateId = goodsCategory.get(shoppingGoods.getCateId().toString()); |
| | | if (cateId != null) { |
| | | shoppingGoods.setCateId(Long.parseLong(cateId.toString())); |
| | | } |
| | | } |
| | | |
| | | if ("否".equals(shoppingGoods.getIsOnce())) { |
| | | shoppingGoods.setIsOnce("0"); |
| | | } else { |
| | | shoppingGoods.setIsOnce("1"); |
| | | } |
| | | |
| | | if (StrUtil.isNotBlank(shoppingGoods.getIsPresent())) { |
| | | if ("否".equals(shoppingGoods.getIsPresent())) { |
| | | shoppingGoods.setIsPresent("0"); |
| | | } else { |
| | | shoppingGoods.setIsPresent("1"); |
| | | } |
| | | } |
| | | |
| | |
| | | moneyCardUse.setIsVipCar("N"); |
| | | |
| | | ShoppingGoods shoppingGoods = shoppingGoodsDao.selectById(moneyCardUse.getGoodsId()); |
| | | moneyCardUse.setCardName(shoppingGoods.getName()); |
| | | if (shoppingGoods != null) |
| | | { moneyCardUse.setCardName(shoppingGoods.getName());} |
| | | |
| | | Integer vipId = null; |
| | | if (moneyCardUse.getVipId() != null) { |