Commit cd028478 authored by 赵啸非's avatar 赵啸非

添加水印图片

parent e20bec28
......@@ -5,6 +5,8 @@ import java.util.ArrayList;
import com.mortals.xhx.module.certificate.model.vo.CertificateIndustryVo;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.springframework.util.ObjectUtils;
import java.io.Serializable;
import java.util.stream.Collectors;
/**
......@@ -36,7 +38,9 @@ public class CertificateIndustryTreeSelect implements Serializable {
public CertificateIndustryTreeSelect(CertificateIndustryEntity entity) {
this.id = entity.getId();
this.label = entity.getIndustryName();
this.children = entity.getChildren().stream().map(CertificateIndustryTreeSelect::new).collect(Collectors.toList());
if(!ObjectUtils.isEmpty(entity.getChildren())){
this.children = entity.getChildren().stream().map(CertificateIndustryTreeSelect::new).collect(Collectors.toList());
}
}
}
\ No newline at end of file
......@@ -3,7 +3,7 @@
"baseUrl": "http://127.0.0.1:17500/attendance"
},
"test": {
"baseUrl": "http://192.168.0.250:11011/onecert"
"baseUrl": "http://192.168.0.98:11011/onecert"
},
"test-remote": {
"baseUrl": "http://8.136.255.30:11011/onecert"
......
......@@ -42,4 +42,11 @@ Content-Type: application/json
POST {{baseUrl}}/param/interlist
Content-Type: application/json
{}
###获取行业树
GET {{baseUrl}}/certificate/industry/treeselect
Content-Type: application/json
{}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment