czt
2025-11-29 46adcbf7494340a495539708210bb39110bdc33b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package com.fzzy.igds.repository;
 
import com.fzzy.igds.domain.InoutNoticeIn;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * @Description
 * @Author CZT
 * @Date 2025/11/29 16:33
 */
@Service
public interface InoutNoticeInRepository extends JpaRepository<InoutNoticeIn, String> , JpaSpecificationExecutor<InoutNoticeIn> {
 
    /**
     * 根据组织编码和库区编码获取信息
     *
     * @param companyId
     * @param deptId
     * @param id
     * @return
     */
    @Query("from InoutNoticeIn where companyId =:companyId and deptId =:deptId and id =:id")
    InoutNoticeIn getDataById(@Param("companyId") String companyId, @Param("deptId") String deptId, @Param("id") String id);
 
    /**
     * 根据组织编码和库区编码获取信息
     *
     * @param companyId
     * @param deptId
     * @param completeStatus
     * @return
     */
    @Query("from InoutNoticeIn where companyId =:companyId and deptId =:deptId and completeStatus =:completeStatus")
    List<InoutNoticeIn> listNoticeIn(@Param("companyId") String companyId, @Param("deptId") String deptId, @Param("completeStatus") String completeStatus);
 
    /**
     * 根据组织编码和库区编码获取信息
     *
     * @param companyId
     * @param completeStatus
     * @return
     */
    @Query("from InoutNoticeIn where companyId =:companyId and completeStatus =:completeStatus")
    List<InoutNoticeIn> listNoticeIn(@Param("companyId") String companyId, @Param("completeStatus") String completeStatus);
 
 
 
}