Commit 4c733932 authored by hezhen's avatar hezhen

123

parent 05f2c265
...@@ -125,4 +125,20 @@ public interface UserRestInterface { ...@@ -125,4 +125,20 @@ public interface UserRestInterface {
return null; return null;
} }
default void setPowerDataCorporation(DataInter dataInter){
UserDTO userDTO = getAdminUserInfoV2(true);
if (userDTO == null) {
return;
}
dataInter.setBizType(userDTO.getBizType());
Integer dataAll=userDTO.getDataAll()== null ? 2 : userDTO.getDataAll();
if (dataAll == 2){
List<Integer> dataCorporation2List = userDTO.dataCorporation2List() == null ? new ArrayList<>() : userDTO.dataCorporation2List();
if (dataCorporation2List.size() == 0) {
dataCorporation2List.add(0);
}
dataInter.setDataCorporationIds(dataCorporation2List);
}
}
} }
...@@ -94,7 +94,7 @@ public class AdminCompanyInfoController extends BaseController<CompanyInfoApplyB ...@@ -94,7 +94,7 @@ public class AdminCompanyInfoController extends BaseController<CompanyInfoApplyB
@ApiModelProperty("商家信息") @ApiModelProperty("商家信息")
public ObjectRestResponse info() { public ObjectRestResponse info() {
CompanyInfoFindDTO companyInfoFindDTO=new CompanyInfoFindDTO(); CompanyInfoFindDTO companyInfoFindDTO=new CompanyInfoFindDTO();
setPowerData(companyInfoFindDTO); setPowerDataCorporation(companyInfoFindDTO);
List<CompanyInfo> list = companyInfoBiz.getList(companyInfoFindDTO); List<CompanyInfo> list = companyInfoBiz.getList(companyInfoFindDTO);
if (list == null || list.size() == 0){ if (list == null || list.size() == 0){
throw new BaseException("商家不存在", ResultCode.FAILED_CODE); throw new BaseException("商家不存在", ResultCode.FAILED_CODE);
......
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