DocDownloadCheckUtil.java
1.59 KB
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
55
56
package com.api.doc.detail.util;
import weaver.conn.RecordSet;
import weaver.general.Util;
import java.util.HashMap;
import java.util.Map;
/**
* author:tongh
* date:2019-11-6 10:01
* detail:
*/
public class DocDownloadCheckUtil {
/**
* 向下载权限表插入数据
* @param params
* @return
*/
public Boolean addData(Map<String,Object> params){
Boolean result = false;
String imagefileid = Util.null2String(params.get("imagefileid"));
String module = Util.null2String(params.get("module"));
String checkid = Util.null2String(params.get("checkid"));
String Sql = "insert into download_check_permission(imagefileid,module,checkid) values (?,?,?)";
RecordSet rs = new RecordSet();
result = rs.executeUpdate(Sql,imagefileid,module,checkid);
return result;
}
/**
* 向下载权限表删除数据
* @param imagefileid
* @param module
* @return
*/
public Boolean deleteData(String imagefileid,String module,String checkid){
Boolean result = false;
String Sql = "delete from download_check_permission where imagefileid=? and module=? and checkid=?";
RecordSet rs = new RecordSet();
result = rs.executeUpdate(Sql,imagefileid,module,checkid);
return result;
}
/**
* todo
* @param imagefileid
* @param module
* @return
*/
public Map<String,Object> checkPermission(String imagefileid,String module,Map<String,Object> params){
Map<String,Object> apidatas = new HashMap<>();
return apidatas;
}
}