Browse Source

服务品牌上传路径

2510966293@qq.com 5 years ago
parent
commit
18fa7da588

+ 2 - 2
src/main/java/com/yc/education/controller/admin/AdminsBackController.java

@@ -281,9 +281,9 @@ public class AdminsBackController extends BaseController {
 		int num = rootPath.split("\\\\").length;
 		int num = rootPath.split("\\\\").length;
 		System.out.println(num);
 		System.out.println(num);
 		if ("zip".equals(type)) {
 		if ("zip".equals(type)) {
-			ZipRarUtil.unzip(rootPath + url, rootPath + "/upload/img/");
+			ZipRarUtil.unzip(rootPath + url, rootPath + "/upload/file/admin/");
 		} else {
 		} else {
-			ZipRarUtil.unrar(rootPath + url, rootPath + "/upload/img/", num);
+			ZipRarUtil.unrar(rootPath + url, rootPath + "/upload/file/admin/", num);
 		}
 		}
 
 
 		AjaxMessage<Object> ajax = new AjaxMessage<>();
 		AjaxMessage<Object> ajax = new AjaxMessage<>();

+ 1 - 1
src/main/java/com/yc/education/controller/admin/ServiceCategoryAdminController.java

@@ -257,7 +257,7 @@ public class ServiceCategoryAdminController {
                         car.setpId(1);  //出错默认第一大类
                         car.setpId(1);  //出错默认第一大类
                     }
                     }
                     car.setName(getValue(hssfRow.getCell(1)));
                     car.setName(getValue(hssfRow.getCell(1)));
-                    car.setImg("/upload/img/"+getValue(hssfRow.getCell(2)));
+                    car.setImg("/upload/file/admin/"+getValue(hssfRow.getCell(2)));
                     car.setServeType(getValue(hssfRow.getCell(3)));
                     car.setServeType(getValue(hssfRow.getCell(3)));
                     try {
                     try {
                         car.setpSort(Short.valueOf(getValue(hssfRow.getCell(4))));
                         car.setpSort(Short.valueOf(getValue(hssfRow.getCell(4))));

+ 4 - 2
src/main/webapp/WEB-INF/jsp/admin/serviceCategoryList.jsp

@@ -38,8 +38,8 @@
             <span class="select-box inline">
             <span class="select-box inline">
             <select name="serviceType" class="select">
             <select name="serviceType" class="select">
                 <option value="">商家类型</option>
                 <option value="">商家类型</option>
-                <option value="1">服务商</option>
-                <option value="2">经销商</option>
+                <option <c:if test="${serviceType == 1}">selected</c:if> value="1">服务商</option>
+                <option <c:if test="${serviceType == 2}">selected</c:if> value="2">经销商</option>
 
 
             </select>
             </select>
 		</span>
 		</span>
@@ -73,6 +73,7 @@
                 <th width="80" ><input  id="checked_all"   type="checkbox"  >全选</th>
                 <th width="80" ><input  id="checked_all"   type="checkbox"  >全选</th>
                 <th width="80">ID</th>
                 <th width="80">ID</th>
                 <th width="120">服务图标</th>
                 <th width="120">服务图标</th>
+                <th width="120">图标地址</th>
                 <th width="120">服务类型</th>
                 <th width="120">服务类型</th>
                 <th width="120">服务名称</th>
                 <th width="120">服务名称</th>
                 <th width="120">首页显示</th>
                 <th width="120">首页显示</th>
@@ -87,6 +88,7 @@
                     <th><input   name="ck_pro"    value="${item.id }"   type="checkbox"  ></th>
                     <th><input   name="ck_pro"    value="${item.id }"   type="checkbox"  ></th>
                     <td>${item.id}</td>
                     <td>${item.id}</td>
                     <td><img src="${item.img}" style="width: 50px;height: 50px"></td>
                     <td><img src="${item.img}" style="width: 50px;height: 50px"></td>
+                    <td class="text-l">${item.img}</td>
                     <td class="text-l">${item.typeStr}</td>
                     <td class="text-l">${item.typeStr}</td>
                     <td class="text-l">${item.name}</td>
                     <td class="text-l">${item.name}</td>
                     <td class="text-l">
                     <td class="text-l">