Commit 362b8301 authored by tangwei's avatar tangwei

修改户用经销商注册地

parent 83d34fd3
...@@ -66,7 +66,7 @@ public class CommerceDto { ...@@ -66,7 +66,7 @@ public class CommerceDto {
} }
public void setLegalPersonCardPhotoFront(String legalPersonCardPhotoFront) { public void setLegalPersonCardPhotoFront(String legalPersonCardPhotoFront) {
if(this.legalPersonCardPhotoFront!=null&&!legalPersonCardPhotoFront.isEmpty()&&this.legalPersonCardPhotoFrontUrl==null){ if(this.legalPersonCardPhotoFront!=null&&!this.legalPersonCardPhotoFront.isEmpty()&&this.legalPersonCardPhotoFrontUrl==null){
List<FileDto> legalPersonCardPhotoFrontUrl =new ArrayList<>(); List<FileDto> legalPersonCardPhotoFrontUrl =new ArrayList<>();
FileDto d=new FileDto(this.legalPersonCardPhotoFront); FileDto d=new FileDto(this.legalPersonCardPhotoFront);
legalPersonCardPhotoFrontUrl.add(d); legalPersonCardPhotoFrontUrl.add(d);
...@@ -85,7 +85,7 @@ public class CommerceDto { ...@@ -85,7 +85,7 @@ public class CommerceDto {
} }
public void setLegalPersonCardPhotoBack(String legalPersonCardPhotoBack) { public void setLegalPersonCardPhotoBack(String legalPersonCardPhotoBack) {
if(this.legalPersonCardPhotoBack!=null&&!legalPersonCardPhotoBack.isEmpty()&& this.legalPersonCardPhotoBackUrl==null){ if(this.legalPersonCardPhotoBack!=null&&!this.legalPersonCardPhotoBack.isEmpty()&& this.legalPersonCardPhotoBackUrl==null){
List<FileDto> legalPersonCardPhotoBackUrl =new ArrayList<>(); List<FileDto> legalPersonCardPhotoBackUrl =new ArrayList<>();
FileDto d=new FileDto(this.legalPersonCardPhotoBack); FileDto d=new FileDto(this.legalPersonCardPhotoBack);
legalPersonCardPhotoBackUrl.add(d); legalPersonCardPhotoBackUrl.add(d);
......
...@@ -81,7 +81,7 @@ public class UnitInformation { ...@@ -81,7 +81,7 @@ public class UnitInformation {
} }
this.registerPcdCode =code!=null? code.toString():null; this.registerPcdCode =code!=null&&!code.toString().isEmpty()? code.toString():null;
this.registerPcdCodeList = registerPcdCodeList; this.registerPcdCodeList = registerPcdCodeList;
} }
...@@ -97,12 +97,12 @@ public class UnitInformation { ...@@ -97,12 +97,12 @@ public class UnitInformation {
} }
this.workPcdCode = code!=null? code.toString():null; this.workPcdCode = code!=null&&!code.toString().isEmpty()? code.toString():null;
this.workPcdCodeList = workPcdCodeList; this.workPcdCodeList = workPcdCodeList;
} }
public void setRegisterPcdCode(String registerPcdCode) { public void setRegisterPcdCode(String registerPcdCode) {
if(this.registerPcdCode!=null&&!registerPcdCode.isEmpty()&&this.registerPcdCodeList ==null){ if(this.registerPcdCode!=null&&!this.registerPcdCode.isEmpty()&&this.registerPcdCodeList ==null){
List<Integer> registerPcdCodeList =new ArrayList<>(); List<Integer> registerPcdCodeList =new ArrayList<>();
String[] da= registerPcdCode.split("-"); String[] da= registerPcdCode.split("-");
for (String s : da) { for (String s : da) {
...@@ -115,7 +115,7 @@ public class UnitInformation { ...@@ -115,7 +115,7 @@ public class UnitInformation {
} }
public void setWorkPcdCode(String workPcdCode) { public void setWorkPcdCode(String workPcdCode) {
if(this.workPcdCode!=null&&!workPcdCode.isEmpty()&&this.workPcdCodeList==null ){ if(this.workPcdCode!=null&&!this.workPcdCode.isEmpty()&&this.workPcdCodeList==null ){
List<Integer> workPcdCodeList =new ArrayList<>(); List<Integer> workPcdCodeList =new ArrayList<>();
String[] da= workPcdCode.split("-"); String[] da= workPcdCode.split("-");
for (String s : da) { for (String s : da) {
...@@ -127,7 +127,7 @@ public class UnitInformation { ...@@ -127,7 +127,7 @@ public class UnitInformation {
} }
public void setHeadCardPhotoFront(String headCardPhotoFront) { public void setHeadCardPhotoFront(String headCardPhotoFront) {
if(this.headCardPhotoFront!=null&&!headCardPhotoFront.isEmpty()&&this.headCardPhotoFrontUrl==null){ if(this.headCardPhotoFront!=null&&!this.headCardPhotoFront.isEmpty()&&this.headCardPhotoFrontUrl==null){
List<FileDto> headCardPhotoFrontUrl =new ArrayList<>(); List<FileDto> headCardPhotoFrontUrl =new ArrayList<>();
FileDto d=new FileDto(this.headCardPhotoFront); FileDto d=new FileDto(this.headCardPhotoFront);
headCardPhotoFrontUrl.add(d); headCardPhotoFrontUrl.add(d);
...@@ -137,7 +137,7 @@ public class UnitInformation { ...@@ -137,7 +137,7 @@ public class UnitInformation {
} }
public void setHeadCardPhotoBack(String headCardPhotoBack) { public void setHeadCardPhotoBack(String headCardPhotoBack) {
if(this.headCardPhotoBack!=null&&!headCardPhotoBack.isEmpty()&&this.headCardPhotoBackUrl==null){ if(this.headCardPhotoBack!=null&&!this.headCardPhotoBack.isEmpty()&&this.headCardPhotoBackUrl==null){
List<FileDto> headCardPhotoBackUrl =new ArrayList<>(); List<FileDto> headCardPhotoBackUrl =new ArrayList<>();
FileDto d=new FileDto(this.headCardPhotoBack); FileDto d=new FileDto(this.headCardPhotoBack);
headCardPhotoBackUrl.add(d); headCardPhotoBackUrl.add(d);
...@@ -150,7 +150,7 @@ public class UnitInformation { ...@@ -150,7 +150,7 @@ public class UnitInformation {
public void setHeadCardPhotoFrontUrl(List<FileDto> headCardPhotoFrontUrl) { public void setHeadCardPhotoFrontUrl(List<FileDto> headCardPhotoFrontUrl) {
String url=null; String url=null;
if(headCardPhotoFrontUrl!=null&&!headCardPhotoFrontUrl.isEmpty()&&!headCardPhotoFrontUrl.isEmpty()){ if(headCardPhotoFrontUrl!=null&&!this.headCardPhotoFrontUrl.isEmpty()&&!headCardPhotoFrontUrl.isEmpty()){
url=headCardPhotoFrontUrl.get(0).getUrl(); url=headCardPhotoFrontUrl.get(0).getUrl();
} }
...@@ -160,7 +160,7 @@ public class UnitInformation { ...@@ -160,7 +160,7 @@ public class UnitInformation {
public void setHeadCardPhotoBackUrl(List<FileDto> headCardPhotoBackUrl) { public void setHeadCardPhotoBackUrl(List<FileDto> headCardPhotoBackUrl) {
String url=null; String url=null;
if(headCardPhotoBackUrl!=null&&!headCardPhotoBackUrl.isEmpty()&&!headCardPhotoBackUrl.isEmpty()){ if(headCardPhotoBackUrl!=null&&!this.headCardPhotoBackUrl.isEmpty()&&!headCardPhotoBackUrl.isEmpty()){
url=headCardPhotoBackUrl.get(0).getUrl(); url=headCardPhotoBackUrl.get(0).getUrl();
} }
......
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