|
|
@@ -221,7 +221,10 @@ public class TsaCustomerController extends TsaBaseController {
|
|
|
counsel.setAnsNo(TsaSession.getInfo().getUserNo());
|
|
|
counsel.setUpdNo(TsaSession.getInfo().getUserNo());
|
|
|
|
|
|
- counselService.updateQnaAnswerTemp(counsel);
|
|
|
+ int result = counselService.updateQnaAnswerTemp(counsel);
|
|
|
+ if (result == 0) {
|
|
|
+ throw new IllegalStateException("이미 답변저장 처리를 하셨습니다. 다시 확인해 주세요.");
|
|
|
+ }
|
|
|
|
|
|
return super.ok(message.getMessage("SUCC_0001"));
|
|
|
}
|
|
|
@@ -239,7 +242,10 @@ public class TsaCustomerController extends TsaBaseController {
|
|
|
counsel.setAnsNo(TsaSession.getInfo().getUserNo());
|
|
|
counsel.setUpdNo(TsaSession.getInfo().getUserNo());
|
|
|
|
|
|
- counselService.updateQnaAnswer(counsel);
|
|
|
+ int result = counselService.updateQnaAnswer(counsel);
|
|
|
+ if (result == 0) {
|
|
|
+ throw new IllegalStateException("이미 답변저장 처리를 하셨습니다. 다시 확인해 주세요.");
|
|
|
+ }
|
|
|
|
|
|
// 고객이 알림톡답변수신을 요청했을 때
|
|
|
if (counsel.getSmsReqYn().equals("Y")) {
|
|
|
@@ -260,6 +266,7 @@ public class TsaCustomerController extends TsaBaseController {
|
|
|
// Do nothing
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
return super.ok(message.getMessage("SUCC_0001"));
|
|
|
}
|
|
|
|
|
|
@@ -910,13 +917,13 @@ public class TsaCustomerController extends TsaBaseController {
|
|
|
customerSearch.setRegNo(TsaSession.getInfo().getUserNo());
|
|
|
customerSearch.setPageable(new TscPageRequest(customerSearch.getPageNo() - 1, customerSearch.getPageSize()));
|
|
|
customerSearch.getPageable().setTotalCount(customerService.getCustomerOrderListCount(customerSearch));
|
|
|
-
|
|
|
+
|
|
|
result.set("pageing", customerSearch);
|
|
|
-
|
|
|
+
|
|
|
Collection<Order> customerOrderList = customerService.getCustomerOrderList(customerSearch);
|
|
|
-
|
|
|
+
|
|
|
result.set("custOrderList", customerOrderList);
|
|
|
-
|
|
|
+
|
|
|
return result;
|
|
|
}
|
|
|
|