| | |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | |
| | | List<Api1102> api1102List = api1102Rep.findPushData(kqdm); |
| | | String bjw = ""; |
| | | if(null != api1102List && api1102List.size() > 0){ |
| | | if (null != api1102List && api1102List.size() > 0) { |
| | | bjw = ShAreaBjw.getBjw(api1102List.get(0).getXzqhdm()); |
| | | } |
| | | |
| | |
| | | for (Fz40Depot fz40Depot : list) { |
| | | //根据仓库编码获取配置信息 |
| | | depotConfList = fzzy40SyncDepotConfRep.findDataByDepotId(fz40Depot.getId()); |
| | | if(null == depotConfList || depotConfList.isEmpty()){ |
| | | if (null == depotConfList || depotConfList.isEmpty()) { |
| | | continue; |
| | | } |
| | | //获取货位信息 |
| | |
| | | // 1-3-5 |
| | | // 8-8-8 |
| | | //筒仓规则 |
| | | if(StringUtils.isNotEmpty(depotConf.getCableCir())){ |
| | | if (StringUtils.isNotEmpty(depotConf.getCableCir())) { |
| | | sh2023Api2103.setDlqs(String.valueOf(strs.length)); |
| | | sh2023Api2103.setDlhs(null); |
| | | sh2023Api2103.setDlls(null); |
| | |
| | | String[] cableCir = depotConf.getCableCir().split("-"); |
| | | int num1 = 0; //起始根 |
| | | int num2 = 0; //截止根 |
| | | for(int i = 0; i < cableCir.length; i ++){ |
| | | for (int i = 0; i < cableCir.length; i++) { |
| | | sh2023Api2103.setDlcs(cableCir[i]); |
| | | |
| | | sh2023Api2103Item = new SH2023Api2103Item(); |
| | | sh2023Api2103Item.setQh(i + 1 + ""); |
| | | if(i == 0){ |
| | | if (i == 0) { |
| | | num1 += 1; |
| | | }else { |
| | | } else { |
| | | num1 = num2 + 1; |
| | | } |
| | | num2 += Integer.valueOf(strs[i]); |
| | | sh2023Api2103Item.setQsdlbh(num1 + ""); |
| | | sh2023Api2103Item.setJsdlbh(num2 + ""); |
| | | sh2023Api2103Item.setCs(cableCir[i]); |
| | | sh2023Api2103Item.setYbj((i + 1)*4 + ""); |
| | | sh2023Api2103Item.setYbj((i + 1) * 4 + ""); |
| | | sh2023Api2103Item.setRowId(i + ""); |
| | | listItem.add(sh2023Api2103Item); |
| | | } |
| | |
| | | } |
| | | |
| | | sh2023Api2103.setScqd("1"); |
| | | sh2023Api2103.setSczd(Integer.valueOf(strs[1])*Integer.valueOf(strs[2]) + ""); |
| | | sh2023Api2103.setSczd(Integer.valueOf(strs[1]) * Integer.valueOf(strs[2]) + ""); |
| | | |
| | | sh2023Api2103.setZcqd("1"); |
| | | sh2023Api2103.setZczd(Integer.valueOf(strs[1])*Integer.valueOf(strs[2]) + ""); |
| | | sh2023Api2103.setZczd(Integer.valueOf(strs[1]) * Integer.valueOf(strs[2]) + ""); |
| | | |
| | | sh2023Api2103.setXcqd("1"); |
| | | sh2023Api2103.setXczd(Integer.valueOf(strs[1])*Integer.valueOf(strs[2]) + ""); |
| | | sh2023Api2103.setXczd(Integer.valueOf(strs[1]) * Integer.valueOf(strs[2]) + ""); |
| | | |
| | | sh2023Api2103.setYxfwqsc("1"); |
| | | sh2023Api2103.setYxfwjsc(strs[0]); |
| | |
| | | infoData.setRemarks("粮情设备配置信息"); |
| | | |
| | | //设置操作标志 |
| | | apiInfoDataList = apiInfoDataRep.getDataByDataId(infoData.getDataId()); |
| | | apiInfoDataList = apiInfoDataRep.getDataByInteAndData(SH2023Constant.SH_2023_API_CODE_2103, infoData.getDataId()); |
| | | if (null == apiInfoDataList || apiInfoDataList.isEmpty()) { |
| | | infoData.setCzbz(Constant.CZBZ_I); |
| | | } else { |