Commit fd81e25b authored by 廖旭伟's avatar 廖旭伟

修改bug

parent abbd3054
...@@ -173,6 +173,35 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic ...@@ -173,6 +173,35 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic
return super.infoAfter(id, model, entity, context); return super.infoAfter(id, model, entity, context);
} }
/**
* 条件查询,无分页信息
* @param query
* @return
*/
@PostMapping({"list/noPage"})
@UnAuth
public Rest<Object> getList(@RequestBody SiteQuery query) {
Rest<Object> ret = new Rest();
Map<String, Object> model = new HashMap();
Context context = this.getContext();
String busiDesc = "查询" + this.getModuleDesc();
int code=1;
try {
List<SiteEntity> result = this.getService().find(query, context);
model.put("data", result);
model.put("message_info", busiDesc + "成功");
this.recordSysLog(this.request, busiDesc + " 【成功】");
} catch (Exception var9) {
code = -1;
this.doException(this.request, busiDesc, model, var9);
}
//this.init(model, context);
ret.setCode(code);
ret.setData(model);
//ret.setDict(model.remove("dict"));
ret.setMsg(model.get("message_info") == null ? "" : model.remove("message_info").toString());
return ret;
}
/** /**
* 包含站点下面的模块以及模块下面的数据统计 * 包含站点下面的模块以及模块下面的数据统计
......
...@@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.RequestBody; ...@@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import java.util.List; import java.util.List;
@FeignClient(name = "base-manager", path = "/zwfw", fallback = ModelFeignFallbackFactory.class) @FeignClient(name = "base-manager", path = "/base", fallback = ModelFeignFallbackFactory.class)
public interface IApiModelFeign extends IFeign { public interface IApiModelFeign extends IFeign {
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment