|
|
|
@@ -99,21 +99,23 @@ public class WxAuthorizerInfoServiceImpl implements WxAuthorizerInfoService { |
|
|
|
record.setUpdateTime(curDate); |
|
|
|
// 授权表 添加 |
|
|
|
authorizerInfoMapper.insertSelective(record); |
|
|
|
if(appinfo.getType().equals(EnumAppType.C.getCode()) || |
|
|
|
appinfo.getType().equals(EnumAppType.B.getCode())) { |
|
|
|
// C/B 扩展配置表添加 |
|
|
|
WxWeappExtSet weappExtSet = new WxWeappExtSet(); |
|
|
|
weappExtSet.setId(record.getId()); |
|
|
|
weappExtSet.setAppId(record.getAuthorizerAppid()); |
|
|
|
if (appinfo.getType().equals(EnumAppType.C.getCode())) { |
|
|
|
weappExtSet.setCarSupport(EnumCarSupport.NOCAR.getCode()); |
|
|
|
if(appinfo.getType() != null) { |
|
|
|
if (appinfo.getType().equals(EnumAppType.C.getCode()) || |
|
|
|
appinfo.getType().equals(EnumAppType.B.getCode())) { |
|
|
|
// C/B 扩展配置表添加 |
|
|
|
WxWeappExtSet weappExtSet = new WxWeappExtSet(); |
|
|
|
weappExtSet.setId(record.getId()); |
|
|
|
weappExtSet.setAppId(record.getAuthorizerAppid()); |
|
|
|
if (appinfo.getType().equals(EnumAppType.C.getCode())) { |
|
|
|
weappExtSet.setCarSupport(EnumCarSupport.NOCAR.getCode()); |
|
|
|
} |
|
|
|
if (appinfo != null) { |
|
|
|
weappExtSet.setType(appinfo.getType()); |
|
|
|
} |
|
|
|
weappExtSet.setCreateDate(curDate); |
|
|
|
weappExtSet.setUpdateDate(curDate); |
|
|
|
weappExtSetMapper.insertSelective(weappExtSet); |
|
|
|
} |
|
|
|
if (appinfo != null) { |
|
|
|
weappExtSet.setType(appinfo.getType()); |
|
|
|
} |
|
|
|
weappExtSet.setCreateDate(curDate); |
|
|
|
weappExtSet.setUpdateDate(curDate); |
|
|
|
weappExtSetMapper.insertSelective(weappExtSet); |
|
|
|
} |
|
|
|
} else { |
|
|
|
record.setId(authorizerInfo.getId()); |
|
|
|
|