|
|
|
@ -3,6 +3,7 @@ package com.glxp.udi.admin.service.inout;
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
|
|
import com.glxp.udi.admin.dao.inout.OrderDetailDao;
|
|
|
|
|
import com.glxp.udi.admin.entity.inout.OrderDetailEntity;
|
|
|
|
|
import com.glxp.udi.admin.req.inout.DeleteRequest;
|
|
|
|
@ -39,7 +40,16 @@ public class OrderDetailService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void updateOrderDetail(OrderDetailEntity orderDetailEntity) {
|
|
|
|
|
orderDetailDao.updateById(orderDetailEntity);
|
|
|
|
|
UpdateWrapper<OrderDetailEntity> updateWrapper = new UpdateWrapper<>();
|
|
|
|
|
updateWrapper.setEntity(orderDetailEntity);
|
|
|
|
|
updateWrapper
|
|
|
|
|
.set("price", orderDetailEntity.getPrice())
|
|
|
|
|
.set("firstSalesInvNo", orderDetailEntity.getFirstSalesInvNo())
|
|
|
|
|
.set("secSalesInvNo", orderDetailEntity.getSecSalesInvNo())
|
|
|
|
|
.set("secSalesListNo", orderDetailEntity.getSecSalesListNo())
|
|
|
|
|
.set("invoiceDate", orderDetailEntity.getInvoiceDate())
|
|
|
|
|
.eq("id", orderDetailEntity.getId());
|
|
|
|
|
orderDetailDao.update(orderDetailEntity, updateWrapper);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public long statCount(String orderId) {
|
|
|
|
|