|
|
@@ -6,6 +6,7 @@ import com.iformall.domain.po.WxAppinfo; |
|
|
import com.iformall.domain.po.WxAuthorizerInfo; |
|
|
import com.iformall.domain.po.WxAuthorizerInfo; |
|
|
import com.iformall.domain.po.WxWeappExtSet; |
|
|
import com.iformall.domain.po.WxWeappExtSet; |
|
|
import com.iformall.domain.vo.WxWeappInfo; |
|
|
import com.iformall.domain.vo.WxWeappInfo; |
|
|
|
|
|
import com.iformall.enums.EnumAppType; |
|
|
import com.iformall.enums.EnumCarSupport; |
|
|
import com.iformall.enums.EnumCarSupport; |
|
|
import com.iformall.mapper.WxAppinfoMapper; |
|
|
import com.iformall.mapper.WxAppinfoMapper; |
|
|
import com.iformall.mapper.WxAuthorizerInfoMapper; |
|
|
import com.iformall.mapper.WxAuthorizerInfoMapper; |
|
|
@@ -97,17 +98,22 @@ public class WxAuthorizerInfoServiceImpl implements WxAuthorizerInfoService { |
|
|
record.setUpdateTime(curDate); |
|
|
record.setUpdateTime(curDate); |
|
|
// 授权表 添加 |
|
|
// 授权表 添加 |
|
|
authorizerInfoMapper.insertSelective(record); |
|
|
authorizerInfoMapper.insertSelective(record); |
|
|
// 扩展配置表添加 |
|
|
|
|
|
WxWeappExtSet weappExtSet = new WxWeappExtSet(); |
|
|
|
|
|
weappExtSet.setId(record.getId()); |
|
|
|
|
|
weappExtSet.setAppId(record.getAuthorizerAppid()); |
|
|
|
|
|
weappExtSet.setCarSupport(EnumCarSupport.NOCAR.getCode()); |
|
|
|
|
|
if(appinfo != null) { |
|
|
|
|
|
weappExtSet.setType(appinfo.getType()); |
|
|
|
|
|
|
|
|
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); |
|
|
} |
|
|
} |
|
|
weappExtSet.setCreateDate(curDate); |
|
|
|
|
|
weappExtSet.setUpdateDate(curDate); |
|
|
|
|
|
weappExtSetMapper.insertSelective(weappExtSet); |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
record.setId(authorizerInfo.getId()); |
|
|
record.setId(authorizerInfo.getId()); |
|
|
record.setUpdateTime(curDate); |
|
|
record.setUpdateTime(curDate); |
|
|
|