diff --git a/snowy-base/snowy-gen/src/main/resources/template/ServiceImpl.java.vm b/snowy-base/snowy-gen/src/main/resources/template/ServiceImpl.java.vm index 464cbe26..a41a16ec 100644 --- a/snowy-base/snowy-gen/src/main/resources/template/ServiceImpl.java.vm +++ b/snowy-base/snowy-gen/src/main/resources/template/ServiceImpl.java.vm @@ -22,30 +22,29 @@ Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意 5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/xiaonuobase/snowy 6.若您的项目无法满足以上几点,可申请商业授权,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip */ -package ${packageName}import cn.hutool.core.bean.BeanUtil; +package ${packageName}.${modularName}.${busName}.service.impl; + +import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.util.ObjectUtil; +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import vip.xiaonuo.core.consts.CommonConstant; +import vip.xiaonuo.core.enums.CommonStatusEnum; import vip.xiaonuo.core.exception.ServiceException; import vip.xiaonuo.core.factory.PageFactory; import vip.xiaonuo.core.pojo.page.PageResult; -import vip.xiaonuo.core.util.PoiUtil; - +import ${packageName}.${modularName}.${busName}.entity.${ClassName}; +import ${packageName}.${modularName}.${busName}.enums.${ClassName}ExceptionEnum; +import ${packageName}.${modularName}.${busName}.mapper.${ClassName}Mapper; +import ${packageName}.${modularName}.${busName}.param.${ClassName}Param; +import ${packageName}.${modularName}.${busName}.service.${ClassName}Service; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import javax.annotation.Resource; import java.util.List; -.${modularName}.${busName}.service.impl; - ${packageName} - .${modularName}.${busName}.entity.${ClassName}; - ${packageName} - .${modularName}.${busName}.enums.${ClassName}ExceptionEnum; - ${packageName} - .${modularName}.${busName}.mapper.${ClassName}Mapper; - ${packageName} - .${modularName}.${busName}.param.${ClassName}Param; - ${packageName} - .${modularName}.${busName}.service.${ClassName}Service; - /** * ${functionName}service接口实现类 *