diff --git a/mailbox-lan/src/main/java/com/biutag/lan/service/impl/DutyServiceImpl.java b/mailbox-lan/src/main/java/com/biutag/lan/service/impl/DutyServiceImpl.java index d04f120..86bce05 100644 --- a/mailbox-lan/src/main/java/com/biutag/lan/service/impl/DutyServiceImpl.java +++ b/mailbox-lan/src/main/java/com/biutag/lan/service/impl/DutyServiceImpl.java @@ -252,7 +252,14 @@ public class DutyServiceImpl implements IDutyService { model.setDepartId(updateValidate.getDepartId()); Dept dept = deptMapper.selectById(updateValidate.getDepartId()); model.setDepartName(dept.getFullName()); - // model.setDepartName(updateValidate.getDepartName()); + model.setDeptType(updateValidate.getDeptType()); + DictData dictData = dictDataMapper.selectOne(new QueryWrapper() + .select("id,type_id,name,value,remark,sort,status,create_time,update_time") + .eq("type_id", AppConstants.DEPT_TYPE_CATEGORY)//机构类型 + .eq("is_delete", 0) + .eq("value",updateValidate.getDeptType()) + .last("limit 1")); + model.setTypeName(dictData.getName()); model.setPoliceName(updateValidate.getPoliceName()); model.setMobile(updateValidate.getMobile()); // model.setRoleId(updateValidate.getRoleId());