| | |
| | | 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(); |
| | |
| | | assembleGood.getShoppingGoods().setIsOnce("1"); |
| | | } |
| | | |
| | | if ("否".equals(assembleGood.getShoppingGoods().getIsPresent())) { |
| | | assembleGood.getShoppingGoods().setIsPresent("0"); |
| | | } else { |
| | | assembleGood.getShoppingGoods().setIsPresent("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); |
| | |
| | | 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(); |
| | |
| | | } |
| | | } |
| | | |
| | | public void updateServiceOrderStaff() { |
| | | Map<String, Integer> shopStaff = getRedisIds("shop_staff"); |
| | | |
| | | List<SysBeauticianState> sysBeauticianStates = sysBeauticianStateDao.selectByModel(null); |
| | | for (SysBeauticianState state : sysBeauticianStates) { |
| | | Long staffId = state.getStaffId(); |
| | | |
| | | Integer integer = shopStaff.get(staffId.toString()); |
| | | |
| | | if (integer == null) { |
| | | state.setStaffId(-staffId); |
| | | } else { |
| | | state.setStaffId(integer.longValue()); |
| | | } |
| | | sysBeauticianStateDao.update(state); |
| | | } |
| | | } |
| | | } |