fix : 관리자 구독서비스 등록(복사)
This commit is contained in:
@@ -26,5 +26,8 @@ public interface BOSubsvcMapper {
|
||||
int deleteBOMngrSubsvc(BOSubsvcVO vo);
|
||||
/** 관리자 구독서비스 수정*/
|
||||
int updateBOMngrSubsvc(BOSubsvcVO vo);
|
||||
|
||||
/** 관리자 구둑서비스 등록 */
|
||||
void insertBOMngrSubsvc(BOSubsvcVO vo);
|
||||
/** 관리자 구독서비스 명 중복체크*/
|
||||
int selectBOMngrSubsvcNmDupCheck(BOSubsvcVO vo);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.wb.domainserver.domain.gcone.goods.goodsinfo.vo.BOGoodsInfoVO;
|
||||
import com.wb.domainserver.domain.gcone.goods.subsvc.mapper.BOSubsvcMapper;
|
||||
import com.wb.domainserver.domain.gcone.goods.subsvc.vo.BOSubsvcVO;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
import io.micrometer.common.util.StringUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -94,6 +95,19 @@ public class BOSubsvcService {
|
||||
return message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 관리자 구독서비스명 중복체크
|
||||
* */
|
||||
public String selectBOMngrSubsvcNmDupCheck(BOSubsvcVO vo) {
|
||||
String message = "success";
|
||||
int result = mapper.selectBOMngrSubsvcNmDupCheck(vo);
|
||||
if (result > 0) {
|
||||
message = "fail";
|
||||
}
|
||||
return message;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 관리자 구독서비스 수정
|
||||
* */
|
||||
@@ -106,5 +120,21 @@ public class BOSubsvcService {
|
||||
return message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 관리자 구독서비스 등록
|
||||
* */
|
||||
public String insertBOMngrSubsvc(BOSubsvcVO vo) {
|
||||
String message = "success";
|
||||
try{
|
||||
mapper.insertBOMngrSubsvc(vo);
|
||||
if(StringUtils.isEmpty(vo.getSubsvcInnb())){
|
||||
message = "fail";
|
||||
}
|
||||
}catch(Exception e){
|
||||
log.error(e.getMessage());
|
||||
message = "fail";
|
||||
}
|
||||
return message;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -22,6 +22,8 @@ private static final long serialVersionUID = 1L;
|
||||
private String subPd;
|
||||
/** 구독서비스기수 */
|
||||
private String subsvcGnr;
|
||||
/** 구독서비스명 다음기수 */
|
||||
private String subsvcNextGnr;
|
||||
/** 구독서비스기수명 */
|
||||
private String subsvcGnrNm;
|
||||
/** 배송횟수 */
|
||||
|
||||
Reference in New Issue
Block a user