Commit 1cf4544b authored by liqin's avatar liqin 💬

bug fixed

parent 2a329dd3
...@@ -52,7 +52,7 @@ public class AssetTypeController extends BaseController { ...@@ -52,7 +52,7 @@ public class AssetTypeController extends BaseController {
@PostMapping(value = "/save") @PostMapping(value = "/save")
@RequiresPermissions("asset:type:save") @RequiresPermissions("asset:type:save")
@ApiOperation(value = "添加视频分类", notes = "添加视频分类") @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); boolean result = assetTypeService.save(assetType);
// 返回操作结果 // 返回操作结果
......
...@@ -702,7 +702,7 @@ public class BankBranchInfoController extends BaseController { ...@@ -702,7 +702,7 @@ public class BankBranchInfoController extends BaseController {
@ApiOperation(value = "网点排序") @ApiOperation(value = "网点排序")
@PutMapping(value = "/sort") @PutMapping(value = "/sort")
@RequiresPermissions("/bankBranchInfo/sort") @RequiresPermissions("/bankBranchInfo/sort")
public ResponseEntity<Map<String, Object>> sort(@RequestBody List<BankBranchInfo> oldList) { public ResponseEntity<Map<String, Object>> sort(List<BankBranchInfo> oldList) {
try { try {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
// 对顺序号赋值封装 // 对顺序号赋值封装
......
...@@ -65,7 +65,7 @@ public class ${table.controllerName} { ...@@ -65,7 +65,7 @@ public class ${table.controllerName} {
@RequiresPermissions("$!{cfg.colonTableName}:batch:save") @RequiresPermissions("$!{cfg.colonTableName}:batch:save")
#end #end
@ApiOperation(value = "批量添加$!{table.comment}", notes = "批量添加$!{table.comment}") @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); boolean result = ${table.entityPath}Service.saveBatch(${table.entityPath}List);
// 返回操作结果 // 返回操作结果
...@@ -82,7 +82,7 @@ public class ${table.controllerName} { ...@@ -82,7 +82,7 @@ public class ${table.controllerName} {
@RequiresPermissions("$!{cfg.colonTableName}:save") @RequiresPermissions("$!{cfg.colonTableName}:save")
#end #end
@ApiOperation(value = "添加$!{table.comment}", notes = "添加$!{table.comment}") @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}); boolean result = ${table.entityPath}Service.save(${table.entityPath});
// 返回操作结果 // 返回操作结果
...@@ -99,7 +99,7 @@ public class ${table.controllerName} { ...@@ -99,7 +99,7 @@ public class ${table.controllerName} {
@RequiresPermissions("$!{cfg.colonTableName}:update") @RequiresPermissions("$!{cfg.colonTableName}:update")
#end #end
@ApiOperation(value = "修改$!{table.comment}信息", notes = "修改$!{table.comment}信息") @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') #if(${cfg.generatorStrategy} == 'ALL')
boolean flag = ${table.entityPath}Service.update${entity}(${cfg.entityObjectName}); boolean flag = ${table.entityPath}Service.update${entity}(${cfg.entityObjectName});
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment