| | |
| | | |
| | | Map<String, Integer> vipInfos = getRedisIds("vip_info"); |
| | | Map<String, Integer> bedInfos = getRedisIds("bed_info"); |
| | | Map<String, Integer> sysUsers = getRedisIds("sys_users"); |
| | | // Map<String, Integer> sysUsers = getRedisIds("sys_users"); |
| | | Map<String, Integer> projUses = getRedisIds("proj_use"); |
| | | Map<String, Integer> goodProj = getRedisIds("shopping_goods_proj"); |
| | | Map<String, Integer> shopIds = getRedisIds("shopId"); |
| | | Map<String, Integer> shopStaff = getRedisIds("shop_staff"); |
| | | for (SysProjServices sysProjServices : list) { |
| | | List<Map<String, Object>> beauticiansMap = jdbcTemplate.queryForList("select * from sys_beautician_state where SERVICES_ID=" + sysProjServices.getId()); |
| | | // Map<String, Object> bedStatesMap = jdbcTemplate.queryForMap("select * from sys_bed_state where SERVICE_ID=" + sysProjServices.getId()); |
| | |
| | | } |
| | | |
| | | if (sysProjServices.getBeauticianId() != null) { |
| | | Integer beautyId = sysUsers.get(sysProjServices.getBeauticianId().toString()); |
| | | Integer beautyId = shopStaff.get(sysProjServices.getBeauticianId().toString()); |
| | | if (beautyId != null) { |
| | | sysProjServices.setBeauticianId(beautyId.longValue()); |
| | | } else { |
| | |
| | | } |
| | | |
| | | if (sysProjServices.getDevisionId() != null) { |
| | | Integer devisionId = sysUsers.get(sysProjServices.getDevisionId().toString()); |
| | | Integer devisionId = shopStaff.get(sysProjServices.getDevisionId().toString()); |
| | | if (devisionId != null) { |
| | | sysProjServices.setDevisionId(devisionId.longValue()); |
| | | } else { |
| | |
| | | } |
| | | |
| | | if (sysProjServices.getCreateStaffId() != null) { |
| | | Integer staffId = sysUsers.get(sysProjServices.getCreateStaffId().toString()); |
| | | Integer staffId = shopStaff.get(sysProjServices.getCreateStaffId().toString()); |
| | | if (staffId != null) { |
| | | sysProjServices.setCreateStaffId(staffId.longValue()); |
| | | } else { |
| | |
| | | achieveNew.setShopId(shopId != null ? shopId.longValue() : -achieveNew.getShopId()); |
| | | achieveNew.setVipId(vipId != null ? vipId.longValue() : -achieveNew.getVipId()); |
| | | |
| | | Integer saleIdInt = sysUsers.get(achieveNew.getSaleId() == null ? "" : achieveNew.getSaleId().toString()); |
| | | Integer saleIdInt = shopStaff.get(achieveNew.getSaleId() == null ? "" : achieveNew.getSaleId().toString()); |
| | | achieveNew.setSaleId(saleIdInt == null ? -achieveNew.getSaleId() : saleIdInt); |
| | | |
| | | Integer beaultyIdInt = sysUsers.get(achieveNew.getBeaultId() == null ? "" : achieveNew.getBeaultId().toString()); |
| | | Integer beaultyIdInt = shopStaff.get(achieveNew.getBeaultId() == null ? "" : achieveNew.getBeaultId().toString()); |
| | | achieveNew.setBeaultId(beaultyIdInt == null ? -achieveNew.getBeaultId() : beaultyIdInt); |
| | | |
| | | if (achieveNew.getShoppingGoodsId() != null) { |