企业列表出来了

master
法外狂徒张三 2024-09-08 09:18:11 +08:00
parent ecded02a88
commit 7585c4d59b
3 changed files with 34 additions and 4 deletions

View File

@ -5,7 +5,9 @@
</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" /> <change beforePath="$PROJECT_DIR$/cloud-market-server/src/main/java/com/muyu/market/controller/AliPayController.java" beforeDir="false" afterPath="$PROJECT_DIR$/cloud-market-server/src/main/java/com/muyu/market/controller/AliPayController.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/logs/cloud-system/error.log" beforeDir="false" afterPath="$PROJECT_DIR$/logs/cloud-system/error.log" afterDir="false" />
<change beforePath="$PROJECT_DIR$/logs/cloud-system/info.log" beforeDir="false" afterPath="$PROJECT_DIR$/logs/cloud-system/info.log" afterDir="false" />
</list> </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" />
@ -95,9 +97,10 @@
<recent name="E:\桌面\cloud-modules-market\cloud-market-server\src\main\java\com\muyu" /> <recent name="E:\桌面\cloud-modules-market\cloud-market-server\src\main\java\com\muyu" />
</key> </key>
<key name="CopyClassDialog.RECENTS_KEY"> <key name="CopyClassDialog.RECENTS_KEY">
<recent name="com.muyu.market.controller" />
<recent name="com.muyu.market.config" /> <recent name="com.muyu.market.config" />
<recent name="com.muyu.market" />
<recent name="com.muyu.market.domain" /> <recent name="com.muyu.market.domain" />
<recent name="com.muyu.market" />
<recent name="com.muyu" /> <recent name="com.muyu" />
</key> </key>
</component> </component>
@ -182,6 +185,7 @@
<workItem from="1725605672086" duration="3347000" /> <workItem from="1725605672086" duration="3347000" />
<workItem from="1725621072988" duration="7858000" /> <workItem from="1725621072988" duration="7858000" />
<workItem from="1725671427915" duration="175000" /> <workItem from="1725671427915" duration="175000" />
<workItem from="1725706338514" duration="6144000" />
</task> </task>
<task id="LOCAL-00001" summary="初始化"> <task id="LOCAL-00001" summary="初始化">
<created>1724047244829</created> <created>1724047244829</created>
@ -512,7 +516,21 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1725626544998</updated> <updated>1725626544998</updated>
</task> </task>
<option name="localTasksCounter" value="48" /> <task id="LOCAL-00048" summary="企业列表出来了">
<created>1725709119803</created>
<option name="number" value="00048" />
<option name="presentableId" value="LOCAL-00048" />
<option name="project" value="LOCAL" />
<updated>1725709119803</updated>
</task>
<task id="LOCAL-00049" summary="企业列表出来了">
<created>1725711863337</created>
<option name="number" value="00049" />
<option name="presentableId" value="LOCAL-00049" />
<option name="project" value="LOCAL" />
<updated>1725711863337</updated>
</task>
<option name="localTasksCounter" value="50" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">

View File

@ -60,12 +60,13 @@ public class AliPayController {
} }
httpResponse.setContentType("text/html;charset=" + CHARSET); httpResponse.setContentType("text/html;charset=" + CHARSET);
System.out.println(form);
// 直接将完整的表单html输出到页面 // 直接将完整的表单html输出到页面
httpResponse.getWriter().write(form); httpResponse.getWriter().write(form);
httpResponse.getWriter().flush(); httpResponse.getWriter().flush();
httpResponse.getWriter().close(); httpResponse.getWriter().close();
return Result.success(form); return Result.success(aliPay);
} }
@PostMapping("/notify") // 注意这里必须是POST接口 @PostMapping("/notify") // 注意这里必须是POST接口

View File

@ -119,4 +119,15 @@ public class MyApiController extends BaseController
myApiService.removeBatchByIds(Arrays.asList(myIds)); myApiService.removeBatchByIds(Arrays.asList(myIds));
return success(); return success();
} }
@PostMapping("/addOrUpd")
public Result<Integer> addOrUpd(@Validated @RequestBody MyApi myApi)
{
if (myApiService.checkIdUnique(myApi)) {
return toAjax(myApiService.updateById(myApi));
}
return toAjax(myApiService.save(myApi));
}
} }