<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="MyBatisCodeHelperDatasource"> <option name="projectProfile"> <ProjectProfile> <option name="controllerTemplateString" value=" #* @vtlvariable name="tableName" type="java.lang.String" *# #* @vtlvariable name="entityPackageName" type="java.lang.String" *# #* @vtlvariable name="entityClassName" type="java.lang.String" *# #* @vtlvariable name="servicePackageName" type="java.lang.String" *# #* @vtlvariable name="serviceInterfacePackage" type="java.lang.String" *# #* @vtlvariable name="serviceClassName" type="java.lang.String" *# #* @vtlvariable name="serviceInterfaceClassName" type="java.lang.String" *# #* @vtlvariable name="mapperPackageName" type="java.lang.String" *# #* @vtlvariable name="mapperClassName" type="java.lang.String" *# #* @vtlvariable name="controllerPackage" type="java.lang.String" *# #* @vtlvariable name="tableRemark" type="java.lang.String" *# #* @vtlvariable name="myDate" type="java.util.Date" *# #* @vtlvariable name="simpleDateFormat" type="java.text.SimpleDateFormat" *# package $!{controllerPackage}; import $!{entityPackageName}.$!{entityClassName}; ###set($realServiceName = $!{serviceClassName}+'Impl') import $!{servicePackageName}.$!{serviceClassName}; import org.springframework.web.bind.annotation.*; #set($serviceFirstLower = $!{serviceClassName.substring(0,1).toLowerCase()}+$!{serviceClassName.substring(1,$!{serviceClassName.length()})}) import org.springframework.beans.factory.annotation.Autowired; /** * $!{tableRemark}($!{tableName})表控制层 * * @author xxxxx */ @RestController @RequestMapping("/$!{tableName}") public class $!{entityClassName}Controller { /** * 服务对象 */ @Autowired private $!{serviceClassName} $!{serviceFirstLower}; /** * 通过主键查询单条数据 * * @param id 主键 * @return 单条数据 */ @GetMapping("selectOne") public $!{entityClassName} selectOne(Integer id) { return $!{serviceFirstLower}.selectByPrimaryKey(id); } }" /> <option name="javaMapperPackage" value="edu.travel.tenant.mapper" /> <option name="javaMapperPath" value="$PROJECT_DIR$/edu-travel-remote/edu-travel-remote-tenant/src/main/java" /> <option name="javaModelPackage" value="edu.travel.entity" /> <option name="javaModelPath" value="$PROJECT_DIR$/edu-travel-model/edu-travel-model-tenant/src/main/java" /> <option name="lastDatabaseCrudChooseModuleName" value="edu-travel-gateway" /> <option name="lombokAllArgConstructor" value="true" /> <option name="lombokDataAnnotation" value="true" /> <option name="lombokNoArgsConstructor" value="true" /> <option name="moduleNameToPackageAndPathMap"> <map> <entry key="edu-travel-gateway"> <value> <UserPackageAndPathInfoByModule> <option name="javaMapperPackage" value="edu.travel.tenant.mapper" /> <option name="javaMapperPath" value="$PROJECT_DIR$/edu-travel-remote/edu-travel-remote-tenant/src/main/java" /> <option name="javaModelPacakge" value="edu.travel.entity" /> <option name="javaModelPath" value="$PROJECT_DIR$/edu-travel-model/edu-travel-model-tenant/src/main/java" /> <option name="javaServiceInterfacePath" value="$PROJECT_DIR$/edu-travel-gateway/src/main/java" /> <option name="javaServicePath" value="$PROJECT_DIR$/edu-travel-gateway/src/main/java" /> <option name="xmlPackage" value="mapper" /> <option name="xmlPath" value="$PROJECT_DIR$/edu-travel-mapper/edu-travel-mapper-tenant/src/main/resources" /> </UserPackageAndPathInfoByModule> </value> </entry> </map> </option> <option name="mybatisPlusIdType" value="ASSIGN_ID" /> <option name="tableGenerateConfigs"> <map> <entry key="edu:edu_tenant"> <value> <TableGenerateConfig> <option name="generatedKey" value="" /> <option name="javaModelName" value="EduTenant" /> <option name="moduleName" value="edu-travel-gateway" /> <option name="mybatisplusIdType" value="ASSIGN_ID" /> <option name="sequenceColumn" value="" /> <option name="sequenceId" value="" /> <option name="useActualColumnName" value="false" /> </TableGenerateConfig> </value> </entry> </map> </option> <option name="userMybatisPlus" value="true" /> <option name="xmlMapperPackage" value="mapper" /> <option name="xmlMapperPath" value="$PROJECT_DIR$/edu-travel-mapper/edu-travel-mapper-tenant/src/main/resources" /> </ProjectProfile> </option> </component> </project>