| | |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.service.ISysConfigService; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.service.IServiceExternalService; |
| | |
| | | try { |
| | | aBoolean = serviceExternalService.generalInterface(dataMap); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("serviceExternal---generalInterface出异常了:{}", e.getMessage()); |
| | | log.error("serviceExternal---generalInterface出异常了:{}", e.getMessage(), e); |
| | | aBoolean = false; |
| | | } |
| | | return returnParam(aBoolean, dataMap); |
| | |
| | | try { |
| | | aBoolean = serviceExternalService.addInspectBGService(dataMap); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("serviceExternal---addInspectBGService:{}", e.getMessage()); |
| | | log.error("serviceExternal---addInspectBGService:{}", e.getMessage(), e); |
| | | aBoolean = false; |
| | | } |
| | | return returnParam(aBoolean, dataMap); |
| | |
| | | |
| | | |
| | | private Map<String, Object> returnParam(Boolean b, Map dataMap) { |
| | | Map yeWuXX = (Map) dataMap.get("YeWuXX"); |
| | | String XiaoXiID = (String) yeWuXX.get("XiaoXiID"); |
| | | String XiaoXiID = null; |
| | | if (dataMap != null) { |
| | | Map yeWuXX = (Map) dataMap.get("YeWuXX"); |
| | | if (yeWuXX != null && yeWuXX.get("XiaoXiID") != null) { |
| | | XiaoXiID = yeWuXX.get("XiaoXiID").toString(); |
| | | } |
| | | if (StringUtils.isBlank(XiaoXiID)) { |
| | | Map xiaoXiTou = (Map) dataMap.get("XiaoXiTou"); |
| | | if (xiaoXiTou != null && xiaoXiTou.get("XiaoXiID") != null) { |
| | | XiaoXiID = xiaoXiTou.get("XiaoXiID").toString(); |
| | | } |
| | | } |
| | | } |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | if (b) { |