ZhuDongming
2019-10-09 578e49d67183d8d12a6af7e8244a9d152cb366d4
src/main/resources/mapper/AccountMapper.xml
@@ -45,4 +45,14 @@
      FROM account
      WHERE id=#{id}
   </select>
    <select id="getAccountList" resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List"/>
        from account
        where is_delete=0 and expire_time > now()
        <if test="accountName != 'null'">
            and account_name like concat('%',#{accountName},'%')
        </if>
    </select>
</mapper>