|
@@ -47,8 +47,6 @@ public class PushController {
|
|
|
pushUtils.compareTime("18:00:01");
|
|
|
}
|
|
|
|
|
|
-// @RequestMapping(value = "/selectSendPushList", method = RequestMethod.POST)
|
|
|
-// @Transactional(propagation=Propagation.REQUIRED, rollbackFor = Exception.class)
|
|
|
public void selectSendPushList() {
|
|
|
int count = service.selectSendPushCount();
|
|
|
if (count == 0) {
|
|
@@ -75,14 +73,15 @@ public class PushController {
|
|
|
|
|
|
if (useYn.equals("Y")) {
|
|
|
if (pushUtils.compareDateTime(startDate) == true) {
|
|
|
+
|
|
|
+ list.get(i).setSendState("I");
|
|
|
+ service.updatePushSchedule(list.get(i));
|
|
|
+
|
|
|
int idx = service.insertPushLog(list.get(i));
|
|
|
logIdx = list.get(i).getIdx();
|
|
|
- logger.error("idx -- > " + idx);
|
|
|
- logger.error("logIdx" + logIdx);
|
|
|
+
|
|
|
if (idx == 0) {
|
|
|
} else {
|
|
|
- list.get(i).setSendState("I");
|
|
|
- service.updatePushSchedule(list.get(i));
|
|
|
// sendType : D(즉시), R(발송중), E(매일 발송)
|
|
|
// sendState : W(대기), I(발송중), C(완료)
|
|
|
// targetType : A(전체), N(건강정보 미엽락자), M(본인관리환자), P(환자개별선택)
|
|
@@ -147,8 +146,6 @@ public class PushController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// @RequestMapping(value = "/everyDayPushSend", method = RequestMethod.POST)
|
|
|
- @Transactional(propagation=Propagation.REQUIRED, rollbackFor = Exception.class)
|
|
|
public void everyDayPushSend() {
|
|
|
int cnt = service.selectEveryDaySendPushCount();
|
|
|
if (cnt == 0) {
|
|
@@ -166,13 +163,15 @@ public class PushController {
|
|
|
|
|
|
if (useYn.equals("Y")) { // 사용중인 생활치료센터만
|
|
|
if (pushUtils.compareTime(sendTime) == true) {
|
|
|
+ list.get(i).setSendState("I");
|
|
|
+ service.updatePushSchedule(list.get(i));
|
|
|
+
|
|
|
int idx = service.insertEveryDayPushLog(list.get(i));
|
|
|
logIdx = list.get(i).getIdx();
|
|
|
|
|
|
if (idx == 0) {
|
|
|
} else {
|
|
|
- list.get(i).setSendState("I");
|
|
|
- service.updatePushSchedule(list.get(i));
|
|
|
+
|
|
|
// sendType : D(즉시), R(발송중), E(매일 발송)
|
|
|
// sendState : W(대기), I(발송중), C(완료)
|
|
|
// targetType : A(전체), N(건강정보 미엽락자), M(본인관리환자), P(환자개별선택), T(정신건강 미입력자)
|
|
@@ -246,6 +245,14 @@ public class PushController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public void updateIngStateToWaitState() {
|
|
|
+ int cnt = service.selectIngStateCount();
|
|
|
+
|
|
|
+ if (cnt > 0) {
|
|
|
+ service.updateIngStateToWait();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private Connection con;
|
|
|
private Statement stmt;
|
|
|
@RequestMapping(value = "/createResultTable", method = RequestMethod.GET)
|