|
|
@ -78,7 +78,7 @@ public class ${ClassName}Controller extends BaseController |
|
|
|
@GetMapping(value = "/{${pkColumn.javaField}}") |
|
|
|
@GetMapping(value = "/{${pkColumn.javaField}}") |
|
|
|
public AjaxResult getInfo(@PathVariable("${pkColumn.javaField}") ${pkColumn.javaType} ${pkColumn.javaField}) |
|
|
|
public AjaxResult getInfo(@PathVariable("${pkColumn.javaField}") ${pkColumn.javaType} ${pkColumn.javaField}) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return AjaxResult.success(${className}Service.select${ClassName}ById(${pkColumn.javaField})); |
|
|
|
return AjaxResult.success(${className}Service.select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaField})); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -111,6 +111,6 @@ public class ${ClassName}Controller extends BaseController |
|
|
|
@DeleteMapping("/{${pkColumn.javaField}s}") |
|
|
|
@DeleteMapping("/{${pkColumn.javaField}s}") |
|
|
|
public AjaxResult remove(@PathVariable ${pkColumn.javaType}[] ${pkColumn.javaField}s) |
|
|
|
public AjaxResult remove(@PathVariable ${pkColumn.javaType}[] ${pkColumn.javaField}s) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return toAjax(${className}Service.delete${ClassName}ByIds(${pkColumn.javaField}s)); |
|
|
|
return toAjax(${className}Service.delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaField}s)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|