|
@@ -7,20 +7,6 @@ import java.util.List;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
-import org.json.JSONObject;
|
|
|
-import org.slf4j.Logger;
|
|
|
-import org.slf4j.LoggerFactory;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.stereotype.Controller;
|
|
|
-import org.springframework.transaction.annotation.Propagation;
|
|
|
-import org.springframework.transaction.annotation.Transactional;
|
|
|
-import org.springframework.web.bind.annotation.ModelAttribute;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
-import org.springframework.web.servlet.ModelAndView;
|
|
|
-
|
|
|
import com.lemon.lifecenter.common.LifeCenterConfigVO;
|
|
|
import com.lemon.lifecenter.common.LifeCenterController;
|
|
|
import com.lemon.lifecenter.common.LifeCenterFunction;
|
|
@@ -30,13 +16,29 @@ import com.lemon.lifecenter.dto.CenterInfoDTO;
|
|
|
import com.lemon.lifecenter.dto.GroupListDTO;
|
|
|
import com.lemon.lifecenter.dto.LoginDTO;
|
|
|
import com.lemon.lifecenter.dto.PrivateLogDTO;
|
|
|
+import com.lemon.lifecenter.dto.SmsDTO;
|
|
|
import com.lemon.lifecenter.dto.StaffDTO;
|
|
|
import com.lemon.lifecenter.service.CenterService;
|
|
|
import com.lemon.lifecenter.service.GroupListService;
|
|
|
import com.lemon.lifecenter.service.LoginService;
|
|
|
import com.lemon.lifecenter.service.PrivateLogService;
|
|
|
+import com.lemon.lifecenter.service.SmsService;
|
|
|
import com.lemon.lifecenter.service.StaffService;
|
|
|
|
|
|
+import org.json.JSONObject;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.transaction.annotation.Propagation;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.web.bind.annotation.ModelAttribute;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
+import org.springframework.web.servlet.ModelAndView;
|
|
|
+
|
|
|
// 의료진관리 contorller
|
|
|
@Controller
|
|
|
@RequestMapping("/staff")
|
|
@@ -61,6 +63,9 @@ public class StaffController extends LifeCenterController {
|
|
|
|
|
|
@Autowired
|
|
|
private PrivateLogService privateLogService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private SmsService smsService;
|
|
|
|
|
|
@RequestMapping("/new")
|
|
|
public ModelAndView staffNew( HttpServletRequest request,HttpServletResponse response ) throws Exception {
|
|
@@ -610,16 +615,21 @@ public class StaffController extends LifeCenterController {
|
|
|
pw = config.centerResetPw;
|
|
|
}
|
|
|
|
|
|
- // MSG_DATA 누리 발송 테이블에 INSERT
|
|
|
- // SmsDTO smsData = new SmsDTO();
|
|
|
- // smsData.setCallFrom("01000000000");
|
|
|
- // smsData.setCallTo(LifeCenterFunction.exportOnlyNumber(memberData.getPhoneNumber()));
|
|
|
- // smsData.setEtcSendType("L"); // N:재택환자등록, L:로그인2차인증, R:비밀번호 초기화
|
|
|
- // smsData.setEtcTargetId(memberData.getId());
|
|
|
- // smsData.setSmsTxt("[생활치료센터 2차인증 본인확인]인증번호[123456]를 입력해주세요");
|
|
|
- // smsService.insertNuriMsgData(dto);
|
|
|
|
|
|
+ try {
|
|
|
+
|
|
|
+ // MSG_DATA 누리 발송 테이블에 INSERT
|
|
|
+ SmsDTO smsData = new SmsDTO();
|
|
|
+ smsData.setCallFrom("16618308");
|
|
|
+ smsData.setCallTo(LifeCenterFunction.exportOnlyNumber(info.getPhoneNumber()));
|
|
|
+ smsData.setEtcSendType("R"); // N:재택환자등록, L:로그인2차인증, R:비밀번호 초기화
|
|
|
+ smsData.setEtcTargetId(info.getId());
|
|
|
+ smsData.setSmsTxt("[Web발신][진료지원시스템] 로그인 비밀번호가 ["+pw+"]로 초기화 되었습니다.");
|
|
|
+ smsService.insertNuriMsgData(smsData);
|
|
|
+ } catch (Exception e) {
|
|
|
+ //TODO: handle exception
|
|
|
|
|
|
+ }
|
|
|
|
|
|
dto.setPassword(pw);
|
|
|
|