| | |
| | | } |
| | | if(model.getGroupId()!= null && platform.getGroupId()!=null && !Constants.equalsInteger(platform.getGroupId(),model.getGroupId())){ |
| | | PlatformGroup group = platformGroupMapper.selectById(platform.getGroupId()); |
| | | if(group ==null || Constants.equalsInteger(group.getIsdeleted(),Constants.ZERO)){ |
| | | if(group ==null || Constants.equalsInteger(group.getIsdeleted(),Constants.ONE)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"对不起,月台组信息不正确!"); |
| | | } |
| | | //如果月台分组发生变化 |
| | |
| | | bean.setUseRata( |
| | | bean.getWorkCountTime().multiply(new BigDecimal(100)).divide(sumTime,BigDecimal.ROUND_HALF_DOWN,2) |
| | | ); |
| | | bean.setUseRata(Constants.formatBigdecimal2Float(bean.getUseRata()));//强制保留两位小数 |
| | | } |
| | | } |
| | | return platformList; |