123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <?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="com.shanghaichengdi.dao.mapper" />
- <option name="javaMapperPath" value="$PROJECT_DIR$/src/main/java" />
- <option name="javaModelPackage" value="com.shanghaichengdi.dao.entity" />
- <option name="javaModelPath" value="$PROJECT_DIR$/src/main/java" />
- <option name="lastDatabaseCrudChooseModuleName" value="pollution-warning" />
- <option name="moduleNameToPackageAndPathMap">
- <map>
- <entry key="pollution-warning">
- <value>
- <UserPackageAndPathInfoByModule>
- <option name="javaMapperPackage" value="com.shanghaichengdi.dao.mapper" />
- <option name="javaMapperPath" value="$PROJECT_DIR$/src/main/java" />
- <option name="javaModelPacakge" value="com.shanghaichengdi.dao.entity" />
- <option name="javaModelPath" value="$PROJECT_DIR$/src/main/java" />
- <option name="javaServiceInterfacePath" value="$PROJECT_DIR$/src/main/java" />
- <option name="javaServicePath" value="$PROJECT_DIR$/src/main/java" />
- <option name="xmlPackage" value="mapper" />
- <option name="xmlPath" value="$PROJECT_DIR$/src/main/resources" />
- </UserPackageAndPathInfoByModule>
- </value>
- </entry>
- </map>
- </option>
- <option name="tableGenerateConfigs">
- <map>
- <entry key="GHJG_BUSSINESS:BOAT_WATER_POLLUTANT_ACCEPT_F">
- <value>
- <TableGenerateConfig>
- <option name="generatedKey" value="" />
- <option name="javaModelName" value="BoatWaterPollutantAcceptF" />
- <option name="moduleName" value="pollution-warning" />
- <option name="mybatisplusIdType" value="INPUT" />
- <option name="sequenceColumn" value="" />
- <option name="sequenceId" value="" />
- <option name="useActualColumnName" value="false" />
- </TableGenerateConfig>
- </value>
- </entry>
- <entry key="GHJG_BUSSINESS:BOAT_WATER_POLLUTANT_WARNING_S">
- <value>
- <TableGenerateConfig>
- <option name="generatedKey" value="" />
- <option name="javaModelName" value="BoatWaterPollutantWarningS" />
- <option name="moduleName" value="pollution-warning" />
- <option name="mybatisplusIdType" value="INPUT" />
- <option name="sequenceColumn" value="" />
- <option name="sequenceId" value="" />
- <option name="useActualColumnName" value="false" />
- </TableGenerateConfig>
- </value>
- </entry>
- <entry key="GHJG_DYNAMIC:BOAT_INPORT_AIS_NEW">
- <value>
- <TableGenerateConfig>
- <option name="generatedKey" value="" />
- <option name="javaModelName" value="BoatInportAisNew" />
- <option name="moduleName" value="pollution-warning" />
- <option name="mybatisplusIdType" value="INPUT" />
- <option name="sequenceColumn" value="" />
- <option name="sequenceId" value="" />
- <option name="useActualColumnName" value="false" />
- </TableGenerateConfig>
- </value>
- </entry>
- <entry key="NHDT:GPSINFO_HISTORY">
- <value>
- <TableGenerateConfig>
- <option name="generatedKey" value="" />
- <option name="javaModelName" value="GpsinfoHistory" />
- <option name="moduleName" value="pollution-warning" />
- <option name="mybatisplusIdType" value="INPUT" />
- <option name="sequenceColumn" value="" />
- <option name="sequenceId" value="" />
- <option name="useActualColumnName" value="false" />
- </TableGenerateConfig>
- </value>
- </entry>
- <entry key="NHDT:GPSINFO_REALTIME">
- <value>
- <TableGenerateConfig>
- <option name="generatedKey" value="" />
- <option name="javaModelName" value="GpsinfoRealtime" />
- <option name="moduleName" value="pollution-warning" />
- <option name="mybatisplusIdType" value="INPUT" />
- <option name="sequenceColumn" value="" />
- <option name="sequenceId" value="" />
- <option name="useActualColumnName" value="false" />
- </TableGenerateConfig>
- </value>
- </entry>
- </map>
- </option>
- <option name="xmlMapperPackage" value="mapper" />
- <option name="xmlMapperPath" value="$PROJECT_DIR$/src/main/resources" />
- </ProjectProfile>
- </option>
- </component>
- </project>
|