|
@@ -6,7 +6,9 @@ import org.mybatis.spring.SqlSessionTemplate;
|
6
|
6
|
import org.springframework.stereotype.Repository;
|
7
|
7
|
|
8
|
8
|
import javax.annotation.Resource;
|
|
9
|
+import java.util.HashMap;
|
9
|
10
|
import java.util.List;
|
|
11
|
+import java.util.Map;
|
10
|
12
|
|
11
|
13
|
/**
|
12
|
14
|
* Created by xuxueli on 16/9/30.
|
|
@@ -27,4 +29,24 @@ public class XxlJobRegistryDaoImpl implements IXxlJobRegistryDao {
|
27
|
29
|
return sqlSessionTemplate.selectList("XxlJobRegistryMapper.findAll", timeout);
|
28
|
30
|
}
|
29
|
31
|
|
|
32
|
+ @Override
|
|
33
|
+ public int registryUpdate(String registryGroup, String registryKey, String registryValue) {
|
|
34
|
+ Map<String, Object> params = new HashMap();
|
|
35
|
+ params.put("registryGroup", registryGroup);
|
|
36
|
+ params.put("registryKey", registryKey);
|
|
37
|
+ params.put("registryValue", registryValue);
|
|
38
|
+
|
|
39
|
+ return sqlSessionTemplate.update("XxlJobRegistryMapper.registryUpdate", params);
|
|
40
|
+ }
|
|
41
|
+
|
|
42
|
+ @Override
|
|
43
|
+ public int registrySave(String registryGroup, String registryKey, String registryValue) {
|
|
44
|
+ Map<String, Object> params = new HashMap();
|
|
45
|
+ params.put("registryGroup", registryGroup);
|
|
46
|
+ params.put("registryKey", registryKey);
|
|
47
|
+ params.put("registryValue", registryValue);
|
|
48
|
+
|
|
49
|
+ return sqlSessionTemplate.update("XxlJobRegistryMapper.registrySave", params);
|
|
50
|
+ }
|
|
51
|
+
|
30
|
52
|
}
|