diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdIndentureController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdIndentureController.java index bcac3d0..270b517 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdIndentureController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdIndentureController.java @@ -90,6 +90,7 @@ public class TdIndentureController extends BaseController { tdIndenture.setCreateStaffid(getLoginName()); tdIndenture.setCreateDate(new Date()); + tdIndenture.setDeptId(getSysUser().getDeptId()); return toAjax(tdIndentureService.insertTdIndenture(tdIndenture)); } @@ -114,6 +115,7 @@ public class TdIndentureController extends BaseController @ResponseBody public AjaxResult editSave(TdIndenture tdIndenture) { + tdIndenture.setDeptId(getSysUser().getDeptId()); return toAjax(tdIndentureService.updateTdIndenture(tdIndenture)); }