Browse Source

标签管理新增和修改增加agencyName,pid

dev
yinzuomei 2 years ago
parent
commit
00623752b6
  1. 9
      epmet-module/gov-voice/gov-voice-client/src/main/java/com/epmet/dto/TagScopeDTO.java
  2. 9
      epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/entity/TagScopeEntity.java
  3. 4
      epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/TagCustomerServiceImpl.java

9
epmet-module/gov-voice/gov-voice-client/src/main/java/com/epmet/dto/TagScopeDTO.java

@ -30,5 +30,14 @@ public class TagScopeDTO implements Serializable {
*/ */
@NotBlank(message = "orgIdPath不能为空",groups = AddUserShowGroup.class) @NotBlank(message = "orgIdPath不能为空",groups = AddUserShowGroup.class)
private String orgIdPath; private String orgIdPath;
/**
* agencyId的直属上级
*/
private String pid;
/**
* 社区名称
*/
private String agencyName;
} }

9
epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/entity/TagScopeEntity.java

@ -37,5 +37,12 @@ public class TagScopeEntity extends BaseEpmetEntity {
* agency_id全路径包含自身 * agency_id全路径包含自身
*/ */
private String orgIdPath; private String orgIdPath;
/**
* agencyId的直属上级
*/
private String pid;
/**
* 社区名称
*/
private String agencyName;
} }

4
epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/TagCustomerServiceImpl.java

@ -123,6 +123,8 @@ public class TagCustomerServiceImpl extends BaseServiceImpl<TagCustomerDao, TagC
tagScopeEntity.setTagId(entity.getId()); tagScopeEntity.setTagId(entity.getId());
tagScopeEntity.setAgencyId(tagScopeDTO.getAgencyId()); tagScopeEntity.setAgencyId(tagScopeDTO.getAgencyId());
tagScopeEntity.setOrgIdPath(tagScopeDTO.getOrgIdPath()); tagScopeEntity.setOrgIdPath(tagScopeDTO.getOrgIdPath());
tagScopeEntity.setAgencyName(tagScopeDTO.getAgencyName());
tagScopeEntity.setPid(tagScopeDTO.getPid());
tagScopeDao.insert(tagScopeEntity); tagScopeDao.insert(tagScopeEntity);
}); });
} }
@ -156,6 +158,8 @@ public class TagCustomerServiceImpl extends BaseServiceImpl<TagCustomerDao, TagC
tagScopeEntity.setTagId(entity.getId()); tagScopeEntity.setTagId(entity.getId());
tagScopeEntity.setAgencyId(tagScopeDTO.getAgencyId()); tagScopeEntity.setAgencyId(tagScopeDTO.getAgencyId());
tagScopeEntity.setOrgIdPath(tagScopeDTO.getOrgIdPath()); tagScopeEntity.setOrgIdPath(tagScopeDTO.getOrgIdPath());
tagScopeEntity.setAgencyName(tagScopeDTO.getAgencyName());
tagScopeEntity.setPid(tagScopeDTO.getPid());
tagScopeDao.insert(tagScopeEntity); tagScopeDao.insert(tagScopeEntity);
}); });
} }

Loading…
Cancel
Save