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
1cf4544b
Commit
1cf4544b
authored
Mar 20, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
2a329dd3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
AssetTypeController.java
...y/chnmuseum/party/web/controller/AssetTypeController.java
+1
-1
BankBranchInfoController.java
...museum/party/web/controller/BankBranchInfoController.java
+1
-1
controller.java.vm
src/main/resources/templates/controller.java.vm
+3
-3
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/AssetTypeController.java
View file @
1cf4544b
...
...
@@ -52,7 +52,7 @@ public class AssetTypeController extends BaseController {
@PostMapping
(
value
=
"/save"
)
@RequiresPermissions
(
"asset:type:save"
)
@ApiOperation
(
value
=
"添加视频分类"
,
notes
=
"添加视频分类"
)
public
Map
<
String
,
Object
>
saveAssetType
(
@
RequestBody
@
Validated
(
value
=
{
Add
.
class
})
AssetType
assetType
)
{
public
Map
<
String
,
Object
>
saveAssetType
(
@Validated
(
value
=
{
Add
.
class
})
AssetType
assetType
)
{
// 保存业务节点信息
boolean
result
=
assetTypeService
.
save
(
assetType
);
// 返回操作结果
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/BankBranchInfoController.java
View file @
1cf4544b
...
...
@@ -702,7 +702,7 @@ public class BankBranchInfoController extends BaseController {
@ApiOperation
(
value
=
"网点排序"
)
@PutMapping
(
value
=
"/sort"
)
@RequiresPermissions
(
"/bankBranchInfo/sort"
)
public
ResponseEntity
<
Map
<
String
,
Object
>>
sort
(
@RequestBody
List
<
BankBranchInfo
>
oldList
)
{
public
ResponseEntity
<
Map
<
String
,
Object
>>
sort
(
List
<
BankBranchInfo
>
oldList
)
{
try
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
// 对顺序号赋值封装
...
...
src/main/resources/templates/controller.java.vm
View file @
1cf4544b
...
...
@@ -65,7 +65,7 @@ public class ${table.controllerName} {
@
RequiresPermissions
(
"$!{cfg.colonTableName}:batch:save"
)
#
end
@
ApiOperation
(
value
=
"批量添加$!{table.comment}"
,
notes
=
"批量添加$!{table.comment}"
)
public
Map
<
String
,
Object
>
batchSave
${
entity
}(
@
RequestBody
#
if
(${
cfg
.
paramValidation
})@
Validated
(
value
=
{
Add
.
class
})#
end
List
<${
entity
}>
${
table
.
entityPath
}
List
)
{
public
Map
<
String
,
Object
>
batchSave
${
entity
}(#
if
(${
cfg
.
paramValidation
})@
Validated
(
value
=
{
Add
.
class
})#
end
List
<${
entity
}>
${
table
.
entityPath
}
List
)
{
//
保存业务节点信息
boolean
result
=
${
table
.
entityPath
}
Service
.
saveBatch
(${
table
.
entityPath
}
List
);
//
返回操作结果
...
...
@@ -82,7 +82,7 @@ public class ${table.controllerName} {
@
RequiresPermissions
(
"$!{cfg.colonTableName}:save"
)
#
end
@
ApiOperation
(
value
=
"添加$!{table.comment}"
,
notes
=
"添加$!{table.comment}"
)
public
Map
<
String
,
Object
>
save
${
entity
}(
@
RequestBody
#
if
(${
cfg
.
paramValidation
})@
Validated
(
value
=
{
Add
.
class
})#
end
${
entity
}
${
table
.
entityPath
})
{
public
Map
<
String
,
Object
>
save
${
entity
}(#
if
(${
cfg
.
paramValidation
})@
Validated
(
value
=
{
Add
.
class
})#
end
${
entity
}
${
table
.
entityPath
})
{
//
保存业务节点信息
boolean
result
=
${
table
.
entityPath
}
Service
.
save
(${
table
.
entityPath
});
//
返回操作结果
...
...
@@ -99,7 +99,7 @@ public class ${table.controllerName} {
@
RequiresPermissions
(
"$!{cfg.colonTableName}:update"
)
#
end
@
ApiOperation
(
value
=
"修改$!{table.comment}信息"
,
notes
=
"修改$!{table.comment}信息"
)
public
Map
<
String
,
Object
>
update
${
entity
}(
@
RequestBody
#
if
(${
cfg
.
paramValidation
})@
Validated
(
value
=
{
Update
.
class
})#
end
${
entity
}
${
cfg
.
entityObjectName
})
{
public
Map
<
String
,
Object
>
update
${
entity
}(#
if
(${
cfg
.
paramValidation
})@
Validated
(
value
=
{
Update
.
class
})#
end
${
entity
}
${
cfg
.
entityObjectName
})
{
#
if
(${
cfg
.
generatorStrategy
}
==
'ALL'
)
boolean
flag
=
${
table
.
entityPath
}
Service
.
update
${
entity
}(${
cfg
.
entityObjectName
});
#
else
...
...
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