| | |
| | | case SHARE_INTEGRAL: |
| | | customConfig.setConfigValue(mgtOtherConfigEditDto.getShareIntegral().toString()); |
| | | this.saveOrUpdate(customConfig); |
| | | break; |
| | | case SUGGEST_PLATFORM_INTEGRAL: |
| | | customConfig.setConfigValue(mgtOtherConfigEditDto.getSuggestPlatformIntegral().toString()); |
| | | this.saveOrUpdate(customConfig); |
| | | break; |
| | | case SIGN_IN_INTEGRAL: |
| | | customConfig.setConfigValue(mgtOtherConfigEditDto.getSignInIntegral().toString()); |
| | | this.saveOrUpdate(customConfig); |
| | | break; |
| | | case SUGGEST_SHOP_INTEGRAL: |
| | | customConfig.setConfigValue(mgtOtherConfigEditDto.getSuggestShopIntegral().toString()); |
| | | this.saveOrUpdate(customConfig); |
| | | break; |
| | | case ORDER_AUTO_CANCEL_TIME: |
| | | customConfig.setConfigValue(mgtOtherConfigEditDto.getOrderAutoCancelTime().toString()); |
| | | this.saveOrUpdate(customConfig); |
| | | break; |
| | | case PAY_MONEY_INTEGRAL: |
| | | customConfig.setConfigValue(mgtOtherConfigEditDto.getPayMoneyIntegral().toString()); |
| | | this.saveOrUpdate(customConfig); |
| | | break; |
| | | case HOME_STYLE: |
| | | customConfig.setConfigValue(mgtOtherConfigEditDto.getHomeStyle().toString()); |
| | | this.saveOrUpdate(customConfig); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | |
| | | switch (key) { |
| | | case "SHOP_EMERGENCY_DEGREE": |
| | | newValue = mgtShopConfigEditDto.getShopEmergencyDegree(); |
| | | customConfig.setConfigValue(newValue); |
| | | customConfig.setUpdateTime(updateTime); |
| | | if(oldValue!=null&&!oldValue.isEmpty()){ |
| | | handleChangeConfig(oldValue, newValue, key); |
| | | updatedCustomConfigs.add(customConfig); |
| | | } |
| | | break; |
| | | case "SHOP_FOLLOW_TYPE": |
| | | newValue = mgtShopConfigEditDto.getShopFollowType(); |
| | | customConfig.setConfigValue(newValue); |
| | | customConfig.setUpdateTime(updateTime); |
| | | if(oldValue!=null&&!oldValue.isEmpty()){ |
| | | handleChangeConfig(oldValue, newValue, key); |
| | | updatedCustomConfigs.add(customConfig); |
| | | } |
| | | break; |
| | | case "SHOP_CUSTOM_STATUS": |
| | | newValue = mgtShopConfigEditDto.getShopCustomStatus(); |
| | | customConfig.setConfigValue(newValue); |
| | | customConfig.setUpdateTime(updateTime); |
| | | if(oldValue!=null&&!oldValue.isEmpty()){ |
| | | handleChangeConfig(oldValue, newValue, key); |
| | | updatedCustomConfigs.add(customConfig); |
| | | } |
| | | break; |
| | | case "SHOP_SOURCE_CHANNEL": |
| | | newValue = mgtShopConfigEditDto.getShopSourceChannel(); |
| | | customConfig.setConfigValue(newValue); |
| | | customConfig.setUpdateTime(updateTime); |
| | | if(oldValue!=null&&!oldValue.isEmpty()){ |
| | | handleChangeConfig(oldValue, newValue, key); |
| | | updatedCustomConfigs.add(customConfig); |
| | | } |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | customConfig.setConfigValue(newValue); |
| | | customConfig.setUpdateTime(updateTime); |
| | | handleChangeConfig(oldValue, newValue, key); |
| | | updatedCustomConfigs.add(customConfig); |
| | | |
| | | } |
| | | this.saveOrUpdateBatch(updatedCustomConfigs); |
| | | } else { |
| | |
| | | switch (key) { |
| | | case "MEMBER_SOURCE_CHANNEL": |
| | | newValue = mgtMemberConfigEditDto.getMemberSourceChannel(); |
| | | customConfig.setConfigValue(newValue); |
| | | customConfig.setUpdateTime(updateTime); |
| | | if(oldValue!=null&&!oldValue.isEmpty()){ |
| | | handleChangeConfig(oldValue, newValue, key); |
| | | updatedCustomConfigs.add(customConfig); |
| | | } |
| | | break; |
| | | case "MEMBER_CHARACTER": |
| | | newValue = mgtMemberConfigEditDto.getMemberCharacter(); |
| | | customConfig.setConfigValue(newValue); |
| | | customConfig.setUpdateTime(updateTime); |
| | | if(oldValue!=null&&!oldValue.isEmpty()){ |
| | | handleChangeConfig(oldValue, newValue, key); |
| | | updatedCustomConfigs.add(customConfig); |
| | | } |
| | | break; |
| | | case "MEMBER_LEVEL": |
| | | newValue = mgtMemberConfigEditDto.getMemberLevel(); |
| | | customConfig.setConfigValue(newValue); |
| | | customConfig.setUpdateTime(updateTime); |
| | | if(oldValue!=null&&!oldValue.isEmpty()){ |
| | | handleChangeConfig(oldValue, newValue, key); |
| | | updatedCustomConfigs.add(customConfig); |
| | | } |
| | | break; |
| | | case "MEMBER_TYPE": |
| | | newValue = mgtMemberConfigEditDto.getMemberType(); |
| | | customConfig.setConfigValue(newValue); |
| | | customConfig.setUpdateTime(updateTime); |
| | | if(oldValue!=null&&!oldValue.isEmpty()){ |
| | | handleChangeConfig(oldValue, newValue, key); |
| | | updatedCustomConfigs.add(customConfig); |
| | | } |
| | | break; |
| | | case "NURSE_PROBLEM": |
| | | newValue = mgtMemberConfigEditDto.getNurseProblem(); |
| | | customConfig.setConfigValue(newValue); |
| | | customConfig.setUpdateTime(updateTime); |
| | | if(oldValue!=null&&!oldValue.isEmpty()){ |
| | | handleChangeConfig(oldValue, newValue, key); |
| | | updatedCustomConfigs.add(customConfig); |
| | | } |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | customConfig.setConfigValue(newValue); |
| | | customConfig.setUpdateTime(updateTime); |
| | | handleChangeConfig(oldValue, newValue, key); |
| | | updatedCustomConfigs.add(customConfig); |
| | | } |
| | | this.saveOrUpdateBatch(updatedCustomConfigs); |
| | | } else { |