|
@@ -70,6 +70,7 @@ public class BizSupplierController extends BaseController {
|
|
|
@GetMapping("/listByDept")
|
|
|
public TableDataInfo listByDept(SysDept dept) throws NoSuchFieldException, IllegalAccessException, JsonProcessingException {
|
|
|
startPage();
|
|
|
+ setTenantId(dept);
|
|
|
List<BizSupplier> list = iBizSupplierService.getListByDept(dept);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
@@ -228,6 +229,7 @@ public class BizSupplierController extends BaseController {
|
|
|
@PostMapping("/saveSupplierProductProcess")
|
|
|
public AjaxResult saveSupplierProductProcess(@RequestBody List<BizSupplierProductProcess> data) {
|
|
|
boolean bool = iBizSupplierProductProcessService.saveOrUpdateBatch(data);
|
|
|
+ Long tenantId = Long.parseLong(request.getHeader("tenantId"));
|
|
|
//更新外协结算数据
|
|
|
if(!data.isEmpty()) {
|
|
|
Long productId = data.get(0).getProductId();
|
|
@@ -238,6 +240,7 @@ public class BizSupplierController extends BaseController {
|
|
|
.eq("product_id", productId).in("technological_process_id", technologicalProcessIds)
|
|
|
.eq("supplier_id", supplierId)
|
|
|
.eq("status",0)
|
|
|
+ .eq("tenant_id",tenantId)
|
|
|
.list();
|
|
|
List<BizOutsourceBalanceAccount> totalList = new ArrayList<>();
|
|
|
data.forEach(v->{
|