资产修改

main
dongdingding 1 month ago
parent 4d72832f62
commit ca4b11be7c

@ -250,7 +250,8 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
QueryWrapper<AssetMiniPrograms> queryWrapper = new QueryWrapper<>(); QueryWrapper<AssetMiniPrograms> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("ssdw", part); queryWrapper.eq("ssdw", part);
queryWrapper.eq("isbf", 0); 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() List<AssetMiniProgramsCpPo> miniProgramsNewList = list.stream()
.map(cpPo -> { .map(cpPo -> {
AssetMiniProgramsCpPo assetMiniProgramsCpPo = new AssetMiniProgramsCpPo(); AssetMiniProgramsCpPo assetMiniProgramsCpPo = new AssetMiniProgramsCpPo();
@ -271,7 +272,8 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
QueryWrapper<AssetOfficialAccount> queryWrapper = new QueryWrapper<>(); QueryWrapper<AssetOfficialAccount> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("ssdw", part); queryWrapper.eq("ssdw", part);
queryWrapper.eq("isbf", 0); 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() List<AssetOfficialAccountCpPo> officialAccountProgramsNewList = list.stream()
.map(cpPo -> { .map(cpPo -> {
AssetOfficialAccountCpPo assetOfficialAccountCpPo = new AssetOfficialAccountCpPo(); AssetOfficialAccountCpPo assetOfficialAccountCpPo = new AssetOfficialAccountCpPo();
@ -292,7 +294,8 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
QueryWrapper<AssetEmail> queryWrapper = new QueryWrapper<>(); QueryWrapper<AssetEmail> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("ssdw", part); queryWrapper.eq("ssdw", part);
queryWrapper.eq("isbf", 0); 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() List<AssetEmailCpPo> emailCpNewList = list.stream()
.map(cpPo -> { .map(cpPo -> {
AssetEmailCpPo emailCpPo = new AssetEmailCpPo(); AssetEmailCpPo emailCpPo = new AssetEmailCpPo();
@ -313,7 +316,8 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
QueryWrapper<AssetApp> queryWrapper = new QueryWrapper<>(); QueryWrapper<AssetApp> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("ssdw", part); queryWrapper.eq("ssdw", part);
queryWrapper.eq("isbf", 0); 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() List<AssetAppCpPo> appCpNewList = list.stream()
.map(cpPo -> { .map(cpPo -> {
AssetAppCpPo appCpPo = new AssetAppCpPo(); AssetAppCpPo appCpPo = new AssetAppCpPo();

@ -36,7 +36,7 @@
<select id="findBydwmc" resultType="java.lang.Integer" parameterType="java.lang.String"> <select id="findBydwmc" resultType="java.lang.Integer" parameterType="java.lang.String">
select count(*) select count(*)
from asset_app from asset_app
where ssdw = #{part} and isbf=0 where ssdw = #{part} and isbf=0 and del_flag=0
</select> </select>
</mapper> </mapper>

@ -462,6 +462,6 @@
select count(*) select count(*)
from asset_current from asset_current
where dwmc = #{part} and isbf=0 where dwmc = #{part} and isbf=0 and del_flag=0
</select> </select>
</mapper> </mapper>

@ -36,7 +36,7 @@
<select id="findBydwmc" resultType="java.lang.Integer" parameterType="java.lang.String"> <select id="findBydwmc" resultType="java.lang.Integer" parameterType="java.lang.String">
select count(*) select count(*)
from asset_email from asset_email
where ssdw = #{part} and isbf=0 where ssdw = #{part} and isbf=0 and del_flag=0
</select> </select>
</mapper> </mapper>

@ -37,7 +37,7 @@
<select id="findBydwmc" resultType="java.lang.Integer" parameterType="java.lang.String"> <select id="findBydwmc" resultType="java.lang.Integer" parameterType="java.lang.String">
select count(*) select count(*)
from asset_mini_programs from asset_mini_programs
where ssdw = #{part} and isbf=0 where ssdw = #{part} and isbf=0 and del_flag=0
</select> </select>
</mapper> </mapper>

@ -16,7 +16,7 @@
<select id="findBydwmc" resultType="java.lang.Integer" parameterType="java.lang.String"> <select id="findBydwmc" resultType="java.lang.Integer" parameterType="java.lang.String">
select count(*) select count(*)
from asset_official_account from asset_official_account
where ssdw = #{part} and isbf=0 where ssdw = #{part} and isbf=0 and del_flag=0
</select> </select>
<select id="page" resultType="com.ruoyi.tc.entity.AssetOfficialAccount"> <select id="page" resultType="com.ruoyi.tc.entity.AssetOfficialAccount">
select * from asset_official_account select * from asset_official_account

@ -155,7 +155,22 @@
</foreach> </foreach>
) )
</if> </if>
) AND a.del_flag = '0' ) AND a.del_flag = 0
<if test="req.type!= null and req.type.indexOf('0') != -1">
and cr.del_flag=0
</if>
<if test="req.type!= null and req.type.indexOf('1') != -1">
and pr.del_flag=0
</if>
<if test="req.type!= null and req.type.indexOf('2') != -1">
and ac.del_flag=0
</if>
<if test="req.type!= null and req.type.indexOf('3') != -1">
and em.del_flag=0
</if>
<if test="req.type!= null and req.type.indexOf('4') != -1">
and ap.del_flag=0
</if>
<if test="req.nickName != null and req.nickName != '' "> <if test="req.nickName != null and req.nickName != '' ">
and a.nick_name like concat('%',#{req.nickName},'%') and a.nick_name like concat('%',#{req.nickName},'%')

Loading…
Cancel
Save