|
|
@@ -1,17 +1,17 @@
|
|
|
package com.uas.platform.b2b.dao;
|
|
|
|
|
|
-import java.util.Date;
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
+import com.uas.platform.b2b.model.PurchaseOrderItem;
|
|
|
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.jpa.repository.query.Procedure;
|
|
|
import org.springframework.data.repository.query.Param;
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
-import com.uas.platform.b2b.model.PurchaseOrderItem;
|
|
|
+import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
|
|
|
@Repository
|
|
|
@Transactional
|
|
|
@@ -77,4 +77,7 @@ public interface PurchaseOrderItemDao extends JpaSpecificationExecutor<PurchaseO
|
|
|
@Modifying(clearAutomatically = true)
|
|
|
@Query("update PurchaseOrderItem p set p.replyQty=(select sum(r.qty) from PurchaseOrderReply r where r.orderItem=p),p.replyDelivery= :delivery,p.replyRemark= :remark where p.id= :id")
|
|
|
public void updateByReply(@Param("delivery") Date delivery, @Param("remark") String remark, @Param("id") long id);
|
|
|
+
|
|
|
+ @Procedure(procedureName = "purc$reply_batch")
|
|
|
+ public void replyByBatch(String idString, String username, String userip, Long enuu, Long useruu);
|
|
|
}
|