Browse Source

去掉agencyName

master
yinzuomei 3 years ago
parent
commit
8be4ecfaf2
  1. 5
      epmet-module/gov-voice/gov-voice-client/src/main/java/com/epmet/dto/TagScopeDTO.java
  2. 4
      epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/entity/TagScopeEntity.java
  3. 2
      epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/TagCustomerServiceImpl.java
  4. 1
      epmet-module/gov-voice/gov-voice-server/src/main/resources/db/migration/V0.0.13__tag_scope.sql
  5. 4
      epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/TagScopeDao.xml

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

@ -24,10 +24,5 @@ public class TagScopeDTO implements Serializable {
* agency_id全路径包含自身
*/
private String orgIdPath;
/**
* 组织名称
*/
private String agencyName;
}

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

@ -38,8 +38,4 @@ public class TagScopeEntity extends BaseEpmetEntity {
*/
private String orgIdPath;
/**
* 组织名称
*/
private String agencyName;
}

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

@ -105,7 +105,6 @@ public class TagCustomerServiceImpl extends BaseServiceImpl<TagCustomerDao, TagC
tagScopeEntity.setCustomerId(entity.getCustomerId());
tagScopeEntity.setTagId(entity.getId());
tagScopeEntity.setAgencyId(tagScopeDTO.getAgencyId());
tagScopeEntity.setAgencyName(tagScopeDTO.getAgencyName());
tagScopeEntity.setOrgIdPath(tagScopeDTO.getOrgIdPath());
tagScopeDao.insert(tagScopeEntity);
});
@ -137,7 +136,6 @@ public class TagCustomerServiceImpl extends BaseServiceImpl<TagCustomerDao, TagC
tagScopeEntity.setCustomerId(entity.getCustomerId());
tagScopeEntity.setTagId(entity.getId());
tagScopeEntity.setAgencyId(tagScopeDTO.getAgencyId());
tagScopeEntity.setAgencyName(tagScopeDTO.getAgencyName());
tagScopeEntity.setOrgIdPath(tagScopeDTO.getOrgIdPath());
tagScopeDao.insert(tagScopeEntity);
});

1
epmet-module/gov-voice/gov-voice-server/src/main/resources/db/migration/V0.0.13__tag_scope.sql

@ -6,7 +6,6 @@ CREATE TABLE `tag_scope` (
`TAG_ID` varchar(64) NOT NULL COMMENT '标签ID',
`AGENCY_ID` varchar(64) NOT NULL COMMENT '应用范围,这里只能是社区id',
`ORG_ID_PATH` varchar(255) NOT NULL COMMENT 'agency_id全路径,包含自身',
`AGENCY_NAME` varchar(255) NOT NULL COMMENT '组织名称',
`DEL_FLAG` int(11) NOT NULL DEFAULT '0' COMMENT '删除标识 0.未删除 1.已删除',
`REVISION` int(11) NOT NULL COMMENT '乐观锁',
`CREATED_BY` varchar(32) NOT NULL COMMENT '创建人',

4
epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/TagScopeDao.xml

@ -9,7 +9,6 @@
<result property="tagId" column="TAG_ID"/>
<result property="agencyId" column="AGENCY_ID"/>
<result property="orgIdPath" column="ORG_ID_PATH"/>
<result property="agencyName" column="AGENCY_NAME"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
@ -27,8 +26,7 @@
<select id="selectScope" parameterType="java.lang.String" resultType="com.epmet.dto.TagScopeDTO">
select ts.TAG_ID,
ts.AGENCY_ID,
ts.ORG_ID_PATH,
ts.AGENCY_NAME
ts.ORG_ID_PATH
from tag_scope ts
where ts.del_flag='0'
and ts.TAG_ID=#{tagId}

Loading…
Cancel
Save