소스 검색

결재가능여부수정

dwkim 2 년 전
부모
커밋
f056c8400a
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      src/main/java/com/oqpo/api/service/SessionService.java

+ 3 - 2
src/main/java/com/oqpo/api/service/SessionService.java

@@ -83,7 +83,7 @@ public class SessionService extends CommonService {
83 83
             if ("50".equals(memberEntity.getAuthTpCd())) {
84 84
                 // 매장  selectBrandPgInfo
85 85
                 BrandEntity pgEntity = brandMapper.selectBrandPgInfo(memberEntity.getBrandId());
86
-                if ("".toString().equals(pgEntity.getMallId())) {
86
+                if (pgEntity.getMallId() == null || "".toString().equals(pgEntity.getMallId())) {
87 87
                     memberEntity.setApprYn("N");
88 88
                     memberEntity.setMallId("");
89 89
                 } else {
@@ -141,12 +141,13 @@ public class SessionService extends CommonService {
141 141
             if ("50".equals(memberEntity.getAuthTpCd())) {
142 142
                 // 매장  selectBrandPgInfo
143 143
                 BrandEntity pgEntity = brandMapper.selectBrandPgInfo(memberEntity.getBrandId());
144
-                if ("".toString().equals(pgEntity.getMallId())) {
144
+                if (pgEntity.getMallId() == null || "".toString().equals(pgEntity.getMallId())) {
145 145
                     memberEntity.setApprYn("N");
146 146
                     memberEntity.setMallId("");
147 147
                 } else {
148 148
                     memberEntity.setApprYn("Y");
149 149
                     memberEntity.setMallId(pgEntity.getMallId());
150
+
150 151
                 }
151 152
 
152 153
             } else {