1
hao
2025-05-20 8e24c6fea30d9b179375ee2893710cdec2443b13
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
package com.web.ftp.dao;
 
import java.util.List;
import java.util.Map;
 
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
 
import com.system.user.entity.SysUser;
 
public interface FileCheckDao extends JpaRepository<SysUser, Long> {
    /*@Query(value = "select q.fnote, wm_concat(q.fattach)fattach,max(q.ftype)ftype,max(q.mid)mid,to_char(max(q.create_date),'yyyy-mm-dd hh24:mi:ss')cd, max(q.ftype)||'/'||max(q.mid)furl from QMS_ACCESSORIES q where q.mid=?1  group by q.fnote ", nativeQuery = true)
      public List<Map<String, Object>> getFileList(String mid);*/
    @Query(value = "select q.fnote, wm_concat(q.fattach)fattach,max(q.ftype)ftype,max(q.mid)mid,to_char(max(q.create_date),'yyyy-mm-dd hh24:mi:ss')cd  from QMS_ACCESSORIES q where q.mid=?1  group by q.fnote ", nativeQuery = true)
      public List<Map<String, Object>> getFileList(String mid);
    
    @Query(value = "select m.param_value pv from mes_sys_params m where m.param_code='FtpServerIP' ", nativeQuery = true)
    public List<Map<String, Object>> queryFtpServerIP();
    
    @Query(value = "select m.param_value pv from mes_sys_params m where m.param_code='FtpUser' ", nativeQuery = true)
    public List<Map<String, Object>> queryFtpUser();
    
    @Query(value = "select m.param_value pv from mes_sys_params m where m.param_code='FtpPsw' ", nativeQuery = true)
    public List<Map<String, Object>> queryFtpPsw();
    
    @Query(value = "select m.param_value pv from mes_sys_params m where m.param_code='FtpPortNum' ", nativeQuery = true)
    public List<Map<String, Object>> queryFtpPortNum();
 
}