diff --git a/src/main/java/com/gunshi/project/hsz/controller/MentencePlanController.java b/src/main/java/com/gunshi/project/hsz/controller/MentencePlanController.java index e707037..28f0c83 100644 --- a/src/main/java/com/gunshi/project/hsz/controller/MentencePlanController.java +++ b/src/main/java/com/gunshi/project/hsz/controller/MentencePlanController.java @@ -5,9 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.gunshi.core.result.R; import com.gunshi.core.session.entity.SessionUser; -import com.gunshi.project.hsz.entity.so.ByPlanPageSo; import com.gunshi.project.hsz.entity.so.MentencePlanPageSo; -import com.gunshi.project.hsz.model.ByPlan; import com.gunshi.project.hsz.model.MentencePlan; import com.gunshi.project.hsz.model.MentencePlanDetail; import com.gunshi.project.hsz.service.FileAssociationsService; @@ -125,6 +123,7 @@ public class MentencePlanController extends AbstractCommonFileController { if(Objects.isNull(one)){ throw new RuntimeException("该计划不存在"); } + dto.setApprovePersonId(sessionUser.getUserId() == null?"1":String.valueOf(sessionUser.getUserId())); dto.setApprovePersonName(sessionUser.getUserName()); mentencePlanService.updateById(dto); return R.ok(true);