|  |  | 
 |  |  | /** | 
 |  |  |  * param_data_basic | 
 |  |  |  * | 
 |  |  |  * @author zt generator  | 
 |  |  |  * @author zt generator | 
 |  |  |  * @since 1.0.0 2024-07-11 | 
 |  |  |  */ | 
 |  |  | @Service | 
 |  |  | public class ParamDataBasicService  extends BaseService<ParamDataBasicDao, ParamData> { | 
 |  |  | public class ParamDataBasicService extends BaseService<ParamDataBasicDao, ParamData> { | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 分页查询 | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     public List<ParamData> page(QueryFilter queryFilter) { | 
 |  |  |         List<ParamData> list = baseDao.getAI(queryFilter.getQueryParams()); | 
 |  |  |         for (ParamData data : list) { | 
 |  |  |             if (data.getBasicMtbfOperatingRatio() == null || data.getBasicMtbfOperatingRatio() == 0.0) { | 
 |  |  |                 data.setBasicMtbfOperatingRatio(1.0); | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         return TreeUtils.build(list); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public void compute(Long shipId) { | 
 |  |  |         baseDao.compute(shipId,4); | 
 |  |  |         baseDao.compute(shipId,3); | 
 |  |  |         baseDao.compute(shipId,2); | 
 |  |  |         baseDao.compute1(shipId); | 
 |  |  |         baseDao.compute(shipId, 4); | 
 |  |  |         baseDao.compute(shipId, 3); | 
 |  |  |         baseDao.compute(shipId, 2); | 
 |  |  |         baseDao.compute2(shipId); | 
 |  |  |     } | 
 |  |  | } |