Commit eea73673d09bf4ef18a958c066a2135223e51d2a

Authored by 潘钊
1 parent c7913ee5

update...

src/main/java/com/bsth/repository/sys/DutyEmployeeRepository.java
@@ -14,6 +14,6 @@ import java.util.List; @@ -14,6 +14,6 @@ import java.util.List;
14 public interface DutyEmployeeRepository extends BaseRepository<DutyEmployee, Long>{ 14 public interface DutyEmployeeRepository extends BaseRepository<DutyEmployee, Long>{
15 15
16 //@Query("select t from DutyEmployee t where t.codeIdx like %?1% and t.ts > ?2 and t.ts < ?3") 16 //@Query("select t from DutyEmployee t where t.codeIdx like %?1% and t.ts > ?2 and t.ts < ?3")
17 - @Query("select t from DutyEmployee t where t.codeIdx like %?1% and t.ts < ?3")  
18 - List<DutyEmployee> findByLineAndTime(String lineCode, long st, long et); 17 + @Query("select t from DutyEmployee t where t.codeIdx like %?1% and t.ts < ?2")
  18 + List<DutyEmployee> findByLineAndTime(String lineCode, long et);
19 } 19 }
src/main/java/com/bsth/service/sys/impl/DutyEmployeeServiceImpl.java
@@ -39,6 +39,6 @@ public class DutyEmployeeServiceImpl extends BaseServiceImpl&lt;DutyEmployee, Long&gt; @@ -39,6 +39,6 @@ public class DutyEmployeeServiceImpl extends BaseServiceImpl&lt;DutyEmployee, Long&gt;
39 */ 39 */
40 public List<DutyEmployee> getDutyEmployee(String lineCode, String startTime, String endTime) { 40 public List<DutyEmployee> getDutyEmployee(String lineCode, String startTime, String endTime) {
41 DateTimeFormatter fmtyyyyMMddHHmm = DateTimeFormat.forPattern("yyyy-MM-ddHH:mm"); 41 DateTimeFormatter fmtyyyyMMddHHmm = DateTimeFormat.forPattern("yyyy-MM-ddHH:mm");
42 - return dutyEmployeeRepository.findByLineAndTime(lineCode + ",", fmtyyyyMMddHHmm.parseMillis(startTime), fmtyyyyMMddHHmm.parseMillis(endTime)); 42 + return dutyEmployeeRepository.findByLineAndTime(lineCode + ",", fmtyyyyMMddHHmm.parseMillis(endTime));
43 } 43 }
44 } 44 }