Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liqin
chnmuseum-party
Commits
4043fe7e
Commit
4043fe7e
authored
Mar 30, 2021
by
yangtianyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
APP版本 界面
parent
575ad6f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
5 deletions
+44
-5
TAppDirPicController.java
.../chnmuseum/party/web/controller/TAppDirPicController.java
+18
-2
TAppRunPicController.java
.../chnmuseum/party/web/controller/TAppRunPicController.java
+16
-3
TAppVersionController.java
...chnmuseum/party/web/controller/TAppVersionController.java
+10
-0
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/TAppDirPicController.java
View file @
4043fe7e
...
@@ -66,6 +66,21 @@ public class TAppDirPicController extends BaseController {
...
@@ -66,6 +66,21 @@ public class TAppDirPicController extends BaseController {
@RequiresPermissions
(
"t:app:dir:pic:save"
)
@RequiresPermissions
(
"t:app:dir:pic:save"
)
@ApiOperation
(
value
=
"添加"
,
notes
=
"添加"
)
@ApiOperation
(
value
=
"添加"
,
notes
=
"添加"
)
public
Map
<
String
,
Object
>
saveTAppDirPic
(
@Validated
(
value
=
{
Add
.
class
})
TAppDirPic
tAppDirPic
)
{
public
Map
<
String
,
Object
>
saveTAppDirPic
(
@Validated
(
value
=
{
Add
.
class
})
TAppDirPic
tAppDirPic
)
{
// 默认不为当前版本
if
(
tAppDirPic
.
getIsCurrent
()
==
null
){
tAppDirPic
.
setIsCurrent
(
0
);
}
// 如果有其他版本是当前版本状态,将其当前版本状态取消
QueryWrapper
<
TAppDirPic
>
qw
=
new
QueryWrapper
<>();
qw
.
eq
(
"is_current"
,
1
);
List
<
TAppDirPic
>
currentList
=
tAppDirPicService
.
list
(
qw
);
if
(
currentList
!=
null
&&
currentList
.
size
()
>
0
&&
tAppDirPic
.
getIsCurrent
()
==
1
){
currentList
.
stream
().
forEach
(
c
->{
c
.
setIsCurrent
(
0
);
});
tAppDirPicService
.
updateBatchById
(
currentList
);
}
// 保存业务节点信息
// 保存业务节点信息
boolean
result
=
tAppDirPicService
.
save
(
tAppDirPic
);
boolean
result
=
tAppDirPicService
.
save
(
tAppDirPic
);
// 返回操作结果
// 返回操作结果
...
@@ -141,8 +156,9 @@ public class TAppDirPicController extends BaseController {
...
@@ -141,8 +156,9 @@ public class TAppDirPicController extends BaseController {
@ApiImplicitParams
(
value
=
{
@ApiImplicitParams
(
value
=
{
@ApiImplicitParam
(
name
=
"isCurrent"
,
value
=
"是否为当前界面 0:否 1:是"
,
paramType
=
"query"
,
dataType
=
"String"
)
@ApiImplicitParam
(
name
=
"isCurrent"
,
value
=
"是否为当前界面 0:否 1:是"
,
paramType
=
"query"
,
dataType
=
"String"
)
})
})
public
Map
<
String
,
Object
>
getTAppDirPicList
(
@RequestParam
(
value
=
"auditStatus"
,
defaultValue
=
"APPROVED_FINAL"
,
required
=
false
)
String
isCurrent
)
{
public
Map
<
String
,
Object
>
getTAppDirPicList
(
Integer
isCurrent
)
{
List
<
TAppDirPic
>
tAppDirPicList
=
tAppDirPicService
.
list
(
Wrappers
.<
TAppDirPic
>
lambdaQuery
().
eq
(
TAppDirPic:
:
getIsCurrent
,
isCurrent
));
List
<
TAppDirPic
>
tAppDirPicList
=
tAppDirPicService
.
list
(
Wrappers
.<
TAppDirPic
>
lambdaQuery
().
eq
(
isCurrent
!=
null
,
TAppDirPic:
:
getIsCurrent
,
isCurrent
));
return
getResult
(
tAppDirPicList
);
return
getResult
(
tAppDirPicList
);
}
}
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/TAppRunPicController.java
View file @
4043fe7e
...
@@ -70,6 +70,19 @@ public class TAppRunPicController extends BaseController {
...
@@ -70,6 +70,19 @@ public class TAppRunPicController extends BaseController {
if
(
tAppRunPic
.
getIsCurrent
()
==
null
){
if
(
tAppRunPic
.
getIsCurrent
()
==
null
){
tAppRunPic
.
setIsCurrent
(
0
);
tAppRunPic
.
setIsCurrent
(
0
);
}
}
// 如果有其他版本是当前版本状态,将其当前版本状态取消
QueryWrapper
<
TAppRunPic
>
qw
=
new
QueryWrapper
<>();
qw
.
eq
(
"is_current"
,
1
);
List
<
TAppRunPic
>
currentList
=
tAppRunPicService
.
list
(
qw
);
if
(
currentList
!=
null
&&
currentList
.
size
()
>
0
&&
tAppRunPic
.
getIsCurrent
()
==
1
){
currentList
.
stream
().
forEach
(
c
->{
c
.
setIsCurrent
(
0
);
});
tAppRunPicService
.
updateBatchById
(
currentList
);
}
// 保存业务节点信息
// 保存业务节点信息
boolean
result
=
tAppRunPicService
.
save
(
tAppRunPic
);
boolean
result
=
tAppRunPicService
.
save
(
tAppRunPic
);
// 返回操作结果
// 返回操作结果
...
@@ -142,10 +155,10 @@ public class TAppRunPicController extends BaseController {
...
@@ -142,10 +155,10 @@ public class TAppRunPicController extends BaseController {
@RequiresPermissions
(
"t:app:run:pic:list"
)
@RequiresPermissions
(
"t:app:run:pic:list"
)
@ApiOperation
(
value
=
"获取全部列表(无分页)"
,
notes
=
"获取全部列表(无分页)"
)
@ApiOperation
(
value
=
"获取全部列表(无分页)"
,
notes
=
"获取全部列表(无分页)"
)
@ApiImplicitParams
(
value
=
{
@ApiImplicitParams
(
value
=
{
@ApiImplicitParam
(
name
=
"isCurrent"
,
value
=
"是否为当前界面 0:否 1:是"
,
paramType
=
"query"
,
dataType
=
"
String
"
)
@ApiImplicitParam
(
name
=
"isCurrent"
,
value
=
"是否为当前界面 0:否 1:是"
,
paramType
=
"query"
,
dataType
=
"
int
"
)
})
})
public
Map
<
String
,
Object
>
getTAppRunPicList
(
String
isCurrent
)
{
public
Map
<
String
,
Object
>
getTAppRunPicList
(
Integer
isCurrent
)
{
List
<
TAppRunPic
>
tAppRunPicList
=
tAppRunPicService
.
list
(
Wrappers
.<
TAppRunPic
>
lambdaQuery
().
eq
(
TAppRunPic:
:
getIsCurrent
,
isCurrent
));
List
<
TAppRunPic
>
tAppRunPicList
=
tAppRunPicService
.
list
(
Wrappers
.<
TAppRunPic
>
lambdaQuery
().
eq
(
isCurrent
!=
null
,
TAppRunPic:
:
getIsCurrent
,
isCurrent
));
return
getResult
(
tAppRunPicList
);
return
getResult
(
tAppRunPicList
);
}
}
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/TAppVersionController.java
View file @
4043fe7e
...
@@ -63,6 +63,16 @@ public class TAppVersionController extends BaseController {
...
@@ -63,6 +63,16 @@ public class TAppVersionController extends BaseController {
if
(
tAppVersion
.
getIsCurrent
()
==
null
){
if
(
tAppVersion
.
getIsCurrent
()
==
null
){
tAppVersion
.
setIsCurrent
(
0
);
tAppVersion
.
setIsCurrent
(
0
);
}
}
// 如果有其他版本是当前版本状态,将其当前版本状态取消
QueryWrapper
<
TAppVersion
>
qw
=
new
QueryWrapper
<>();
qw
.
eq
(
"is_current"
,
1
);
List
<
TAppVersion
>
currentList
=
tAppVersionService
.
list
(
qw
);
if
(
currentList
!=
null
&&
currentList
.
size
()
>
0
&&
tAppVersion
.
getIsCurrent
()
==
1
){
currentList
.
stream
().
forEach
(
c
->{
c
.
setIsCurrent
(
0
);
});
tAppVersionService
.
updateBatchById
(
currentList
);
}
// 保存业务节点信息
// 保存业务节点信息
boolean
result
=
tAppVersionService
.
save
(
tAppVersion
);
boolean
result
=
tAppVersionService
.
save
(
tAppVersion
);
// 返回操作结果
// 返回操作结果
...
...
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