From 7926be5bc8a9a8461aee06d93abb96325a683651 Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Thu, 27 Jul 2017 13:04:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E5=BA=A6=E4=B8=AD=E5=BF=83=EF=BC=8CDA?= =?UTF-8?q?O=E5=B1=82=E4=BB=A3=E7=A0=81=E7=B2=BE=E7=AE=80=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=B9=B6=E4=B8=94=E6=96=B0=E5=A2=9E=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E8=A6=86=E7=9B=96=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/dao/impl/XxlJobGroupDaoImpl.java | 51 --------- .../job/admin/dao/impl/XxlJobInfoDaoImpl.java | 74 ------------ .../job/admin/dao/impl/XxlJobLogDaoImpl.java | 107 ------------------ .../admin/dao/impl/XxlJobLogGlueDaoImpl.java | 45 -------- .../admin/dao/impl/XxlJobRegistryDaoImpl.java | 52 --------- 5 files changed, 329 deletions(-) delete mode 100644 xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobGroupDaoImpl.java delete mode 100644 xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobInfoDaoImpl.java delete mode 100644 xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobLogDaoImpl.java delete mode 100644 xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobLogGlueDaoImpl.java delete mode 100644 xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobRegistryDaoImpl.java diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobGroupDaoImpl.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobGroupDaoImpl.java deleted file mode 100644 index 45e3294b..00000000 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobGroupDaoImpl.java +++ /dev/null @@ -1,51 +0,0 @@ -//package com.xxl.job.admin.dao.impl; -// -//import com.xxl.job.admin.core.model.XxlJobGroup; -//import com.xxl.job.admin.dao.XxlJobGroupDao; -//import org.mybatis.spring.SqlSessionTemplate; -//import org.springframework.stereotype.Repository; -// -//import javax.annotation.Resource; -//import java.util.List; -// -///** -// * Created by xuxueli on 16/9/30. -// */ -//@Repository -//public class XxlJobGroupDaoImpl implements XxlJobGroupDao { -// -// @Resource -// public SqlSessionTemplate sqlSessionTemplate; -// -// @Override -// public List findAll() { -// return sqlSessionTemplate.selectList("XxlJobGroupMapper.findAll"); -// } -// -// @Override -// public List findByAddressType(int addressType) { -// return sqlSessionTemplate.selectList("XxlJobGroupMapper.findByAddressType", addressType); -// } -// -// @Override -// public int save(XxlJobGroup xxlJobGroup) { -// return sqlSessionTemplate.update("XxlJobGroupMapper.save", xxlJobGroup); -// } -// -// @Override -// public int update(XxlJobGroup xxlJobGroup) { -// return sqlSessionTemplate.update("XxlJobGroupMapper.update", xxlJobGroup); -// } -// -// @Override -// public int remove(int id) { -// return sqlSessionTemplate.delete("XxlJobGroupMapper.remove", id); -// } -// -// @Override -// public XxlJobGroup load(int id) { -// return sqlSessionTemplate.selectOne("XxlJobGroupMapper.load", id); -// } -// -// -//} diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobInfoDaoImpl.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobInfoDaoImpl.java deleted file mode 100644 index 4bee7998..00000000 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobInfoDaoImpl.java +++ /dev/null @@ -1,74 +0,0 @@ -//package com.xxl.job.admin.dao.impl; -// -//import com.xxl.job.admin.core.model.XxlJobInfo; -//import com.xxl.job.admin.dao.XxlJobInfoDao; -//import org.mybatis.spring.SqlSessionTemplate; -//import org.springframework.stereotype.Repository; -// -//import javax.annotation.Resource; -//import java.util.HashMap; -//import java.util.List; -// -///** -// * job info -// * @author xuxueli 2016-1-12 18:03:45 -// */ -//@Repository -//public class XxlJobInfoDaoImpl implements XxlJobInfoDao { -// -// @Resource -// public SqlSessionTemplate sqlSessionTemplate; -// -// @Override -// public List pageList(int offset, int pagesize, int jobGroup, String executorHandler) { -// HashMap params = new HashMap(); -// params.put("offset", offset); -// params.put("pagesize", pagesize); -// params.put("jobGroup", jobGroup); -// params.put("executorHandler", executorHandler); -// -// return sqlSessionTemplate.selectList("XxlJobInfoMapper.pageList", params); -// } -// -// @Override -// public int pageListCount(int offset, int pagesize, int jobGroup, String executorHandler) { -// HashMap params = new HashMap(); -// params.put("offset", offset); -// params.put("pagesize", pagesize); -// params.put("jobGroup", jobGroup); -// params.put("executorHandler", executorHandler); -// -// return sqlSessionTemplate.selectOne("XxlJobInfoMapper.pageListCount", params); -// } -// -// @Override -// public int save(XxlJobInfo info) { -// return sqlSessionTemplate.insert("XxlJobInfoMapper.save", info); -// } -// -// @Override -// public XxlJobInfo loadById(int id) { -// return sqlSessionTemplate.selectOne("XxlJobInfoMapper.loadById", id); -// } -// -// @Override -// public int update(XxlJobInfo item) { -// return sqlSessionTemplate.update("XxlJobInfoMapper.update", item); -// } -// -// @Override -// public int delete(int id) { -// return sqlSessionTemplate.update("XxlJobInfoMapper.delete", id); -// } -// -// @Override -// public List getJobsByGroup(String jobGroup) { -// return sqlSessionTemplate.selectList("XxlJobInfoMapper.getJobsByGroup", jobGroup); -// } -// -// @Override -// public int findAllCount() { -// return sqlSessionTemplate.selectOne("XxlJobInfoMapper.findAllCount"); -// } -// -//} diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobLogDaoImpl.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobLogDaoImpl.java deleted file mode 100644 index 8cbaf2a6..00000000 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobLogDaoImpl.java +++ /dev/null @@ -1,107 +0,0 @@ -//package com.xxl.job.admin.dao.impl; -// -//import com.xxl.job.admin.core.model.XxlJobLog; -//import com.xxl.job.admin.dao.XxlJobLogDao; -//import org.mybatis.spring.SqlSessionTemplate; -//import org.springframework.stereotype.Repository; -// -//import javax.annotation.Resource; -//import java.util.Date; -//import java.util.HashMap; -//import java.util.List; -//import java.util.Map; -// -///** -// * job log -// * @author xuxueli 2016-1-12 18:03:06 -// */ -//@Repository -//public class XxlJobLogDaoImpl implements XxlJobLogDao { -// -// @Resource -// public SqlSessionTemplate sqlSessionTemplate; -// -// @Override -// public List pageList(int offset, int pagesize, int jobGroup, int jobId, Date triggerTimeStart, Date triggerTimeEnd, int logStatus) { -// HashMap params = new HashMap(); -// params.put("offset", offset); -// params.put("pagesize", pagesize); -// params.put("jobGroup", jobGroup); -// params.put("jobId", jobId); -// params.put("triggerTimeStart", triggerTimeStart); -// params.put("triggerTimeEnd", triggerTimeEnd); -// params.put("logStatus", logStatus); -// -// return sqlSessionTemplate.selectList("XxlJobLogMapper.pageList", params); -// } -// -// @Override -// public int pageListCount(int offset, int pagesize, int jobGroup, int jobId, Date triggerTimeStart, Date triggerTimeEnd, int logStatus) { -// HashMap params = new HashMap(); -// params.put("offset", offset); -// params.put("pagesize", pagesize); -// params.put("jobGroup", jobGroup); -// params.put("jobId", jobId); -// params.put("triggerTimeStart", triggerTimeStart); -// params.put("triggerTimeEnd", triggerTimeEnd); -// params.put("logStatus", logStatus); -// -// return sqlSessionTemplate.selectOne("XxlJobLogMapper.pageListCount", params); -// } -// -// @Override -// public XxlJobLog load(int id) { -// return sqlSessionTemplate.selectOne("XxlJobLogMapper.load", id); -// } -// -// @Override -// public int save(XxlJobLog xxlJobLog) { -// return sqlSessionTemplate.insert("XxlJobLogMapper.save", xxlJobLog); -// } -// -// @Override -// public int updateTriggerInfo(XxlJobLog xxlJobLog) { -// if (xxlJobLog.getTriggerMsg()!=null && xxlJobLog.getTriggerMsg().length()>2000) { -// xxlJobLog.setTriggerMsg(xxlJobLog.getTriggerMsg().substring(0, 2000)); -// } -// return sqlSessionTemplate.update("XxlJobLogMapper.updateTriggerInfo", xxlJobLog); -// } -// -// @Override -// public int updateHandleInfo(XxlJobLog xxlJobLog) { -// if (xxlJobLog.getHandleMsg()!=null && xxlJobLog.getHandleMsg().length()>2000) { -// xxlJobLog.setHandleMsg(xxlJobLog.getHandleMsg().substring(0, 2000)); -// } -// return sqlSessionTemplate.update("XxlJobLogMapper.updateHandleInfo", xxlJobLog); -// } -// -// @Override -// public int delete(int jobId) { -// return sqlSessionTemplate.delete("XxlJobLogMapper.delete", jobId); -// } -// -// @Override -// public int triggerCountByHandleCode(int handleCode) { -// return sqlSessionTemplate.selectOne("XxlJobLogMapper.triggerCountByHandleCode", handleCode); -// } -// -// @Override -// public List> triggerCountByDay(Date from, Date to, int handleCode) { -// Map params = new HashMap(); -// params.put("from", from); -// params.put("to", to); -// params.put("handleCode", handleCode); -// return sqlSessionTemplate.selectList("XxlJobLogMapper.triggerCountByDay", params); -// } -// -// @Override -// public int clearLog(int jobGroup, int jobId, Date clearBeforeTime, int clearBeforeNum) { -// Map params = new HashMap(); -// params.put("jobGroup", jobGroup); -// params.put("jobId", jobId); -// params.put("clearBeforeTime", clearBeforeTime); -// params.put("clearBeforeNum", clearBeforeNum); -// return sqlSessionTemplate.delete("XxlJobLogMapper.clearLog", params); -// } -// -//} diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobLogGlueDaoImpl.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobLogGlueDaoImpl.java deleted file mode 100644 index 455b53b7..00000000 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobLogGlueDaoImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -//package com.xxl.job.admin.dao.impl; -// -//import com.xxl.job.admin.core.model.XxlJobLogGlue; -//import com.xxl.job.admin.dao.XxlJobLogGlueDao; -//import org.mybatis.spring.SqlSessionTemplate; -//import org.springframework.stereotype.Repository; -// -//import javax.annotation.Resource; -//import java.util.HashMap; -//import java.util.List; -// -///** -// * job log for glue -// * @author xuxueli 2016-5-19 18:17:52 -// */ -//@Repository -//public class XxlJobLogGlueDaoImpl implements XxlJobLogGlueDao { -// -// @Resource -// public SqlSessionTemplate sqlSessionTemplate; -// -// @Override -// public int save(XxlJobLogGlue xxlJobLogGlue) { -// return sqlSessionTemplate.insert("XxlJobLogGlueMapper.save", xxlJobLogGlue); -// } -// -// @Override -// public List findByJobId(int jobId) { -// return sqlSessionTemplate.selectList("XxlJobLogGlueMapper.findByJobId", jobId); -// } -// -// @Override -// public int removeOld(int jobId, int limit) { -// HashMap params = new HashMap(); -// params.put("jobId", jobId); -// params.put("limit", limit); -// return sqlSessionTemplate.delete("XxlJobLogGlueMapper.removeOld", params); -// } -// -// @Override -// public int deleteByJobId(int jobId) { -// return sqlSessionTemplate.delete("XxlJobLogGlueMapper.deleteByJobId", jobId); -// } -// -//} diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobRegistryDaoImpl.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobRegistryDaoImpl.java deleted file mode 100644 index 62aa3753..00000000 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/dao/impl/XxlJobRegistryDaoImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -//package com.xxl.job.admin.dao.impl; -// -//import com.xxl.job.admin.core.model.XxlJobRegistry; -//import com.xxl.job.admin.dao.XxlJobRegistryDao; -//import org.mybatis.spring.SqlSessionTemplate; -//import org.springframework.stereotype.Repository; -// -//import javax.annotation.Resource; -//import java.util.HashMap; -//import java.util.List; -//import java.util.Map; -// -///** -// * Created by xuxueli on 16/9/30. -// */ -//@Repository -//public class XxlJobRegistryDaoImpl implements XxlJobRegistryDao { -// -// @Resource -// public SqlSessionTemplate sqlSessionTemplate; -// -// @Override -// public int removeDead(int timeout) { -// return sqlSessionTemplate.delete("XxlJobRegistryMapper.removeDead", timeout); -// } -// -// @Override -// public List findAll(int timeout) { -// return sqlSessionTemplate.selectList("XxlJobRegistryMapper.findAll", timeout); -// } -// -// @Override -// public int registryUpdate(String registryGroup, String registryKey, String registryValue) { -// Map params = new HashMap(); -// params.put("registryGroup", registryGroup); -// params.put("registryKey", registryKey); -// params.put("registryValue", registryValue); -// -// return sqlSessionTemplate.update("XxlJobRegistryMapper.registryUpdate", params); -// } -// -// @Override -// public int registrySave(String registryGroup, String registryKey, String registryValue) { -// Map params = new HashMap(); -// params.put("registryGroup", registryGroup); -// params.put("registryKey", registryKey); -// params.put("registryValue", registryValue); -// -// return sqlSessionTemplate.update("XxlJobRegistryMapper.registrySave", params); -// } -// -//}