|
|
|
@ -18,6 +18,7 @@ import com.glxp.api.admin.dao.inout.OrderDao;
|
|
|
|
|
import com.glxp.api.admin.dao.inout.OrderDetailDao;
|
|
|
|
|
import com.glxp.api.admin.dao.inventory.InvProductDao;
|
|
|
|
|
import com.glxp.api.admin.dao.inventory.InvProductDetailDao;
|
|
|
|
|
import com.glxp.api.admin.dao.inventory.InvSubWarehouseDao;
|
|
|
|
|
import com.glxp.api.admin.dao.inventory.InvWarehouseDao;
|
|
|
|
|
import com.glxp.api.admin.entity.basic.BasicThirdSysBusApiEntity;
|
|
|
|
|
import com.glxp.api.admin.entity.basic.BussinessTypeEntity;
|
|
|
|
@ -83,6 +84,8 @@ public class OrderServiceImpl implements OrderService {
|
|
|
|
|
private StockOrderDetailDao stockOrderDetailDao;
|
|
|
|
|
@Resource
|
|
|
|
|
private OrderDetailDao orderDetailDao;
|
|
|
|
|
@Resource
|
|
|
|
|
private InvSubWarehouseDao invSubWarehouseDao;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<OrderEntity> listOrders(OrderQueryRequest orderQueryRequest) {
|
|
|
|
@ -462,6 +465,21 @@ public class OrderServiceImpl implements OrderService {
|
|
|
|
|
return orderDao.updateReplicateNo(orderId, replicateNo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void queryInvName(List<StockOrderResponse> responseList) {
|
|
|
|
|
if (CollUtil.isNotEmpty(responseList)) {
|
|
|
|
|
responseList.forEach(stockOrderResponse -> {
|
|
|
|
|
//查询仓库名称
|
|
|
|
|
String locStorageName = invWarehouseDao.getNameByCode(stockOrderResponse.getLocStorageCode());
|
|
|
|
|
//查询分库名称
|
|
|
|
|
String invWarehouseName = invSubWarehouseDao.selectNameByCode(stockOrderResponse.getInvWarehouseCode());
|
|
|
|
|
|
|
|
|
|
stockOrderResponse.setLocStorageName(locStorageName);
|
|
|
|
|
stockOrderResponse.setInvWarehouseName(invWarehouseName);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
@Override
|
|
|
|
|
public void deleteOrders(List<String> ids) {
|
|
|
|
|