|  |  | 
 |  |  | /** | 
 |  |  |  * 作业调度平台接口交互记录Service实现 | 
 |  |  |  * @author 江蹄蹄 | 
 |  |  |  * @since 2024/04/28 16:06 | 
 |  |  |  * @date 2024/06/28 10:03 | 
 |  |  |  */ | 
 |  |  | @Service | 
 |  |  | public class PlatformInterfaceLogServiceImpl implements PlatformInterfaceLogService { | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private SystemDictDataBiz systemDictDataBiz; | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private PlatformInterfaceLogMapper platformInterfaceLogMapper; | 
 |  |  | 
 |  |  |         QueryWrapper<PlatformInterfaceLog> wrapper = new QueryWrapper<>(platformInterfaceLog); | 
 |  |  |         return platformInterfaceLogMapper.selectCount(wrapper); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private SystemDictDataBiz systemDictDataBiz; | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public void clearThreeMonthLog() { | 
 |  |  |         int days =15; | 
 |  |  |         try { | 
 |  |  |             days = Integer.parseInt(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.LOG_DEL_DAYS_LIMIT).getCode()); | 
 |  |  |             days = Integer.parseInt(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.HK_LOG_DEL_DAYS_LIMIT).getCode()); | 
 |  |  |         }catch (Exception e){} | 
 |  |  |         platformInterfaceLogMapper.delete(new UpdateWrapper<PlatformInterfaceLog>().lambda() | 
 |  |  |                 .apply("to_days(create_date)+"+days+" < to_days(now())")); | 
 |  |  |                 .apply("to_days(create_date)+"+days+" < to_days(now())") ); | 
 |  |  |     } | 
 |  |  | } |