|
@@ -125,9 +125,16 @@ public class ItemController {
|
|
|
|
|
|
@RequestMapping(value = "/updateAnswer", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
- public void updateAnswer(String id, String item_id, String worker_id, String job_id, @RequestParam("answers")List<String>answers,@RequestParam("attachment_location") List<String> attachment_location, HttpServletResponse response){
|
|
|
+ public void updateAnswer(String id, @RequestParam("answers")List<String>answers,@RequestParam("attachment_location") List<String> attachment_location, HttpServletResponse response){
|
|
|
+ System.out.println(id);
|
|
|
+// System.out.println(item_id);
|
|
|
+// System.out.println(worker_id);
|
|
|
+// System.out.println(job_id);
|
|
|
+ System.out.println(answers);
|
|
|
+ System.out.println(attachment_location);
|
|
|
+
|
|
|
JSONObject result = new JSONObject();
|
|
|
- if(iservice.updateAnswer(id, item_id, worker_id, job_id, answers, attachment_location)){
|
|
|
+ if(iservice.updateAnswer(id, answers, attachment_location)){
|
|
|
result.put("status", "200");
|
|
|
} else {
|
|
|
result.put("status", "500");
|