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.

46 lines
2.3 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.charge.task.dao.OpenapiNotifyOrderInfoDOMapper">
<resultMap id="BaseResultMap" type="com.charge.task.model.OpenapiNotifyOrderInfoDO">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="order_no" jdbcType="VARCHAR" property="orderNo" />
<result column="platform_code" jdbcType="VARCHAR" property="platformCode" />
<result column="didi_is_push" jdbcType="TINYINT" property="didiIsPush" />
<result column="lianlian_is_push" jdbcType="TINYINT" property="lianlianIsPush" />
<result column="dianxiang_is_push" jdbcType="TINYINT" property="dianxiangIsPush" />
<result column="caocao_is_push" jdbcType="TINYINT" property="caocaoIsPush" />
<result column="lxkj_is_push" jdbcType="TINYINT" property="lxkjIsPush" />
<result column="ali_is_push" jdbcType="TINYINT" property="aliIsPush" />
<result column="lx_is_push" jdbcType="TINYINT" property="lxIsPush" />
<result column="gq_is_push" jdbcType="TINYINT" property="gqIsPush" />
<result column="kddl_is_push" jdbcType="TINYINT" property="kddlIsPush" />
<result column="fjspt_is_push" jdbcType="TINYINT" property="fjsptIsPush" />
<result column="weilai_is_push" jdbcType="TINYINT" property="weilaiIsPush" />
<result column="hubject_is_push" jdbcType="TINYINT" property="hubjectIsPush" />
<result column="is_push" jdbcType="TINYINT" property="isPush" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<select id="queryNoPushNotifyOrderInfoTwentyFourHourPub" parameterType="Map" resultMap="BaseResultMap">
SELECT
*
FROM
t_openapi_notify_order_info
WHERE platform_code = #{platformCode}
${sql}
AND create_time &gt;=(NOW() - interval 24 hour)
</select>
<select id="countOpenapiNotifyOrderInfo" parameterType="String" resultType="INTEGER">
SELECT
COUNT(*)
FROM
t_openapi_notify_order_info
WHERE
order_no = #{orderNo}
</select>
</mapper>