yujian
2019-09-27 b2cff7a3e9d5cebacef4866c5993e0be89ff5b00
1
2
3
4
5
6
7
8
9
10
<?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.yeshi.fanli.dao.mybatis.ScanHistoryMapper">
    
    <select id="countUserScanHistory" parameterType="java.lang.Long" resultType="java.lang.Long">
           SELECT IFNULL(COUNT(id),0) FROM  yeshi_ec_scanhistory WHERE uid=#{userId,jdbcType=BIGINT}
   </select>
    
</mapper>