| | |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.TaskMapper |
| | | import cn.flightfeather.supervision.common.utils.Constant |
| | | import cn.flightfeather.supervision.common.utils.DateUtil |
| | | import cn.flightfeather.supervision.domain.ds1.repository.TaskRep |
| | | import cn.flightfeather.supervision.lightshare.service.EvaluationService |
| | | import cn.flightfeather.supervision.lightshare.service.SubtaskService |
| | | import cn.flightfeather.supervision.lightshare.service.TaskService |
| | |
| | | import kotlin.collections.ArrayList |
| | | |
| | | @Service |
| | | class TaskServiceImpl(val taskMapper: TaskMapper) : TaskService { |
| | | class TaskServiceImpl(val taskMapper: TaskMapper, private val taskRep: TaskRep,) : TaskService { |
| | | |
| | | @Autowired |
| | | lateinit var subtaskService: SubtaskService |
| | |
| | | // example.or( |
| | | example.createCriteria().andIsNull("tsguid") |
| | | .andEqualTo("districtcode", districtCode) |
| | | .andLessThan("starttime", date) |
| | | .andLessThanOrEqualTo("starttime", date) |
| | | .andGreaterThanOrEqualTo("endtime", date) |
| | | // ) |
| | | example.orderBy("starttime").desc() |
| | |
| | | val criteria = example.createCriteria() |
| | | //获取用户信息 |
| | | val userInfo = userinfoMapper.findOne(guid) |
| | | val districtCode = userInfo.dGuid |
| | | val districtCode = userInfo?.dGuid |
| | | |
| | | //添加日期过滤 |
| | | |
| | |
| | | return taskProgressVolist |
| | | } |
| | | |
| | | override fun findTask(areaVo: AreaVo): List<Task?> { |
| | | return taskRep.findTasks(areaVo) |
| | | } |
| | | } |