Authored by mali

鉴定订单更新鉴定室

@@ -29,4 +29,6 @@ public interface AppraiseOrderGoodsMapper { @@ -29,4 +29,6 @@ public interface AppraiseOrderGoodsMapper {
29 List<AppraiseOrderGoods> selectAllByOrderCode(@Param("orderCode") Long orderCode, 29 List<AppraiseOrderGoods> selectAllByOrderCode(@Param("orderCode") Long orderCode,
30 @Param("offset")int offset, 30 @Param("offset")int offset,
31 @Param("limit")int limit); 31 @Param("limit")int limit);
  32 +
  33 + int updateBatchDepotNo(@Param("orderCodeList")List<Long> orderCodeList, @Param("depotNo")Integer depotNo);
32 } 34 }
@@ -99,4 +99,14 @@ @@ -99,4 +99,14 @@
99 limit #{offset}, #{limit} 99 limit #{offset}, #{limit}
100 </select> 100 </select>
101 101
  102 + <update id="updateBatchDepotNo">
  103 + update appraise_order_goods
  104 + <set>
  105 + depot_no = #{depotNo,jdbcType=INTEGER}
  106 + </set>
  107 + where order_code in
  108 + <foreach collection="orderCodeList" item="orderCode" open="(" close=")" separator=",">
  109 + #{orderCode,jdbcType=BIGINT}
  110 + </foreach>
  111 + </update>
102 </mapper> 112 </mapper>
@@ -17,6 +17,7 @@ import java.util.stream.Collectors; @@ -17,6 +17,7 @@ import java.util.stream.Collectors;
17 import javax.annotation.Resource; 17 import javax.annotation.Resource;
18 18
19 import com.yohobuy.ufo.model.order.common.*; 19 import com.yohobuy.ufo.model.order.common.*;
  20 +import com.yohoufo.dal.order.*;
20 import com.yohoufo.dal.order.model.*; 21 import com.yohoufo.dal.order.model.*;
21 import com.yohoufo.order.service.*; 22 import com.yohoufo.order.service.*;
22 import com.yohoufo.order.service.listener.BuyerOrderChangeEvent; 23 import com.yohoufo.order.service.listener.BuyerOrderChangeEvent;
@@ -46,14 +47,6 @@ import com.yohoufo.common.alarm.EventBusPublisher; @@ -46,14 +47,6 @@ import com.yohoufo.common.alarm.EventBusPublisher;
46 import com.yohoufo.common.caller.UfoServiceCaller; 47 import com.yohoufo.common.caller.UfoServiceCaller;
47 import com.yohoufo.common.constant.EnumPlatformDeliveryStatus; 48 import com.yohoufo.common.constant.EnumPlatformDeliveryStatus;
48 import com.yohoufo.common.utils.DateUtil; 49 import com.yohoufo.common.utils.DateUtil;
49 -import com.yohoufo.dal.order.BuyerOrderGoodsMapper;  
50 -import com.yohoufo.dal.order.BuyerOrderMapper;  
51 -import com.yohoufo.dal.order.ExpressRecordMapper;  
52 -import com.yohoufo.dal.order.QualityCheckMapper;  
53 -import com.yohoufo.dal.order.SellerOrderGoodsMapper;  
54 -import com.yohoufo.dal.order.SellerOrderMapper;  
55 -import com.yohoufo.dal.order.SellerOrderMetaMapper;  
56 -import com.yohoufo.dal.order.StorageDepositMapper;  
57 import com.yohoufo.dal.product.ProductMapper; 50 import com.yohoufo.dal.product.ProductMapper;
58 import com.yohoufo.dal.product.model.Product; 51 import com.yohoufo.dal.product.model.Product;
59 import com.yohoufo.order.common.RefundCase; 52 import com.yohoufo.order.common.RefundCase;
@@ -200,6 +193,9 @@ public class AppraiseService { @@ -200,6 +193,9 @@ public class AppraiseService {
200 @Autowired 193 @Autowired
201 private ServiceOrderProcessor serviceOrderProcessor; 194 private ServiceOrderProcessor serviceOrderProcessor;
202 195
  196 + @Autowired
  197 + private AppraiseOrderGoodsMapper appraiseOrderGoodsMapper;
  198 +
203 /** 199 /**
204 * 触发物流 200 * 触发物流
205 */ 201 */
@@ -1649,6 +1645,9 @@ public class AppraiseService { @@ -1649,6 +1645,9 @@ public class AppraiseService {
1649 1645
1650 productProxyService.setBatchDepotNum(skupList, appraiseExpressInfoBo.getDepotNum()); 1646 productProxyService.setBatchDepotNum(skupList, appraiseExpressInfoBo.getDepotNum());
1651 } 1647 }
  1648 +
  1649 + // 更新鉴定订单的鉴定室
  1650 + appraiseOrderGoodsMapper.updateBatchDepotNo(orderCodeList, appraiseExpressInfoBo.getDepotNum());
1652 } 1651 }
1653 } 1652 }
1654 1653