xuhy
昨天 b80d4a5cbac9ad9460717b6463819fa784e55ceb
UserNTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/crossCity/dao/mapping/OrderCrossCityMapper.xml
@@ -571,7 +571,8 @@
        a.oldState as oldState,
        a.telX as telX,
        a.bindId as bindId,
        a.remark as remark
        a.remark as remark,
        b.lineShiftId as lineShiftId
        from t_order_cross_city a
        left join t_line_shift_driver b on (a.lineShiftDriverId = b.id)
        where a.isDelete = 1
@@ -591,4 +592,23 @@
            and DATE_FORMAT(a.travelTime, '%Y-%m-%d') = #{day}
        </if>
    </select>
    <select id="queryCountOrder" resultType="java.lang.Integer">
        select
        count(1)
        from t_order_cross_city a
        left join t_line_shift_driver b on (a.lineShiftDriverId = b.id)
        where a.isDelete = 1
        <if test="null != driverId">
            and a.driverId = #{driverId}
        </if>
        <if test="null != lineShiftId">
            and b.lineShiftId = #{lineShiftId}
        </if>
        <if test="null != state">
            and a.state = #{state}
        </if>
        <if test="null != day and '' != day">
            and DATE_FORMAT(a.travelTime, '%Y-%m-%d') = #{day}
        </if>
    </select>
</mapper>