陈战涛
2023-05-10 bca371e7ecc906ec824630c32aefd29a7a4f68d0
src/main/java/com/fzzy/async/fzzy35/repository/Fzzy35Sync1103Rep.java
@@ -1,7 +1,7 @@
package com.fzzy.async.fzzy35.repository;
import com.fzzy.async.fzzy35.entity.Building;
import com.fzzy.async.fzzy35.entity.MContract;
import com.fzzy.async.fzzy35.entity.Fz35Building;
import com.fzzy.async.fzzy35.entity.Fz35MContract;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
@@ -10,13 +10,13 @@
/**
 * 基础信息-仓房信息
 */
public interface Fzzy35Sync1103Rep extends JpaRepository<MContract, String> {
public interface Fzzy35Sync1103Rep extends JpaRepository<Fz35Building, String> {
    /**
     * 获取仓房信息
     *
     * @return
     */
    @Query("from Building where deptId=:deptId ")
    List<Building> listBuilding(@Param("deptId") String deptId);
    @Query("from Fz35Building where deptId=:deptId ")
    List<Fz35Building> listBuilding(@Param("deptId") String deptId);
}