Browse Source

值班管理编辑机构修复

master
laishajiang 2 years ago
parent
commit
2a0e190048
  1. 9
      mailbox-lan/src/main/java/com/biutag/lan/service/impl/DutyServiceImpl.java

9
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()); model.setDepartId(updateValidate.getDepartId());
Dept dept = deptMapper.selectById(updateValidate.getDepartId()); Dept dept = deptMapper.selectById(updateValidate.getDepartId());
model.setDepartName(dept.getFullName()); model.setDepartName(dept.getFullName());
// model.setDepartName(updateValidate.getDepartName()); model.setDeptType(updateValidate.getDeptType());
DictData dictData = dictDataMapper.selectOne(new QueryWrapper<DictData>()
.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.setPoliceName(updateValidate.getPoliceName());
model.setMobile(updateValidate.getMobile()); model.setMobile(updateValidate.getMobile());
// model.setRoleId(updateValidate.getRoleId()); // model.setRoleId(updateValidate.getRoleId());

Loading…
Cancel
Save