|
|
@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* https://www.mall4j.com/
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* 未经允许,不可做商业用途!
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* 版权所有,侵权必究!
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 定义包名,表示这个类属于com.yami.shop.service.impl包
|
|
|
|
|
|
|
|
package com.yami.shop.service.impl;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 导入MyBatis Plus框架中的ServiceImpl类,提供基础的CRUD操作实现
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
|
|
|
|
// 导入Spring框架的Autowired注解,用于自动注入依赖的组件
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
|
|
// 导入Spring框架的Service注解,用于声明这是一个服务组件
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 导入项目中定义的Delivery实体类
|
|
|
|
|
|
|
|
import com.yami.shop.bean.model.Delivery;
|
|
|
|
|
|
|
|
// 导入与Delivery实体类相关的Mapper接口
|
|
|
|
|
|
|
|
import com.yami.shop.dao.DeliveryMapper;
|
|
|
|
|
|
|
|
// 导入定义的服务接口
|
|
|
|
|
|
|
|
import com.yami.shop.service.DeliveryService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* DeliveryServiceImpl类的文档注释
|
|
|
|
|
|
|
|
* 这个类是DeliveryService接口的实现类,提供了与Delivery实体类相关的业务操作实现
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @author lgh on 2018/11/26 表示这个类是由lgh在2018年11月26日创建的
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
// 使用Spring的Service注解标注这个类为一个服务组件,这样Spring容器可以自动扫描并管理这个类的实例
|
|
|
|
|
|
|
|
@Service
|
|
|
|
|
|
|
|
public class DeliveryServiceImpl extends ServiceImpl<DeliveryMapper, Delivery> implements DeliveryService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 使用Autowired注解自动注入DeliveryMapper的实例
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private DeliveryMapper deliveryMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 这里可以添加额外的业务逻辑方法,或者覆盖ServiceImpl中的方法以提供定制化的实现
|
|
|
|
|
|
|
|
}
|