bug 修复

This commit is contained in:
hongchao 2025-03-10 16:57:28 +08:00
parent 9203277953
commit fddfd688a7
2 changed files with 8 additions and 6 deletions

View File

@ -88,7 +88,8 @@ public class OrderServiceImpl implements OrderService {
List<OrderDetailDto> orderDetailDtos = orderInfoDto.getDetailsList(); List<OrderDetailDto> orderDetailDtos = orderInfoDto.getDetailsList();
orderDetailDtos.removeIf(Objects::isNull); orderDetailDtos.removeIf(Objects::isNull);
if (orderDetailDtos.isEmpty()) { if (orderDetailDtos.isEmpty()) {
throw new RuntimeException("请正确添加设备"); continue;
// throw new RuntimeException("请正确添加设备");
} }
//生成订单信息 //生成订单信息
String code = "D" + System.currentTimeMillis(); String code = "D" + System.currentTimeMillis();

View File

@ -44,12 +44,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="orderStatus == 2"> <if test="orderStatus == 2">
,receiving_user = #{userName} ,receiving_user = #{userName}
,receiving_time = now() ,receiving_time = now()
,order_remark = #{remark}
</if> </if>
<if test="orderStatus == 3"> <if test="orderStatus == 3">
,pre_outbound_user = #{userName} ,pre_outbound_user = #{userName}
,pre_outbound_time = now() ,pre_outbound_time = now()
,order_remark = #{remark}
</if> </if>
<if test="orderStatus == 4"> <if test="orderStatus == 4">
,take_over_user = #{userName} ,take_over_user = #{userName}
@ -59,20 +59,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="orderStatus == 5"> <if test="orderStatus == 5">
,rent_over_user = #{userName} ,rent_over_user = #{userName}
,rent_over_time = now() ,rent_over_time = now()
,order_remark = #{remark}
</if> </if>
-- ah-simple 临时改动 START -- ah-simple 临时改动 START
<if test="orderStatus == 20"> <if test="orderStatus == 20">
,rent_over_user = #{userName} ,rent_over_user = #{userName}
,rent_over_time = now() ,rent_over_time = now()
,order_remark = #{remark}
</if> </if>
-- ah-simple 临时改动 END -- ah-simple 临时改动 END
<if test="orderStatus == 99"> <if test="orderStatus == 99">
,refuse_user = #{userName} ,refuse_user = #{userName}
,refuse_time = now() ,refuse_time = now()
,order_remark = #{remark}
</if> </if>
where order_id = #{orderId} where order_id = #{orderId}
<if test="maIds != null and maIds.size() > 0"> <if test="maIds != null and maIds.size() > 0">
and ma_id in and ma_id in