|
|
@ -99,10 +99,15 @@ public class AssetOfficialAccountServiceImpl extends ServiceImpl<AssetOfficialAc
|
|
|
|
public Boolean edit(AssetOfficialAccount assetOfficialAccount) {
|
|
|
|
public Boolean edit(AssetOfficialAccount assetOfficialAccount) {
|
|
|
|
updateById(assetOfficialAccount);
|
|
|
|
updateById(assetOfficialAccount);
|
|
|
|
AssetOfficialAccountCpPo one = assetOfficialAccountCpService.lambdaQuery().eq(AssetOfficialAccountCpPo::getAssetId, assetOfficialAccount.getId()).one();
|
|
|
|
AssetOfficialAccountCpPo one = assetOfficialAccountCpService.lambdaQuery().eq(AssetOfficialAccountCpPo::getAssetId, assetOfficialAccount.getId()).one();
|
|
|
|
BeanUtil.copyProperties(assetOfficialAccount, one);
|
|
|
|
if (one != null) {
|
|
|
|
one.setTaskId(unitService.selectTaskId(assetOfficialAccount.getSsdw(), "2"));
|
|
|
|
BeanUtil.copyProperties(assetOfficialAccount, one);
|
|
|
|
one.setAssetId(assetOfficialAccount.getId());
|
|
|
|
one.setTaskId(unitService.selectTaskId(assetOfficialAccount.getSsdw(), "2"));
|
|
|
|
return assetOfficialAccountCpService.updateById(one);
|
|
|
|
one.setAssetId(assetOfficialAccount.getId());
|
|
|
|
|
|
|
|
return assetOfficialAccountCpService.updateById(one);
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|