|
|
@ -9,6 +9,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
|
import javax.servlet.http.HttpSession;
|
|
|
|
import javax.servlet.http.HttpSession;
|
|
|
|
import javax.xml.crypto.Data;
|
|
|
|
import javax.xml.crypto.Data;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.backoffice.constants.ConstantResultCode;
|
|
|
|
import com.backoffice.m.tutorial.M_Bf_tutorialBO;
|
|
|
|
import com.backoffice.m.tutorial.M_Bf_tutorialBO;
|
|
|
|
import org.apache.commons.logging.Log;
|
|
|
|
import org.apache.commons.logging.Log;
|
|
|
|
import org.apache.commons.logging.LogFactory;
|
|
|
|
import org.apache.commons.logging.LogFactory;
|
|
|
@ -18,6 +19,8 @@ import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
|
|
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
|
|
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
|
|
|
|
|
|
|
|
|
|
|
import com.backoffice.admin.bf.bf_recommend.A_Bf_recommendBO;
|
|
|
|
import com.backoffice.admin.bf.bf_recommend.A_Bf_recommendBO;
|
|
|
@ -675,29 +678,26 @@ public class M_Bf_growthController extends AbstractControllerManager{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//---begin-------
|
|
|
|
//---begin-------
|
|
|
|
@RequestMapping(value="vac_schedule_check")
|
|
|
|
// @RequestMapping(value="vac_schedule_check")
|
|
|
|
public String vac_schedule_check(@ModelAttribute("model") ModelMap model, HttpServletRequest request, HttpServletResponse response
|
|
|
|
@RequestMapping(value="vac_schedule_check", method= RequestMethod.GET)
|
|
|
|
, RedirectAttributes ra) {
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public HashMap<String, Object> vac_schedule_check(@ModelAttribute("model") ModelMap model, HttpServletRequest request, HttpServletResponse response) {
|
|
|
|
DataMap paramMap = gmUtil.getDataMapFromRequest(request);
|
|
|
|
DataMap paramMap = gmUtil.getDataMapFromRequest(request);
|
|
|
|
String redirect_url = "m/bf_growth/vac_schedule";
|
|
|
|
|
|
|
|
log.info("vac_schedule_check.....");
|
|
|
|
log.info("vac_schedule_check.....");
|
|
|
|
log.info(paramMap);
|
|
|
|
log.info(paramMap);
|
|
|
|
try{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int result = bf_growthBO.update_bf_vac_schedule_check(paramMap);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(result == 1) {
|
|
|
|
|
|
|
|
paramMap.put("ERROR_MSG", "반영되었습니다:" + result);
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
paramMap.put("ERROR_MSG", "반영되지 못했습니다:" + result);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}catch(Exception ex1){ redirect_url = gmUtil.redirectError(true, ex1, request, paramMap, ra, ""); ex1.printStackTrace();}
|
|
|
|
HashMap<String, Object> rm = new HashMap<String, Object>();
|
|
|
|
|
|
|
|
rm.put("RESULT", ConstantResultCode.RESULT_INIT);
|
|
|
|
|
|
|
|
|
|
|
|
gmUtil.redirectParam(model, paramMap);
|
|
|
|
try{
|
|
|
|
|
|
|
|
int result = bf_growthBO.update_bf_vac_schedule_check(paramMap);
|
|
|
|
return redirect_url;
|
|
|
|
rm.put("result", result);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}catch(Exception ex1){
|
|
|
|
|
|
|
|
ex1.printStackTrace();
|
|
|
|
|
|
|
|
rm.put("RESULT", ConstantResultCode.RESULT_EXCEPTION);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return rm;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ---end----------
|
|
|
|
// ---end----------
|
|
|
|