陈战涛
2023-05-30 6fc5e2138599d7ef44bfc4b261f80e65cd6a43f6
src/main/java/com/fzzy/api/view/repository/Api1105Rep.java
@@ -6,6 +6,7 @@
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
public interface Api1105Rep extends JpaRepository<Api1105, String> {
@@ -21,4 +22,12 @@
    @Query("update Api1105 set czbz=:czbz where hwdm =:id ")
    int updateStatus(@Param("id") String id, @Param("czbz") String czbz);
    /**
     * 根据货位代码查询
     * @param hwdm
     * @return
     */
    @Query("from Api1105 where hwdm=:hwdm ")
    List<Api1105> findPushDataByHwdm(@Param("hwdm") String hwdm);
}