8 changed files with 99 additions and 15 deletions
@ -0,0 +1,15 @@ |
|||||
|
package cn.chjyj.szwh.service; |
||||
|
|
||||
|
import cn.chjyj.szwh.bean.GoodsDetail; |
||||
|
|
||||
|
/** |
||||
|
* 商品详情 |
||||
|
*/ |
||||
|
public interface GoodsDetailService { |
||||
|
/** |
||||
|
* 商品详情 |
||||
|
* @param goodDetailId |
||||
|
* @return |
||||
|
*/ |
||||
|
GoodsDetail getGoodsDetailBygid(Integer goodDetailId); |
||||
|
} |
||||
@ -0,0 +1,18 @@ |
|||||
|
package cn.chjyj.szwh.service.impl; |
||||
|
|
||||
|
import cn.chjyj.szwh.bean.GoodsDetail; |
||||
|
import cn.chjyj.szwh.mapper.GoodsDetailMapper; |
||||
|
import cn.chjyj.szwh.service.GoodsDetailService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
@Service |
||||
|
public class GoodsDetailServiceImpl implements GoodsDetailService { |
||||
|
@Autowired |
||||
|
private GoodsDetailMapper goodsDetailMapper; |
||||
|
|
||||
|
@Override |
||||
|
public GoodsDetail getGoodsDetailBygid(Integer goodDetailId) { |
||||
|
return goodsDetailMapper.getGoodsDetailBygid(goodDetailId); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue