CZT
2023-08-14 3b4b16061d0373e3eb5c6473586c6c6edd9393de
src/main/java/com/fzzy/async/fzzy40/repository/Fzzy40Sync1212Rep.java
@@ -4,7 +4,6 @@
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import java.util.Date;
import java.util.List;
/**
@@ -13,14 +12,13 @@
public interface Fzzy40Sync1212Rep extends JpaRepository<Fz40InoutCustomer, String> {
    /**
     * 根据信息获取客户信息
     * 根据信息获取客户单位信息
     *
     * @param start
     * @param end
     * @return
     */
//    @Query("from Fz40InoutCustomer where deptId=:deptId and updateTime >=:start and updateTime <:end order by updateTime ")
//    List<Fz40InoutCustomer> listInoutCustomer(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end);
    @Query("from Fz40InoutCustomer where deptId=:deptId order by updateTime ")
    @Query("from Fz40InoutCustomer where deptId=:deptId order by id ")
    List<Fz40InoutCustomer> listInoutCustomer(@Param("deptId") String deptId);
    @Query("from Fz40InoutCustomer where id=:id order by id ")
    List<Fz40InoutCustomer> getDataById(@Param("id") String id);
}