CZT
2024-03-09 4c6b38c84b14e90bd0844046645c61796746696c
src/main/java/com/fzzy/async/fzzy40/impl/Fzzy40Sync1208.java
@@ -112,16 +112,25 @@
                if (StringUtils.isEmpty(fz40DepotStore.getLqgsdwdm())) {
                    apiData.setLqgsdwdm(api1102.getDwdm());
                } else {
                    apiData.setLqxzqhdm(fz40DepotStore.getLqgsdwdm());
                    apiData.setLqgsdwdm(fz40DepotStore.getLqgsdwdm());
                }
                //粮权行政区划代码
                apiData.setLqxzqhdm(api1102.getXzqhdm());
                //管理方式-默认直储
                apiData.setGlfs("01");
                if (StringUtils.isEmpty(fz40DepotStore.getManageType())) {
                    apiData.setGlfs("01");
                } else {
                    apiData.setGlfs(fz40DepotStore.getManageType());
                }
                //收储地点-默认库内
                apiData.setScdd("1");
                //储粮方式
                apiData.setClfs(fz40DepotStore.getStoreType());
                //包装储粮是,核查包存粮包数
                if("2".equals(apiData.getClfs())){
                    apiData.setBclbs((int)(fz40DepotStore.getStorageReal()/25));
                }
                //货位状态
                mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_HWZT, fz40DepotStore.getDepotStatus());
@@ -133,7 +142,10 @@
                apiData.setRcsj(fz40DepotStore.getStoreDate());
                //封仓日期
                if ("3".equals(apiData.getHwzt()) || "4".equals(apiData.getHwzt())) {
                    apiData.setFcrq(DateUtils.addDays(fz40DepotStore.getStoreDate(), 10));
                    if(null == fz40DepotStore.getFullDate()){
                        fz40DepotStore.setFullDate(DateUtils.addDays(fz40DepotStore.getStoreDate(), 30));
                    }
                    apiData.setFcrq(fz40DepotStore.getFullDate());
                }
                if ("1".equals(apiData.getHwzt())) {