| | |
| | | } |
| | | //招投标反逻辑删除 |
| | | WebService static String ContraryLogicalDel(String DTenId) { |
| | | Tender_information__c DTenInfo = [Select Id, InfoId__c, Logical_delete__c, ProjectId__c, Retain_Tender__c From Tender_information__c Where id = : DTenId]; |
| | | Tender_information__c DTenInfo = [Select Id,Name, InfoId__c, Logical_delete__c, ProjectId__c, Retain_Tender__c From Tender_information__c Where id = : DTenId]; |
| | | // 更新删除招投标 |
| | | List<Tender_information__c> updateTenInfoList = new List<Tender_information__c>(); |
| | | // 更新保留招投标 |
| | |
| | | |
| | | // 互换保留招投标与删除招投标的信息Id |
| | | DTenInfo.Retain_Tender__c = BTen.Id; |
| | | |
| | | if(String.isNotBlank(DTenInfo.Name)){ |
| | | String Namesliep=DTenInfo.Name.substring(0,5); |
| | | system.debug('Namesliep++'+Namesliep); |
| | | system.debug('234234++'+Namesliep.equals('逻辑删除:')); |
| | | if(Namesliep.equals('逻辑删除:')){ |
| | | DTenInfo.Name=DTenInfo.Name.substring(5); |
| | | } |
| | | } |
| | | String BTenInfo = BTen.InfoId__c; |
| | | BTen.InfoId__c = DTenInfo.InfoId__c;//保留招投标的信息Id赋给删除招投标的信息Id |
| | | DTenInfo.InfoId__c = BTenInfo;//删除招投标的信息Id赋给保留招投标的信息Id |