JSON 데이터 수신 수정

main
mjkhan21 1 year ago
parent 6c3aeb3108
commit 6be4e785f6

@ -1,7 +1,6 @@
package cokr.xit.fims.crdn.web; package cokr.xit.fims.crdn.web;
import java.util.List; import java.util.List;
import java.util.Map;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -28,8 +27,7 @@ public class InterfaceController extends ApplicationController {
* </ul> * </ul>
*/ */
@PostMapping(value = "/petition/receive.do", name = "국민 신문고 민원 수신") @PostMapping(value = "/petition/receive.do", name = "국민 신문고 민원 수신")
public ModelAndView importSmgPetition(@RequestBody Map<String, Object> params) { public ModelAndView importSmgPetition(@RequestBody List<String> intfSeqs) {
List<String> intfSeqs = (List<String>)params.get("interfaceSequences");
boolean empty = isEmpty(intfSeqs); boolean empty = isEmpty(intfSeqs);
log().debug("interfaceSequences received: {}", empty ? "none" : String.join(", ", intfSeqs)); log().debug("interfaceSequences received: {}", empty ? "none" : String.join(", ", intfSeqs));

Loading…
Cancel
Save