|
@@ -125,7 +125,6 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
|
|
|
/**
|
|
|
* 修改节点信息
|
|
|
- * @param node 节点信息
|
|
|
* @return 修改结果
|
|
|
*/
|
|
|
@PostMapping("/updateContractNodeParameter")
|
|
@@ -136,7 +135,12 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
@ApiImplicitParam(name = "deptName", value = "节点的title", required = true),
|
|
|
@ApiImplicitParam(name = "partitionCode", value = "划分编号")
|
|
|
})
|
|
|
- public R<Boolean> updateContractNodeParameter(@Valid @RequestBody WbsTreeContract node){
|
|
|
+ public R<Boolean> updateContractNodeParameter(@RequestParam Long pKeyId, @RequestParam String deptName, @RequestParam String partitionCode){
|
|
|
+ WbsTreeContract node = new WbsTreeContract();
|
|
|
+ node.setPKeyId(pKeyId);
|
|
|
+ node.setDeptName(deptName);
|
|
|
+ node.setPartitionCode(partitionCode);
|
|
|
+
|
|
|
//只允许修改节点名称
|
|
|
if(StringUtils.isEmpty(node.getDeptName()) || "null".equals(String.valueOf(node.getPKeyId())) || StringUtils.isNotEmpty(String.valueOf(node.getPKeyId()))){
|
|
|
return R.data(-1, false , "缺少参数");
|