| | |
| | | package com.fzzy.async.fzzy35.repository; |
| | | |
| | | import com.fzzy.async.fzzy35.entity.DefaultDept; |
| | | import com.fzzy.async.fzzy35.entity.MContract; |
| | | import com.fzzy.async.fzzy35.entity.Fz35DefaultDept; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | |
| | | /** |
| | | * 基础信息-单位及库区信息 |
| | | */ |
| | | public interface Fzzy35Sync1101Rep extends JpaRepository<MContract, String> { |
| | | public interface Fzzy35Sync1101Rep extends JpaRepository<Fz35DefaultDept, String> { |
| | | |
| | | /** |
| | | * 获取单位或库区信息 |
| | | * |
| | | * @return |
| | | */ |
| | | @Query("from DefaultDept where id=:id ") |
| | | List<DefaultDept> listDept(@Param("id") String id); |
| | | @Query("from Fz35DefaultDept where id=:id ") |
| | | List<Fz35DefaultDept> listApi1101(@Param("id") String id); |
| | | } |