收发文编号更新
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled
yudao-ui-admin CI / build (14.x) (push) Has been cancelled
yudao-ui-admin CI / build (16.x) (push) Has been cancelled

This commit is contained in:
XaoLi717 2024-12-31 10:14:46 +08:00
parent d50d7c3b97
commit c53c57d313
6 changed files with 55 additions and 36 deletions

View File

@ -45,17 +45,20 @@ public class numbersPageReqVO extends PageParam {
@Schema(description = "数据类型(0=流水号 1=文号)", example = "2")
private Integer numbersType;
@Schema(description = "test1")
private String test1;
@Schema(description = "长度选择")
private Integer lengthSelection;
@Schema(description = "test2")
private String test2;
@Schema(description = "映射数据1")
private String mappingData1;
@Schema(description = "test3")
private String test3;
@Schema(description = "映射数据2")
private String mappingData2;
@Schema(description = "注解")
private String annotation;
@Schema(description = "创建时间")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] createTime;
}
}

View File

@ -56,20 +56,25 @@ public class numbersRespVO {
@DictFormat("oa_numbers_type") // TODO 代码优化建议设置到对应的 DictTypeConstants 枚举类中
private Integer numbersType;
@Schema(description = "test1")
@ExcelProperty("test1")
private String test1;
@Schema(description = "长度选择", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
@ExcelProperty(value = "长度选择", converter = DictConvert.class)
@DictFormat("oa_numbers_length") // TODO 代码优化建议设置到对应的 DictTypeConstants 枚举类中
private Integer lengthSelection;
@Schema(description = "test2")
@ExcelProperty("test2")
private String test2;
@Schema(description = "映射数据1")
@ExcelProperty("映射数据1")
private String mappingData1;
@Schema(description = "test3")
@ExcelProperty("test3")
private String test3;
@Schema(description = "映射数据2")
@ExcelProperty("映射数据2")
private String mappingData2;
@Schema(description = "注解")
@ExcelProperty("注解")
private String annotation;
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("创建时间")
private LocalDateTime createTime;
}
}

View File

@ -44,13 +44,17 @@ public class numbersSaveReqVO {
@NotNull(message = "数据类型(0=流水号 1=文号)不能为空")
private Integer numbersType;
@Schema(description = "test1")
private String test1;
@Schema(description = "长度选择", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
@NotNull(message = "长度选择")
private Integer lengthSelection;
@Schema(description = "test2")
private String test2;
@Schema(description = "映射数据1")
private String mappingData1;
@Schema(description = "test3")
private String test3;
@Schema(description = "映射数据2")
private String mappingData2;
}
@Schema(description = "注解")
private String annotation;
}

View File

@ -1,5 +1,6 @@
package cn.iocoder.yudao.module.home.dal.dataobject.numbers;
import com.sun.xml.bind.v2.TODO;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
@ -68,16 +69,21 @@ public class numbersDO extends BaseDO {
*/
private Integer numbersType;
/**
* test1
* 长度选择
* 枚举 {@link TODO oa_numbers_length 对应的类}
*/
private String test1;
private Integer lengthSelection;
/**
* test2
* 映射数据1
*/
private String test2;
private String mappingData1;
/**
* test3
* 映射数据2
*/
private String test3;
private String mappingData2;
/**
* 注解
*/
private String annotation;
}
}

View File

@ -29,11 +29,12 @@ public interface numbersMapper extends BaseMapperX<numbersDO> {
.eqIfPresent(numbersDO::getLastCode, reqVO.getLastCode())
.eqIfPresent(numbersDO::getEnableMonth, reqVO.getEnableMonth())
.eqIfPresent(numbersDO::getNumbersType, reqVO.getNumbersType())
.eqIfPresent(numbersDO::getTest1, reqVO.getTest1())
.eqIfPresent(numbersDO::getTest2, reqVO.getTest2())
.eqIfPresent(numbersDO::getTest3, reqVO.getTest3())
.eqIfPresent(numbersDO::getLengthSelection, reqVO.getLengthSelection())
.eqIfPresent(numbersDO::getMappingData1, reqVO.getMappingData1())
.eqIfPresent(numbersDO::getMappingData2, reqVO.getMappingData2())
.eqIfPresent(numbersDO::getAnnotation, reqVO.getAnnotation())
.betweenIfPresent(numbersDO::getCreateTime, reqVO.getCreateTime())
.orderByDesc(numbersDO::getId));
}
}
}

View File

@ -71,4 +71,4 @@ public class numbersServiceImpl implements numbersService {
return numbersMapper.selectPage(pageReqVO);
}
}
}