Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
fcf6fca4
Commit
fcf6fca4
authored
Dec 02, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消事项缓存
parent
35f62f9f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
4 deletions
+35
-4
base-manager/src/main/java/com/mortals/xhx/module/app/service/impl/AppServiceImpl.java
...m/mortals/xhx/module/app/service/impl/AppServiceImpl.java
+2
-0
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppVersionController.java
.../com/mortals/xhx/module/app/web/AppVersionController.java
+4
-3
base-manager/src/test/java/com/mortals/httpclient/app/AppController.http
...c/test/java/com/mortals/httpclient/app/AppController.http
+25
-0
base-manager/src/test/java/com/mortals/httpclient/app/AppVersionController.http
...java/com/mortals/httpclient/app/AppVersionController.http
+4
-1
No files found.
base-manager/src/main/java/com/mortals/xhx/module/app/service/impl/AppServiceImpl.java
View file @
fcf6fca4
...
...
@@ -215,6 +215,7 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
AppVersionEntity
versionEntity
=
new
AppVersionEntity
();
versionEntity
.
initAttrValue
();
versionEntity
.
setAppId
(
entity
.
getId
());
versionEntity
.
setAppName
(
entity
.
getAppName
());
versionEntity
.
setVersion
(
entity
.
getVersion
());
versionEntity
.
setNotes
(
"应用初始创建!"
);
versionEntity
.
setFileName
(
entity
.
getFileName
());
...
...
@@ -266,6 +267,7 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
AppVersionEntity
versionEntity
=
new
AppVersionEntity
();
versionEntity
.
initAttrValue
();
versionEntity
.
setAppId
(
entity
.
getId
());
versionEntity
.
setAppName
(
entity
.
getAppName
());
versionEntity
.
setVersion
(
versionNum
++);
versionEntity
.
setNotes
(
entity
.
getNotes
());
versionEntity
.
setFileName
(
entity
.
getFileName
());
...
...
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppVersionController.java
View file @
fcf6fca4
...
...
@@ -92,14 +92,15 @@ public class AppVersionController extends BaseCRUDJsonBodyMappingController<AppV
throw
new
AppException
(
"当前应用版本不存在!appVersionId:"
+
appVersionId
);
}
if
(
appVersionEntity
.
getUsed
()
==
YesNoEnum
.
NO
.
getValue
())
{
if
(
appVersionEntity
.
getUsed
()
==
YesNoEnum
.
YES
.
getValue
())
{
throw
new
AppException
(
"当前应用使用中!"
);
}
Rest
<
Void
>
usedRest
=
this
.
service
.
appUsed
(
appVersionEntity
,
getContext
());
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
}
catch
(
Exception
e
)
{
log
.
error
(
"自助服务应用预览"
,
e
);
re
st
=
Rest
.
fail
(
super
.
convertException
(
e
));
re
turn
Rest
.
fail
(
super
.
convertException
(
e
));
}
return
rest
;
}
...
...
base-manager/src/test/java/com/mortals/httpclient/app/AppController.http
View file @
fcf6fca4
...
...
@@ -50,6 +50,31 @@ Content-Type: application/json
client.global.set("App_id", JSON.parse(response.body).data.id);
%}
###自助终端应用更新
POST {{baseUrl}}/app/save
Authorization: {{authToken}}
Content-Type: application/json
{
"id":5,
"siteName":"汇东县",
"appCode":"ckp",
"appName":"测试应用1",
"appIconPath":"/file/preview/196089969797.jpg",
"appThemeName":"应用程序",
"type":1,
"downDevCount":0,
"shelves":0,
"fileName":"窗口屏.zip",
"filePath":"/file/uploadfile/1661928678354.zip",
"summary":"vyk2sq"
}
> {%
client.global.set("App_id", JSON.parse(response.body).data.id);
%}
###自助终端应用查看
GET {{baseUrl}}/app/info?id={{App_id}}
Authorization: {{authToken}}
...
...
base-manager/src/test/java/com/mortals/httpclient/app/AppVersionController.http
View file @
fcf6fca4
...
...
@@ -61,5 +61,8 @@ Authorization: {{authToken}}
Accept: application/json
###自助终端应用版本使用
POST {{baseUrl}}/app/version/used?appVersionId=3
Authorization: {{authToken}}
Accept: application/json
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment