Skip to content

Commit

Permalink
fix packagename 写死的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lltx authored Jul 16, 2024
1 parent ae3cf30 commit c0988a3
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 10 deletions.
12 changes: 9 additions & 3 deletions multiple/主子Contoller.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.common.log.annotation.SysLog;
#if($opensource)
import ${package}.common.core.util.R;
import ${package}.log.annotation.SysLog;
import com.pig4cloud.plugin.excel.annotation.ResponseExcel;
#else
import ${package}.common.core.util.R;
import ${package}.common.log.annotation.SysLog;
import ${package}.common.excel.annotation.ResponseExcel;
#end
import ${package}.${moduleName}.entity.${ClassName}Entity;
import ${package}.${moduleName}.entity.${ChildClassName}Entity;
import ${package}.${moduleName}.service.${ClassName}Service;
import org.springframework.security.access.prepost.PreAuthorize;
import com.pig4cloud.pigx.common.excel.annotation.ResponseExcel;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
#if($isSpringBoot3)
import org.springdoc.core.annotations.ParameterObject;
Expand Down
2 changes: 1 addition & 1 deletion multiple/主实体.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
#if($isTenant)
import com.pig4cloud.pigx.common.core.util.TenantTable;
import ${package}.common.core.util.TenantTable;
#end
#foreach($import in $importList)
import $import;
Expand Down
2 changes: 1 addition & 1 deletion multiple/子Mapper.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package ${package}.${moduleName}.mapper;

import com.pig4cloud.pigx.common.data.datascope.PigxBaseMapper;
import ${package}.common.data.datascope.PigxBaseMapper;
import ${package}.${moduleName}.entity.${ChildClassName}Entity;
import org.apache.ibatis.annotations.Mapper;

Expand Down
2 changes: 1 addition & 1 deletion multiple/子实体.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
#if($isChildTenant)
import com.pig4cloud.pigx.common.core.util.TenantTable;
import ${package}.common.core.util.TenantTable;
#end
import lombok.Data;
import lombok.EqualsAndHashCode;
Expand Down
12 changes: 9 additions & 3 deletions single/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.common.log.annotation.SysLog;
#if($opensource)
import ${package}.common.core.util.R;
import ${package}.log.annotation.SysLog;
import com.pig4cloud.plugin.excel.annotation.ResponseExcel;
#else
import ${package}.common.core.util.R;
import ${package}.common.log.annotation.SysLog;
import ${package}.common.excel.annotation.ResponseExcel;
#end
import ${package}.${moduleName}.entity.${ClassName}Entity;
import ${package}.${moduleName}.service.${ClassName}Service;
import org.springframework.security.access.prepost.PreAuthorize;
import com.pig4cloud.pigx.common.excel.annotation.ResponseExcel;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
#if($isSpringBoot3)
import org.springdoc.core.annotations.ParameterObject;
Expand Down
2 changes: 1 addition & 1 deletion single/实体.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
#if($isTenant)
import com.pig4cloud.pigx.common.core.util.TenantTable;
import ${package}.common.core.util.TenantTable;
#end
#foreach($import in $importList)
import $import;
Expand Down

0 comments on commit c0988a3

Please sign in to comment.