@@ -96,7 +96,7 @@
INNER JOIN t_user_dept a on a.user_id=tpuA.user_id and a.main_dept='Y'
INNER JOIN t_sys_dept tsd on tsd.dept_id=a.dept_id
<where>
- and tpuA.del_flag='0'
+ and tpuA.del_flag='0' and tsd.del_flag='0'
<if test="bo.category!=null and bo.category!=''">
and tpuA.category=#{bo.category}
</if>
@@ -416,6 +416,7 @@ public class KfOrderServiceImpl implements IKfOrderService {
kfOrder.setOrderStatus(HotelBusinessConstants.ORDER_STATUS_QX);
} else {
kfOrder.setOrderStatus(HotelBusinessConstants.ORDER_STATUS_TF);
+ kfOrder.setEndTime(DateUtil.date());
}
convert.add(kfOrder);
});
@@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="bo.orderType != null and bo.orderType != ''">
and o.order_type = #{bo.orderType}
- order by o.order_index asc, o.create_time desc
+ order by o.update_time desc
</where>
</select>