<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.newfiber.api.pc.dao.wechat.GetNfMonitorWechatUserMapper"> <resultMap id="nfWechatUserMap" type="com.newfiber.api.pc.model.nfmonitorwechat.NfWechatUser"> <result property="openId" column="open_id"/> <result property="phoneNum" column="phoneNum"/> <result property="nikeName" column="nick_name"/> <result property="status" column="status"/> </resultMap> <select id="selectWechatUser" resultMap="nfWechatUserMap"> select open_id,phoneNum,nick_name,status from nf_monitor.wechat_user where `status` = 1 </select> <!-- 返回当前模板id下 没有配置的人员数据--> <select id="selectWxUser" resultMap="nfWechatUserMap"> select open_id,phoneNum,nick_name,status from nf_monitor.wechat_user wu where wu.is_audit = 1 </select> </mapper>