|
|
@ -56,6 +56,12 @@ |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and FIND_IN_SET( #{deptId}, ALL_DEPT_IDS ) |
|
|
|
</if> |
|
|
|
<if test="mobile != null and mobile != ''"> |
|
|
|
and MOBILE like '%' #{mobile} '%' |
|
|
|
</if> |
|
|
|
<if test="operationDesc != null and operationDesc != ''"> |
|
|
|
and OPERATION_DESC like '%' #{operationDesc} '%' |
|
|
|
</if> |
|
|
|
order by UPDATED_TIME desc |
|
|
|
</select> |
|
|
|
|
|
|
@ -102,5 +108,28 @@ |
|
|
|
AND lg.DEL_FLAG = '0' |
|
|
|
AND DATE_FORMAT(lg.CREATED_TIME, '%Y%m%d') =DATE_FORMAT(NOW(), '%Y%m%d') |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="getTotal" resultType="java.lang.Integer"> |
|
|
|
select |
|
|
|
sum(POINTS) total |
|
|
|
from epdc_active_point_log |
|
|
|
where DEL_FLAG = '0' |
|
|
|
<if test="operationType != null and operationType != ''"> |
|
|
|
and OPERATION_TYPE = #{operationType} |
|
|
|
</if> |
|
|
|
<if test="userName != null and userName != ''"> |
|
|
|
and USER_NAME like '%' #{userName} '%' |
|
|
|
</if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and FIND_IN_SET( #{deptId}, ALL_DEPT_IDS ) |
|
|
|
</if> |
|
|
|
<if test="mobile != null and mobile != ''"> |
|
|
|
and MOBILE like '%' #{mobile} '%' |
|
|
|
</if> |
|
|
|
<if test="operationDesc != null and operationDesc != ''"> |
|
|
|
and OPERATION_DESC like '%' #{operationDesc} '%' |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|
|
|
|
|