| | |
| | | import com.fzzy.api.data.ApiParam; |
| | | import com.fzzy.api.data.PushProtocol; |
| | | import com.fzzy.api.service.PushService12; |
| | | import com.fzzy.push.gd2020.GDApiRemoteService; |
| | | import com.fzzy.push.impl.ComPushService12; |
| | | import com.fzzy.push.impl.ComPushService90; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | public class GD2022PushService12 implements PushService12 { |
| | | |
| | | @Autowired |
| | | private GDApiRemoteService apiRemoteService; |
| | | private GD2022ApiRemoteService2022 apiRemoteService; |
| | | |
| | | @Autowired |
| | | private ComPushService12 pushService; |
| | | private ComPushService12 pushService12; |
| | | @Autowired |
| | | private ComPushService90 pushService99; |
| | | |
| | | @Override |
| | | public String getProtocol() { |
| | |
| | | public void pushData(ApiParam param) { |
| | | log.info("------->>>>粮食购销 接口模块上报开始"); |
| | | |
| | | //客户信息 |
| | | pushService12.pushData1212(apiRemoteService, param); |
| | | |
| | | //合同 |
| | | pushService.pushData1201(apiRemoteService, param); |
| | | |
| | | //粮食库存数据 |
| | | pushService.pushData1208(apiRemoteService, param); |
| | | |
| | | //损溢单 |
| | | pushService.pushData1209(apiRemoteService, param); |
| | | |
| | | //性质转变 |
| | | pushService.pushData1210(apiRemoteService, param); |
| | | pushService12.pushData1201(apiRemoteService, param); |
| | | |
| | | //入库数据 + 入库过磅 |
| | | pushService.pushData1202(apiRemoteService, param); |
| | | pushService12.pushData1202(apiRemoteService, param); |
| | | |
| | | //入库质检 |
| | | pushService.pushData1203(apiRemoteService, param); |
| | | pushService12.pushData1203(apiRemoteService, param); |
| | | |
| | | //入库结算 |
| | | pushService.pushData1204(apiRemoteService, param); |
| | | pushService12.pushData1204(apiRemoteService, param); |
| | | |
| | | //出库数据 + 出库过磅 |
| | | pushService.pushData1205(apiRemoteService, param); |
| | | pushService12.pushData1205(apiRemoteService, param); |
| | | |
| | | //出库结算 |
| | | pushService.pushData1206(apiRemoteService, param); |
| | | pushService12.pushData1206(apiRemoteService, param); |
| | | |
| | | //倒仓 |
| | | pushService.pushData1207(apiRemoteService, param); |
| | | pushService12.pushData1207(apiRemoteService, param); |
| | | |
| | | //损溢单 |
| | | pushService12.pushData1209(apiRemoteService, param); |
| | | |
| | | //粮食库存数据 |
| | | pushService12.pushData1208(apiRemoteService, param); |
| | | |
| | | //性质转变 |
| | | pushService12.pushData1210(apiRemoteService, param); |
| | | |
| | | //账面库存 |
| | | pushService12.pushData1211(apiRemoteService, param); |
| | | |
| | | //文件 |
| | | pushService.pushData1109(apiRemoteService, param); |
| | | pushService12.pushData1109(apiRemoteService, param); |
| | | |
| | | //封仓确认单 |
| | | pushService12.pushData1213(apiRemoteService, param); |
| | | |
| | | log.info("------->>>>粮食购销 接口模块上报结束"); |
| | | } |