| | |
| | | , RecordType.DeveloperName //20201202 ljh add |
| | | , BeiPinWindow__c //20201202 ljh add |
| | | , Add_Reason__c // 20210429 1831 you |
| | | ,RecordtypeId |
| | | FROM TransferApply__c |
| | | WHERE Id = :taId |
| | | FOR UPDATE |
| | | ]; |
| | | |
| | | if (taList.isEmpty()) { |
| | | return '调拨单不存在。'; |
| | | } |
| | |
| | | if(!errorList.isEmpty()) { |
| | | return String.join(errorList, '\n'); |
| | | } |
| | | system.debug('zzm :'+ta.Status__c +',RecordtypeId:' +ta.RecordtypeId); |
| | | if(ta.Status__c == '草案中') { |
| | | |
| | | ta.Status__c = '填写完毕'; |
| | | } |
| | | else { |
| | |
| | | WHERE Id = :taId |
| | | FOR UPDATE |
| | | ]; |
| | | |
| | | if (taList.isEmpty()) { |
| | | return '调拨单不存在。'; |
| | | } |