Explorar o código

修改附件上传

raojiaolong@163.com %!s(int64=3) %!d(string=hai) anos
pai
achega
1fcab2ded0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mhotel/src/com/happy/action/hotelAction.java

+ 1 - 1
mhotel/src/com/happy/action/hotelAction.java

@@ -155,7 +155,7 @@ public class hotelAction extends ActionSupport implements ServletRequestAware {
             BeanUtils.copyProperties(hotel,hotelEto);
         }
         StringBuilder fileSqlx = new StringBuilder("");
-        fileSqlx.append("and link_id = '").append(id).append("'");
+        fileSqlx.append("and link_id = '").append(hotel.getId()).append("'");
         List<FileInfo> fileList = fileService.queryList(fileSqlx.toString());
         hotelEto.setFileInfoList(fileList);
         resultJson.put("message", "查询成功");