diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/OperationManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/OperationManage.java index 518258a..033aa75 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/OperationManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/OperationManage.java @@ -46,7 +46,7 @@ public class OperationManage { .throwMessage("项目不存在!"); Operation operation = operationService.getOne(Wrappers.lambdaQuery(Operation.class) - .eq(Operation::getProjectId, project.getProjectCode()) + .eq(Operation::getProjectCode, project.getProjectCode()) .last(BizConst.LIMIT_1)); return BeanUtil.copyProperties(operation,OperationVO.class); @@ -65,7 +65,7 @@ public class OperationManage { .throwMessage("提交失败 该项目不是 待开工或者已立项阶段"); Operation old = operationService.getOne(Wrappers.lambdaQuery(Operation.class) - .eq(Operation::getProjectId, project.getProjectCode()) + .eq(Operation::getProjectCode, project.getProjectCode()) .last(BizConst.LIMIT_1)); Operation entity = BeanUtil.copyProperties(operation, Operation.class);