/**
*
*
*/
@RequiresPermissions(value={"test"})
@RequestMapping(value = "test")
public String test(...............) {
this.threadTo(...........);//推送给批量用户 (处理时间较长 选用异步线程操作 )//不影响返回jsp渲染结果
return "redirect:"+Global.getAdminPath()+"/repair/dbRepair?repage";
}
/**
**/
public void threadTo(final String custId,final List<String> userIdList,final MobilePushEntity pushEntity){
new Thread() {
public void run() {
try {
//要做的事
//mobilePushService.pushToUserList(custId,userIdList,pushEntity);//推送给批量用户
e.printStackTrace();
}
};
}.start();
}