|
|
@@ -3,6 +3,9 @@ package com.uas.platform.b2b.dao;
|
|
|
import com.uas.platform.b2b.model.PagingRelease;
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
+import org.springframework.data.jpa.repository.Modifying;
|
|
|
+import org.springframework.data.jpa.repository.Query;
|
|
|
+import org.springframework.data.repository.query.Param;
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
|
import javax.persistence.OrderBy;
|
|
|
@@ -18,4 +21,8 @@ public interface PagingReleaseDao extends JpaSpecificationExecutor<PagingRelease
|
|
|
List<PagingRelease> findByEnUUAndEmUU(Long enuu, Long emuu);
|
|
|
|
|
|
List<PagingRelease> findByTableAndSourceId(String table, Long id);
|
|
|
+
|
|
|
+ @Modifying
|
|
|
+ @Query("update PagingRelease p set p.orderStatus=:status where p.sourceId=:sourceId")
|
|
|
+ void updateOrderStatus(@Param("status") Short status,@Param("sourceId") Long sourceId);
|
|
|
}
|