From a06446c133ce70b1025fe759186c97eecf737ac5 Mon Sep 17 00:00:00 2001 From: qi_liang Date: Thu, 16 May 2019 16:13:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EWechatRuelDao=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lq/cms/service/impl/WechatRuleServiceImpl.java | 13 ++++++++++++- .../com/lq/cms/web/wechat/WechatRuleController.java | 4 ++++ .../code/util/mybatisPlus/CreateMapperFileUtil.java | 2 +- .../java/com/lq/code/util/sql/MysqlBuilder.java | 3 +++ 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/lq/cms/service/impl/WechatRuleServiceImpl.java b/src/main/java/com/lq/cms/service/impl/WechatRuleServiceImpl.java index 19d5b10..8d77dc9 100644 --- a/src/main/java/com/lq/cms/service/impl/WechatRuleServiceImpl.java +++ b/src/main/java/com/lq/cms/service/impl/WechatRuleServiceImpl.java @@ -1,8 +1,12 @@ package com.lq.cms.service.impl; import com.lq.cms.service.WechatRuleService; +import com.lq.code.dao.BaseDao; +import com.lq.code.service.impl.BaseServiceImpl; import com.lq.entity.WechatInfo; +import com.lq.entity.WechatRule; import com.lq.wechat.mode.message.BaseMessage; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** @@ -11,11 +15,18 @@ import org.springframework.stereotype.Service; * @Date: Create in 5:55 AM 2019/5/11 */ @Service -public class WechatRuleServiceImpl implements WechatRuleService { +public class WechatRuleServiceImpl extends BaseServiceImpl implements WechatRuleService { + + @Override public BaseMessage getByKeyworkdAndWechatInfoId(String keyworkd, WechatInfo wechatInfo) { BaseMessage baseMessage = null; return baseMessage; } + + @Override + public BaseDao getBaseDao() { + return null; + } } diff --git a/src/main/java/com/lq/cms/web/wechat/WechatRuleController.java b/src/main/java/com/lq/cms/web/wechat/WechatRuleController.java index a3daa09..173b5fb 100755 --- a/src/main/java/com/lq/cms/web/wechat/WechatRuleController.java +++ b/src/main/java/com/lq/cms/web/wechat/WechatRuleController.java @@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON; import com.lq.cms.emun.WechatKeywordMatchinTypeEnum; import com.lq.cms.emun.WechatRuleReplyTypeEnum; import com.lq.cms.service.WechatInfoService; +import com.lq.cms.service.WechatRuleService; import com.lq.cms.vo.WechatRuleVo; import com.lq.code.entity.AjaxResult; import com.lq.code.util.BeanUtil; @@ -29,6 +30,9 @@ public class WechatRuleController { @Autowired private WechatInfoService wechatInfoService; + @Autowired + private WechatRuleService wechatRuleService; + @RequestMapping("/index") public ModelAndView index(ModelAndView modelAndView,Long wechatInfoId){ diff --git a/src/main/java/com/lq/code/util/mybatisPlus/CreateMapperFileUtil.java b/src/main/java/com/lq/code/util/mybatisPlus/CreateMapperFileUtil.java index 9ba3f52..9f252dd 100755 --- a/src/main/java/com/lq/code/util/mybatisPlus/CreateMapperFileUtil.java +++ b/src/main/java/com/lq/code/util/mybatisPlus/CreateMapperFileUtil.java @@ -67,7 +67,7 @@ public class CreateMapperFileUtil { } public static void main(String[] args) throws IOException { - createXml(WechatMessageDao.class,WechatMessage.class,new MysqlBuilder()); + createXml(WechatRuleDao.class,WechatRule.class,new MysqlBuilder()); } diff --git a/src/main/java/com/lq/code/util/sql/MysqlBuilder.java b/src/main/java/com/lq/code/util/sql/MysqlBuilder.java index 7ebdba9..66edf39 100755 --- a/src/main/java/com/lq/code/util/sql/MysqlBuilder.java +++ b/src/main/java/com/lq/code/util/sql/MysqlBuilder.java @@ -15,6 +15,9 @@ import java.util.*; */ public class MysqlBuilder extends AbstractDbBuiler { + /** + * 数据库类型和java类型转换Map + */ private static Map dataTypeMap=new HashMap<>(); static {