|
@@ -51,9 +51,18 @@ public class CompanyController {
|
|
|
|
|
|
if(company!=null) {
|
|
if(company!=null) {
|
|
PojoUtils.map(company, companyInfoDTO);
|
|
PojoUtils.map(company, companyInfoDTO);
|
|
|
|
+
|
|
|
|
+ if(StringUtils.isNotEmpty(company.getPromoter())){
|
|
|
|
+ companyInfoDTO.setPromoterEnabled(false);
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
|
|
+ companyInfoDTO.setPromoterEnabled(true);
|
|
|
|
+ }
|
|
|
|
+
|
|
messageResult.setData(companyInfoDTO);
|
|
messageResult.setData(companyInfoDTO);
|
|
}
|
|
}
|
|
else{
|
|
else{
|
|
|
|
+ companyInfoDTO.setPromoterEnabled(true);
|
|
messageResult.setData(companyInfoDTO);
|
|
messageResult.setData(companyInfoDTO);
|
|
}
|
|
}
|
|
|
|
|