Commit cb157c1c authored by suntao's avatar suntao

sql fix

parent 2783a80d
......@@ -22,10 +22,10 @@ import java.util.List;
public interface OptHistoryLogRepository extends PagingAndSortingRepository<OptHistoryLog, Long>, JpaSpecificationExecutor<OptHistoryLog> {
@Query(value = "select * opt_history_log where channel_order_number=?1 and opt_enum_name = ?2 limit 1", nativeQuery = true)
@Query(value = "select * from opt_history_log where channel_order_number=?1 and opt_enum_name = ?2 limit 1", nativeQuery = true)
OptHistoryLog findByChannelOrderNumberAndOptName(String channelOrderNumber, int opName);
@Query(value = "select * opt_history_log where channel_order_number=?1 and opt_enum_name = ?2 and opt_result=1 limit 1", nativeQuery = true)
@Query(value = "select * from opt_history_log where channel_order_number=?1 and opt_enum_name = ?2 and opt_result=1 limit 1", nativeQuery = true)
OptHistoryLog findByChannelOrderNumberAndOptNameAndSuccess(String channelOrderNumber, int opName);
List<OptHistoryLog> findByChannelOrderNumber(String channelOrderNumber);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment