|
|
|
@ -250,7 +250,8 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
|
QueryWrapper<AssetMiniPrograms> queryWrapper = new QueryWrapper<>();
|
|
|
|
|
queryWrapper.eq("ssdw", part);
|
|
|
|
|
queryWrapper.eq("isbf", 0);
|
|
|
|
|
List<AssetMiniPrograms> list = assetMiniProgramsService.list(queryWrapper);
|
|
|
|
|
queryWrapper.eq("del_flag", 0);
|
|
|
|
|
List<AssetMiniPrograms> list = assetMiniProgramsService.lambdaQuery().eq(AssetMiniPrograms::getSsdw, part).eq(AssetMiniPrograms::getIsbf,0).eq(AssetMiniPrograms::getDelFlag,0).list();
|
|
|
|
|
List<AssetMiniProgramsCpPo> miniProgramsNewList = list.stream()
|
|
|
|
|
.map(cpPo -> {
|
|
|
|
|
AssetMiniProgramsCpPo assetMiniProgramsCpPo = new AssetMiniProgramsCpPo();
|
|
|
|
@ -271,7 +272,8 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
|
QueryWrapper<AssetOfficialAccount> queryWrapper = new QueryWrapper<>();
|
|
|
|
|
queryWrapper.eq("ssdw", part);
|
|
|
|
|
queryWrapper.eq("isbf", 0);
|
|
|
|
|
List<AssetOfficialAccount> list = assetOfficialAccountService.list(queryWrapper);
|
|
|
|
|
queryWrapper.eq("del_flag", 0);
|
|
|
|
|
List<AssetOfficialAccount> list = assetOfficialAccountService.lambdaQuery().eq(AssetOfficialAccount::getSsdw, part).eq(AssetOfficialAccount::getIsbf,0).eq(AssetOfficialAccount::getDelFlag,0).list();
|
|
|
|
|
List<AssetOfficialAccountCpPo> officialAccountProgramsNewList = list.stream()
|
|
|
|
|
.map(cpPo -> {
|
|
|
|
|
AssetOfficialAccountCpPo assetOfficialAccountCpPo = new AssetOfficialAccountCpPo();
|
|
|
|
@ -292,7 +294,8 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
|
QueryWrapper<AssetEmail> queryWrapper = new QueryWrapper<>();
|
|
|
|
|
queryWrapper.eq("ssdw", part);
|
|
|
|
|
queryWrapper.eq("isbf", 0);
|
|
|
|
|
List<AssetEmail> list = assetEmailService.list(queryWrapper);
|
|
|
|
|
queryWrapper.eq("del_flag", 0);
|
|
|
|
|
List<AssetEmail> list = assetEmailService.lambdaQuery().eq(AssetEmail::getSsdw, part).eq(AssetEmail::getIsbf,0).eq(AssetEmail::getDelFlag,0).list();;
|
|
|
|
|
List<AssetEmailCpPo> emailCpNewList = list.stream()
|
|
|
|
|
.map(cpPo -> {
|
|
|
|
|
AssetEmailCpPo emailCpPo = new AssetEmailCpPo();
|
|
|
|
@ -313,7 +316,8 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
|
QueryWrapper<AssetApp> queryWrapper = new QueryWrapper<>();
|
|
|
|
|
queryWrapper.eq("ssdw", part);
|
|
|
|
|
queryWrapper.eq("isbf", 0);
|
|
|
|
|
List<AssetApp> list = assetAppService.list(queryWrapper);
|
|
|
|
|
queryWrapper.eq("del_flag", 0);
|
|
|
|
|
List<AssetApp> list = assetAppService.lambdaQuery().eq(AssetApp::getSsdw, part).eq(AssetApp::getIsbf,0).eq(AssetApp::getDelFlag,0).list();
|
|
|
|
|
List<AssetAppCpPo> appCpNewList = list.stream()
|
|
|
|
|
.map(cpPo -> {
|
|
|
|
|
AssetAppCpPo appCpPo = new AssetAppCpPo();
|
|
|
|
@ -554,7 +558,7 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
|
assetEmailService.deleteIdList(emailidList);
|
|
|
|
|
}
|
|
|
|
|
//将子表数据复制到主表中
|
|
|
|
|
List<AssetEmail> emailNewList = appList.stream()
|
|
|
|
|
List<AssetEmail> emailNewList = emailCpPoListList.stream()
|
|
|
|
|
.map(cpPo -> {
|
|
|
|
|
AssetEmail current = new AssetEmail();
|
|
|
|
|
BeanUtils.copyProperties(cpPo, current); // 复制属性
|
|
|
|
@ -572,7 +576,7 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
|
assetMiniProgramsService.deleteIdList(miniidList);
|
|
|
|
|
}
|
|
|
|
|
//将子表数据复制到主表中
|
|
|
|
|
List<AssetMiniPrograms> miniNewList = appList.stream()
|
|
|
|
|
List<AssetMiniPrograms> miniNewList = miniProgramsCpPoListList.stream()
|
|
|
|
|
.map(cpPo -> {
|
|
|
|
|
AssetMiniPrograms current = new AssetMiniPrograms();
|
|
|
|
|
BeanUtils.copyProperties(cpPo, current); // 复制属性
|
|
|
|
@ -591,7 +595,7 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
|
assetOfficialAccountService.deleteIdList(officialidList);
|
|
|
|
|
}
|
|
|
|
|
//将子表数据复制到主表中
|
|
|
|
|
List<AssetOfficialAccount> officialNewList = appList.stream()
|
|
|
|
|
List<AssetOfficialAccount> officialNewList = officialAccountCpPoListList.stream()
|
|
|
|
|
.map(cpPo -> {
|
|
|
|
|
AssetOfficialAccount current = new AssetOfficialAccount();
|
|
|
|
|
BeanUtils.copyProperties(cpPo, current); // 复制属性
|
|
|
|
|