|
|
|
@ -82,7 +82,7 @@ public class CustomerParameterServiceImpl implements CustomerParameterService { |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public FootBarPatternQueryResultDTO queryFootBarPattern(FootBarPatternQueryFormDTO formDTO) { |
|
|
|
String parameterKey=formDTO.getAppType().concat(StrConstant.UNDER_LINE).concat("footbar_pattern"); |
|
|
|
String parameterKey=formDTO.getAppType().concat(StrConstant.UNDER_LINE).concat(Constant.FOOTBAR_PATTERN_KEY_SUFFIX); |
|
|
|
CustomerParameterEntity pattern=parameterDao.selectAppFootBarPattern(parameterKey,formDTO.getCustomerId()); |
|
|
|
if(StringUtils.isEmpty(pattern)){ |
|
|
|
pattern=parameterDao.selectAppFootBarPattern(parameterKey, Constant.DEFAULT_CUSTOMER); |
|
|
|
@ -125,7 +125,7 @@ public class CustomerParameterServiceImpl implements CustomerParameterService { |
|
|
|
} |
|
|
|
} |
|
|
|
//3、符合条件,更新或者插入
|
|
|
|
String parameterKey = formDTO.getAppType().concat(StrConstant.UNDER_LINE).concat("footbar_pattern"); |
|
|
|
String parameterKey = formDTO.getAppType().concat(StrConstant.UNDER_LINE).concat(Constant.FOOTBAR_PATTERN_KEY_SUFFIX); |
|
|
|
CustomerParameterEntity original = parameterDao.selectAppFootBarPattern(parameterKey, formDTO.getCustomerId()); |
|
|
|
if (null != original) { |
|
|
|
original.setParameterValue(formDTO.getPattern()); |
|
|
|
|