OrderBlockedMapper.xml 1.6 KB
Newer Older
苗卫卫 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
<?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.boco.nbd.wios.flow.mapper.def.OrderBlockedMapper">

    <resultMap id="BaseResultMap" type="com.boco.nbd.wios.flow.entity.po.OrderBlockedPO">
            <id property="id" column="id" jdbcType="VARCHAR"/>
            <result property="orderId" column="order_id" jdbcType="VARCHAR"/>
            <result property="nodeFlag" column="node_flag" jdbcType="VARCHAR"/>
            <result property="currentNode" column="current_node" jdbcType="VARCHAR"/>
            <result property="remarks" column="remarks" jdbcType="VARCHAR"/>
            <result property="whether" column="whether" jdbcType="VARCHAR"/>
            <result property="status" column="status" jdbcType="VARCHAR"/>
            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
            <result property="nextTime" column="next_time" jdbcType="TIMESTAMP"/>
    </resultMap>

    <sql id="Base_Column_List">
        id,order_id,node_flag,current_node,
        remarks,whether,status,
        update_time,next_time
    </sql>
    <select id="getAllByIdList" resultType="com.boco.nbd.wios.flow.entity.po.OrderBlockedPO">

        select
        <include refid="Base_Column_List" />
        from  t_order_blocked
        where order_id = #{orderId}
        <if test="nodeFlag != null and nodeFlag != ''">
            and node_flag = #{nodeFlag}
        </if>

        order by node_flag  asc,update_time asc

    </select>

</mapper>