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

添加水印图片

parent e20bec28
...@@ -5,6 +5,8 @@ import java.util.ArrayList; ...@@ -5,6 +5,8 @@ import java.util.ArrayList;
import com.mortals.xhx.module.certificate.model.vo.CertificateIndustryVo; import com.mortals.xhx.module.certificate.model.vo.CertificateIndustryVo;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data; import lombok.Data;
import org.springframework.util.ObjectUtils;
import java.io.Serializable; import java.io.Serializable;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
...@@ -36,7 +38,9 @@ public class CertificateIndustryTreeSelect implements Serializable { ...@@ -36,7 +38,9 @@ public class CertificateIndustryTreeSelect implements Serializable {
public CertificateIndustryTreeSelect(CertificateIndustryEntity entity) { public CertificateIndustryTreeSelect(CertificateIndustryEntity entity) {
this.id = entity.getId(); this.id = entity.getId();
this.label = entity.getIndustryName(); this.label = entity.getIndustryName();
if(!ObjectUtils.isEmpty(entity.getChildren())){
this.children = entity.getChildren().stream().map(CertificateIndustryTreeSelect::new).collect(Collectors.toList()); this.children = entity.getChildren().stream().map(CertificateIndustryTreeSelect::new).collect(Collectors.toList());
} }
}
} }
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"baseUrl": "http://127.0.0.1:17500/attendance" "baseUrl": "http://127.0.0.1:17500/attendance"
}, },
"test": { "test": {
"baseUrl": "http://192.168.0.250:11011/onecert" "baseUrl": "http://192.168.0.98:11011/onecert"
}, },
"test-remote": { "test-remote": {
"baseUrl": "http://8.136.255.30:11011/onecert" "baseUrl": "http://8.136.255.30:11011/onecert"
......
...@@ -43,3 +43,10 @@ POST {{baseUrl}}/param/interlist ...@@ -43,3 +43,10 @@ POST {{baseUrl}}/param/interlist
Content-Type: application/json 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