Compare commits

..

No commits in common. '4c0047a059df05fed7eb6c2a44042db9fa43b667' and 'f7fe75c85529d94381593ab4a7ca490865e540bc' have entirely different histories.

@ -153,20 +153,6 @@ public class AssetAppController extends BaseController {
aa.setId(byId.getAssetId()); aa.setId(byId.getAssetId());
//修改主表 //修改主表
assetAppService.updateById(aa); assetAppService.updateById(aa);
//如果有任务也修改任务这边
AssetAppJyPo one = assetAppJyService.lambdaQuery()
.isNotNull(AssetAppJyPo::getTaskId)
.eq(AssetAppJyPo::getAssetId, byId.getAssetId()).one();
if(one!=null){
Integer taskId = one.getTaskId();
Long appId = one.getAppId();
BeanUtil.copyProperties(byId, one);
one.setAppId(appId);
one.setTaskId(taskId);
one.setAuditState(null);
one.setAuditYy(null);
assetAppJyService.updateById(one);
}
} }
return success(); return success();
} }

@ -258,18 +258,14 @@ public class AssetCurrentController extends BaseController {
QueryWrapper<AssetSupplyChainJyPo> queryWrapper2 = new QueryWrapper<>(); QueryWrapper<AssetSupplyChainJyPo> queryWrapper2 = new QueryWrapper<>();
queryWrapper2.eq("asset_id", assetCurrentJyPo.getId()); queryWrapper2.eq("asset_id", assetCurrentJyPo.getId());
queryWrapper2.isNull("task_id");
assetSupplyChainJyService.remove(queryWrapper2); assetSupplyChainJyService.remove(queryWrapper2);
QueryWrapper<AssetBasicNetworkJyPo> queryWrapper3 = new QueryWrapper<>(); QueryWrapper<AssetBasicNetworkJyPo> queryWrapper3 = new QueryWrapper<>();
queryWrapper3.eq("asset_id", assetCurrentJyPo.getId()); queryWrapper3.eq("asset_id", assetCurrentJyPo.getId());
queryWrapper3.isNull("task_id");
assetBasicNetworkJyService.remove(queryWrapper3); assetBasicNetworkJyService.remove(queryWrapper3);
QueryWrapper<AssetBusinessFormJyPo> queryWrapper4 = new QueryWrapper<>(); QueryWrapper<AssetBusinessFormJyPo> queryWrapper4 = new QueryWrapper<>();
queryWrapper4.eq("asset_id", assetCurrentJyPo.getId()); queryWrapper4.eq("asset_id", assetCurrentJyPo.getId());
queryWrapper4.isNull("task_id");
assetBusinessFormJyService.remove(queryWrapper4); assetBusinessFormJyService.remove(queryWrapper4);
QueryWrapper<UnitOtherConcatJyPo> queryWrapper5 = new QueryWrapper<>(); QueryWrapper<UnitOtherConcatJyPo> queryWrapper5 = new QueryWrapper<>();
queryWrapper5.isNull("task_id");
queryWrapper5.eq("asset_id", assetCurrentJyPo.getId()); queryWrapper5.eq("asset_id", assetCurrentJyPo.getId());
unitOtherConcatJyservice.remove(queryWrapper5); unitOtherConcatJyservice.remove(queryWrapper5);
if (assetCurrentJyPo.getXjgywxt() != null) { if (assetCurrentJyPo.getXjgywxt() != null) {
@ -439,55 +435,6 @@ public class AssetCurrentController extends BaseController {
BeanUtil.copyProperties(x, a4); BeanUtil.copyProperties(x, a4);
unitOtherConcatService.save(a4); unitOtherConcatService.save(a4);
}); });
//如果有任务也修改任务这边
AssetCurrentCpPo one = assetCurrentCpService.lambdaQuery()
.isNotNull(AssetCurrentCpPo::getTaskId)
.eq(AssetCurrentCpPo::getId, byId.getId()).one();
if(one!=null){
Integer taskId = one.getTaskId();
Long appId = one.getCurrentId();
BeanUtil.copyProperties(byId, one);
one.setCurrentId(appId);
one.setTaskId(taskId);
one.setAuditState(null);
one.setAuditYy(null);
assetCurrentCpService.updateById(one);
QueryWrapper<AssetSupplyChainCpPo> queryWrapper2 = new QueryWrapper<>();
queryWrapper2.eq("asset_id", one.getId());
queryWrapper2.isNull("task_id");
assetSupplyChainCpService.remove(queryWrapper2);
QueryWrapper<AssetBasicNetworkCpPo> queryWrapper3 = new QueryWrapper<>();
queryWrapper3.eq("asset_id", one.getId());
queryWrapper3.isNull("task_id");
assetBasicNetworkCpService.remove(queryWrapper3);
QueryWrapper<AssetBusinessFormCpPo> queryWrapper4 = new QueryWrapper<>();
queryWrapper4.eq("asset_id", one.getId());
queryWrapper4.isNull("task_id");
assetBusinessFormCpService.remove(queryWrapper4);
QueryWrapper<UnitOtherConcatCpPo> queryWrapper5 = new QueryWrapper<>();
queryWrapper5.isNull("task_id");
queryWrapper5.eq("asset_id", one.getId());
unitOtherConcatCpService.remove(queryWrapper5);
list.forEach(x -> {
x.setTaskId(taskId);
assetSupplyChainCpService.save(x);
});
list1.forEach(x -> {
x.setTaskId(taskId);
assetBasicNetworkCpService.save(x);
});
list2.forEach(x -> {
x.setTaskId(taskId);
assetBusinessFormCpService.save(x);
});
list3.forEach(x -> {
x.setTaskId(taskId);
unitOtherConcatCpService.save(x);
});
}
} }
return success(); return success();
} }
@ -572,19 +519,15 @@ public class AssetCurrentController extends BaseController {
QueryWrapper<AssetSupplyChainCpPo> queryWrapper2 = new QueryWrapper<>(); QueryWrapper<AssetSupplyChainCpPo> queryWrapper2 = new QueryWrapper<>();
queryWrapper2.eq("asset_id", assetCurrent.getId()); queryWrapper2.eq("asset_id", assetCurrent.getId());
queryWrapper2.isNotNull("task_id");
assetSupplyChainCpService.remove(queryWrapper2); assetSupplyChainCpService.remove(queryWrapper2);
QueryWrapper<AssetBasicNetworkCpPo> queryWrapper3 = new QueryWrapper<>(); QueryWrapper<AssetBasicNetworkCpPo> queryWrapper3 = new QueryWrapper<>();
queryWrapper3.isNotNull("task_id");
queryWrapper3.eq("asset_id", assetCurrent.getId()); queryWrapper3.eq("asset_id", assetCurrent.getId());
assetBasicNetworkCpService.remove(queryWrapper3); assetBasicNetworkCpService.remove(queryWrapper3);
QueryWrapper<AssetBusinessFormCpPo> queryWrapper4 = new QueryWrapper<>(); QueryWrapper<AssetBusinessFormCpPo> queryWrapper4 = new QueryWrapper<>();
queryWrapper4.isNotNull("task_id");
queryWrapper4.eq("asset_id", assetCurrent.getId()); queryWrapper4.eq("asset_id", assetCurrent.getId());
assetBusinessFormCpService.remove(queryWrapper4); assetBusinessFormCpService.remove(queryWrapper4);
QueryWrapper<UnitOtherConcatCpPo> queryWrapper5 = new QueryWrapper<>(); QueryWrapper<UnitOtherConcatCpPo> queryWrapper5 = new QueryWrapper<>();
queryWrapper5.eq("asset_id", assetCurrent.getId()); queryWrapper5.eq("asset_id", assetCurrent.getId());
queryWrapper5.isNotNull("task_id");
unitOtherConcatCpService.remove(queryWrapper5); unitOtherConcatCpService.remove(queryWrapper5);
if (assetCurrent.getXjgywxt() != null) { if (assetCurrent.getXjgywxt() != null) {

@ -147,20 +147,6 @@ public class AssetEmailController extends BaseController {
aa.setId(byId.getAssetId()); aa.setId(byId.getAssetId());
//修改主表 //修改主表
assetEmailService.updateById(aa); assetEmailService.updateById(aa);
//如果有任务也修改任务这边
AssetEmailJyPo one = assetEmailJyService.lambdaQuery()
.isNotNull(AssetEmailJyPo::getTaskId)
.eq(AssetEmailJyPo::getAssetId, byId.getAssetId()).one();
if(one!=null){
Integer taskId = one.getTaskId();
Long appId = one.getEmailId();
BeanUtil.copyProperties(byId, one);
one.setEmailId(appId);
one.setTaskId(taskId);
one.setAuditState(null);
one.setAuditYy(null);
assetEmailJyService.updateById(one);
}
} }
return success(); return success();
} }

@ -148,20 +148,6 @@ public class AssetMiniProgramsController extends BaseController {
aa.setId(byId.getAssetId()); aa.setId(byId.getAssetId());
//修改主表 //修改主表
assetMiniProgramsService.updateById(aa); assetMiniProgramsService.updateById(aa);
//如果有任务也修改任务这边
AssetMiniProgramsJyPo one = assetMiniProgramsJyService.lambdaQuery()
.isNotNull(AssetMiniProgramsJyPo::getTaskId)
.eq(AssetMiniProgramsJyPo::getAssetId, byId.getAssetId()).one();
if(one!=null){
Integer taskId = one.getTaskId();
Long appId = one.getMiniId();
BeanUtil.copyProperties(byId, one);
one.setMiniId(appId);
one.setTaskId(taskId);
one.setAuditState(null);
one.setAuditYy(null);
assetMiniProgramsJyService.updateById(one);
}
} }
return success(); return success();
} }

@ -162,20 +162,6 @@ public class AssetOfficialAccountController {
aa.setId(byId.getAssetId()); aa.setId(byId.getAssetId());
//修改主表 //修改主表
assetOfficialAccountService.updateById(aa); assetOfficialAccountService.updateById(aa);
//如果有任务也修改任务这边
AssetOfficialAccountJyPo one = assetOfficialAccountJyService.lambdaQuery()
.isNotNull(AssetOfficialAccountJyPo::getTaskId)
.eq(AssetOfficialAccountJyPo::getAssetId, byId.getAssetId()).one();
if(one!=null){
Integer taskId = one.getTaskId();
Long appId = one.getAccountId();
BeanUtil.copyProperties(byId, one);
one.setAccountId(appId);
one.setTaskId(taskId);
one.setAuditState(null);
one.setAuditYy(null);
assetOfficialAccountJyService.updateById(one);
}
} }
return success(); return success();
} }

@ -31,7 +31,7 @@ public class AssetCurrentJyPo extends BaseClass implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
AssetCurrentCpPo /**
* id * id
*/ */
@TableId(type = IdType.AUTO,value = "current_id") @TableId(type = IdType.AUTO,value = "current_id")

@ -234,7 +234,13 @@
and b.xtlx = #{req.xtlx} and b.xtlx = #{req.xtlx}
</if> </if>
</where> </where>
order by FIELD(status,1,0,3,4,5) ORDER BY
CASE
WHEN b.STATUS = 1 THEN
0 ELSE 1
END,
b.STATUS ASC
</select> </select>
<select id="findBytaskIdandAssestId" resultType="com.ruoyi.tc.entity.po.AssetCurrentCpPo"> <select id="findBytaskIdandAssestId" resultType="com.ruoyi.tc.entity.po.AssetCurrentCpPo">
select * select *

Loading…
Cancel
Save