|
@@ -1,8 +1,10 @@
|
|
|
package org.jeecg.modules.saleCode.service.impl;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import org.jeecg.modules.baseCode.entity.BaseShipArchive;
|
|
|
import org.jeecg.modules.baseCode.mapper.BaseShipArchiveMapper;
|
|
|
+import org.jeecg.modules.saleCode.entity.SaleDelivery;
|
|
|
import org.jeecg.modules.saleCode.entity.SaleOrder;
|
|
|
import org.jeecg.modules.saleCode.entity.SaleOrderShip;
|
|
|
import org.jeecg.modules.saleCode.entity.SaleOrderProduct;
|
|
@@ -169,5 +171,17 @@ public class SaleOrderServiceImpl extends ServiceImpl<SaleOrderMapper, SaleOrder
|
|
|
saleOrderMapper.deleteById(id);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据单据号获取
|
|
|
+ * @param billCode
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public SaleOrder getByBillCode(String billCode){
|
|
|
+ LambdaQueryWrapper<SaleOrder> deliveryLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ deliveryLambdaQueryWrapper.eq(SaleOrder::getBillCode, billCode);
|
|
|
+ return getOne(deliveryLambdaQueryWrapper);
|
|
|
+ }
|
|
|
|
|
|
}
|