新增WechatRuelDao类

master
星期八 6 years ago
parent afe2ba8ff2
commit a06446c133
  1. 13
      src/main/java/com/lq/cms/service/impl/WechatRuleServiceImpl.java
  2. 4
      src/main/java/com/lq/cms/web/wechat/WechatRuleController.java
  3. 2
      src/main/java/com/lq/code/util/mybatisPlus/CreateMapperFileUtil.java
  4. 3
      src/main/java/com/lq/code/util/sql/MysqlBuilder.java

@ -1,8 +1,12 @@
package com.lq.cms.service.impl; package com.lq.cms.service.impl;
import com.lq.cms.service.WechatRuleService; 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.WechatInfo;
import com.lq.entity.WechatRule;
import com.lq.wechat.mode.message.BaseMessage; import com.lq.wechat.mode.message.BaseMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/** /**
@ -11,11 +15,18 @@ import org.springframework.stereotype.Service;
* @Date: Create in 5:55 AM 2019/5/11 * @Date: Create in 5:55 AM 2019/5/11
*/ */
@Service @Service
public class WechatRuleServiceImpl implements WechatRuleService { public class WechatRuleServiceImpl extends BaseServiceImpl<WechatRule> implements WechatRuleService {
@Override @Override
public BaseMessage getByKeyworkdAndWechatInfoId(String keyworkd, WechatInfo wechatInfo) { public BaseMessage getByKeyworkdAndWechatInfoId(String keyworkd, WechatInfo wechatInfo) {
BaseMessage baseMessage = null; BaseMessage baseMessage = null;
return baseMessage; return baseMessage;
} }
@Override
public BaseDao<WechatRule> getBaseDao() {
return null;
}
} }

@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
import com.lq.cms.emun.WechatKeywordMatchinTypeEnum; import com.lq.cms.emun.WechatKeywordMatchinTypeEnum;
import com.lq.cms.emun.WechatRuleReplyTypeEnum; import com.lq.cms.emun.WechatRuleReplyTypeEnum;
import com.lq.cms.service.WechatInfoService; import com.lq.cms.service.WechatInfoService;
import com.lq.cms.service.WechatRuleService;
import com.lq.cms.vo.WechatRuleVo; import com.lq.cms.vo.WechatRuleVo;
import com.lq.code.entity.AjaxResult; import com.lq.code.entity.AjaxResult;
import com.lq.code.util.BeanUtil; import com.lq.code.util.BeanUtil;
@ -29,6 +30,9 @@ public class WechatRuleController {
@Autowired @Autowired
private WechatInfoService wechatInfoService; private WechatInfoService wechatInfoService;
@Autowired
private WechatRuleService wechatRuleService;
@RequestMapping("/index") @RequestMapping("/index")
public ModelAndView index(ModelAndView modelAndView,Long wechatInfoId){ public ModelAndView index(ModelAndView modelAndView,Long wechatInfoId){

@ -67,7 +67,7 @@ public class CreateMapperFileUtil {
} }
public static void main(String[] args) throws IOException { public static void main(String[] args) throws IOException {
createXml(WechatMessageDao.class,WechatMessage.class,new MysqlBuilder()); createXml(WechatRuleDao.class,WechatRule.class,new MysqlBuilder());
} }

@ -15,6 +15,9 @@ import java.util.*;
*/ */
public class MysqlBuilder extends AbstractDbBuiler { public class MysqlBuilder extends AbstractDbBuiler {
/**
* 数据库类型和java类型转换Map
*/
private static Map<String,String> dataTypeMap=new HashMap<>(); private static Map<String,String> dataTypeMap=new HashMap<>();
static { static {

Loading…
Cancel
Save