Commit d631a8c5 by 陶光胜

观云台小程序

parent 997f7c52
......@@ -57,9 +57,12 @@ public class StoreSearchUtils {
private DataAuthApiService dataAuthApiService;
public Integer isWgs(Integer userId, Integer enterpriseId, String searchJson){
JSONObject json = JSON.parseObject(searchJson);
ServiceResponse<DataAuthDTO> response = this.dataAuthApiService.ggetDataAuthByUserId(enterpriseId, userId);
DataAuthDTO dataAuthDTO = response.getResult() == null ? new DataAuthDTO() : response.getResult();
if(StringUtils.isBlank(searchJson)){
return dataAuthDTO.getNoOwnerStore();
}
JSONObject json = JSON.parseObject(searchJson);
StoreSearchQo storeSearchQo = json.getObject(StoreChannelEnum.OFFLINE.getChannel().toString(), StoreSearchQo.class);
if(storeSearchQo != null){
return storeSearchQo.getHasWgs() & dataAuthDTO.getNoOwnerStore();
......
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