|
@@ -1,21 +1,22 @@
|
|
|
package org.hsweb.web.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
-import org.hsweb.web.logger.annotation.AccessLogger;
|
|
|
import org.hsweb.web.authorize.annotation.Authorize;
|
|
|
import org.hsweb.web.bean.common.QueryParam;
|
|
|
import org.hsweb.web.bean.po.GenericPo;
|
|
|
+import org.hsweb.web.logger.annotation.AccessLogger;
|
|
|
import org.hsweb.web.message.ResponseMessage;
|
|
|
import org.hsweb.web.service.GenericService;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.webbuilder.utils.common.ClassUtils;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-import java.util.Set;
|
|
|
|
|
|
/**
|
|
|
* 通用Controller,使用RESTful和json进行数据提交及访问。
|
|
@@ -168,7 +169,6 @@ public abstract class GenericController<PO, PK> {
|
|
|
if (object instanceof GenericPo) {
|
|
|
((GenericPo) object).setU_id(id);
|
|
|
}
|
|
|
-
|
|
|
int number = getService().update(object);
|
|
|
return new ResponseMessage(true, number);
|
|
|
} catch (Exception e) {
|