部分退单增加库存
This commit is contained in:
parent
e5bb96d186
commit
282f9bb0f3
|
|
@ -39,6 +39,7 @@ import com.bonus.common.houqin.utils.JacksonUtil;
|
|||
import com.bonus.common.security.utils.SecurityUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
|
@ -289,7 +290,10 @@ public class OrderBusiness {
|
|||
}
|
||||
orderDetail.setUpdateBy(SecurityUtils.getUsername());
|
||||
orderDetailService.updateOrderDetail(orderDetail);
|
||||
orderRefundDetailList.add(orderDetail);
|
||||
OrderDetail inventoryOrderDetail = new OrderDetail();
|
||||
BeanUtils.copyProperties(orderDetail, inventoryOrderDetail);
|
||||
inventoryOrderDetail.setQuantity(detailParam.getQuantity());
|
||||
orderRefundDetailList.add(inventoryOrderDetail);
|
||||
DeviceRefundOrderDetailBO orderDetailBO = new DeviceRefundOrderDetailBO();
|
||||
orderDetailBO.setQuantity(detailParam.getQuantity());
|
||||
orderDetailBO.setGoodsId(orderDetail.getGoodsId());
|
||||
|
|
|
|||
Loading…
Reference in New Issue