@ -3,6 +3,8 @@ package com.palnet.biz.api.comn.sunriseset.service;
import com.palnet.biz.api.comn.sunriseset.model.ComnSunrisesetCoordRq ;
import com.palnet.biz.api.comn.sunriseset.model.ComnSunrisesetCoordRq ;
import com.palnet.biz.api.comn.sunriseset.model.ComnSunrisesetRq ;
import com.palnet.biz.api.comn.sunriseset.model.ComnSunrisesetRq ;
import com.palnet.biz.api.comn.sunriseset.model.ComnSunrisesetRs ;
import com.palnet.biz.api.comn.sunriseset.model.ComnSunrisesetRs ;
import com.palnet.biz.jpa.entity.ComRiseSetBas ;
import com.palnet.biz.jpa.repository.com.ComRiseSetBasRepository ;
import com.palnet.biz.jpa.repository.com.ComRiseSetQueryRepository ;
import com.palnet.biz.jpa.repository.com.ComRiseSetQueryRepository ;
import com.palnet.comn.code.ErrorCode ;
import com.palnet.comn.code.ErrorCode ;
import com.palnet.comn.exception.CustomException ;
import com.palnet.comn.exception.CustomException ;
@ -28,6 +30,7 @@ import java.util.List;
@Service
@Service
public class ComnSunrisesetService {
public class ComnSunrisesetService {
private final ComRiseSetBasRepository comRiseSetBasRepository ;
private final ComRiseSetQueryRepository comRiseSetQueryRepository ;
private final ComRiseSetQueryRepository comRiseSetQueryRepository ;
@ -37,8 +40,9 @@ public class ComnSunrisesetService {
* @return
* @return
* /
* /
public List < ComnSunrisesetRs > getSunRiseSetList ( ComnSunrisesetRq rq ) {
public List < ComnSunrisesetRs > getSunRiseSetList ( ComnSunrisesetRq rq ) {
return comRiseSetQueryRepository . findAllBySearchTransform ( rq ) ;
List < ComRiseSetBas > list = comRiseSetBasRepository . findByLocStDateAndLocEndDateNearLocation ( rq . getLocStDate ( ) , rq . getLocEndDate ( ) , rq . getLocation ( ) ) ;
return ComnSunrisesetMapper . MAPPER . toRs ( list ) ;
}
}
/ * *
/ * *