Authored by mali

鉴定订单更新鉴定室

... ... @@ -29,4 +29,6 @@ public interface AppraiseOrderGoodsMapper {
List<AppraiseOrderGoods> selectAllByOrderCode(@Param("orderCode") Long orderCode,
@Param("offset")int offset,
@Param("limit")int limit);
int updateBatchDepotNo(@Param("orderCodeList")List<Long> orderCodeList, @Param("depotNo")Integer depotNo);
}
\ No newline at end of file
... ...
... ... @@ -99,4 +99,14 @@
limit #{offset}, #{limit}
</select>
<update id="updateBatchDepotNo">
update appraise_order_goods
<set>
depot_no = #{depotNo,jdbcType=INTEGER}
</set>
where order_code in
<foreach collection="orderCodeList" item="orderCode" open="(" close=")" separator=",">
#{orderCode,jdbcType=BIGINT}
</foreach>
</update>
</mapper>
\ No newline at end of file
... ...
... ... @@ -17,6 +17,7 @@ import java.util.stream.Collectors;
import javax.annotation.Resource;
import com.yohobuy.ufo.model.order.common.*;
import com.yohoufo.dal.order.*;
import com.yohoufo.dal.order.model.*;
import com.yohoufo.order.service.*;
import com.yohoufo.order.service.listener.BuyerOrderChangeEvent;
... ... @@ -46,14 +47,6 @@ import com.yohoufo.common.alarm.EventBusPublisher;
import com.yohoufo.common.caller.UfoServiceCaller;
import com.yohoufo.common.constant.EnumPlatformDeliveryStatus;
import com.yohoufo.common.utils.DateUtil;
import com.yohoufo.dal.order.BuyerOrderGoodsMapper;
import com.yohoufo.dal.order.BuyerOrderMapper;
import com.yohoufo.dal.order.ExpressRecordMapper;
import com.yohoufo.dal.order.QualityCheckMapper;
import com.yohoufo.dal.order.SellerOrderGoodsMapper;
import com.yohoufo.dal.order.SellerOrderMapper;
import com.yohoufo.dal.order.SellerOrderMetaMapper;
import com.yohoufo.dal.order.StorageDepositMapper;
import com.yohoufo.dal.product.ProductMapper;
import com.yohoufo.dal.product.model.Product;
import com.yohoufo.order.common.RefundCase;
... ... @@ -200,6 +193,9 @@ public class AppraiseService {
@Autowired
private ServiceOrderProcessor serviceOrderProcessor;
@Autowired
private AppraiseOrderGoodsMapper appraiseOrderGoodsMapper;
/**
* 触发物流
*/
... ... @@ -1649,6 +1645,9 @@ public class AppraiseService {
productProxyService.setBatchDepotNum(skupList, appraiseExpressInfoBo.getDepotNum());
}
// 更新鉴定订单的鉴定室
appraiseOrderGoodsMapper.updateBatchDepotNo(orderCodeList, appraiseExpressInfoBo.getDepotNum());
}
}
... ...