|
@@ -24,7 +24,7 @@ import com.platform.service.event.WorkplaceBacklogEvent;
|
|
|
import com.platform.service.fill.FillGatherTaskService;
|
|
|
import com.platform.service.util.SendMessageUtils;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
-import org.apache.poi.hslf.model.Fill;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import tk.mybatis.mapper.weekend.Weekend;
|
|
|
import tk.mybatis.mapper.weekend.WeekendCriteria;
|
|
@@ -42,6 +42,7 @@ import java.util.concurrent.TimeUnit;
|
|
|
*/
|
|
|
@AllArgsConstructor
|
|
|
@Service("fillGatherTaskService")
|
|
|
+@Slf4j
|
|
|
public class FillGatherTaskServiceImpl extends BaseServiceImpl<FillGatherTaskMapper, FillGatherTask, FillGatherTaskDTO> implements FillGatherTaskService {
|
|
|
|
|
|
private final FillGatherInfoMapper fillGatherInfoMapper;
|
|
@@ -91,6 +92,8 @@ public class FillGatherTaskServiceImpl extends BaseServiceImpl<FillGatherTaskMap
|
|
|
// 4、启动超时监控预警信息
|
|
|
int initMin = model.getRequireHour()*60;
|
|
|
int hours = model.getWarningHour() == null ? initMin + 120 : model.getWarningHour()*60 + initMin;
|
|
|
+ log.info("-----------hours------------"+hours);
|
|
|
+ hours = 2;
|
|
|
RedisUtils.setString(RedisKeyConstants.EXPIRE_BUSINESS_KEY_FILL_PREFIX + RedisKeyConstants.EXPIRE_BUSINESS_SEP + task.getId(), task.getId(), hours, TimeUnit.MINUTES);
|
|
|
return task;
|
|
|
}
|