| | |
| | | productList = baseDao.selectList(new QueryWrapper<XhProductModel>().eq(Constant.TableColumn.IS_DELETE, |
| | | Constant.Bool.NO).lt("product_type", 5).ne("product_type", 1).and(wrapper -> wrapper.eq("ship_id", productId).or().eq("id", productId)).orderByAsc(Constant.TableColumn.SORT)); |
| | | } else if (ztShow == 5) { |
| | | List<XhProductModel> dbList = baseDao.selectList(new QueryWrapper<XhProductModel>().eq(Constant.TableColumn.IS_DELETE, |
| | | Constant.Bool.NO).gt("product_type", 1).and(wrapper -> wrapper.eq("ship_id", productId).or().eq("id", productId))); |
| | | List<XhProductModel> dbList = baseDao.getProductListByShip(productId,2,5); |
| | | for (XhProductModel row : dbList) { |
| | | if (row.getSameSbNum() > 1) { |
| | | if (row.getSameSbNum()!=null && row.getSameSbNum() > 1) { |
| | | for (int i = 1; i <= row.getSameSbNum(); i++) { |
| | | try { |
| | | XhProductModel newRow = row.clone(); |
| | |
| | | ParamData itemEntity = new ParamData(); |
| | | itemEntity.setShipId(shipId); |
| | | itemEntity.setProductId(curXtId); |
| | | itemEntity.setBasicUnitNum(1); |
| | | paramDataService.insert(itemEntity); |
| | | } |
| | | |
| | |
| | | ParamData itemEntity = new ParamData(); |
| | | itemEntity.setShipId(shipId); |
| | | itemEntity.setProductId(curFxtId); |
| | | itemEntity.setBasicUnitNum(1); |
| | | paramDataService.insert(itemEntity); |
| | | } |
| | | |
| | |
| | | //绑定设备ID |
| | | itemEntity.setShipId(shipId); |
| | | itemEntity.setProductId(curSbId); |
| | | itemEntity.setBasicUnitNum(sameSbNum); |
| | | itemEntity.setReliabDistribType(reliabType.get(reliabDistribType)); |
| | | itemEntity.setBasicJoinCompute(isOrNot.get(basicJoinCompute)); |
| | | itemEntity.setBasicUnitNum(sameSbNum); |
| | | itemEntity.setBasicMtbfRegulate(basicMtbfRegulate); |
| | | itemEntity.setBasicMtbfRegulSuccRate(basicMtbfRegulSuccRate); |
| | | itemEntity.setBasicMtbfOperatingRatio(basicMtbfOperatingRatio); |