|
|
|
@ -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());
|
|
|
|
|