/**
*Send site message
*/
@Permission(Module.TZGL)
@RequestMapping(value = "/sendznx", method = RequestMethod.POST)
@ResponseBody
public String sendZnx(HttpSession session, Model model,
@ RequestParam(defaultValue = "") String[] userList,
@RequestParam(defaultValue = "") String content) throws Exception {
int rows = 0; //Record the number sent
String msg = ""; //Record return information
System.out.println("length--->"+userList.length);
System.out.println("content--->"+content);
try{
if(userList.length == 0 ; timeout(10000)
.get()
.text();
//--->Use Gson to convert the requested data into a MAP structure
.text();
.
>() {}.getType ());
//---> Take out the Object type data required in MAP and convert it into a List . Gson converts List to Json