浏览代码

TsfSesson.getInfo.getCustNo -> Tsfsession.getAttribute로 변경

jsshin 4 年之前
父节点
当前提交
46786f4c20
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      src/main/java/com/style24/front/biz/web/TsfCustomerController.java

+ 6 - 3
src/main/java/com/style24/front/biz/web/TsfCustomerController.java

@@ -7,6 +7,7 @@ import com.style24.core.biz.service.TscMailService;
 import com.style24.front.biz.service.TsfCommonService;
 import com.style24.persistence.TscPageRequest;
 import com.style24.persistence.domain.Clause;
+import com.style24.persistence.domain.Login;
 import com.style24.persistence.domain.SupplyCompany;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -649,6 +650,7 @@ public class TsfCustomerController extends TsfBaseController {
 
 		if (isJoin) {
 			customerService.getLogin(customer.getCustNo(), request);
+			TsfSession.setAttribute("custNo", String.valueOf(customer.getCustNo()));
 		}
 
 		result.setBoolean("isJoin", isJoin);
@@ -706,6 +708,7 @@ public class TsfCustomerController extends TsfBaseController {
 
 		if (isJoin) {
 			customerService.getLogin(customer.getCustNo(), request);
+			TsfSession.setAttribute("custNo", String.valueOf(customer.getCustNo()));
 		}
 
 		result.setBoolean("isJoin", isJoin);
@@ -723,11 +726,11 @@ public class TsfCustomerController extends TsfBaseController {
 	@GetMapping("/join/complete/form")
 	public ModelAndView getJoinCompleteForm() {
 		ModelAndView mav = new ModelAndView();
-
 		String maskingCustId = TsfSession.getAttribute("maskingCustId");
-
+		String custNo = TsfSession.getAttribute("custNo");
+		//log.info("custNo  ===> {}", custNo);
 		mav.addObject("maskingCustId", maskingCustId);
-		mav.addObject("custNo", TsfSession.getInfo().getCustNo());
+		mav.addObject("custNo", custNo);
 		mav.setViewName(super.getDeviceViewName("customer/JoinCompleteForm"));
 
 		return mav;