You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.4 KiB
32 lines
1.4 KiB
<?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.epmet.dao.BizPointUserTotalDetailDao">
|
|
|
|
<resultMap type="com.epmet.entity.BizPointUserTotalDetailEntity" id="bizPointUserTotalDetailMap">
|
|
<result property="id" column="ID"/>
|
|
<result property="customerId" column="CUSTOMER_ID"/>
|
|
<result property="agencyId" column="AGENCY_ID"/>
|
|
<result property="gridId" column="GRID_ID"/>
|
|
<result property="userId" column="USER_ID"/>
|
|
<result property="bizType" column="BIZ_TYPE"/>
|
|
<result property="objectId" column="OBJECT_ID"/>
|
|
<result property="totalPoint" column="TOTAL_POINT"/>
|
|
<result property="delFlag" column="DEL_FLAG"/>
|
|
<result property="revision" column="REVISION"/>
|
|
<result property="createdBy" column="CREATED_BY"/>
|
|
<result property="createdTime" column="CREATED_TIME"/>
|
|
<result property="updatedBy" column="UPDATED_BY"/>
|
|
<result property="updatedTime" column="UPDATED_TIME"/>
|
|
</resultMap>
|
|
<select id="selectIncrease" resultType="java.lang.Integer">
|
|
SELECT IFNULL(SUM(TOTAL_POINT), 0)
|
|
FROM biz_point_user_total_detail
|
|
WHERE
|
|
BIZ_TYPE = #{type}
|
|
AND OBJECT_ID = #{objectId}
|
|
AND DATE_FORMAT(CREATED_TIME, '%Y-%m-%d') = DATE_FORMAT(NOW(), '%Y-%m-%d')
|
|
</select>
|
|
|
|
|
|
</mapper>
|