更新车辆管理sel

master
张海宁 2023-11-19 20:42:00 +08:00
parent 07825955bf
commit b2d0ea43b9
21 changed files with 604 additions and 24 deletions

View File

@ -0,0 +1,5 @@
{
"code": 500,
"msg": "\r\n### Error querying database. Cause: java.sql.SQLSyntaxErrorException: Unknown column 'car_frim_id' in 'field list'\r\n### The error may exist in com/dragon/car/server/mapper/CarMapper.java (best guess)\r\n### The error may involve defaultParameterMap\r\n### The error occurred while setting parameters\r\n### SQL: SELECT car_id,car_name,car_frim_id,car_frim_name FROM car_init\r\n### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'car_frim_id' in 'field list'\n; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Unknown column 'car_frim_id' in 'field list'",
"data": null
}

View File

@ -0,0 +1 @@
# domain path name value date

View File

@ -0,0 +1,18 @@
POST http://localhost:9201/car/carInit
Content-Length: 0
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.14 (Java/17.0.9)
Accept-Encoding: br,deflate,gzip,x-gzip
###
POST http://localhost:9201/car/carInit
Content-Length: 0
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.14 (Java/17.0.9)
Accept-Encoding: br,deflate,gzip,x-gzip
<> 2023-11-19T204017.200.json
###

View File

@ -1,9 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" /> <component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="FormatOnSaveOptions">
<option name="myRunOnSave" value="true" />
</component>
<component name="MarkdownSettingsMigration"> <component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" /> <option name="stateVersion" value="1" />
</component> </component>
@ -14,8 +10,5 @@
</list> </list>
</option> </option>
</component> </component>
<component name="OptimizeOnSaveOptions">
<option name="myRunOnSave" value="true" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK" /> <component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK" />
</project> </project>

View File

@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
</project>

View File

@ -3,9 +3,36 @@
<component name="AutoImportSettings"> <component name="AutoImportSettings">
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager">
<list default="true" id="3e6a1d04-1015-4d60-a8e0-dae3778bda22" name="更改" comment="初始化车辆管理">
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/dragon-car-common/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/dragon-car-common/pom.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/dragon-car-remote/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/dragon-car-remote/pom.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/dragon-car-service/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/dragon-car-service/pom.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="CompilerWorkspaceConfiguration"> <component name="CompilerWorkspaceConfiguration">
<option name="MAKE_PROJECT_ON_SAVE" value="true" /> <option name="MAKE_PROJECT_ON_SAVE" value="true" />
</component> </component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Class" />
</list>
</option>
</component>
<component name="FormatOnSaveOptions">
<option name="myRunOnSave" value="true" />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="MavenImportPreferences"> <component name="MavenImportPreferences">
<option name="generalSettings"> <option name="generalSettings">
<MavenGeneralSettings> <MavenGeneralSettings>
@ -16,6 +43,19 @@
</MavenGeneralSettings> </MavenGeneralSettings>
</option> </option>
</component> </component>
<component name="MavenRunner">
<option name="skipTests" value="true" />
</component>
<component name="OptimizeOnSaveOptions">
<option name="myRunOnSave" value="true" />
</component>
<component name="ProjectColorInfo">{
&quot;associatedIndex&quot;: 0
}</component>
<component name="ProjectId" id="2YOPVqwEdXw73Wwf9hlhKQS8iKI" />
<component name="ProjectLevelVcsManager">
<ConfirmationsSetting value="1" id="Add" />
</component>
<component name="ProjectViewState"> <component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" /> <option name="hideEmptyMiddlePackages" value="true" />
<option name="showExcludedFiles" value="false" /> <option name="showExcludedFiles" value="false" />
@ -24,21 +64,95 @@
<option name="sortByType" value="true" /> <option name="sortByType" value="true" />
<option name="sortKey" value="BY_TYPE" /> <option name="sortKey" value="BY_TYPE" />
</component> </component>
<component name="PropertiesComponent">{ <component name="PropertiesComponent"><![CDATA[{
&quot;keyToString&quot;: { "keyToString": {
&quot;last_opened_file_path&quot;: &quot;C:/Users/Administrator/Desktop/ZHN-DEV/FUCK&quot;, "RequestMappingsPanelOrder0": "0",
&quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;, "RequestMappingsPanelOrder1": "1",
&quot;rearrange.code.on.save&quot;: &quot;true&quot;, "RequestMappingsPanelWidth0": "75",
&quot;settings.editor.selected.configurable&quot;: &quot;MavenSettings&quot; "RequestMappingsPanelWidth1": "75",
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"WebServerToolWindowFactoryState": "false",
"git-widget-placeholder": "main",
"ignore.virus.scanning.warn.message": "true",
"last_opened_file_path": "C:/Users/Administrator/Desktop/ZHN-DEV/dragon-car/dragon-car-remote/src/main/resources",
"node.js.detected.package.tslint": "true",
"node.js.selected.package.eslint": "(autodetect)",
"node.js.selected.package.tslint": "(autodetect)",
"project.structure.last.edited": "模块",
"project.structure.proportion": "0.0",
"project.structure.side.proportion": "0.0",
"rearrange.code.on.save": "true",
"settings.editor.selected.configurable": "MavenSettings",
"vue.rearranger.settings.migration": "true"
} }
}</component> }]]></component>
<component name="ReactorSettings">
<option name="notificationShown" value="true" />
</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="C:\Users\Administrator\Desktop\ZHN-DEV\dragon-car\dragon-car-remote\src\main\resources" />
<recent name="C:\Users\Administrator\Desktop\ZHN-DEV\dragon-car\dragon-car-remote\src\main\java\com\dragon\car\remote" />
<recent name="C:\Users\Administrator\Desktop\ZHN-DEV\dragon-car\dragon-car-common\src\main\java" />
<recent name="C:\Users\Administrator\Desktop\ZHN-DEV\dragon-car\dragon-car-service\src\main\resources" />
<recent name="C:\Users\Administrator\Desktop\ZHN-DEV\dragon-car\dragon-car-service\src\main\java" />
</key>
<key name="CopyClassDialog.RECENTS_KEY">
<recent name="com.dragon.car.remote.factory" />
</key>
</component>
<component name="RunDashboard">
<option name="configurationTypes">
<set>
<option value="SpringBootApplicationConfigurationType" />
</set>
</option>
</component>
<component name="RunManager" selected="Spring Boot.DragonCarMain">
<configuration name="generated-requests | #3" type="HttpClient.HttpRequestRunConfigurationType" factoryName="HTTP Request" temporary="true" nameIsGenerated="true" path="$APPLICATION_CONFIG_DIR$/scratches/generated-requests.http" index="3" requestIdentifier="#3" runType="运行单个请求">
<method v="2" />
</configuration>
<configuration name="DragonCarMain" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
<module name="dragon-car-service" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.dragon.car.server.DragonCarMain" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<recent_temporary>
<list>
<item itemvalue="HTTP 请求.generated-requests | #3" />
</list>
</recent_temporary>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="应用程序级" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager"> <component name="TaskManager">
<task active="true" id="Default" summary="默认任务"> <task active="true" id="Default" summary="默认任务">
<changelist id="3e6a1d04-1015-4d60-a8e0-dae3778bda22" name="更改" comment="" />
<created>1698030187471</created> <created>1698030187471</created>
<option name="number" value="Default" /> <option name="number" value="Default" />
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
<updated>1698030187471</updated> <updated>1698030187471</updated>
<workItem from="1700393680247" duration="1750000" />
<workItem from="1700396125147" duration="1464000" />
</task> </task>
<task id="LOCAL-00001" summary="初始化车辆管理">
<option name="closed" value="true" />
<created>1700393774958</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1700393774958</updated>
</task>
<option name="localTasksCounter" value="2" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="3" />
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="初始化车辆管理" />
<option name="LAST_COMMIT_MESSAGE" value="初始化车辆管理" />
</component>
</project> </project>

View File

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>com.zhn</groupId> <groupId>com.zhn</groupId>
<artifactId>dragon-car</artifactId> <artifactId>dragon-car</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0.0</version>
</parent> </parent>
<artifactId>dragon-car-common</artifactId> <artifactId>dragon-car-common</artifactId>
@ -21,6 +21,5 @@
<groupId>com.dragon</groupId> <groupId>com.dragon</groupId>
<artifactId>dragon-common-core</artifactId> <artifactId>dragon-common-core</artifactId>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -0,0 +1,29 @@
package com.dragon.car.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.common.core.annotation.Excel;
import com.dragon.common.core.annotation.Excel.ColumnType;
import lombok.*;
/**
* @author : Administrator
* @description : -
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName ("car_init")
public class CarInit {
@Excel (name = "参数主键", cellType = ColumnType.NUMERIC)
//设置为主键自增
@TableId (type = IdType.AUTO)
private String carId;
private String carName;
private String carFrimId;
private String carFrimName;
}

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>com.zhn</groupId> <groupId>com.zhn</groupId>
<artifactId>dragon-car</artifactId> <artifactId>dragon-car</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0.0</version>
</parent> </parent>
<artifactId>dragon-car-remote</artifactId> <artifactId>dragon-car-remote</artifactId>
@ -16,5 +16,12 @@
<maven.compiler.target>17</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<dependencies>
<dependency>
<groupId>com.zhn</groupId>
<artifactId>dragon-car-common</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</project> </project>

View File

@ -0,0 +1,13 @@
package com.dragon.car.remote;
/**
*
*
* @author dragon
*/
/*
@FeignClient(contextId = "remoteLogService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteLogFallbackFactory.class)
*/
public interface RemoteFirmService {
}

View File

@ -0,0 +1,11 @@
package com.dragon.car.remote.factory;
import org.springframework.stereotype.Component;
/**
* @author : Administrator
* @description :
*/
@Component
public class RemoteFirmFallbackFactory {
}

View File

@ -0,0 +1,2 @@
com.dragon.system.remote.factory.RemoteFirmFallbackFactory

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>com.zhn</groupId> <groupId>com.zhn</groupId>
<artifactId>dragon-car</artifactId> <artifactId>dragon-car</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0.0</version>
</parent> </parent>
<artifactId>dragon-car-service</artifactId> <artifactId>dragon-car-service</artifactId>
@ -16,5 +16,108 @@
<maven.compiler.target>17</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<dependencies>
<!-- SpringCloud Alibaba Nacos -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- SpringCloud Alibaba Nacos Config -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!-- SpringCloud Alibaba Sentinel -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<!-- SpringBoot Actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Swagger UI -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${swagger.fox.version}</version>
</dependency>
<!-- Mysql Connector -->
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>
<!-- Dragon Common DataSource -->
<dependency>
<groupId>com.dragon</groupId>
<artifactId>dragon-common-datasource</artifactId>
</dependency>
<!-- Dragon Common DataScope -->
<dependency>
<groupId>com.dragon</groupId>
<artifactId>dragon-common-datascope</artifactId>
</dependency>
<!-- Dragon Common Log -->
<dependency>
<groupId>com.dragon</groupId>
<artifactId>dragon-common-log</artifactId>
</dependency>
<!-- Dragon Common Swagger -->
<dependency>
<groupId>com.dragon</groupId>
<artifactId>dragon-common-swagger</artifactId>
</dependency>
<dependency>
<groupId>com.dragon</groupId>
<artifactId>dragon-file-remote</artifactId>
</dependency>
<dependency>
<groupId>com.zhn</groupId>
<artifactId>dragon-car-common</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>16</source>
<target>16</target>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>

View File

@ -0,0 +1,23 @@
package com.dragon.car.server;
import com.dragon.common.security.annotation.EnableCustomConfig;
import com.dragon.common.security.annotation.EnableDragonFeignClients;
import com.dragon.common.swagger.annotation.EnableCustomSwagger2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
*
*
* @author dragon
*/
@EnableCustomConfig
@EnableCustomSwagger2
@EnableDragonFeignClients
@SpringBootApplication
public class DragonCarMain {
public static void main (String[] args) {
SpringApplication.run (DragonCarMain.class, args);
}
}

View File

@ -0,0 +1,35 @@
package com.dragon.car.server.controller;
import com.dragon.car.domain.CarInit;
import com.dragon.car.server.service.CarService;
import com.dragon.common.core.domain.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* @author : Administrator
* @description :
*/
@RestController
@RequestMapping ("/car")
public class CarController {
@Autowired
CarService carService;
/**
*
*
* @return List<CarInit>
*/
@PostMapping ("/carInit")
public Result<List<CarInit>> carInit () {
return carService.carInit ();
}
}

View File

@ -0,0 +1,13 @@
package com.dragon.car.server.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dragon.car.domain.CarInit;
import org.apache.ibatis.annotations.Mapper;
/**
* @author : Administrator
* @description :
*/
@Mapper
public interface CarMapper extends BaseMapper<CarInit> {
}

View File

@ -0,0 +1,19 @@
package com.dragon.car.server.service;
import com.dragon.car.domain.CarInit;
import com.dragon.common.core.domain.Result;
import java.util.List;
/**
* @author : Administrator
* @description :
*/
public interface CarService {
/**
*
*
* @return List<CarInit> -
*/
Result<List<CarInit>> carInit ();
}

View File

@ -0,0 +1,38 @@
package com.dragon.car.server.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.dragon.car.domain.CarInit;
import com.dragon.car.server.mapper.CarMapper;
import com.dragon.car.server.service.CarService;
import com.dragon.common.core.domain.Result;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* @author : Administrator
* @description :
*/
@Service
public class CarServiceImpl implements CarService {
@Resource
CarMapper carMapper;
/**
*
*
* @return List<CarInit> -
*/
@Override
public Result<List<CarInit>> carInit () {
LambdaQueryWrapper<CarInit> aclqw = new LambdaQueryWrapper<> ();
carMapper.selectList (aclqw);
return null;
}
}

View File

@ -0,0 +1,2 @@
Spring Boot Version: ${spring-boot.version}
Spring Application Name: ${spring.application.name}

View File

@ -0,0 +1,28 @@
# Tomcat
server:
port: 9201
# Spring
spring:
application:
# 应用名称
name: dragon-car
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 10.100.1.5:8848
config:
# 配置中心地址
server-addr: 10.100.1.5:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

View File

@ -10,7 +10,7 @@
</parent> </parent>
<groupId>com.zhn</groupId> <groupId>com.zhn</groupId>
<artifactId>dragon-car</artifactId> <artifactId>dragon-car</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0.0</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<modules> <modules>
<module>dragon-car-common</module> <module>dragon-car-common</module>
@ -23,7 +23,10 @@
<maven.compiler.target>17</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<distributionManagement> <description>
dragon-car车辆管理模块
</description>
<distributionManagement>
<repository> <repository>
<id>dragon-release</id> <id>dragon-release</id>
<name>dragon-releases</name> <name>dragon-releases</name>