提交 65dbda68 编写于 作者: sq3536's avatar sq3536

提交

上级 fe06e3af
......@@ -293,10 +293,12 @@ public class LiteCoreResource {
return ResponseEntity.status(HttpStatus.OK).body(liteModelService.getEntityModel(system,entity).getNesteds());
}
@RequestMapping(method = RequestMethod.POST, value = "/lite/{system}/entitys/{entity}/get")
public ResponseEntity<EntityObj> getEntity(@PathVariable("system") String system, @PathVariable("entity") String entity, HttpServletRequest request) {
@RequestMapping(method = {RequestMethod.POST,RequestMethod.GET}, value = "/lite/{system}/entitys/{entity}/get")
public ResponseEntity<EntityObj> getEntity(@PathVariable("system") String system, @PathVariable("entity") String entity, HttpServletRequest request,@RequestBody(required = false) Map map) {
Map<String, String[]> params = request.getParameterMap();
EntityObj entityObj = new EntityObj();
if(map!=null)
entityObj.putAll(map);
for (String key : params.keySet()) {
entityObj.set(key.toUpperCase(),params.get(key)[0]);
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册