Browse Source

Merge remote-tracking branch 'origin/dev_voice' into dev_voice

dev_shibei_match
jianjun 5 years ago
parent
commit
04a8de5c2d
  1. 2
      epmet-auth/deploy/docker-compose-dev.yml
  2. 2
      epmet-auth/pom.xml
  3. 2
      epmet-module/epmet-message/epmet-message-server/deploy/docker-compose-dev.yml
  4. 2
      epmet-module/epmet-message/epmet-message-server/pom.xml
  5. 2
      epmet-module/gov-voice/gov-voice-server/deploy/docker-compose-dev.yml
  6. 2
      epmet-module/gov-voice/gov-voice-server/pom.xml
  7. 10
      epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/DraftServiceImpl.java
  8. 95
      epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/DraftDao.xml

2
epmet-auth/deploy/docker-compose-dev.yml

@ -2,7 +2,7 @@ version: "3.7"
services: services:
epmet-auth-server: epmet-auth-server:
container_name: epmet-auth-server-dev container_name: epmet-auth-server-dev
image: 192.168.1.130:10080/epmet-cloud-dev/epmet-auth:0.3.19 image: 192.168.1.130:10080/epmet-cloud-dev/epmet-auth:0.3.20
ports: ports:
- "8081:8081" - "8081:8081"
network_mode: host # 使用现有网络 network_mode: host # 使用现有网络

2
epmet-auth/pom.xml

@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<version>0.3.19</version> <version>0.3.20</version>
<parent> <parent>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>
<artifactId>epmet-cloud</artifactId> <artifactId>epmet-cloud</artifactId>

2
epmet-module/epmet-message/epmet-message-server/deploy/docker-compose-dev.yml

@ -2,7 +2,7 @@ version: "3.7"
services: services:
epmet-message-server: epmet-message-server:
container_name: epmet-message-server-dev container_name: epmet-message-server-dev
image: 192.168.1.130:10080/epmet-cloud-dev/epmet-message-server:0.3.17 image: 192.168.1.130:10080/epmet-cloud-dev/epmet-message-server:0.3.18
ports: ports:
- "8085:8085" - "8085:8085"
network_mode: host # 使用现有网络 network_mode: host # 使用现有网络

2
epmet-module/epmet-message/epmet-message-server/pom.xml

@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<version>0.3.17</version> <version>0.3.18</version>
<parent> <parent>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>
<artifactId>epmet-message</artifactId> <artifactId>epmet-message</artifactId>

2
epmet-module/gov-voice/gov-voice-server/deploy/docker-compose-dev.yml

@ -2,7 +2,7 @@ version: "3.7"
services: services:
gov-voice-server: gov-voice-server:
container_name: gov-voice-server-dev container_name: gov-voice-server-dev
image: 192.168.1.130:10080/epmet-cloud-dev/gov-voice-server:0.3.32 image: 192.168.1.130:10080/epmet-cloud-dev/gov-voice-server:0.3.37
ports: ports:
- "8105:8105" - "8105:8105"
network_mode: host # 使用现有网络 network_mode: host # 使用现有网络

2
epmet-module/gov-voice/gov-voice-server/pom.xml

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<version>0.3.32</version> <version>0.3.37</version>
<parent> <parent>
<artifactId>gov-voice</artifactId> <artifactId>gov-voice</artifactId>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>

10
epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/DraftServiceImpl.java

@ -128,6 +128,14 @@ public class DraftServiceImpl extends BaseServiceImpl<DraftDao, DraftEntity> imp
@Override @Override
public DraftContentResultDTO queryDraftContent(DraftDetailFormDTO formDTO) { public DraftContentResultDTO queryDraftContent(DraftDetailFormDTO formDTO) {
DraftContentResultDTO draftContentResultDTO = baseDao.selectDraftContent(formDTO.getDraftId()); DraftContentResultDTO draftContentResultDTO = baseDao.selectDraftContent(formDTO.getDraftId());
/*for(DraftContentDetailDTO contentDetailDTO:draftContentResultDTO.getContentList()){
if(StringUtils.isBlank(contentDetailDTO.getAuditReason())){
contentDetailDTO.setAuditReason("");
}
if(StringUtils.isBlank(contentDetailDTO.getAuditStatus())){
contentDetailDTO.setAuditStatus("");
}
}*/
return draftContentResultDTO; return draftContentResultDTO;
} }
@ -142,6 +150,8 @@ public class DraftServiceImpl extends BaseServiceImpl<DraftDao, DraftEntity> imp
if (StringUtils.isNotBlank(draftAttrResultDTO.getTags())) { if (StringUtils.isNotBlank(draftAttrResultDTO.getTags())) {
String[] tagNames = draftAttrResultDTO.getTags().split("\\|"); String[] tagNames = draftAttrResultDTO.getTags().split("\\|");
draftAttrResultDTO.setTagNameList(tagNames); draftAttrResultDTO.setTagNameList(tagNames);
}else{
draftAttrResultDTO.setTagNameList(new String[0]);
} }
} else { } else {
logger.error(String.format("查询草稿属性失败,草稿id=%s", formDTO.getDraftId())); logger.error(String.format("查询草稿属性失败,草稿id=%s", formDTO.getDraftId()));

95
epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/DraftDao.xml

@ -25,17 +25,30 @@
<!-- 政府端查询草稿内容详情 --> <!-- 政府端查询草稿内容详情 -->
<select id="selectDraftContentDetail" parameterType="java.lang.String" resultType="com.epmet.dto.result.DraftContentDetailDTO"> <select id="selectDraftContentDetail" parameterType="java.lang.String" resultType="com.epmet.dto.result.DraftContentDetailDTO">
SELECT SELECT
dc.ID, dc.ID,
dc.CONTENT, dc.CONTENT,
dc.CONTENT_TYPE, dc.CONTENT_TYPE,
dc.ORDER_NUM, dc.ORDER_NUM,
dc.AUDIT_STATUS, (case
dc.AUDIT_REASON when dc.AUDIT_STATUS is null then ""
when LENGTH(dc.AUDIT_STATUS)&lt;=1 THEN ""
WHEN DC.AUDIT_STATUS="null" then ""
else dc.AUDIT_STATUS
end ) as AUDIT_STATUS,
dc.AUDIT_STATUS as "AUDIT_STATUS原来的值",
(
CASE WHEN dc.AUDIT_REASON IS NULL THEN ""
WHEN dc.AUDIT_REASON&lt;=1 THEN ""
WHEN dc.AUDIT_REASON="null" then ""
else dc.AUDIT_REASON
end
)as AUDIT_REASON,
dc.AUDIT_REASON as "AUDIT_REASON原来的值"
FROM FROM
draft_content dc draft_content dc
WHERE WHERE
dc.DEL_FLAG = '0' dc.DEL_FLAG = '0'
AND dc.DRAFT_ID = #{draftId} AND dc.DRAFT_ID = #{draftId}
ORDER BY ORDER BY
dc.ORDER_NUM ASC dc.ORDER_NUM ASC
</select> </select>
@ -43,21 +56,59 @@
<!-- 政府端:选中草稿编辑,获取草稿属性 --> <!-- 政府端:选中草稿编辑,获取草稿属性 -->
<select id="selectDraftAttr" parameterType="java.lang.String" resultType="com.epmet.dto.result.DraftAttrResultDTO"> <select id="selectDraftAttr" parameterType="java.lang.String" resultType="com.epmet.dto.result.DraftAttrResultDTO">
SELECT SELECT
id AS DRAFT_ID, id AS DRAFT_ID,
IS_TOP, IS_TOP,
PUBLISHER_ID AS PUBLISHER, (
PUBLISHER_NAME, CASE WHEN PUBLISHER_ID IS NULL THEN ""
PUBLISH_DATE, WHEN LENGTH(PUBLISHER_ID)&lt;=1 THEN ""
TITLE, when PUBLISHER_ID="null" then ""
PUBLISH_RANGE_DESC, ELSE PUBLISHER_ID
PUBLISHER_TYPE, END
TAGS ) AS PUBLISHER,
PUBLISHER_ID as "PUBLISHER_ID原来的值",
(
case when PUBLISHER_NAME is NULL THEN ""
when LENGTH(PUBLISHER_NAME)&lt;=1 THEN ""
when PUBLISHER_NAME="null" then ""
ELSE PUBLISHER_NAME
END
)as PUBLISHER_NAME,
PUBLISHER_NAME as "PUBLISHER_NAME原来的值",
(CASE
WHEN PUBLISH_DATE IS NULL THEN CURDATE()
ELSE PUBLISH_DATE
END )AS PUBLISH_DATE,
TITLE,
(
CASE WHEN PUBLISH_RANGE_DESC IS NULL THEN ""
WHEN LENGTH(PUBLISH_RANGE_DESC)&lt;=1 THEN ""
when PUBLISH_RANGE_DESC="null" then ""
ELSE PUBLISH_RANGE_DESC
END
)AS PUBLISH_RANGE_DESC,
PUBLISH_RANGE_DESC as "PUBLISH_RANGE_DESC原来的值",
(
CASE WHEN PUBLISHER_TYPE IS NULL THEN ""
WHEN LENGTH(PUBLISHER_TYPE) &lt;=1 THEN ""
when PUBLISHER_TYPE="null" then ""
ELSE PUBLISHER_TYPE
END
)AS PUBLISHER_TYPE,
PUBLISHER_TYPE as "PUBLISHER_TYPE原来的值",
(
CASE when TAGS IS NULL THEN ""
WHEN LENGTH(TAGS)&lt;=1 THEN ""
when TAGS="null" then ""
ELSE TAGS
END
)TAGS,
TAGS as "TAGS原来的值"
FROM FROM
draft draft
WHERE WHERE
DEL_FLAG = '0' DEL_FLAG = '0'
and STATUS_FLAG!='published' and STATUS_FLAG!='published'
and id=#{draftId} and id=#{draftId}
</select> </select>
<!-- 政府端:选中草稿编辑,获取草稿属性-封面信息 --> <!-- 政府端:选中草稿编辑,获取草稿属性-封面信息 -->

Loading…
Cancel
Save