|
@@ -498,47 +498,7 @@ public class TsaDisplayService {
|
|
|
* @since 2021. 2. 23
|
|
* @since 2021. 2. 23
|
|
|
*/
|
|
*/
|
|
|
public Collection<Contents> getContentsPreviewList(Contents contents) {
|
|
public Collection<Contents> getContentsPreviewList(Contents contents) {
|
|
|
- if("STAB001".equals(contents.getContentsLoc())){
|
|
|
|
|
- Collection<Contents> contentsList = displayDao.getContentsPreviewList(contents);
|
|
|
|
|
- for(Contents contentsInfo : contentsList){
|
|
|
|
|
- if("B".equals(contentsInfo.getContentsType())){
|
|
|
|
|
- log.info("contentsInfo.getStrVar2()::{}",contentsInfo.getStrVar2().substring(1,contentsInfo.getStrVar2().length()));
|
|
|
|
|
- log.info("contentsInfo.getStrVar3()::{}",contentsInfo.getStrVar3());
|
|
|
|
|
- log.info("contentsInfo.getStrVar4()::{}",contentsInfo.getStrVar4());
|
|
|
|
|
- //String[] temp1Arr = contentsInfo.getStrVar2().split(",");
|
|
|
|
|
- String brand1 = contentsInfo.getStrVar2().substring(1,contentsInfo.getStrVar2().length());
|
|
|
|
|
- String[] brand1Split = brand1.split(",");
|
|
|
|
|
-
|
|
|
|
|
- log.info("brand1Split::::",brand1Split);
|
|
|
|
|
- /*for(int i in brand1Split){
|
|
|
|
|
- brand1Arr.push(brand1Split[i]);
|
|
|
|
|
- }*/
|
|
|
|
|
- contentsInfo.setBrandGroup1Arr(contentsInfo.getStrVar2().split(","));
|
|
|
|
|
-
|
|
|
|
|
- //log.info("temp1Arr:::{}",temp1Arr);
|
|
|
|
|
- /*for (String temp1 : temp1Arr) {
|
|
|
|
|
- MenuRole menuRole = new MenuRole();
|
|
|
|
|
- menuRole.setRoleCd(roleCd);
|
|
|
|
|
- menuRole.setMenuId(menu.getMenuId());
|
|
|
|
|
- menuRole.setRegNo(TsaSession.getInfo().getUserNo());
|
|
|
|
|
- menuRole.setUpdNo(TsaSession.getInfo().getUserNo());
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- String[] temp1Arr = contentsInfo.getStrVar2().split(",");
|
|
|
|
|
- //contentsInfo.setBrandGroup1Arr(temp1Arr);
|
|
|
|
|
- String[] temp2Arr = contentsInfo.getStrVar3().split(",");
|
|
|
|
|
- //contentsInfo.setBrandGroup2Arr(temp2Arr);
|
|
|
|
|
- String[] temp3Arr = contentsInfo.getStrVar4().split(",");*/
|
|
|
|
|
- //contentsInfo.setBrandGroup3Arr(temp3Arr);
|
|
|
|
|
- }
|
|
|
|
|
- log.info("getBrandGroup1Arr::{}",contentsInfo.getBrandGroup1Arr());
|
|
|
|
|
- log.info("getBrandGrou2Arr::{}",contentsInfo.getBrandGroup2Arr());
|
|
|
|
|
- log.info("getBrandGroup3Arr::{}",contentsInfo.getBrandGroup3Arr());
|
|
|
|
|
- }
|
|
|
|
|
- return null;
|
|
|
|
|
- }else{
|
|
|
|
|
- return displayDao.getContentsPreviewList(contents);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ return displayDao.getContentsPreviewList(contents);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|