| | |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static String Init(String recordId){ |
| | | public static String init(String recordId){ |
| | | try { |
| | | Visit_Report__c vistReport = [SELECT Id, Status__c, OwnerId from Visit_Report__c WHERE Id = :recordId]; |
| | | UserResult currentUser = UserInfo_Owner(); |
| | | UserResult currentUser = userInfo_Owner(); |
| | | if(currentUser.Id == vistReport.OwnerId && vistReport.Status__c=='草案中'){ |
| | | Visit_Report__c updateData = new Visit_Report__c(); |
| | | updateData.Id = vistReport.Id; |
| | |
| | | } |
| | | |
| | | //获取当前登录人的Id |
| | | public static UserResult UserInfo_Owner() { |
| | | public static UserResult userInfo_Owner() { |
| | | UserResult result = new UserResult(); |
| | | ID myUserID = UserInfo.getUserId(); |
| | | |