| | |
| | | import com.fzzy.api.data.ApiParam; |
| | | import com.fzzy.api.data.PushProtocol; |
| | | import com.fzzy.api.service.PushService13; |
| | | import com.fzzy.push.gd2020.GDApiRemoteService; |
| | | import com.fzzy.push.impl.ComPushService13; |
| | | import com.fzzy.push.impl.ComPushService99; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | public class GD2022PushService13 implements PushService13 { |
| | | |
| | | @Autowired |
| | | private GDApiRemoteService apiRemoteService; |
| | | private GD2022ApiRemoteService2022 apiRemoteService; |
| | | |
| | | @Autowired |
| | | private ComPushService13 pushService; |
| | | |
| | | private ComPushService13 pushService13; |
| | | @Autowired |
| | | private ComPushService99 pushService99; |
| | | |
| | | @Override |
| | | public String getProtocol() { |
| | |
| | | |
| | | @Override |
| | | public void pushData(ApiParam param) { |
| | | pushService13.pushData1301(apiRemoteService, param); |
| | | //粮情 |
| | | pushService.pushData1302(apiRemoteService, param); |
| | | |
| | | pushService13.pushData1302(apiRemoteService, param); |
| | | //气体 |
| | | pushService.pushData1304(apiRemoteService, param); |
| | | |
| | | pushService13.pushData1304(apiRemoteService, param); |
| | | //虫害 |
| | | pushService.pushData1303(apiRemoteService, param); |
| | | |
| | | //质检 |
| | | pushService.pushData1310(apiRemoteService, param); |
| | | |
| | | pushService13.pushData1303(apiRemoteService, param); |
| | | //通风 |
| | | pushService.pushData1305(apiRemoteService, param); |
| | | pushService13.pushData1305(apiRemoteService, param); |
| | | |
| | | //熏蒸 |
| | | pushService.pushData1306(apiRemoteService, param); |
| | | pushService13.pushData1306(apiRemoteService, param); |
| | | |
| | | pushService13.pushData1307(apiRemoteService, param); |
| | | |
| | | pushService13.pushData1308(apiRemoteService, param); |
| | | |
| | | pushService13.pushData1309(apiRemoteService, param); |
| | | |
| | | pushService13.pushData1310(apiRemoteService, param); |
| | | |
| | | //熏蒸备案 |
| | | pushService99.pushData1023(apiRemoteService, param); |
| | | } |
| | | |
| | | } |