更新单元测试
This commit is contained in:
parent
3dfddd290e
commit
512d4503d7
|
@ -161,7 +161,7 @@ public class QueryBuilder {
|
|||
// 对比类型
|
||||
Comparison comparison = Comparison.EQ;
|
||||
// 转换条件
|
||||
String columnName = getColumnName(field);;
|
||||
String columnName = getColumnName(field);
|
||||
if(query != null){
|
||||
comparison = query.comparison();
|
||||
AnnoJoiner annoJoiner = ParserCache.getAnnoJoiner(dto.getClass(), entry.getKey());
|
||||
|
|
|
@ -51,12 +51,14 @@
|
|||
<groupId>net.coobird</groupId>
|
||||
<artifactId>thumbnailator</artifactId>
|
||||
<version>0.4.11</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<!-- 验证码示例 -->
|
||||
<dependency>
|
||||
<groupId>com.github.whvcse</groupId>
|
||||
<artifactId>easy-captcha</artifactId>
|
||||
<version>1.6.2</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
|
|
@ -61,12 +61,4 @@ public class DepartmentExcelModel extends BaseExcelModel {
|
|||
@ExcelBindDict(type = "USER_STATUS")
|
||||
@ExcelProperty(value = "状态", index = 4)
|
||||
private String userStatus;
|
||||
|
||||
@ExcelBindField(entity = UploadFile.class, field = "fileName", setIdField = "fileUid",
|
||||
duplicate = DuplicateStrategy.WARN, empty = EmptyStrategy.SET_0)
|
||||
@ExcelProperty(value = "文件", index = 5)
|
||||
private String fileName;
|
||||
|
||||
private String fileUid;
|
||||
|
||||
}
|
||||
|
|
|
@ -40,11 +40,11 @@ public class ExcelWriteTest extends ApplicationTest {
|
|||
*/
|
||||
public List<List<String>> buildNormalData(){
|
||||
List<List<String>> dataList = new ArrayList<>();
|
||||
dataList.add(Arrays.asList("上级部门", "单位", "名称", "数量", "状态", "文件"));
|
||||
dataList.add(Arrays.asList("上级部门", "单位", "名称", "数量", "状态"));
|
||||
|
||||
dataList.add(Arrays.asList("产品部", "dibo", "研发中心", "10", "在职", "department.xlsx"));
|
||||
dataList.add(Arrays.asList("", "dibo", "营销中心", "10", "在职", ""));
|
||||
dataList.add(Arrays.asList("产品部", "dibo", "财务部", "10", "离职", null));
|
||||
dataList.add(Arrays.asList("产品部", "dibo", "研发中心", "10", "在职"));
|
||||
dataList.add(Arrays.asList("", "dibo", "营销中心", "10", "在职"));
|
||||
dataList.add(Arrays.asList("产品部", "dibo", "财务部", "10", "离职"));
|
||||
return dataList;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue