企业列表出来了

master
法外狂徒张三 2024-09-09 21:03:34 +08:00
parent 0cb5e490dc
commit 936c8192e7
2 changed files with 130 additions and 110 deletions

View File

@ -4,9 +4,7 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <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" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -60,25 +58,25 @@
<component name="ProjectViewState"> <component name="ProjectViewState">
<option name="showLibraryContents" value="true" /> <option name="showLibraryContents" value="true" />
</component> </component>
<component name="PropertiesComponent">{ <component name="PropertiesComponent"><![CDATA[{
&quot;keyToString&quot;: { "keyToString": {
&quot;ApiPost:METDOD_SEND_RECORD:cloud-market-server&quot;: &quot;{\&quot;/apitype/standing\&quot;:[{\&quot;url\&quot;:\&quot;http://localhost:10008/apitype/standing\&quot;,\&quot;header\&quot;:[{\&quot;value\&quot;:\&quot;\&quot;,\&quot;type\&quot;:\&quot;Text\&quot;,\&quot;is_checked\&quot;:1,\&quot;not_null\&quot;:\&quot;1\&quot;,\&quot;field_type\&quot;:\&quot;string\&quot;}],\&quot;query\&quot;:[{\&quot;value\&quot;:\&quot;\&quot;,\&quot;type\&quot;:\&quot;Text\&quot;,\&quot;is_checked\&quot;:1,\&quot;not_null\&quot;:\&quot;1\&quot;,\&quot;field_type\&quot;:\&quot;string\&quot;}],\&quot;rest\&quot;:[{\&quot;value\&quot;:\&quot;\&quot;,\&quot;type\&quot;:\&quot;Text\&quot;,\&quot;is_checked\&quot;:1,\&quot;not_null\&quot;:\&quot;1\&quot;,\&quot;field_type\&quot;:\&quot;string\&quot;}],\&quot;requestBody\&quot;:\&quot;{\\n \\\&quot;idcard\\\&quot;: \\\&quot;330921200301116511\\\&quot;,\\n \\\&quot;realname\\\&quot;: \\\&quot;王意航\\\&quot;\\n}\&quot;,\&quot;responseBody\&quot;:\&quot;发送失败: http://localhost:10008/apitype/standing\\n\\nConnectException: Connection refused: connect\&quot;,\&quot;selectedItem\&quot;:\&quot;POST\&quot;,\&quot;time\&quot;:{\&quot;date\&quot;:{\&quot;year\&quot;:2024,\&quot;month\&quot;:9,\&quot;day\&quot;:8},\&quot;time\&quot;:{\&quot;hour\&quot;:21,\&quot;minute\&quot;:8,\&quot;second\&quot;:37,\&quot;nano\&quot;:929385300}}}]}&quot;, "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}}}]}",
&quot;RequestMappingsPanelOrder0&quot;: &quot;0&quot;, "RequestMappingsPanelOrder0": "0",
&quot;RequestMappingsPanelOrder1&quot;: &quot;1&quot;, "RequestMappingsPanelOrder1": "1",
&quot;RequestMappingsPanelWidth0&quot;: &quot;75&quot;, "RequestMappingsPanelWidth0": "75",
&quot;RequestMappingsPanelWidth1&quot;: &quot;75&quot;, "RequestMappingsPanelWidth1": "75",
&quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;, "WebServerToolWindowFactoryState": "false",
&quot;last_opened_file_path&quot;: &quot;E:/桌面/cloud-market/cloud-market-server/src/main/java/com/muyu/market/controller&quot;, "last_opened_file_path": "E:/桌面/cloud-market/cloud-market-server/src/main/java/com/muyu/market/controller",
&quot;node.js.detected.package.eslint&quot;: &quot;true&quot;, "node.js.detected.package.eslint": "true",
&quot;node.js.detected.package.tslint&quot;: &quot;true&quot;, "node.js.detected.package.tslint": "true",
&quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;, "node.js.selected.package.eslint": "(autodetect)",
&quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;, "node.js.selected.package.tslint": "(autodetect)",
&quot;nodejs_package_manager_path&quot;: &quot;npm&quot;, "nodejs_package_manager_path": "npm",
&quot;settings.editor.selected.configurable&quot;: &quot;reference.settings.project.maven.repository.indices&quot;, "settings.editor.selected.configurable": "MavenSettings",
&quot;spring.configuration.checksum&quot;: &quot;647853898192e405c7aff8ecac5564ea&quot;, "spring.configuration.checksum": "647853898192e405c7aff8ecac5564ea",
&quot;vue.rearranger.settings.migration&quot;: &quot;true&quot; "vue.rearranger.settings.migration": "true"
} }
}</component> }]]></component>
<component name="ReactorSettings"> <component name="ReactorSettings">
<option name="notificationShown" value="true" /> <option name="notificationShown" value="true" />
</component> </component>
@ -188,90 +186,7 @@
<workItem from="1725757403389" duration="14577000" /> <workItem from="1725757403389" duration="14577000" />
<workItem from="1725794176067" duration="10803000" /> <workItem from="1725794176067" duration="10803000" />
<workItem from="1725842458564" duration="1083000" /> <workItem from="1725842458564" duration="1083000" />
</task> <workItem from="1725843691730" duration="13942000" />
<task id="LOCAL-00022" summary="初始化">
<created>1724918082451</created>
<option name="number" value="00022" />
<option name="presentableId" value="LOCAL-00022" />
<option name="project" value="LOCAL" />
<updated>1724918082451</updated>
</task>
<task id="LOCAL-00023" summary="初始化">
<created>1724918094895</created>
<option name="number" value="00023" />
<option name="presentableId" value="LOCAL-00023" />
<option name="project" value="LOCAL" />
<updated>1724918094895</updated>
</task>
<task id="LOCAL-00024" summary="初始化">
<created>1724920119938</created>
<option name="number" value="00024" />
<option name="presentableId" value="LOCAL-00024" />
<option name="project" value="LOCAL" />
<updated>1724920119938</updated>
</task>
<task id="LOCAL-00025" summary="企业列表出来了">
<created>1725161627925</created>
<option name="number" value="00025" />
<option name="presentableId" value="LOCAL-00025" />
<option name="project" value="LOCAL" />
<updated>1725161627925</updated>
</task>
<task id="LOCAL-00026" summary="企业列表出来了">
<created>1725247697205</created>
<option name="number" value="00026" />
<option name="presentableId" value="LOCAL-00026" />
<option name="project" value="LOCAL" />
<updated>1725247697205</updated>
</task>
<task id="LOCAL-00027" summary="企业列表出来了">
<created>1725412228813</created>
<option name="number" value="00027" />
<option name="presentableId" value="LOCAL-00027" />
<option name="project" value="LOCAL" />
<updated>1725412228813</updated>
</task>
<task id="LOCAL-00028" summary="企业列表出来了">
<created>1725434075951</created>
<option name="number" value="00028" />
<option name="presentableId" value="LOCAL-00028" />
<option name="project" value="LOCAL" />
<updated>1725434075951</updated>
</task>
<task id="LOCAL-00029" summary="企业列表出来了">
<created>1725441635174</created>
<option name="number" value="00029" />
<option name="presentableId" value="LOCAL-00029" />
<option name="project" value="LOCAL" />
<updated>1725441635174</updated>
</task>
<task id="LOCAL-00030" summary="企业列表出来了">
<created>1725535665636</created>
<option name="number" value="00030" />
<option name="presentableId" value="LOCAL-00030" />
<option name="project" value="LOCAL" />
<updated>1725535665636</updated>
</task>
<task id="LOCAL-00031" summary="企业列表出来了">
<created>1725535740781</created>
<option name="number" value="00031" />
<option name="presentableId" value="LOCAL-00031" />
<option name="project" value="LOCAL" />
<updated>1725535740781</updated>
</task>
<task id="LOCAL-00032" summary="企业列表出来了">
<created>1725535995757</created>
<option name="number" value="00032" />
<option name="presentableId" value="LOCAL-00032" />
<option name="project" value="LOCAL" />
<updated>1725535995757</updated>
</task>
<task id="LOCAL-00033" summary="企业列表出来了">
<created>1725536412572</created>
<option name="number" value="00033" />
<option name="presentableId" value="LOCAL-00033" />
<option name="project" value="LOCAL" />
<updated>1725536412572</updated>
</task> </task>
<task id="LOCAL-00034" summary="企业列表出来了"> <task id="LOCAL-00034" summary="企业列表出来了">
<created>1725537357138</created> <created>1725537357138</created>
@ -532,7 +447,91 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1725843461227</updated> <updated>1725843461227</updated>
</task> </task>
<option name="localTasksCounter" value="71" /> <task id="LOCAL-00071" summary="企业列表出来了">
<created>1725843808662</created>
<option name="number" value="00071" />
<option name="presentableId" value="LOCAL-00071" />
<option name="project" value="LOCAL" />
<updated>1725843808662</updated>
</task>
<task id="LOCAL-00072" summary="企业列表出来了">
<created>1725844255814</created>
<option name="number" value="00072" />
<option name="presentableId" value="LOCAL-00072" />
<option name="project" value="LOCAL" />
<updated>1725844255814</updated>
</task>
<task id="LOCAL-00073" summary="企业列表出来了">
<created>1725844685646</created>
<option name="number" value="00073" />
<option name="presentableId" value="LOCAL-00073" />
<option name="project" value="LOCAL" />
<updated>1725844685646</updated>
</task>
<task id="LOCAL-00074" summary="企业列表出来了">
<created>1725863698925</created>
<option name="number" value="00074" />
<option name="presentableId" value="LOCAL-00074" />
<option name="project" value="LOCAL" />
<updated>1725863698925</updated>
</task>
<task id="LOCAL-00075" summary="企业列表出来了">
<created>1725864590358</created>
<option name="number" value="00075" />
<option name="presentableId" value="LOCAL-00075" />
<option name="project" value="LOCAL" />
<updated>1725864590358</updated>
</task>
<task id="LOCAL-00076" summary="企业列表出来了">
<created>1725865421475</created>
<option name="number" value="00076" />
<option name="presentableId" value="LOCAL-00076" />
<option name="project" value="LOCAL" />
<updated>1725865421475</updated>
</task>
<task id="LOCAL-00077" summary="企业列表出来了">
<created>1725866928373</created>
<option name="number" value="00077" />
<option name="presentableId" value="LOCAL-00077" />
<option name="project" value="LOCAL" />
<updated>1725866928373</updated>
</task>
<task id="LOCAL-00078" summary="企业列表出来了">
<created>1725867686157</created>
<option name="number" value="00078" />
<option name="presentableId" value="LOCAL-00078" />
<option name="project" value="LOCAL" />
<updated>1725867686157</updated>
</task>
<task id="LOCAL-00079" summary="企业列表出来了">
<created>1725871495132</created>
<option name="number" value="00079" />
<option name="presentableId" value="LOCAL-00079" />
<option name="project" value="LOCAL" />
<updated>1725871495132</updated>
</task>
<task id="LOCAL-00080" summary="企业列表出来了">
<created>1725872239199</created>
<option name="number" value="00080" />
<option name="presentableId" value="LOCAL-00080" />
<option name="project" value="LOCAL" />
<updated>1725872239199</updated>
</task>
<task id="LOCAL-00081" summary="企业列表出来了">
<created>1725874552030</created>
<option name="number" value="00081" />
<option name="presentableId" value="LOCAL-00081" />
<option name="project" value="LOCAL" />
<updated>1725874552030</updated>
</task>
<task id="LOCAL-00082" summary="企业列表出来了">
<created>1725875021671</created>
<option name="number" value="00082" />
<option name="presentableId" value="LOCAL-00082" />
<option name="project" value="LOCAL" />
<updated>1725875021671</updated>
</task>
<option name="localTasksCounter" value="83" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">

View File

@ -65,10 +65,31 @@ public class SysFirminfoController extends BaseController
return success(sysFirminfoService.selectSysFirminfoByAdminsid(adminsid)); return success(sysFirminfoService.selectSysFirminfoByAdminsid(adminsid));
} }
@RequiresPermissions("market:firminfo:edit") @RequiresPermissions("ruleEngine:firminfo:add")
@PostMapping("/edit") @PostMapping
public Result edit(@RequestBody SysFirm sysFirm) public Result<Integer> add(
@Validated @RequestBody SysFirm sysFirminfo)
{ {
return toAjax(sysFirminfoService.updateFirmFromByFirmId(sysFirm)); Long adminsid = SecurityUtils.getUserId();
if (sysFirminfoService.checkIdUnique(sysFirminfo)) {
return error("新增 firmList '" + sysFirminfo + "'失败firmList已存在");
} }
sysFirminfo.setAdminsid(adminsid);
return toAjax(sysFirminfoService.save(sysFirminfo));
}
/**
* firmList
*/
@RequiresPermissions("ruleEngine:firminfo:edit")
@PutMapping
public Result<Integer> edit(
@Validated @RequestBody SysFirm sysFirminfo)
{
if (!sysFirminfoService.checkIdUnique(sysFirminfo)) {
return error("修改 firmList '" + sysFirminfo + "'失败firmList不存在");
}
return toAjax(sysFirminfoService.updateById(sysFirminfo));
}
} }