Commit 50ae9fab authored by 赵啸非's avatar 赵啸非

添加事项备注字段

parent da023cff
...@@ -317,7 +317,7 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe ...@@ -317,7 +317,7 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe
@GetMapping(value = "genMatterTxt") @GetMapping(value = "genMatterTxt")
@UnAuth @UnAuth
public Rest<Object> genMatterTxt(@RequestParam(value = "areaCode", defaultValue = "") String areaCode public String genMatterTxt(@RequestParam(value = "areaCode", defaultValue = "") String areaCode
, @RequestParam(value = "genFilePath", defaultValue = "/home/txt") String genFilePath) { , @RequestParam(value = "genFilePath", defaultValue = "/home/txt") String genFilePath) {
Rest<Object> ret = new Rest<>(); Rest<Object> ret = new Rest<>();
Map<String, Object> model = new HashMap<>(); Map<String, Object> model = new HashMap<>();
...@@ -345,7 +345,9 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe ...@@ -345,7 +345,9 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe
cacheService.del("genMatterTxt:" + areaCode); cacheService.del("genMatterTxt:" + areaCode);
}).start(); }).start();
//http://192.168.0.98:11071/home/txt/ //http://192.168.0.98:11071/home/txt/
model.put(MESSAGE_INFO, "异步生成文件中,请稍后查看文件!,文件访问地址:http://192.168.0.98:11071" + genFilePath+"/"); // model.put(MESSAGE_INFO, "异步生成文件中,请稍后查看文件!,文件访问地址:http://192.168.0.98:11071" + genFilePath+"/");
return "异步生成文件中,请稍后查看文件!,文件访问地址: http://192.168.0.98:11071" + genFilePath+"/";
} catch (Exception e) { } catch (Exception e) {
code = VALUE_RESULT_FAILURE; code = VALUE_RESULT_FAILURE;
...@@ -354,7 +356,7 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe ...@@ -354,7 +356,7 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe
ret.setCode(code); ret.setCode(code);
ret.setData(model); ret.setData(model);
ret.setMsg(model.get(MESSAGE_INFO) == null ? "" : model.remove(MESSAGE_INFO).toString()); ret.setMsg(model.get(MESSAGE_INFO) == null ? "" : model.remove(MESSAGE_INFO).toString());
return ret; return ret.toString();
} }
} }
\ No newline at end of file
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