<?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.cf.imes.module.executor.dal.mysql.orderGroup.OrderGroupMapper">

    <update id="updatePlateNumById" >
        update `order_group` set plate_num = #{plateNum} where id = #{orderId}
    </update>

    <select id="getOrderGroupByOrderId" resultType="com.cf.imes.module.executor.dal.dataobject.orderGroup.OrderGroupDO">
        select gp.id, gp.order_id, gp.name, gp.body_id
        from `order_group` as gp
        where gp.order_id = #{orderId} and gp.organ_id = #{organId} and gp.deleted = 0
    </select>
</mapper>