var suspectTemp = new Object();
suspectTemp.id=$("#suspectId").val();
suspectTemp[field] = text;
console.log(suspectTemp);
$.ajax({
type : "post",
url : "suspectDigitalGene/updateSuspectByField",
data : JSON.stringify(suspectTemp),
dataType: "json",
contentType: "application/json; charset=utf-8",
async : false,
cache:false,
success : function(data){
},
});
/**
* 逐条 修改嫌疑人
*/
@RequestMapping(value="/suspectDigitalGene/updateSuspectByField",method = RequestMethod.POST)
@ResponseBody
public Integer updateSuspectByField(@RequestBody Suspect suspect) {
Date date = new Date();
suspect.setUpdateTime(date);
return null;//suspectService.updateSuspect(suspect);
}