|
|
@@ -3,7 +3,10 @@ package org.dromara.system.domain.vo;
|
|
|
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
|
|
|
import cn.idev.excel.annotation.ExcelProperty;
|
|
|
import io.github.linpeilie.annotations.AutoMapper;
|
|
|
+import io.github.linpeilie.annotations.AutoMappers;
|
|
|
+import io.github.linpeilie.annotations.AutoMapping;
|
|
|
import lombok.Data;
|
|
|
+import org.dromara.system.api.domain.dto.AddressAreaDTO;
|
|
|
import org.dromara.system.domain.AddressArea;
|
|
|
|
|
|
import java.io.Serial;
|
|
|
@@ -20,7 +23,10 @@ import java.util.List;
|
|
|
*/
|
|
|
@Data
|
|
|
@ExcelIgnoreUnannotated
|
|
|
-@AutoMapper(target = AddressArea.class)
|
|
|
+@AutoMappers({
|
|
|
+ @AutoMapper(target = AddressArea.class),
|
|
|
+ @AutoMapper(target = AddressAreaDTO.class)
|
|
|
+})
|
|
|
public class AddressAreaVo implements Serializable {
|
|
|
|
|
|
@Serial
|
|
|
@@ -36,6 +42,7 @@ public class AddressAreaVo implements Serializable {
|
|
|
* 地区编码
|
|
|
*/
|
|
|
@ExcelProperty(value = "地区编码")
|
|
|
+ @AutoMapping(target = "areaId", targetClass = AddressAreaDTO.class)
|
|
|
private String areaCode;
|
|
|
|
|
|
/**
|
|
|
@@ -48,6 +55,7 @@ public class AddressAreaVo implements Serializable {
|
|
|
* 父类ID
|
|
|
*/
|
|
|
@ExcelProperty(value = "父类ID")
|
|
|
+ @AutoMapping(target = "parentCode", targetClass = AddressAreaDTO.class)
|
|
|
private Long parentId;
|
|
|
|
|
|
/**
|