Commit 07d51ef4 authored by shaochangbin's avatar shaochangbin

添加了方法注释与变量显示语句

parent faf4fc9d
...@@ -54,13 +54,17 @@ public class CompanyController extends HttpServlet { ...@@ -54,13 +54,17 @@ public class CompanyController extends HttpServlet {
return companyService.findCompany(companyName); return companyService.findCompany(companyName);
} }
// 查找全部来访单位 /**
* 查找全部来访单位
* @return
*/
@RequestMapping(value = "/findCompanyAll", method = RequestMethod.POST, produces = "text/html;charset=UTF-8") @RequestMapping(value = "/findCompanyAll", method = RequestMethod.POST, produces = "text/html;charset=UTF-8")
@ResponseBody @ResponseBody
public String findCompanyAll() { public String findCompanyAll() {
List<Company> list = companyService.findCompanyAll(); List<Company> list = companyService.findCompanyAll();
String result = JsonUtils.objectToJson(list); String result = JsonUtils.objectToJson(list);
System.out.println(result);
return result; return result;
} }
......
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