| | |
| | | rowData.ErrorLog__c = rowData.ErrorLog__c == null ? '' : rowData.ErrorLog__c; |
| | | // System.debug('+++++++1+++++++'+iflog501Future); |
| | | String QLMDataStr = NFMUtil.QLMgetRowDataStr(rowData); |
| | | system.debug('QLMDataStr---'+QLMDataStr); |
| | | NFM501controller.AllData getQLMData1 = (NFM501controller.AllData) |
| | | JSON.deserialize(QLMDataStr, NFM501controller.AllData.class); |
| | | |
| | | system.debug('getQLMData1---'+json.serialize(getQLMData1)); |
| | | if (getQLMData1 == null) { |
| | | return; |
| | | } |
| | |
| | | Set < String > TarDetailSet = new Set < String > (); |
| | | |
| | | for (NFM501Controller.ListItem LI: getQLMData1.data.list1) { |
| | | system.debug('LI----'+json.serialize(LI)); |
| | | // 項目転送のセット |
| | | Tender_information__c te1 = new Tender_information__c(); |
| | | //add aws dataid sushanhu 20220223 start |
| | | if(String.isEmpty(LI.DataId)){ |
| | | continue; |
| | | } |
| | | te1.AWS_Data_Id__c = LI.DataId; |
| | | //add aws dataid sushanhu 20220223 end |
| | | if (String.isBlank(LI.projectId)) { |
| | |
| | | //转换表(实现选项列表的下拉选项) |
| | | te1.BiddingType__c = NFMUtil.getMapValue(transferMap, 'BiddingType__c', LI.biddingType, iflog501Future); |
| | | te1.InfoQianlimaUrl__c = String.isBlank(LI.infoQianlimaUrl) ? te1.InfoQianlimaUrl__c : LI.infoQianlimaUrl; |
| | | System.debug('======111111111111========'); |
| | | //拼接字符串 |
| | | if (LI.ZhaoRelationWay != null && LI.ZhaoRelationWay.size() > 0) { |
| | | System.debug('======LI.ZhaoRelationWay========'+LI.ZhaoRelationWay); |
| | | te1.ZhaoRelationWay__c = String.join(LI.ZhaoRelationWay, ','); |
| | | //add 密文 sushanhu 20220223 start |
| | | System.debug('======LI.ZhaoRelationWayEncrypted========'+LI.ZhaoRelationWayEncrypted); |
| | | te1.ZhaoRelationWay_Encrypted__c =String.join(LI.ZhaoRelationWayEncrypted,','); |
| | | System.debug('======2222222222222========'); |
| | | //add 密文 sushanhu 20220223 end |
| | | } |
| | | //转换表(选项列表的下拉选项) |
| | | System.debug('======3333333333333333========'); |
| | | te1.IsElectronic__c = NFMUtil.getMapValue(transferMap, 'IsElectronic__c', LI.isElectronic, iflog501Future); |
| | | te1.XmNumber__c = String.isBlank(LI.xmNumber) ? te1.XmNumber__c : LI.xmNumber; |
| | | if ( String.isnotBlank(LI.tenderEndTime) ) { |
| | |
| | | //转换表(选项列表的下拉选项) |
| | | //接口传来其他公告 |
| | | if (String.isBlank(te1.Id)) { //判断招标项目是否存在 |
| | | if ('5'.equals(LI.infoType)) { |
| | | if ('5'.equals(LI.infoType) || '2'.equals(LI.infoType)) { //20220510 lt SWAG-CE6C45 |
| | | //招投标项目名称 |
| | | te1.InfoTitle__c = LI.infoTitle == null ? te1.InfoTitle__c : LI.infoTitle; |
| | | //项目阶段 |
| | |
| | | } |
| | | // 预告记录日 取第一次获取到预告的当前时间 |
| | | // 如果有值,不是第一次,如果没值 |
| | | if ('1'.equals(LI.infoType) && te1.noticeDate__c == null) { |
| | | if (('1'.equals(LI.infoType) || '2'.equals(LI.infoType)) && te1.noticeDate__c == null) { //20220510 lt SWAG-CE6C45 |
| | | te1.noticeDate__c = Date.today(); |
| | | System.debug('noticeDate__c:' + te1.noticeDate__c); |
| | | } |
| | | System.debug('LI.infoType:' + LI.infoType); |
| | | System.debug('te1.ResultDate__c:' + te1.ResultDate__c); |
| | | // 结果记录日 取第一次获取到结果的当前时间 |
| | | if ('3'.equals(LI.infoType) && te1.ResultDate__c == null) { |
| | | if (('3'.equals(LI.infoType) || '2'.equals(LI.infoType)) && te1.ResultDate__c == null) { //20220510 lt SWAG-CE6C45 |
| | | te1.ResultDate__c = Date.today(); |
| | | System.debug('ResultDate__c:' + te1.ResultDate__c); |
| | | } |
| | | // 公告记录日 取第一次获取到公告的当前时间 |
| | | if ('0'.equals(LI.infoType) && te1.publicDate__c == null) { |
| | | if (('0'.equals(LI.infoType) || '2'.equals(LI.infoType)) && te1.publicDate__c == null) { //20220510 lt SWAG-CE6C45 |
| | | te1.publicDate__c = Date.today(); |
| | | System.debug('publicDate__c:' + te1.publicDate__c); |
| | | } |
| | |
| | | //add 密文 sushanhu 20220223 end |
| | | } |
| | | |
| | | |
| | | System.debug('te1-----'+json.serialize(te1)); |
| | | //精琢科技 zxk 2021-11-11 SWAG-C637NF start |
| | | // 如果第一次项目阶段就传来变更状态的话,那么就不生成招投标项目(由于变更阶段项目名称传来为空,为了不让项目名自动赋值为Id) |
| | | if (String.isNotBlank(te1.InfoType__c) && String.isNotBlank(LI.projectId)) { |
| | |
| | | if (DetlList.size() > 0) { |
| | | delete DetlList; |
| | | } |
| | | system.debug('updateTenderMap---'+json.serialize(updateTenderMap)); |
| | | if (updateTenderMap.values().size() > 0) { |
| | | upsert updateTenderMap.values(); |
| | | } |
| | |
| | | insert insertbidInfoFileList; |
| | | } |
| | | if (!Manual_execution501future) { |
| | | //测试 Open the comment by Li Jun 20220404 |
| | | System.enqueueJob(new NFM502Controller(rowData.id)); |
| | | } |
| | | // logstr += '\nend'; |