jar包 https://pan.baidu.com/s/11ASQ0LRoN27YRezNodCfMg 密码:z78g
function shougpw(id){
var url = "../setpingw/checkpw.do";
$.ajax({
type: "post",
url: url,
data: {"id":id,},
cache: false,
async : false,
dataType: "json",
success: function (data)
{
if(data.returnvalue){
if(data.returnvalue == "nopingw"){
alert("&%%&%%¥%……&!");
}else{
console.log(data);
}
}
},
});
}
------------------------------------------------------------------------------------------------------------------------------
@RequestMapping(value = "/setpingw/checkpw.do" , method=RequestMethod.POST)
@ResponseBody
public String checkpw(Integer id,Integer pageNo,HttpServletRequest request,ModelMap model) {
List<RsJudges> JudgesList = rsJudgesMng.getList(null, id, null, null);
String str;
if(JudgesList.size()==0){
str = "{\"returnvalue\":\"nopingw\"}";
}else{
for(int i = 0;i < JudgesList.size();i++){
Integer pwuserid = JudgesList.get(i).getUser_id();
Integer draft_id = JudgesList.get(i).getDraft_id();
List<RsJudgesG> list = rsJudgesGMng.getList(null, draft_id, pwuserid);
if(list.size()>0){
JudgesList.remove(i);
}
}
String JudgesLists = JSON.toJSONString(JudgesList);
return JudgesLists;
}