| | |
| | | import java.util.List; |
| | | |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Modifying; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import com.northglass.entity.OutTasks; |
| | | |
| | | public interface OutTasksDao extends JpaRepository<OutTasks, Long>{ |
| | | |
| | | //æ¥è¯¢ æç»ä»»å¡ç¶æ |
| | | @Query("select t from OutTasks t order by t.taskIds desc") |
| | | public List<OutTasks> FindAll100(); |
| | | |
| | | @Query("select t from OutTasks t where t.mesStatus=?1 and t.destination=?2 order by t.taskIds asc") |
| | | public List<OutTasks> FindTaskLine(String mesStatus,String destination); |
| | | |
| | | @Query("select t from OutTasks t where t.mesStatus!=?1 and t.destination=?2 order by t.taskIds asc") |
| | | public List<OutTasks> FindNotTaskLine(String mesStatus,String destination); |
| | | |
| | | //æ¥è¯¢ æç»ä»»å¡ç¶æ |
| | | @Query("select t from OutTasks t where t.mesStatus=?1 order by t.finshTime desc") |
| | |
| | | public List<OutTasks> FindOutTasksTaskIds(String taskid); |
| | | |
| | | //æ¥è¯¢ machineStatus, workStatus , flag æºå¨ï¼å·¥ä½ç¶æï¼ä»»å¡ç¶æ |
| | | @Query("select t from OutTasks t where t.machineStatus=?1 and t.workStatus=?2 and t.flag=?3 order by t.taskIds asc") |
| | | @Query("select t from OutTasks t where t.machineStatus=?1 and t.workStatus=?2 and t.flag=?3 order by t.priority desc,t.taskIds asc") |
| | | public List<OutTasks> FindMachineStatusWorkStatus(String machineStatus,String workStatus,String flag); |
| | | |
| | | //æ¥è¯¢ æªå®æä»»å¡ |
| | | @Query("select t from OutTasks t where t.machineStatus!='ä»»å¡å®æ' and t.flag='æ£å¸¸' order by t.priority desc,t.taskIds asc") |
| | | public List<OutTasks> findWaitTask(); |
| | | |
| | | //æ¥è¯¢ machineStatus1,machineStatus2 workStatus |
| | | @Query("select t from OutTasks t where (t.machineStatus=?1 or t.machineStatus=?2) and t.workStatus=?3 and t.flag=?4") |
| | | @Query("select t from OutTasks t where (t.machineStatus=?1 or t.machineStatus=?2) and t.workStatus=?3 and t.flag=?4 order by t.taskIds asc") |
| | | public List<OutTasks> FindMachineStatusWorkStatus(String machineStatus1,String machineStatus2,String workStatus,String flag); |
| | | |
| | | |
| | |
| | | @Query("select t from OutTasks t where t.taskType=?1 and t.machineStatus=?2 and t.workStatus=?3") |
| | | public List<OutTasks> FindTaskTypeTasking(String taskType,String machineStatus,String workStatus); |
| | | |
| | | //æ¥è¯¢æ¤ææ¶ æªå¼å§çä»»å¡ |
| | | @Query("select t from OutTasks t where t.stockName=?1 and t.machineStatus='çå¾
å¼å§' and t.workStatus='çå¾
ä¸' order by t.taskIds asc") |
| | | public List<OutTasks> FindStockName(String stockName); |
| | | |
| | | //æ¥è¯¢æ¤ç®çå°ç æªå®æçä»»å¡ |
| | | @Query("select t from OutTasks t where t.destination=?1 and t.machineStatus='çå¾
å¼å§' and t.workStatus='çå¾
ä¸' order by t.taskIds asc") |
| | | public List<OutTasks> FindDestination(String destination); |
| | | |
| | | } |