| | |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | import java.time.LocalDate |
| | | import java.time.LocalDateTime |
| | | import java.time.ZoneId |
| | | import java.util.* |
| | |
| | | * 线上培训未签到或签收文件 -3分 |
| | | */ |
| | | private fun condition1(): Boolean { |
| | | val startTime = LocalDate.of(info.year, sMonth, 1).atStartOfDay(ZoneId.systemDefault()) |
| | | val lastTime = LocalDate.of(info.year, eMonth, 1).plusMonths(1).atStartOfDay(ZoneId.systemDefault()) |
| | | val signs = signatureMapper.selectByExample(Example(Signature::class.java).apply { |
| | | createCriteria().andEqualTo("msParticipantid", info.userId) |
| | | .andEqualTo("msIssignin", false) |
| | | .andBetween("msCreatedate", startTime, lastTime) |
| | | }) |
| | | return signs.isNotEmpty() |
| | | } |