| 
					
				 | 
			
			
				@@ -13,8 +13,10 @@ import java.util.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.google.common.collect.Lists; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.google.common.collect.Maps; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.jeeplus.common.bos.BOSClientUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.common.config.Global; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.common.oss.OSSClientUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.jeeplus.common.utils.FileUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.common.utils.IdGen; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.common.utils.MenuStatusEnum; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.common.utils.StringUtils; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -277,8 +279,8 @@ public class WorkStaffBasicInfoService extends CrudService<WorkStaffBasicInfoDao 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         MultipartFile pictureFile = workStaffBasicInfo.getPictureFile(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (pictureFile != null && !pictureFile.isEmpty() &&pictureFile.getSize()>0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             String oldPhoto = workStaffBasicInfo.getPicture(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            String key = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (StringUtils.isNotBlank(oldPhoto)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            BOSClientUtil bosClientUtil = new BOSClientUtil(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            /*if (StringUtils.isNotBlank(oldPhoto)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 String aliyunUrl = Global.getAliyunUrl(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 String aliDownloadUrl = Global.getAliDownloadUrl(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 String cons = ""; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -299,11 +301,15 @@ public class WorkStaffBasicInfoService extends CrudService<WorkStaffBasicInfoDao 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }catch (Exception e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 logger.error("oss删除文件失败!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                OSSClientUtil ossUtil2 = new OSSClientUtil(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                String filepath = ossUtil2.uploadFile2OSS(pictureFile, "photo"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                workStaffBasicInfo.setPicture(filepath); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if(StringUtils.isNotBlank(oldPhoto)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    bosClientUtil.deleteObject(oldPhoto); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                String path = new StringBuilder("/headImg/") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        .append(workStaffBasicInfo.getName()+System.currentTimeMillis()).append(".png").toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                String uploadPath = bosClientUtil.upload(path, pictureFile.getInputStream()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                workStaffBasicInfo.setPicture(uploadPath); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } catch (Exception e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 logger.error("oss上传文件失败!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -795,20 +801,22 @@ public class WorkStaffBasicInfoService extends CrudService<WorkStaffBasicInfoDao 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if(newInvoke==null)continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if(newInvoke instanceof String){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         String newValue=newInvoke.toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        String oldValue=oldInvoke.toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        String oldValue = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        if (oldInvoke!=null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            oldValue = oldInvoke.toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         if(!newValue.equals(oldValue)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             if("exSoldier".equals(name)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 workStaffAchivesLogService.saveStaffLog(workStaffAchivesLog,workStaffBasicInfo.getId(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                         "基本信息",describes,name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                         DictUtils.getDictLabel(oldValue,"yes_no",""), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                         DictUtils.getDictLabel(newValue,"yes_no",""), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                        oldInvoke.toString(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                        newInvoke.toString(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        oldValue, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        newValue, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                         "","修改"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 workStaffAchivesLogService.saveStaffLog(workStaffAchivesLog,workStaffBasicInfo.getId(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                         "基本信息",describes,name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                        oldInvoke.toString(),newInvoke.toString(),oldInvoke.toString(),newInvoke.toString(),"","修改"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        oldValue,newValue,oldValue,newValue,"","修改"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         } 
			 |