|
|
@ -1,18 +1,22 @@
|
|
|
|
package cokr.xit.fims.mngt.web;
|
|
|
|
package cokr.xit.fims.mngt.web;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
|
|
import cokr.xit.base.web.ApplicationController;
|
|
|
|
import cokr.xit.base.web.ApplicationController;
|
|
|
|
|
|
|
|
import cokr.xit.fims.mngt.MsgEntity;
|
|
|
|
import cokr.xit.fims.mngt.MsgQuery;
|
|
|
|
import cokr.xit.fims.mngt.MsgQuery;
|
|
|
|
import cokr.xit.fims.mngt.service.MsgService;
|
|
|
|
import cokr.xit.fims.mngt.service.MsgService;
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
|
|
|
|
import net.minidev.json.JSONObject;
|
|
|
|
|
|
|
|
|
|
|
|
@Controller
|
|
|
|
@Controller
|
|
|
|
@RequestMapping(name="문자전송 관리", value=Mngt03Controller.CLASS_URL)
|
|
|
|
@RequestMapping(name="문자전송 관리", value=Mngt03Controller.CLASS_URL)
|
|
|
@ -50,11 +54,20 @@ public class Mngt03Controller extends ApplicationController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(name="문자전송 요청 등록", value=METHOD_URL.regist)
|
|
|
|
@RequestMapping(name="문자전송 요청 등록", value=METHOD_URL.regist)
|
|
|
|
public ModelAndView regist(HttpServletRequest req, DataObject spec) {
|
|
|
|
public ModelAndView regist(@RequestBody JSONObject spec) {
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<MsgEntity> msgEntityList = new ArrayList<MsgEntity>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
MsgEntity msgEntity = new MsgEntity();
|
|
|
|
|
|
|
|
msgEntityList.add(msgEntity);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String,Object> resultMap = msgService.regist(msgEntityList);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mav.addObject("resultMap", resultMap);
|
|
|
|
|
|
|
|
mav.addObject("saved",true);
|
|
|
|
return mav;
|
|
|
|
return mav;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|