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