| | |
| | | |
| | | import com.fzzy.api.data.ApiParam; |
| | | import com.fzzy.api.data.PushProtocol; |
| | | import com.fzzy.api.service.ApiRemoteService; |
| | | 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.ComPushService90; |
| | | 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 SH2023ApiRemoteService apiRemoteService; |
| | | |
| | | @Autowired |
| | | private ComPushService12 pushService12; |
| | | @Autowired |
| | | private ComPushService90 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); |
| | | |
| | | /** |
| | | * 1201 合同信息 |
| | | */ |
| | | public void pushData1201(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //TODO |
| | | //入库质检 |
| | | pushService12.pushData1203(apiRemoteService, param); |
| | | |
| | | } |
| | | //入库结算 |
| | | pushService12.pushData1204(apiRemoteService, param); |
| | | |
| | | /** |
| | | * 1202 粮食入库信息 |
| | | */ |
| | | public void pushData1202(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //TODO |
| | | //出库数据 + 出库过磅 |
| | | pushService12.pushData1205(apiRemoteService, param); |
| | | |
| | | } |
| | | //出库结算 |
| | | pushService12.pushData1206(apiRemoteService, param); |
| | | |
| | | /** |
| | | * 1203 粮食入库检验信息 |
| | | */ |
| | | public void pushData1203(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //TODO |
| | | //倒仓 |
| | | pushService12.pushData1207(apiRemoteService, param); |
| | | |
| | | } |
| | | //损溢单 |
| | | pushService12.pushData1209(apiRemoteService, param); |
| | | |
| | | /** |
| | | * 1204 粮食入库结算信息 |
| | | */ |
| | | public void pushData1204(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //TODO |
| | | //粮食库存数据 |
| | | pushService12.pushData1208(apiRemoteService, param); |
| | | |
| | | } |
| | | //性质转变 |
| | | pushService12.pushData1210(apiRemoteService, param); |
| | | |
| | | /** |
| | | * 1205 粮食出库信息 |
| | | */ |
| | | public void pushData1205(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //TODO |
| | | //账面库存 |
| | | pushService12.pushData1211(apiRemoteService, param); |
| | | |
| | | } |
| | | //文件 |
| | | pushService12.pushData1109(apiRemoteService, param); |
| | | |
| | | /** |
| | | * 1206 粮食出库结算信息 |
| | | */ |
| | | public void pushData1206(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //TODO |
| | | pushService99.pushData9105(apiRemoteService, param); |
| | | pushService99.pushData9103(apiRemoteService, param); |
| | | pushService99.pushData9106(apiRemoteService, param); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 1207 倒仓倒出 |
| | | */ |
| | | public void pushData1207(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //TODO |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 1208 粮食库存 |
| | | */ |
| | | public void pushData1208(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //TODO |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 1209 损溢单 |
| | | */ |
| | | public void pushData1209(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //TODO |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 1210 粮食性质转变单 |
| | | */ |
| | | public void pushData1210(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //TODO |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 1211 账面库存 |
| | | */ |
| | | public void pushData1211(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //TODO |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 1212 客户信息 |
| | | */ |
| | | public void pushData1212(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //TODO |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 2101 检斤单 |
| | | */ |
| | | public void pushData2101(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //TODO |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 2102 倒仓倒入 |
| | | */ |
| | | public void pushData2102(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //TODO |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 2104 市储驳运单 |
| | | */ |
| | | public void pushData2104(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //TODO |
| | | |
| | | log.info("------->>>>粮食购销 接口模块上报结束"); |
| | | } |
| | | } |