fix(merchant): 支持家电商家登录配置
| | |
| | | const isSpouseEmploymentMerchant = computed(() => normalizedMerchantType.value === '配偶推荐就业') |
| | | const isApprovalMerchant = computed(() => normalizedMerchantType.value === '行政审批') |
| | | const isServiceMerchant = computed(() => isFoodMerchant.value || normalizedMerchantType.value === '景区服务') |
| | | const merchantAppLoginOptionalTypes = ['数码服务', '文化服务', '电信服务', '口腔治疗保健'] |
| | | const usesSimplifiedMerchantSettings = computed(() => merchantAppLoginOptionalTypes.includes(normalizedMerchantType.value)) |
| | | const merchantAppLoginOptionalTypes = ['数码服务', '文化服务', '电信服务', '口腔治疗保健', '家电服务'] |
| | | const simplifiedMerchantSettingsTypes = ['数码服务', '文化服务', '电信服务', '口腔治疗保健'] |
| | | const usesSimplifiedMerchantSettings = computed(() => simplifiedMerchantSettingsTypes.includes(normalizedMerchantType.value)) |
| | | const supportsMerchantAppLogin = computed(() => ( |
| | | isServiceMerchant.value |
| | | || isApartmentMerchant.value |
| | |
| | | public class AdminBusinessService { |
| | | |
| | | private static final Set<String> MERCHANT_APP_LOGIN_TYPES = Set.of( |
| | | "餐饮服务", "景区服务", "数码服务", "文化服务", "电信服务", "口腔治疗保健" |
| | | "餐饮服务", "景区服务", "数码服务", "文化服务", "电信服务", "口腔治疗保健", "家电服务" |
| | | ); |
| | | |
| | | private final JdbcTemplate jdbcTemplate; |
| | |
| | | assertThat(service.supportsMerchantAppLogin("文化服务")).isTrue(); |
| | | assertThat(service.supportsMerchantAppLogin("电信服务")).isTrue(); |
| | | assertThat(service.supportsMerchantAppLogin("口腔治疗保健")).isTrue(); |
| | | assertThat(service.supportsMerchantAppLogin("家电服务")).isTrue(); |
| | | } |
| | | |
| | | @Test |