|
@@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@@ -188,10 +189,12 @@ public class BizSupplierController extends BaseController {
|
|
|
//更新外协结算数据
|
|
|
if(!data.isEmpty()) {
|
|
|
Long productId = data.get(0).getProductId();
|
|
|
+ Long supplierId = data.get(0).getSupplierId();
|
|
|
List<Long> technologicalProcessIds = data.stream().map(BizSupplierProductProcess::getTechnologicalProcessId).collect(Collectors.toList());
|
|
|
//对应产品的工序
|
|
|
List<BizOutsourceBalanceAccount> list = iBizOutsourceBalanceAccountService.query()
|
|
|
.eq("product_id", productId).in("technological_process_id", technologicalProcessIds)
|
|
|
+ .eq("supplier_id", supplierId)
|
|
|
.eq("status",0)
|
|
|
.list();
|
|
|
List<BizOutsourceBalanceAccount> totalList = new ArrayList<>();
|