|  |  |  | 
|---|
|  |  |  | //设置粮食轮换年度,根据计划明细号查询计划明细,再根据计划明细查询轮换计划 | 
|---|
|  |  |  | List<Api1404> api1404List = api1404Rep.getDataByJhmxdh(apiData.getJhmxh()); | 
|---|
|  |  |  | if (null != api1404List && api1404List.size() > 0) { | 
|---|
|  |  |  | api1202.setShnd(api1404List.get(0).getShnd()); | 
|---|
|  |  |  | if(StringUtils.isEmpty(api1202.getShnd())){ | 
|---|
|  |  |  | api1202.setShnd(api1404List.get(0).getShnd()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | List<Api1403> api1403List = api1403Rep.getDataByLhjhdh(api1404List.get(0).getLhjhdh()); | 
|---|
|  |  |  | if (null != api1403List && api1403List.size() > 0) { | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(api1403List.get(0).getJhnd())) { | 
|---|
|  |  |  | 
|---|
|  |  |  | //设置粮食轮换年度 | 
|---|
|  |  |  | List<Api1404> api1404List = api1404Rep.getDataByJhmxdh(apiData.getJhmxh()); | 
|---|
|  |  |  | if (null != api1404List && api1404List.size() > 0) { | 
|---|
|  |  |  | if(StringUtils.isEmpty(api1205.getShnd())){ | 
|---|
|  |  |  | api1205.setShnd(api1404List.get(0).getShnd()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | List<Api1403> api1403List = api1403Rep.getDataByLhjhdh(api1404List.get(0).getLhjhdh()); | 
|---|
|  |  |  | if (null != api1403List && api1403List.size() > 0) { | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(api1403List.get(0).getJhnd())) { | 
|---|