企业列表出来了
parent
936c8192e7
commit
72932670af
|
@ -4,7 +4,10 @@
|
|||
<option name="autoReloadType" value="SELECTIVE" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="72651396-d9d2-4022-b080-e21d75d1bedb" name="更改" comment="企业列表出来了" />
|
||||
<list default="true" id="72651396-d9d2-4022-b080-e21d75d1bedb" name="更改" comment="企业列表出来了">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/cloud-market-server/src/main/java/com/muyu/market/controller/SysFirminfoController.java" beforeDir="false" afterPath="$PROJECT_DIR$/cloud-market-server/src/main/java/com/muyu/market/controller/SysFirminfoController.java" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
|
@ -58,25 +61,25 @@
|
|||
<component name="ProjectViewState">
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent"><![CDATA[{
|
||||
"keyToString": {
|
||||
"ApiPost:METDOD_SEND_RECORD:cloud-market-server": "{\"/apitype/standing\":[{\"url\":\"http://localhost:10008/apitype/standing\",\"header\":[{\"value\":\"\",\"type\":\"Text\",\"is_checked\":1,\"not_null\":\"1\",\"field_type\":\"string\"}],\"query\":[{\"value\":\"\",\"type\":\"Text\",\"is_checked\":1,\"not_null\":\"1\",\"field_type\":\"string\"}],\"rest\":[{\"value\":\"\",\"type\":\"Text\",\"is_checked\":1,\"not_null\":\"1\",\"field_type\":\"string\"}],\"requestBody\":\"{\\n \\\"idcard\\\": \\\"330921200301116511\\\",\\n \\\"realname\\\": \\\"王意航\\\"\\n}\",\"responseBody\":\"发送失败: http://localhost:10008/apitype/standing\\n\\nConnectException: Connection refused: connect\",\"selectedItem\":\"POST\",\"time\":{\"date\":{\"year\":2024,\"month\":9,\"day\":8},\"time\":{\"hour\":21,\"minute\":8,\"second\":37,\"nano\":929385300}}}]}",
|
||||
"RequestMappingsPanelOrder0": "0",
|
||||
"RequestMappingsPanelOrder1": "1",
|
||||
"RequestMappingsPanelWidth0": "75",
|
||||
"RequestMappingsPanelWidth1": "75",
|
||||
"WebServerToolWindowFactoryState": "false",
|
||||
"last_opened_file_path": "E:/桌面/cloud-market/cloud-market-server/src/main/java/com/muyu/market/controller",
|
||||
"node.js.detected.package.eslint": "true",
|
||||
"node.js.detected.package.tslint": "true",
|
||||
"node.js.selected.package.eslint": "(autodetect)",
|
||||
"node.js.selected.package.tslint": "(autodetect)",
|
||||
"nodejs_package_manager_path": "npm",
|
||||
"settings.editor.selected.configurable": "MavenSettings",
|
||||
"spring.configuration.checksum": "647853898192e405c7aff8ecac5564ea",
|
||||
"vue.rearranger.settings.migration": "true"
|
||||
<component name="PropertiesComponent">{
|
||||
"keyToString": {
|
||||
"ApiPost:METDOD_SEND_RECORD:cloud-market-server": "{\"/apitype/standing\":[{\"url\":\"http://localhost:10008/apitype/standing\",\"header\":[{\"value\":\"\",\"type\":\"Text\",\"is_checked\":1,\"not_null\":\"1\",\"field_type\":\"string\"}],\"query\":[{\"value\":\"\",\"type\":\"Text\",\"is_checked\":1,\"not_null\":\"1\",\"field_type\":\"string\"}],\"rest\":[{\"value\":\"\",\"type\":\"Text\",\"is_checked\":1,\"not_null\":\"1\",\"field_type\":\"string\"}],\"requestBody\":\"{\\n \\\"idcard\\\": \\\"330921200301116511\\\",\\n \\\"realname\\\": \\\"王意航\\\"\\n}\",\"responseBody\":\"发送失败: http://localhost:10008/apitype/standing\\n\\nConnectException: Connection refused: connect\",\"selectedItem\":\"POST\",\"time\":{\"date\":{\"year\":2024,\"month\":9,\"day\":8},\"time\":{\"hour\":21,\"minute\":8,\"second\":37,\"nano\":929385300}}}]}",
|
||||
"RequestMappingsPanelOrder0": "0",
|
||||
"RequestMappingsPanelOrder1": "1",
|
||||
"RequestMappingsPanelWidth0": "75",
|
||||
"RequestMappingsPanelWidth1": "75",
|
||||
"WebServerToolWindowFactoryState": "false",
|
||||
"last_opened_file_path": "E:/桌面/cloud-market/cloud-market-server/src/main/java/com/muyu/market/controller",
|
||||
"node.js.detected.package.eslint": "true",
|
||||
"node.js.detected.package.tslint": "true",
|
||||
"node.js.selected.package.eslint": "(autodetect)",
|
||||
"node.js.selected.package.tslint": "(autodetect)",
|
||||
"nodejs_package_manager_path": "npm",
|
||||
"settings.editor.selected.configurable": "MavenSettings",
|
||||
"spring.configuration.checksum": "647853898192e405c7aff8ecac5564ea",
|
||||
"vue.rearranger.settings.migration": "true"
|
||||
}
|
||||
}]]></component>
|
||||
}</component>
|
||||
<component name="ReactorSettings">
|
||||
<option name="notificationShown" value="true" />
|
||||
</component>
|
||||
|
@ -187,13 +190,8 @@
|
|||
<workItem from="1725794176067" duration="10803000" />
|
||||
<workItem from="1725842458564" duration="1083000" />
|
||||
<workItem from="1725843691730" duration="13942000" />
|
||||
</task>
|
||||
<task id="LOCAL-00034" summary="企业列表出来了">
|
||||
<created>1725537357138</created>
|
||||
<option name="number" value="00034" />
|
||||
<option name="presentableId" value="LOCAL-00034" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1725537357138</updated>
|
||||
<workItem from="1725886318916" duration="1604000" />
|
||||
<workItem from="1725891311546" duration="707000" />
|
||||
</task>
|
||||
<task id="LOCAL-00035" summary="企业列表出来了">
|
||||
<created>1725537729463</created>
|
||||
|
@ -531,7 +529,14 @@
|
|||
<option name="project" value="LOCAL" />
|
||||
<updated>1725875021671</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="83" />
|
||||
<task id="LOCAL-00083" summary="企业列表出来了">
|
||||
<created>1725887015623</created>
|
||||
<option name="number" value="00083" />
|
||||
<option name="presentableId" value="LOCAL-00083" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1725887015623</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="84" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
|
|
|
@ -18,7 +18,12 @@ import org.springframework.web.bind.annotation.*;
|
|||
|
||||
import javax.annotation.Resource;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.Instant;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.ZoneId;
|
||||
import java.time.ZonedDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
@ -74,6 +79,20 @@ public class SysFirminfoController extends BaseController
|
|||
if (sysFirminfoService.checkIdUnique(sysFirminfo)) {
|
||||
return error("新增 firmList '" + sysFirminfo + "'失败,firmList已存在");
|
||||
}
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
|
||||
// 假设我们使用系统默认时区
|
||||
ZoneId zoneId = ZoneId.systemDefault();
|
||||
|
||||
// 将LocalDateTime转换为ZonedDateTime(添加了时区信息)
|
||||
ZonedDateTime zdt = now.atZone(zoneId);
|
||||
|
||||
// 将ZonedDateTime转换为Instant(UTC时间线上的点)
|
||||
Instant instant = zdt.toInstant();
|
||||
|
||||
// 将Instant转换为Date
|
||||
Date date = Date.from(instant);
|
||||
sysFirminfo.setFirmTime(date);
|
||||
sysFirminfo.setAdminsid(adminsid);
|
||||
return toAjax(sysFirminfoService.save(sysFirminfo));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue