|
@@ -27,6 +27,8 @@ import org.springblade.core.tool.api.R;
|
|
|
import org.springblade.core.tool.utils.Func;
|
|
|
import org.springblade.meter.dto.MaterialLinkFormDTO;
|
|
|
import org.springblade.meter.dto.MaterialListDTO;
|
|
|
+import org.springblade.meter.entity.InventoryFormMaterial;
|
|
|
+import org.springblade.meter.service.IInventoryFormMaterialService;
|
|
|
import org.springblade.meter.vo.*;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
@@ -51,6 +53,8 @@ public class ContractMaterialController extends BladeController {
|
|
|
|
|
|
private final IContractMaterialService contractMaterialService;
|
|
|
|
|
|
+ private final IInventoryFormMaterialService formMaterialService;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 新增或修改 合同材料表
|
|
@@ -174,5 +178,12 @@ public class ContractMaterialController extends BladeController {
|
|
|
contractMaterialService.removeLinkForm(id);
|
|
|
return R.success("解除成功");
|
|
|
}
|
|
|
+ @PostMapping("/submit-link-form")
|
|
|
+ @ApiOperationSupport(order = 13)
|
|
|
+ @ApiOperation(value = "调差系数-提交编辑", notes = "传入编辑列表数据,只传入id和调差系数")
|
|
|
+ public R submitLinkForm(@RequestBody List<InventoryFormMaterial> list) {
|
|
|
+ formMaterialService.updateBatchById(list);
|
|
|
+ return R.success("修改成功");
|
|
|
+ }
|
|
|
|
|
|
}
|