fix: 修改配置文件和部分缺陷

This commit is contained in:
Bunny 2024-11-07 23:50:11 +08:00
parent 369f4c7a33
commit 829826c5c1
8 changed files with 26 additions and 41 deletions

View File

@ -24,7 +24,7 @@ public interface ${originalName}Mapper extends BaseMapper<${originalName}> {
* @param dto ${classTitle}查询表单
* @return ${classTitle}分页结果
*/
IPage<${originalName}> selectListByPage(@Param("page") Page<${originalName}> pageParams, @Param("dto") ${originalName}Dto dto);
IPage<${originalName}Vo> selectListByPage(@Param("page") Page<${originalName}> pageParams, @Param("dto") ${originalName}Dto dto);
/**
* 物理删除${classTitle}

View File

@ -34,7 +34,7 @@ public class ${originalName}ServiceImpl extends ServiceImpl<${originalName}Mappe
IPage<${originalName}Vo> page = baseMapper.selectListByPage(pageParams, dto);
return PageResult.<${originalName}Vo>builder()
.list(voList)
.list(page.getRecords())
.pageNo(page.getCurrent())
.pageSize(page.getSize())
.total(page.getTotal())

View File

@ -51,10 +51,7 @@ export function onAdd() {
});
}
/**
* * 更新${classTitle}
* @param row
*/
/** 更新${classTitle} */
export function onUpdate(row: any) {
addDialog({
title: `$leftBrace$t("modify")}$leftBrace$t("${lowercaseName}")}`,

View File

@ -24,27 +24,18 @@
await onSearch();
};
/**
* * 当分页发生变化
* @param value
*/
/** 当分页发生变化 */
const onPageSizeChange = async (value: number) => {
${lowercaseName}Store.pagination.pageSize = value;
await onSearch();
};
/**
* * 选择多行
* @param rows
*/
/** 选择多行 */
const onSelectionChange = (rows: Array<any>) => {
deleteIds.value = rows.map((row: any) => row.id);
};
/**
* 重置表单
* @param formEl
*/
/** 重置表单 */
const resetForm = async (formEl: FormInstance | undefined) => {
if (!formEl) return;
formEl.resetFields();

View File

@ -12,15 +12,9 @@ logging:
file:
path: "/logs/${spring.application.name}"
mybatis-plus:
mapper-locations: classpath:mapper/*.xml
global-config:
db-config:
logic-delete-field: isDeleted
logic-delete-value: 1 # 逻辑已删除值
logic-not-delete-value: 0 # 逻辑未删除值
configuration:
map-underscore-to-camel-case: true
#mybatis-plus:
# configuration:
# map-underscore-to-camel-case: true
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 查看日志
bunny:

View File

@ -1,13 +1,9 @@
server:
port: 8000
mybatis-plus:
mapper-locations: classpath:mapper/*.xml
global-config:
db-config:
logic-delete-field: isDeleted
configuration:
map-underscore-to-camel-case: true
#mybatis-plus:
# configuration:
# map-underscore-to-camel-case: true
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 查看日志
logging:

View File

@ -1,13 +1,10 @@
server:
port: 8000
mybatis-plus:
mapper-locations: classpath:mapper/*.xml
global-config:
db-config:
logic-delete-field: isDeleted
configuration:
map-underscore-to-camel-case: true
#mybatis-plus:
# configuration:
# map-underscore-to-camel-case: true
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 查看日志
logging:
level:

View File

@ -74,6 +74,16 @@ spring:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
mybatis-plus:
mapper-locations: classpath:mapper/*.xml
global-config:
db-config:
logic-delete-field: isDeleted
logic-delete-value: 1 # 逻辑已删除值
logic-not-delete-value: 0 # 逻辑未删除值
configuration:
map-underscore-to-camel-case: true
management:
endpoints:
web: