|
|
@@ -53,7 +53,7 @@ def {{ underscore(table.business_name) }}_list(dto: {{ table.class_name }}):
|
|
|
return TableResponse(code=HttpStatus.SUCCESS, msg='查询成功', rows={{ underscore(table.business_name) }}s)
|
|
|
|
|
|
{% if table.pk_column %}
|
|
|
-@gen.route('/<int:{{ underscore(table.pk_column.java_field) }}>', methods=['GET'])
|
|
|
+@gen.route('/<int:{{ table.pk_column.java_field }}>', methods=['GET'])
|
|
|
@PathValidator()
|
|
|
@PreAuthorize(HasPerm('{{ table.module_name }}:{{ table.business_name }}:query'))
|
|
|
@JsonSerializer()
|
|
|
@@ -159,4 +159,4 @@ def import_data(
|
|
|
excel_util = ExcelUtil({{ table.class_name }})
|
|
|
{{ underscore(table.business_name) }}_list = excel_util.import_file(file, sheetname="{{ table.function_name }}数据")
|
|
|
msg = {{ underscore(table.class_name) }}_service.import_{{ underscore(table.class_name) }}({{ underscore(table.business_name) }}_list, update_support)
|
|
|
- return AjaxResponse.from_success(msg=msg)
|
|
|
+ return AjaxResponse.from_success(msg=msg)
|