fix: 修改配置文件和部分缺陷
This commit is contained in:
parent
369f4c7a33
commit
829826c5c1
|
@ -24,7 +24,7 @@ public interface ${originalName}Mapper extends BaseMapper<${originalName}> {
|
||||||
* @param dto ${classTitle}查询表单
|
* @param dto ${classTitle}查询表单
|
||||||
* @return ${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}
|
* 物理删除${classTitle}
|
||||||
|
|
|
@ -34,7 +34,7 @@ public class ${originalName}ServiceImpl extends ServiceImpl<${originalName}Mappe
|
||||||
IPage<${originalName}Vo> page = baseMapper.selectListByPage(pageParams, dto);
|
IPage<${originalName}Vo> page = baseMapper.selectListByPage(pageParams, dto);
|
||||||
|
|
||||||
return PageResult.<${originalName}Vo>builder()
|
return PageResult.<${originalName}Vo>builder()
|
||||||
.list(voList)
|
.list(page.getRecords())
|
||||||
.pageNo(page.getCurrent())
|
.pageNo(page.getCurrent())
|
||||||
.pageSize(page.getSize())
|
.pageSize(page.getSize())
|
||||||
.total(page.getTotal())
|
.total(page.getTotal())
|
||||||
|
|
|
@ -51,10 +51,7 @@ export function onAdd() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** 更新${classTitle} */
|
||||||
* * 更新${classTitle}
|
|
||||||
* @param row
|
|
||||||
*/
|
|
||||||
export function onUpdate(row: any) {
|
export function onUpdate(row: any) {
|
||||||
addDialog({
|
addDialog({
|
||||||
title: `$leftBrace$t("modify")}$leftBrace$t("${lowercaseName}")}`,
|
title: `$leftBrace$t("modify")}$leftBrace$t("${lowercaseName}")}`,
|
||||||
|
|
|
@ -24,27 +24,18 @@
|
||||||
await onSearch();
|
await onSearch();
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/** 当分页发生变化 */
|
||||||
* * 当分页发生变化
|
|
||||||
* @param value
|
|
||||||
*/
|
|
||||||
const onPageSizeChange = async (value: number) => {
|
const onPageSizeChange = async (value: number) => {
|
||||||
${lowercaseName}Store.pagination.pageSize = value;
|
${lowercaseName}Store.pagination.pageSize = value;
|
||||||
await onSearch();
|
await onSearch();
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/** 选择多行 */
|
||||||
* * 选择多行
|
|
||||||
* @param rows
|
|
||||||
*/
|
|
||||||
const onSelectionChange = (rows: Array<any>) => {
|
const onSelectionChange = (rows: Array<any>) => {
|
||||||
deleteIds.value = rows.map((row: any) => row.id);
|
deleteIds.value = rows.map((row: any) => row.id);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/** 重置表单 */
|
||||||
* 重置表单
|
|
||||||
* @param formEl
|
|
||||||
*/
|
|
||||||
const resetForm = async (formEl: FormInstance | undefined) => {
|
const resetForm = async (formEl: FormInstance | undefined) => {
|
||||||
if (!formEl) return;
|
if (!formEl) return;
|
||||||
formEl.resetFields();
|
formEl.resetFields();
|
||||||
|
|
|
@ -12,15 +12,9 @@ logging:
|
||||||
file:
|
file:
|
||||||
path: "/logs/${spring.application.name}"
|
path: "/logs/${spring.application.name}"
|
||||||
|
|
||||||
mybatis-plus:
|
#mybatis-plus:
|
||||||
mapper-locations: classpath:mapper/*.xml
|
# configuration:
|
||||||
global-config:
|
# map-underscore-to-camel-case: true
|
||||||
db-config:
|
|
||||||
logic-delete-field: isDeleted
|
|
||||||
logic-delete-value: 1 # 逻辑已删除值
|
|
||||||
logic-not-delete-value: 0 # 逻辑未删除值
|
|
||||||
configuration:
|
|
||||||
map-underscore-to-camel-case: true
|
|
||||||
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 查看日志
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 查看日志
|
||||||
|
|
||||||
bunny:
|
bunny:
|
||||||
|
|
|
@ -1,13 +1,9 @@
|
||||||
server:
|
server:
|
||||||
port: 8000
|
port: 8000
|
||||||
|
|
||||||
mybatis-plus:
|
#mybatis-plus:
|
||||||
mapper-locations: classpath:mapper/*.xml
|
# configuration:
|
||||||
global-config:
|
# map-underscore-to-camel-case: true
|
||||||
db-config:
|
|
||||||
logic-delete-field: isDeleted
|
|
||||||
configuration:
|
|
||||||
map-underscore-to-camel-case: true
|
|
||||||
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 查看日志
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 查看日志
|
||||||
|
|
||||||
logging:
|
logging:
|
||||||
|
|
|
@ -1,13 +1,10 @@
|
||||||
server:
|
server:
|
||||||
port: 8000
|
port: 8000
|
||||||
|
|
||||||
mybatis-plus:
|
#mybatis-plus:
|
||||||
mapper-locations: classpath:mapper/*.xml
|
# configuration:
|
||||||
global-config:
|
# map-underscore-to-camel-case: true
|
||||||
db-config:
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 查看日志
|
||||||
logic-delete-field: isDeleted
|
|
||||||
configuration:
|
|
||||||
map-underscore-to-camel-case: true
|
|
||||||
|
|
||||||
logging:
|
logging:
|
||||||
level:
|
level:
|
||||||
|
|
|
@ -74,6 +74,16 @@ spring:
|
||||||
date-format: yyyy-MM-dd HH:mm:ss
|
date-format: yyyy-MM-dd HH:mm:ss
|
||||||
time-zone: GMT+8
|
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:
|
management:
|
||||||
endpoints:
|
endpoints:
|
||||||
web:
|
web:
|
||||||
|
|
Loading…
Reference in New Issue