package com.ld.igds.phone.service.impl; import com.alibaba.fastjson.JSONObject; import com.ld.igds.phone.constant.PhoneConstant; import com.ld.igds.phone.dto.DtoWeather; import com.ld.igds.phone.mapper.PhoneCommonMapper; import com.ld.igds.phone.util.PhoneRespUtil; import com.ld.igds.phone.dto.AuthUser; import com.ld.igds.phone.dto.PhoneResponse; import com.ld.igds.phone.param.PhoneRequest; import com.ld.igds.phone.service.PhoneService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 气象信息接口实现 * @author chen */ @Service public class ServiceImpl5002 implements PhoneService { @Autowired private PhoneCommonMapper phoneCommonMapper; @Override public String getInterfaceId() { return PhoneConstant.API_PHONE_5002; } @SuppressWarnings("unchecked") @Override public PhoneResponse execute(PhoneRequest req, AuthUser authUser) throws Exception { List dtoWeathers = phoneCommonMapper.phoneListWeather(authUser.getCompanyId()); return PhoneRespUtil.success(dtoWeathers, req); } }