fanxw 5 年之前
父節點
當前提交
0a39d84723
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/main/java/com/chinaitop/depot/system/controller/OrgInfoController.java

+ 6 - 6
src/main/java/com/chinaitop/depot/system/controller/OrgInfoController.java

@@ -182,12 +182,12 @@ public class OrgInfoController {
182 182
 			List<ButtonInfo> buttonList = buttonInfoService.queryByExample(exampleButton);
183 183
 			roleButtonService.saveForList(roleInfo.getRoleId(), buttonList);
184 184
 		} else {
185
-//			if(!ObjectUtils.toString(orgInfo.getBirdsEye()).isEmpty()) {
186
-//        		String path = uploadPath+orgInfo.getBirdsEye();
187
-//        		byte[] file2byte = FileUtil.file2byte(path);
188
-//        		String hexString = FileUtil.toHexString(file2byte);
189
-//        		orgInfo.setWjl(hexString);
190
-//        	}
185
+			if(!ObjectUtils.toString(orgInfo.getBirdsEye()).isEmpty()) {
186
+        		String path = uploadPath+orgInfo.getBirdsEye();
187
+        		byte[] file2byte = FileUtil.file2byte(path);
188
+        		String hexString = FileUtil.toHexString(file2byte);
189
+        		orgInfo.setWjl(hexString);
190
+        	}
191 191
 			orgInfoService.update(orgInfo);
192 192
 		}
193 193
         /*if(5318 == orgInfo.getOrgClassId()) {//粮食企业的级别是在上级行政单位的级别上加2位顺序码