shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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);
    }
}