권한수정

dev_token
jangwonseokicom 1 year ago
parent 029911940b
commit 4c3a5bdfda

@ -140,6 +140,7 @@ public class SystemCustController {
@PostMapping("/cust/modify") @PostMapping("/cust/modify")
@ResponseBody @ResponseBody
public void CustModify(@RequestBody SystemCustSaveReq dto) throws CustomNotFoundException { public void CustModify(@RequestBody SystemCustSaveReq dto) throws CustomNotFoundException {
log.info(" useYn------------------ {}", new Gson().toJson(dto));
custService.CustModify(dto); custService.CustModify(dto);
} }

@ -93,7 +93,7 @@ public class SystemCustService {
tbIcsOprMngInfoRepo.saveAll(dto.toOpr(uv)); tbIcsOprMngInfoRepo.saveAll(dto.toOpr(uv));
tbCustPolicyRepo.saveAll(dto.toPolicy()); tbCustPolicyRepo.saveAll(dto.toPolicy());
tbUserCustRepo.saveAll(dto.toSystemAdmin(uv)); tbUserCustRepo.saveAll(dto.toSystemAdmin(uv));
tbProjectSettingRepo.saveAll(WisenutInsert(dto.toWisenutInsert())); // tbProjectSettingRepo.saveAll(WisenutInsert(dto.toWisenutInsert()));
} }
public List<TbProjectSetting> WisenutInsert(List<WisenutInsertReqVo> dto) throws CustomNotFoundException { public List<TbProjectSetting> WisenutInsert(List<WisenutInsertReqVo> dto) throws CustomNotFoundException {
@ -200,7 +200,7 @@ public class SystemCustService {
String serviceGroup = e.getAddServiceGroup(); String serviceGroup = e.getAddServiceGroup();
List<TbCustPolicy> beforPol = custPolBase.get(serviceGroup); List<TbCustPolicy> beforPol = custPolBase.get(serviceGroup);
List<String> insertVal = e.getAuthList(); List<String> insertVal = e.getAuthList();
log.info("modiiiiiiii - {}", new Gson().toJson(e));
//수정할 데이터 //수정할 데이터
if (custPolBase.keySet().stream().collect(Collectors.toList()).contains(e.getAddServiceGroup())) { if (custPolBase.keySet().stream().collect(Collectors.toList()).contains(e.getAddServiceGroup())) {
TbServiceGrouop tsg = tbServiceGrouopRepo.findByServiceGroup(serviceGroup) TbServiceGrouop tsg = tbServiceGrouopRepo.findByServiceGroup(serviceGroup)
@ -237,7 +237,9 @@ public class SystemCustService {
.policyVal(h) .policyVal(h)
.build()); .build());
} }
log.info(".getAddUseYn() --- " + e.getAddUseYn());
saveService.add(e.toService(custResult.getCustCode(), uv)); saveService.add(e.toService(custResult.getCustCode(), uv));
// saveService.add(e.toService(custResult.getCustCode(), uv));
saveOpr.add(e.toOprmngCode(custResult.getCustCode(), uv)); saveOpr.add(e.toOprmngCode(custResult.getCustCode(), uv));
} }
} }
@ -246,9 +248,9 @@ public class SystemCustService {
tbCustPolicyRepo.deleteByServiceGroupInAndPolicyValIn(e, delUpperVal.get(e)); tbCustPolicyRepo.deleteByServiceGroupInAndPolicyValIn(e, delUpperVal.get(e));
tbServiceGroupPolicyRepo.deleteByServiceGroupInAndPolicyValIn(e, delUpperVal.get(e)); tbServiceGroupPolicyRepo.deleteByServiceGroupInAndPolicyValIn(e, delUpperVal.get(e));
} }
log.info(".saveService() --- {}" , new Gson().toJson(saveService));
tbCustPolicyRepo.saveAll(insertPol);
tbServiceGrouopRepo.saveAll(saveService); tbServiceGrouopRepo.saveAll(saveService);
tbCustPolicyRepo.saveAll(insertPol);
tbIcsOprMngInfoRepo.saveAll(saveOpr); tbIcsOprMngInfoRepo.saveAll(saveOpr);
//프로젝트세팅 테이블이 저장되어야 해야된다해서 나중에 추가된 코드 //프로젝트세팅 테이블이 저장되어야 해야된다해서 나중에 추가된 코드
//1차에선 데이터를 DB에서 SQL로 인서트했다고함. //1차에선 데이터를 DB에서 SQL로 인서트했다고함.
@ -260,7 +262,7 @@ public class SystemCustService {
.serviceGroupDesc(e.getServiceGroupDesc()) .serviceGroupDesc(e.getServiceGroupDesc())
.build()); .build());
} }
tbProjectSettingRepo.saveAll(WisenutInsert(saveProject)); // tbProjectSettingRepo.saveAll(WisenutInsert(saveProject));
} }
} }

@ -186,7 +186,7 @@ public class SystemServiceGroupService {
.oprMngCode(dto.getCustCode()+"_RCP_"+dto.getSubServiceGroup()) .oprMngCode(dto.getCustCode()+"_RCP_"+dto.getSubServiceGroup())
.serviceGroupDesc(dto.getSubServiceGroupDesc()) .serviceGroupDesc(dto.getSubServiceGroupDesc())
.build()); .build());
tbProjectSettingRepo.saveAll(systemCustService.WisenutInsert(proSet)); // tbProjectSettingRepo.saveAll(systemCustService.WisenutInsert(proSet));
} }

@ -34,7 +34,24 @@ public class SystemCustSaveSubReq {
this.authList = authList; this.authList = authList;
} }
public TbServiceGrouop toService(String custCode, UserVo uv, String yn) {
System.out.println("use - " + this.addUseYn);
return TbServiceGrouop.builder()
.serviceGroup(this.addServiceGroup.toUpperCase())
.serviceGroupUpper(this.addServiceGroup)
.custCode(custCode)
.serviceType("M")
.serviceGroupName(this.addServiceGroupName)
.serviceGroupDesc(this.addServiceGroupDesc)
.useYn(yn)
.registId(uv.getUserId())
.registDate(LocalDateTime.now())
.updateId(uv.getUserId())
.updateDate(LocalDateTime.now())
.build();
}
public TbServiceGrouop toService(String custCode, UserVo uv) { public TbServiceGrouop toService(String custCode, UserVo uv) {
System.out.println("use - " + this.addUseYn);
return TbServiceGrouop.builder() return TbServiceGrouop.builder()
.serviceGroup(this.addServiceGroup.toUpperCase()) .serviceGroup(this.addServiceGroup.toUpperCase())
.serviceGroupUpper(this.addServiceGroup) .serviceGroupUpper(this.addServiceGroup)
@ -42,7 +59,7 @@ public class SystemCustSaveSubReq {
.serviceType("M") .serviceType("M")
.serviceGroupName(this.addServiceGroupName) .serviceGroupName(this.addServiceGroupName)
.serviceGroupDesc(this.addServiceGroupDesc) .serviceGroupDesc(this.addServiceGroupDesc)
.useYn(this.addUseYn) .useYn("Y")
.registId(uv.getUserId()) .registId(uv.getUserId())
.registDate(LocalDateTime.now()) .registDate(LocalDateTime.now())
.updateId(uv.getUserId()) .updateId(uv.getUserId())
@ -56,7 +73,7 @@ public class SystemCustSaveSubReq {
.serviceGroup(this.addServiceGroup) .serviceGroup(this.addServiceGroup)
.oprMngCode(custCode+"_RCP_"+this.addServiceGroup.toUpperCase()) .oprMngCode(custCode+"_RCP_"+this.addServiceGroup.toUpperCase())
.solVal("RCP") .solVal("RCP")
.useYn(this.addUseYn) .useYn("Y")
.registId(uv.getUserId()) .registId(uv.getUserId())
.registDate(LocalDateTime.now()) .registDate(LocalDateTime.now())
.updateId(uv.getUserId()) .updateId(uv.getUserId())

@ -44,61 +44,60 @@ public enum PolicyResource {
rcpoprmanagettstagmanageRead(MenuResource.rcpoprmanagettstagmanage, "TTS태그관리읽기권한", "Y", 1, Arrays.asList()), rcpoprmanagettstagmanageRead(MenuResource.rcpoprmanagettstagmanage, "TTS태그관리읽기권한", "Y", 1, Arrays.asList()),
gudguideRead(MenuResource.gudguide,"상담가이드읽기권한","Y",1,Arrays.asList()),
gudguideRead(MenuResource.gudguide,"상담가이드전체권한","Y",1,Arrays.asList()), gudguideconsultationRealtimemanageRead(MenuResource.gudguideconsultationRealtimemanage,"실시간상담읽기권한","Y",1,Arrays.asList()),
gudguideconsultationRealtimemanageRead(MenuResource.gudguideconsultationRealtimemanage,"실시간상담전체권한","Y",1,Arrays.asList()), gudguideadminMonitoringmanageRead(MenuResource.gudguideadminMonitoringmanage,"관리자모니터링읽기권한","Y",1,Arrays.asList()),
gudguideadminMonitoringmanageRead(MenuResource.gudguideadminMonitoringmanage,"관리자모니터링전체권한","Y",1,Arrays.asList()), gudguidehistoryRead(MenuResource.gudguidehistory,"상담이력관리읽기권한","Y",1,Arrays.asList()),
gudguidehistoryRead(MenuResource.gudguidehistory,"상담이력관리전체권한","Y",1,Arrays.asList()), gudguidehistoryscrchmanageRead(MenuResource.gudguidehistoryscrchmanage,"상담이력조회읽기권한","Y",1,Arrays.asList()),
gudguidehistoryscrchmanageRead(MenuResource.gudguidehistoryscrchmanage,"상담이력조회전체권한","Y",1,Arrays.asList()), gudguidehistoryoutboxmanageRead(MenuResource.gudguidehistoryoutboxmanage,"상담이력전송함읽기권한","Y",1,Arrays.asList()),
gudguidehistoryoutboxmanageRead(MenuResource.gudguidehistoryoutboxmanage,"상담이력전송함전체권한","Y",1,Arrays.asList()), gudguidehistoryinboxmanageRead(MenuResource.gudguidehistoryinboxmanage,"상담이력수신함읽기권한","Y",1,Arrays.asList()),
gudguidehistoryinboxmanageRead(MenuResource.gudguidehistoryinboxmanage,"상담이력수신함전체권한","Y",1,Arrays.asList()), gudguidecontentsRead(MenuResource.gudguidecontents,"상담컨텐츠읽기권한","Y",1,Arrays.asList()),
gudguidecontentsRead(MenuResource.gudguidecontents,"상담컨텐츠전체권한","Y",1,Arrays.asList()), gudguidecontentslistmanageRead(MenuResource.gudguidecontentslistmanage,"상담가이드조회읽기권한","Y",1,Arrays.asList()),
gudguidecontentslistmanageRead(MenuResource.gudguidecontentslistmanage,"상담가이드조회전체권한","Y",1,Arrays.asList()), gudguidecontentsmanagermanageRead(MenuResource.gudguidecontentsmanagermanage,"상담가이드관리읽기권한","Y",1,Arrays.asList()),
gudguidecontentsmanagermanageRead(MenuResource.gudguidecontentsmanagermanage,"상담가이드관리전체권한","Y",1,Arrays.asList()), gudguidecontentscontentsAssessmentmanageRead(MenuResource.gudguidecontentscontentsAssessmentmanage,"상담가이드평가읽기권한","Y",1,Arrays.asList()),
gudguidecontentscontentsAssessmentmanageRead(MenuResource.gudguidecontentscontentsAssessmentmanage,"상담가이드평가전체권한","Y",1,Arrays.asList()), gudguidecontentscontentsAssessmentHistorymanageRead(MenuResource.gudguidecontentscontentsAssessmentHistorymanage,"상담가이드평가이력읽기권한","Y",1,Arrays.asList()),
gudguidecontentscontentsAssessmentHistorymanageRead(MenuResource.gudguidecontentscontentsAssessmentHistorymanage,"상담가이드평가이력전체권한","Y",1,Arrays.asList()), gudguideaiRead(MenuResource.gudguideai,"NLP연동읽기권한","Y",1,Arrays.asList()),
gudguideaiRead(MenuResource.gudguideai,"NLP연동전체권한","Y",1,Arrays.asList()), gudguideainluIntentListmanageRead(MenuResource.gudguideainluIntentListmanage,"대화의도읽기권한","Y",1,Arrays.asList()),
gudguideainluIntentListmanageRead(MenuResource.gudguideainluIntentListmanage,"대화의도전체권한","Y",1,Arrays.asList()), gudguideainluEntityListmanageRead(MenuResource.gudguideainluEntityListmanage,"엔티티읽기권한","Y",1,Arrays.asList()),
gudguideainluEntityListmanageRead(MenuResource.gudguideainluEntityListmanage,"엔티티전체권한","Y",1,Arrays.asList()), gudguideainluLogmanageRead(MenuResource.gudguideainluLogmanage,"대화의도이력읽기권한","Y",1,Arrays.asList()),
gudguideainluLogmanageRead(MenuResource.gudguideainluLogmanage,"대화의도이력전체권한","Y",1,Arrays.asList()), gudguideainluTrainingmanageRead(MenuResource.gudguideainluTrainingmanage,"기계학습읽기권한","Y",1,Arrays.asList()),
gudguideainluTrainingmanageRead(MenuResource.gudguideainluTrainingmanage,"기계학습전체권한","Y",1,Arrays.asList()), gudguideainluIntenttestmanageRead(MenuResource.gudguideainluIntenttestmanage,"대화의도테스트읽기권한","Y",1,Arrays.asList()),
gudguideainluIntenttestmanageRead(MenuResource.gudguideainluIntenttestmanage,"대화의도테스트전체권한","Y",1,Arrays.asList()), gudguideaisynonymListmanageRead(MenuResource.gudguideaisynonymListmanage,"고유용어사전읽기권한","Y",1,Arrays.asList()),
gudguideaisynonymListmanageRead(MenuResource.gudguideaisynonymListmanage,"고유용어사전전체권한","Y",1,Arrays.asList()), gudguideainluRecommendedLearningmanageRead(MenuResource.gudguideainluRecommendedLearningmanage,"학습추천읽기권한","Y",1,Arrays.asList()),
gudguideainluRecommendedLearningmanageRead(MenuResource.gudguideainluRecommendedLearningmanage,"학습추천전체권한","Y",1,Arrays.asList()),
addraddrbotRead(MenuResource.addraddrbot,"주소봇읽기권한","Y",1,Arrays.asList()),
addraddrbotRead(MenuResource.addraddrbot,"주소봇전체권한","Y",1,Arrays.asList()), addraddrbotmanageAddrSectionmanageRead(MenuResource.addraddrbotmanageAddrSectionmanage,"지명유사어관리읽기권한","Y",1,Arrays.asList()),
addraddrbotmanageAddrSectionmanageRead(MenuResource.addraddrbotmanageAddrSectionmanage,"지명유사어관리전체권한","Y",1,Arrays.asList()), addraddrbotmanageBuildNamemanageRead(MenuResource.addraddrbotmanageBuildNamemanage,"빌딩유사어관리읽기권한","Y",1,Arrays.asList()),
addraddrbotmanageBuildNamemanageRead(MenuResource.addraddrbotmanageBuildNamemanage,"빌딩유사어관리전체권한","Y",1,Arrays.asList()), addraddrbotmanageSynonymmanageRead(MenuResource.addraddrbotmanageSynonymmanage,"유의어전처리관리읽기권한","Y",1,Arrays.asList()),
addraddrbotmanageSynonymmanageRead(MenuResource.addraddrbotmanageSynonymmanage,"유의어전처리관리전체권한","Y",1,Arrays.asList()), addraddrbotmanageBuildTypemanageRead(MenuResource.addraddrbotmanageBuildTypemanage,"발화건물유형관리읽기권한","Y",1,Arrays.asList()),
addraddrbotmanageBuildTypemanageRead(MenuResource.addraddrbotmanageBuildTypemanage,"발화건물유형관리전체권한","Y",1,Arrays.asList()), addraddrbotmanageJusoUploadmanageRead(MenuResource.addraddrbotmanageJusoUploadmanage,"주소월별업데이트읽기권한","Y",1,Arrays.asList()),
addraddrbotmanageJusoUploadmanageRead(MenuResource.addraddrbotmanageJusoUploadmanage,"주소월별업데이트전체권한","Y",1,Arrays.asList()), addraddrbotmanageAddrProcessmanageRead(MenuResource.addraddrbotmanageAddrProcessmanage,"주소봇처리내역읽기권한","Y",1,Arrays.asList()),
addraddrbotmanageAddrProcessmanageRead(MenuResource.addraddrbotmanageAddrProcessmanage,"주소봇처리내역전체권한","Y",1,Arrays.asList()), addraddrbotaddrRealtimeListmanageRead(MenuResource.addraddrbotaddrRealtimeListmanage,"실시간처리리스트읽기권한","Y",1,Arrays.asList()),
addraddrbotaddrRealtimeListmanageRead(MenuResource.addraddrbotaddrRealtimeListmanage,"실시간처리리스트전체권한","Y",1,Arrays.asList()),
botcomRead(MenuResource.botcom,"BOT공통관리읽기권한","Y",1,Arrays.asList()),
botcomRead(MenuResource.botcom,"BOT공통관리전체권한","Y",1,Arrays.asList()), botcommanageMentmanageRead(MenuResource.botcommanageMentmanage,"멘트관리읽기권한","Y",1,Arrays.asList()),
botcommanageMentmanageRead(MenuResource.botcommanageMentmanage,"멘트관리전체권한","Y",1,Arrays.asList()), botcommanageRead(MenuResource.botcommanage,"서비스별관리읽기권한","Y",1,Arrays.asList()),
botcommanageRead(MenuResource.botcommanage,"서비스별관리전체권한","Y",1,Arrays.asList()), botcommanagemanageGreetMentmanageRead(MenuResource.botcommanagemanageGreetMentmanage,"요일시간대별멘트관리읽기권한","Y",1,Arrays.asList()),
botcommanagemanageGreetMentmanageRead(MenuResource.botcommanagemanageGreetMentmanage,"요일시간대별멘트관리전체권한","Y",1,Arrays.asList()), botcommanagemanageHolidaymanageRead(MenuResource.botcommanagemanageHolidaymanage,"휴무일관리읽기권한","Y",1,Arrays.asList()),
botcommanagemanageHolidaymanageRead(MenuResource.botcommanagemanageHolidaymanage,"휴무일관리전체권한","Y",1,Arrays.asList()), botcommanagemanageNaturalmanageRead(MenuResource.botcommanagemanageNaturalmanage,"자연어전처리관리읽기권한","Y",1,Arrays.asList()),
botcommanagemanageNaturalmanageRead(MenuResource.botcommanagemanageNaturalmanage,"자연어전처리관리전체권한","Y",1,Arrays.asList()),
rcpv1Read(MenuResource.rcpv1,"무인접수BOT읽기권한","Y",1,Arrays.asList()),
rcpv1Read(MenuResource.rcpv1,"무인접수BOT전체권한","Y",1,Arrays.asList()), rcpv1receiptListmanageRead(MenuResource.rcpv1receiptListmanage,"접수리스트읽기권한","Y",1,Arrays.asList()),
rcpv1receiptListmanageRead(MenuResource.rcpv1receiptListmanage,"접수리스트전체권한","Y",1,Arrays.asList()), rcpv1receiptRealtimeListmanageRead(MenuResource.rcpv1receiptRealtimeListmanage,"시릿간모니터링읽기권한","Y",1,Arrays.asList()),
rcpv1receiptRealtimeListmanageRead(MenuResource.rcpv1receiptRealtimeListmanage,"시릿간모니터링전체권한","Y",1,Arrays.asList()), rcpv1receiptOutRealtimeListmanageRead(MenuResource.rcpv1receiptOutRealtimeListmanage,"아웃바운드모니터링읽기권한","Y",1,Arrays.asList()),
rcpv1receiptOutRealtimeListmanageRead(MenuResource.rcpv1receiptOutRealtimeListmanage,"아웃바운드모니터링전체권한","Y",1,Arrays.asList()), rcpv1rcpReportmanageRead(MenuResource.rcpv1rcpReportmanage,"일자별통계읽기권한","Y",1,Arrays.asList()),
rcpv1rcpReportmanageRead(MenuResource.rcpv1rcpReportmanage,"일자별통계전체권한","Y",1,Arrays.asList()), rcpv1rcpTimeReportmanageRead(MenuResource.rcpv1rcpTimeReportmanage,"시간대별통계읽기권한","Y",1,Arrays.asList()),
rcpv1rcpTimeReportmanageRead(MenuResource.rcpv1rcpTimeReportmanage,"시간대별통계전체권한","Y",1,Arrays.asList()),
vdoRead(MenuResource.vdo,"영상상담읽기권한","Y",1,Arrays.asList()),
vdoRead(MenuResource.vdo,"영상상담전체권한","Y",1,Arrays.asList()), vdoincomingManageCategorymanageRead(MenuResource.vdoincomingManageCategorymanage,"컨텐츠등록관리읽기권한","Y",1,Arrays.asList()),
vdoincomingManageCategorymanageRead(MenuResource.vdoincomingManageCategorymanage,"컨텐츠등록관리전체권한","Y",1,Arrays.asList()), vdoincomingCounselingListmanageRead(MenuResource.vdoincomingCounselingListmanage,"영상상담읽기권한","Y",1,Arrays.asList()),
vdoincomingCounselingListmanageRead(MenuResource.vdoincomingCounselingListmanage,"영상상담전체권한","Y",1,Arrays.asList()), vdoincomingCounselingHistorymanageRead(MenuResource.vdoincomingCounselingHistorymanage,"상담이력조회읽기권한","Y",1,Arrays.asList()),
vdoincomingCounselingHistorymanageRead(MenuResource.vdoincomingCounselingHistorymanage,"상담이력조회전체권한","Y",1,Arrays.asList()), vdoincomingMvReportmanageRead(MenuResource.vdoincomingMvReportmanage,"사용통계읽기권한","Y",1,Arrays.asList()),
vdoincomingMvReportmanageRead(MenuResource.vdoincomingMvReportmanage,"사용통계전체권한","Y",1,Arrays.asList()),
botmoniRead(MenuResource.botmoni,"봇모니터링(확대형)읽기권한","Y",1,Arrays.asList()),
botmoniRead(MenuResource.botmoni,"봇모니터링(확대형)전체권한","Y",1,Arrays.asList()), botmoniaddrRealtimeListExpansionmanageRead(MenuResource.botmoniaddrRealtimeListExpansionmanage,"주소봇실시간처리리스트읽기권한","Y",1,Arrays.asList()),
botmoniaddrRealtimeListExpansionmanageRead(MenuResource.botmoniaddrRealtimeListExpansionmanage,"주소봇실시간처리리스트전체권한","Y",1,Arrays.asList()), botmonireceiptRealtimeListExpansionmanageRead(MenuResource.botmonireceiptRealtimeListExpansionmanage,"무인접수봇실시간모니터링읽기권한","Y",1,Arrays.asList()),
botmonireceiptRealtimeListExpansionmanageRead(MenuResource.botmonireceiptRealtimeListExpansionmanage,"무인접수봇실시간모니터링전체권한","Y",1,Arrays.asList()), botmoniguideRealtimeListExpansionmanageRead(MenuResource.botmoniguideRealtimeListExpansionmanage,"상담가이드실시간모니터링읽기권한","Y",1,Arrays.asList()),
botmoniguideRealtimeListExpansionmanageRead(MenuResource.botmoniguideRealtimeListExpansionmanage,"상담가이드실시간모니터링전체권한","Y",1,Arrays.asList()),
@ -138,19 +137,16 @@ public enum PolicyResource {
gudguideFull(MenuResource.gudguide,"상담가이드전체권한","Y",1,Arrays.asList()),
gudguideconsultationRealtimemanageFull(MenuResource.gudguideconsultationRealtimemanage,"실시간상담전체권한","Y",1,Arrays.asList()), gudguideconsultationRealtimemanageFull(MenuResource.gudguideconsultationRealtimemanage,"실시간상담전체권한","Y",1,Arrays.asList()),
gudguideadminMonitoringmanageFull(MenuResource.gudguideadminMonitoringmanage,"관리자모니터링전체권한","Y",1,Arrays.asList()), gudguideadminMonitoringmanageFull(MenuResource.gudguideadminMonitoringmanage,"관리자모니터링전체권한","Y",1,Arrays.asList()),
gudguidehistoryFull(MenuResource.gudguidehistory,"상담이력관리전체권한","Y",1,Arrays.asList()), gudguidehistoryFull(MenuResource.gudguidehistory,"상담이력관리전체권한","Y",1,Arrays.asList()),
gudguidehistoryscrchmanageFull(MenuResource.gudguidehistoryscrchmanage,"상담이력조회전체권한","Y",1,Arrays.asList()), gudguidehistoryscrchmanageFull(MenuResource.gudguidehistoryscrchmanage,"상담이력조회전체권한","Y",1,Arrays.asList()),
gudguidehistoryoutboxmanageFull(MenuResource.gudguidehistoryoutboxmanage,"상담이력전송함전체권한","Y",1,Arrays.asList()), gudguidehistoryoutboxmanageFull(MenuResource.gudguidehistoryoutboxmanage,"상담이력전송함전체권한","Y",1,Arrays.asList()),
gudguidehistoryinboxmanageFull(MenuResource.gudguidehistoryinboxmanage,"상담이력수신함전체권한","Y",1,Arrays.asList()), gudguidehistoryinboxmanageFull(MenuResource.gudguidehistoryinboxmanage,"상담이력수신함전체권한","Y",1,Arrays.asList()),
gudguidecontentsFull(MenuResource.gudguidecontents,"상담컨텐츠전체권한","Y",1,Arrays.asList()),
gudguidecontentslistmanageFull(MenuResource.gudguidecontentslistmanage,"상담가이드조회전체권한","Y",1,Arrays.asList()), gudguidecontentslistmanageFull(MenuResource.gudguidecontentslistmanage,"상담가이드조회전체권한","Y",1,Arrays.asList()),
gudguidecontentsmanagermanageFull(MenuResource.gudguidecontentsmanagermanage,"상담가이드관리전체권한","Y",1,Arrays.asList()), gudguidecontentsmanagermanageFull(MenuResource.gudguidecontentsmanagermanage,"상담가이드관리전체권한","Y",1,Arrays.asList()),
gudguidecontentscontentsAssessmentmanageFull(MenuResource.gudguidecontentscontentsAssessmentmanage,"상담가이드평가전체권한","Y",1,Arrays.asList()), gudguidecontentscontentsAssessmentmanageFull(MenuResource.gudguidecontentscontentsAssessmentmanage,"상담가이드평가전체권한","Y",1,Arrays.asList()),
gudguidecontentscontentsAssessmentHistorymanageFull(MenuResource.gudguidecontentscontentsAssessmentHistorymanage,"상담가이드평가이력전체권한","Y",1,Arrays.asList()), gudguidecontentscontentsAssessmentHistorymanageFull(MenuResource.gudguidecontentscontentsAssessmentHistorymanage,"상담가이드평가이력전체권한","Y",1,Arrays.asList()),
gudguideaiFull(MenuResource.gudguideai,"NLP연동전체권한","Y",1,Arrays.asList()),
gudguideainluIntentListmanageFull(MenuResource.gudguideainluIntentListmanage,"대화의도전체권한","Y",1,Arrays.asList()), gudguideainluIntentListmanageFull(MenuResource.gudguideainluIntentListmanage,"대화의도전체권한","Y",1,Arrays.asList()),
gudguideainluEntityListmanageFull(MenuResource.gudguideainluEntityListmanage,"엔티티전체권한","Y",1,Arrays.asList()), gudguideainluEntityListmanageFull(MenuResource.gudguideainluEntityListmanage,"엔티티전체권한","Y",1,Arrays.asList()),
gudguideainluLogmanageFull(MenuResource.gudguideainluLogmanage,"대화의도이력전체권한","Y",1,Arrays.asList()), gudguideainluLogmanageFull(MenuResource.gudguideainluLogmanage,"대화의도이력전체권한","Y",1,Arrays.asList()),
@ -159,7 +155,6 @@ public enum PolicyResource {
gudguideaisynonymListmanageFull(MenuResource.gudguideaisynonymListmanage,"고유용어사전전체권한","Y",1,Arrays.asList()), gudguideaisynonymListmanageFull(MenuResource.gudguideaisynonymListmanage,"고유용어사전전체권한","Y",1,Arrays.asList()),
gudguideainluRecommendedLearningmanageFull(MenuResource.gudguideainluRecommendedLearningmanage,"학습추천전체권한","Y",1,Arrays.asList()), gudguideainluRecommendedLearningmanageFull(MenuResource.gudguideainluRecommendedLearningmanage,"학습추천전체권한","Y",1,Arrays.asList()),
addraddrbotFull(MenuResource.addraddrbot,"주소봇전체권한","Y",1,Arrays.asList()),
addraddrbotmanageAddrSectionmanageFull(MenuResource.addraddrbotmanageAddrSectionmanage,"지명유사어관리전체권한","Y",1,Arrays.asList()), addraddrbotmanageAddrSectionmanageFull(MenuResource.addraddrbotmanageAddrSectionmanage,"지명유사어관리전체권한","Y",1,Arrays.asList()),
addraddrbotmanageBuildNamemanageFull(MenuResource.addraddrbotmanageBuildNamemanage,"빌딩유사어관리전체권한","Y",1,Arrays.asList()), addraddrbotmanageBuildNamemanageFull(MenuResource.addraddrbotmanageBuildNamemanage,"빌딩유사어관리전체권한","Y",1,Arrays.asList()),
addraddrbotmanageSynonymmanageFull(MenuResource.addraddrbotmanageSynonymmanage,"유의어전처리관리전체권한","Y",1,Arrays.asList()), addraddrbotmanageSynonymmanageFull(MenuResource.addraddrbotmanageSynonymmanage,"유의어전처리관리전체권한","Y",1,Arrays.asList()),
@ -168,35 +163,29 @@ public enum PolicyResource {
addraddrbotmanageAddrProcessmanageFull(MenuResource.addraddrbotmanageAddrProcessmanage,"주소봇처리내역전체권한","Y",1,Arrays.asList()), addraddrbotmanageAddrProcessmanageFull(MenuResource.addraddrbotmanageAddrProcessmanage,"주소봇처리내역전체권한","Y",1,Arrays.asList()),
addraddrbotaddrRealtimeListmanageFull(MenuResource.addraddrbotaddrRealtimeListmanage,"실시간처리리스트전체권한","Y",1,Arrays.asList()), addraddrbotaddrRealtimeListmanageFull(MenuResource.addraddrbotaddrRealtimeListmanage,"실시간처리리스트전체권한","Y",1,Arrays.asList()),
botcomFull(MenuResource.botcom,"BOT공통관리전체권한","Y",1,Arrays.asList()),
botcommanageMentmanageFull(MenuResource.botcommanageMentmanage,"멘트관리전체권한","Y",1,Arrays.asList()), botcommanageMentmanageFull(MenuResource.botcommanageMentmanage,"멘트관리전체권한","Y",1,Arrays.asList()),
botcommanageFull(MenuResource.botcommanage,"서비스별관리전체권한","Y",1,Arrays.asList()),
botcommanagemanageGreetMentmanageFull(MenuResource.botcommanagemanageGreetMentmanage,"요일시간대별멘트관리전체권한","Y",1,Arrays.asList()), botcommanagemanageGreetMentmanageFull(MenuResource.botcommanagemanageGreetMentmanage,"요일시간대별멘트관리전체권한","Y",1,Arrays.asList()),
botcommanagemanageHolidaymanageFull(MenuResource.botcommanagemanageHolidaymanage,"휴무일관리전체권한","Y",1,Arrays.asList()), botcommanagemanageHolidaymanageFull(MenuResource.botcommanagemanageHolidaymanage,"휴무일관리전체권한","Y",1,Arrays.asList()),
botcommanagemanageNaturalmanageFull(MenuResource.botcommanagemanageNaturalmanage,"자연어전처리관리전체권한","Y",1,Arrays.asList()), botcommanagemanageNaturalmanageFull(MenuResource.botcommanagemanageNaturalmanage,"자연어전처리관리전체권한","Y",1,Arrays.asList()),
rcpv1Full(MenuResource.rcpv1,"무인접수BOT전체권한","Y",1,Arrays.asList()),
rcpv1receiptListmanageFull(MenuResource.rcpv1receiptListmanage,"접수리스트전체권한","Y",1,Arrays.asList()), rcpv1receiptListmanageFull(MenuResource.rcpv1receiptListmanage,"접수리스트전체권한","Y",1,Arrays.asList()),
rcpv1receiptRealtimeListmanageFull(MenuResource.rcpv1receiptRealtimeListmanage,"시릿간모니터링전체권한","Y",1,Arrays.asList()), rcpv1receiptRealtimeListmanageFull(MenuResource.rcpv1receiptRealtimeListmanage,"시릿간모니터링전체권한","Y",1,Arrays.asList()),
rcpv1receiptOutRealtimeListmanageFull(MenuResource.rcpv1receiptOutRealtimeListmanage,"아웃바운드모니터링전체권한","Y",1,Arrays.asList()), rcpv1receiptOutRealtimeListmanageFull(MenuResource.rcpv1receiptOutRealtimeListmanage,"아웃바운드모니터링전체권한","Y",1,Arrays.asList()),
rcpv1rcpReportmanageFull(MenuResource.rcpv1rcpReportmanage,"일자별통계전체권한","Y",1,Arrays.asList()), rcpv1rcpReportmanageFull(MenuResource.rcpv1rcpReportmanage,"일자별통계전체권한","Y",1,Arrays.asList()),
rcpv1rcpTimeReportmanageFull(MenuResource.rcpv1rcpTimeReportmanage,"시간대별통계전체권한","Y",1,Arrays.asList()), rcpv1rcpTimeReportmanageFull(MenuResource.rcpv1rcpTimeReportmanage,"시간대별통계전체권한","Y",1,Arrays.asList()),
vdoFull(MenuResource.vdo,"영상상담전체권한","Y",1,Arrays.asList()),
vdoincomingManageCategorymanageFull(MenuResource.vdoincomingManageCategorymanage,"컨텐츠등록관리전체권한","Y",1,Arrays.asList()), vdoincomingManageCategorymanageFull(MenuResource.vdoincomingManageCategorymanage,"컨텐츠등록관리전체권한","Y",1,Arrays.asList()),
vdoincomingCounselingListmanageFull(MenuResource.vdoincomingCounselingListmanage,"영상상담전체권한","Y",1,Arrays.asList()), vdoincomingCounselingListmanageFull(MenuResource.vdoincomingCounselingListmanage,"영상상담전체권한","Y",1,Arrays.asList()),
vdoincomingCounselingHistorymanageFull(MenuResource.vdoincomingCounselingHistorymanage,"상담이력조회전체권한","Y",1,Arrays.asList()), vdoincomingCounselingHistorymanageFull(MenuResource.vdoincomingCounselingHistorymanage,"상담이력조회전체권한","Y",1,Arrays.asList()),
vdoincomingMvReportmanageFull(MenuResource.vdoincomingMvReportmanage,"사용통계전체권한","Y",1,Arrays.asList()), vdoincomingMvReportmanageFull(MenuResource.vdoincomingMvReportmanage,"사용통계전체권한","Y",1,Arrays.asList()),
botmoniFull(MenuResource.botmoni,"봇모니터링(확대형)전체권한","Y",1,Arrays.asList()),
botmoniaddrRealtimeListExpansionmanageFull(MenuResource.botmoniaddrRealtimeListExpansionmanage,"주소봇실시간처리리스트전체권한","Y",1,Arrays.asList()), botmoniaddrRealtimeListExpansionmanageFull(MenuResource.botmoniaddrRealtimeListExpansionmanage,"주소봇실시간처리리스트전체권한","Y",1,Arrays.asList()),
botmonireceiptRealtimeListExpansionmanageFull(MenuResource.botmonireceiptRealtimeListExpansionmanage,"무인접수봇실시간모니터링전체권한","Y",1,Arrays.asList()), botmonireceiptRealtimeListExpansionmanageFull(MenuResource.botmonireceiptRealtimeListExpansionmanage,"무인접수봇실시간모니터링전체권한","Y",1,Arrays.asList()),
botmoniguideRealtimeListExpansionmanageFull(MenuResource.botmoniguideRealtimeListExpansionmanage,"상담가이드실시간모니터링전체권한","Y",1,Arrays.asList()), botmoniguideRealtimeListExpansionmanageFull(MenuResource.botmoniguideRealtimeListExpansionmanage,"상담가이드실시간모니터링전체권한","Y",1,Arrays.asList()),
commonsystemcustmanageFull(MenuResource.commonsystemcustmanage, "고객사 관리전체권한", "Y", 1000000, Arrays.asList()), commonsystemcustmanageFull(MenuResource.commonsystemcustmanage, "고객사 관리전체권한", "Y", 1000000, Arrays.asList()),
commonsystemserviceGroupmanageFull(MenuResource.commonsystemserviceGroupmanage, "서비스그룹 관리전체권한", "Y", 1000000, Arrays.asList()), commonsystemserviceGroupmanageFull(MenuResource.commonsystemserviceGroupmanage, "서비스그룹 관리전체권한", "Y", 1000000, Arrays.asList()),
commonsystemgroupAuthmanageFull(MenuResource.commonsystemgroupAuthmanage, "그룹별 권한관리전체권한", "Y", 10000, Arrays.asList()), commonsystemgroupAuthmanageFull(MenuResource.commonsystemgroupAuthmanage, "그룹별 권한관리전체권한", "Y", 10000, Arrays.asList()),
@ -356,19 +345,16 @@ public enum PolicyResource {
rcpoprmanagettstagmanageFull, rcpoprmanagettstagmanageFull,
gudguideFull,
gudguideconsultationRealtimemanageFull, gudguideconsultationRealtimemanageFull,
gudguideadminMonitoringmanageFull, gudguideadminMonitoringmanageFull,
gudguidehistoryFull, gudguidehistoryFull,
gudguidehistoryscrchmanageFull, gudguidehistoryscrchmanageFull,
gudguidehistoryoutboxmanageFull, gudguidehistoryoutboxmanageFull,
gudguidehistoryinboxmanageFull, gudguidehistoryinboxmanageFull,
gudguidecontentsFull,
gudguidecontentslistmanageFull, gudguidecontentslistmanageFull,
gudguidecontentsmanagermanageFull, gudguidecontentsmanagermanageFull,
gudguidecontentscontentsAssessmentmanageFull, gudguidecontentscontentsAssessmentmanageFull,
gudguidecontentscontentsAssessmentHistorymanageFull, gudguidecontentscontentsAssessmentHistorymanageFull,
gudguideaiFull,
gudguideainluIntentListmanageFull, gudguideainluIntentListmanageFull,
gudguideainluEntityListmanageFull, gudguideainluEntityListmanageFull,
gudguideainluLogmanageFull, gudguideainluLogmanageFull,
@ -377,7 +363,6 @@ public enum PolicyResource {
gudguideaisynonymListmanageFull, gudguideaisynonymListmanageFull,
gudguideainluRecommendedLearningmanageFull, gudguideainluRecommendedLearningmanageFull,
addraddrbotFull,
addraddrbotmanageAddrSectionmanageFull, addraddrbotmanageAddrSectionmanageFull,
addraddrbotmanageBuildNamemanageFull, addraddrbotmanageBuildNamemanageFull,
addraddrbotmanageSynonymmanageFull, addraddrbotmanageSynonymmanageFull,
@ -386,27 +371,22 @@ public enum PolicyResource {
addraddrbotmanageAddrProcessmanageFull, addraddrbotmanageAddrProcessmanageFull,
addraddrbotaddrRealtimeListmanageFull, addraddrbotaddrRealtimeListmanageFull,
botcomFull,
botcommanageMentmanageFull, botcommanageMentmanageFull,
botcommanageFull,
botcommanagemanageGreetMentmanageFull, botcommanagemanageGreetMentmanageFull,
botcommanagemanageHolidaymanageFull, botcommanagemanageHolidaymanageFull,
botcommanagemanageNaturalmanageFull, botcommanagemanageNaturalmanageFull,
rcpv1Full,
rcpv1receiptListmanageFull, rcpv1receiptListmanageFull,
rcpv1receiptRealtimeListmanageFull, rcpv1receiptRealtimeListmanageFull,
rcpv1receiptOutRealtimeListmanageFull, rcpv1receiptOutRealtimeListmanageFull,
rcpv1rcpReportmanageFull, rcpv1rcpReportmanageFull,
rcpv1rcpTimeReportmanageFull, rcpv1rcpTimeReportmanageFull,
vdoFull,
vdoincomingManageCategorymanageFull, vdoincomingManageCategorymanageFull,
vdoincomingCounselingListmanageFull, vdoincomingCounselingListmanageFull,
vdoincomingCounselingHistorymanageFull, vdoincomingCounselingHistorymanageFull,
vdoincomingMvReportmanageFull, vdoincomingMvReportmanageFull,
botmoniFull,
botmoniaddrRealtimeListExpansionmanageFull, botmoniaddrRealtimeListExpansionmanageFull,
botmonireceiptRealtimeListExpansionmanageFull, botmonireceiptRealtimeListExpansionmanageFull,
botmoniguideRealtimeListExpansionmanageFull, botmoniguideRealtimeListExpansionmanageFull,

@ -22,7 +22,7 @@ public class TbCustPolicy {
@Column(name = "SERVICE_GROUP", nullable = false, length = 20) @Column(name = "SERVICE_GROUP", nullable = false, length = 20)
private String serviceGroup; private String serviceGroup;
@Id @Id
@Column(name = "POLICY_VAL", nullable = false, length = 50) @Column(name = "POLICY_VAL", nullable = false, length = 100)
private String policyVal; private String policyVal;
@Id @Id
@Column(name = "CUST_CODE", nullable = false, length = 20) @Column(name = "CUST_CODE", nullable = false, length = 20)

@ -63,6 +63,8 @@ public class TbServiceGrouop {
this.updateDate = updateDate; this.updateDate = updateDate;
} }
public TbServiceGrouop toUpdateMainService(SystemCustSaveSubReq dto, UserVo uv) { public TbServiceGrouop toUpdateMainService(SystemCustSaveSubReq dto, UserVo uv) {
if (dto.getAddServiceGroupName() != null && !dto.getAddServiceGroupName().equals("")) { if (dto.getAddServiceGroupName() != null && !dto.getAddServiceGroupName().equals("")) {
this.serviceGroupName = dto.getAddServiceGroupName(); this.serviceGroupName = dto.getAddServiceGroupName();

@ -26,7 +26,7 @@ public class TbServiceGroupPolicy {
@Column(name = "SERVICE_GROUP", nullable = false, length = 20) @Column(name = "SERVICE_GROUP", nullable = false, length = 20)
private String serviceGroup; private String serviceGroup;
@Id @Id
@Column(name = "POLICY_VAL", nullable = false, length = 50) @Column(name = "POLICY_VAL", nullable = false, length = 100)
private String policyVal; private String policyVal;
@Id @Id
@Column(name = "CUST_CODE", nullable = false, length = 20) @Column(name = "CUST_CODE", nullable = false, length = 20)

@ -112,6 +112,7 @@
$('#newCustUseYn').niceSelect('update'); $('#newCustUseYn').niceSelect('update');
var html = ''; var html = '';
result.responseJSON.addServiceAuthList.forEach(function (e, i) { result.responseJSON.addServiceAuthList.forEach(function (e, i) {
console.log(i);
var serviceGroup = e.addServiceGroup; var serviceGroup = e.addServiceGroup;
var serviceGroupName = e.addServiceGroupName; var serviceGroupName = e.addServiceGroupName;
var serviceGroupDesc = e.addServiceGroupDesc; var serviceGroupDesc = e.addServiceGroupDesc;
@ -142,7 +143,7 @@
+ ' <th class="tl">서비스그룹</th>' + ' <th class="tl">서비스그룹</th>'
+ ' <td>' + ' <td>'
+ ' <div class="ipt_box">' + ' <div class="ipt_box">'
+ ' <input type="text" id="addServiceGroupName' + serviceGroupName + '" value="' + serviceGroupName + '" name="" class="">' + ' <input type="text" id="addServiceGroupName' + i + '" value="' + serviceGroupName + '" name="" class="">'
+ ' </div>' + ' </div>'
+ ' </td>' + ' </td>'
+ '</tr>' + '</tr>'
@ -150,7 +151,7 @@
+ ' <th class="tl">서비스코드</th>' + ' <th class="tl">서비스코드</th>'
+ ' <td>' + ' <td>'
+ ' <div class="ipt_box">' + ' <div class="ipt_box">'
+ ' <input type="text" id="addServiceGroup' + serviceGroup + '" value="' + serviceGroup + '" name="" readonly class="">' + ' <input type="text" id="addServiceGroup' + i + '" value="' + serviceGroup + '" name="" readonly class="">'
+ ' </div>' + ' </div>'
+ ' </td>' + ' </td>'
+ '</tr>' + '</tr>'
@ -158,14 +159,14 @@
+ ' <th class="tl">시나리오코드</th>' + ' <th class="tl">시나리오코드</th>'
+ ' <td>' + ' <td>'
+ ' <div class="ipt_box">' + ' <div class="ipt_box">'
+ ' <input type="text" id="addOprMngCode' + oprMngCode + '" value="' + oprMngCode + '" name="" readonly class="">' + ' <input type="text" id="addOprMngCode' + i + '" value="' + oprMngCode + '" name="" readonly class="">'
+ ' </div>' + ' </div>'
+ ' </td>' + ' </td>'
+ '</tr>' + '</tr>'
+ ' <th class="tl">서비스그룹설명</th>' + ' <th class="tl">서비스그룹설명</th>'
+ ' <td>' + ' <td>'
+ ' <div class="ipt_box">' + ' <div class="ipt_box">'
+ ' <input type="text" id="addServiceGroupDesc' + serviceGroupDesc + '" value="' + serviceGroupDesc + '" name="" class="">' + ' <input type="text" id="addServiceGroupDesc' + i + '" value="' + serviceGroupDesc + '" name="" class="">'
+ ' </div>' + ' </div>'
+ ' </td>' + ' </td>'
+ '</tr>' + '</tr>'
@ -296,17 +297,22 @@
var addServiceAuthList = new Array(); var addServiceAuthList = new Array();
$(".tbl-card").children('li').each(function (i, e) { $(".tbl-card").children('li').each(function (i, e) {
console.log('get-----'+i);
var addServiceGroup = $(this).find("input:eq(1)").attr("id").replaceAll("addServiceGroup", ""); var addServiceGroup = $('#'+$(this).find("input:eq(1)").attr("id")).val();
console.log('addServiceGroup-----'+addServiceGroup);
var addServiceAuth = {}; var addServiceAuth = {};
// var addServiceGroupName = $(this).find("input:eq(0)").attr("id").replaceAll("addServiceGroupName", ""); // var addServiceGroupName = $(this).find("input:eq(0)").attr("id").replaceAll("addServiceGroupName", "");
var addOprMngCode = $(this).find("input:eq(2)").attr("id").replaceAll("addOprMngCode", ""); var addOprMngCode = $(this).find("input:eq(2)").attr("id");
console.log('addOprMngCode-----'+addOprMngCode);
// var addServiceGroupDesc = $(this).find("input:eq(3)").attr("id").replaceAll("addServiceGroupDesc", ""); // var addServiceGroupDesc = $(this).find("input:eq(3)").attr("id").replaceAll("addServiceGroupDesc", "");
var addServiceGroupName = $('#' + $(this).find("input:eq(0)").attr("id")).val(); var addServiceGroupName = $('#' + $(this).find("input:eq(0)").attr("id")).val();
console.log('addServiceGroupName-----'+addServiceGroupName);
var addServiceGroupDesc = $('#' + $(this).find("input:eq(3)").attr("id")).val(); var addServiceGroupDesc = $('#' + $(this).find("input:eq(3)").attr("id")).val();
console.log('addServiceGroupDesc-----'+addServiceGroupDesc);
var addUseYn = $('#addUseYn' + addServiceGroup + ' option:selected').val(); var addUseYn = $('#addUseYn' + addServiceGroup + ' option:selected').val();
console.log('addUseYn-----'+addUseYn);
var authList = new Array(); var authList = new Array();
// console.log(JSON.stringify(authList)); // console.log(JSON.stringify(authList));
// console.log(JSON.stringify($(this))); // console.log(JSON.stringify($(this)));

Loading…
Cancel
Save