package com.ishop.merchant.service;
|
|
import com.ishop.model.po.EbProductDescription;
|
import com.walker.infrastructure.utils.StringUtils;
|
import com.walker.jdbc.service.BaseServiceImpl;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
@Service
|
public class ProductDescriptionServiceImpl extends BaseServiceImpl {
|
|
/**
|
*
|
* @param type
|
* @param productId
|
* @return
|
*/
|
public EbProductDescription queryProductDescription(int type, long productId){
|
EbProductDescription attr = new EbProductDescription();
|
attr.setType(type);
|
attr.setProductId(productId);
|
List<EbProductDescription> list = this.select(attr);
|
if(StringUtils.isEmptyList(list)){
|
return null;
|
}
|
return list.get(0);
|
}
|
}
|