Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bi-report
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data
bi-report
Commits
6e148cd0
Commit
6e148cd0
authored
Jul 09, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.wanmeizhensuo.com/data/bi-report
into weiyimin
parents
040750af
f3bbca0a
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
20 deletions
+12
-20
.DS_Store
.DS_Store
+0
-0
readme.txt
doc/readme.txt
+1
-15
workspace.xml
lib/java/bi-report-service/.idea/workspace.xml
+2
-1
EmailServiceImpl.java
...ei/data/gateway/server/service/impl/EmailServiceImpl.java
+6
-1
ExcelServiceImpl.java
...ei/data/gateway/server/service/impl/ExcelServiceImpl.java
+0
-2
SparksqlServiceImpl.java
...data/gateway/server/service/impl/SparksqlServiceImpl.java
+3
-1
No files found.
.DS_Store
View file @
6e148cd0
No preview for this file type
doc/readme.txt
View file @
6e148cd0
...
@@ -5,9 +5,6 @@ BI report project init.
...
@@ -5,9 +5,6 @@ BI report project init.
部署节点:
部署节点:
bj-gm-prod-cos-dataweb005
bj-gm-prod-cos-dataweb005
临时文件目录
/data/bi-report/tmp
结果目录
结果目录
/data/bi-report/result
/data/bi-report/result
...
@@ -24,18 +21,7 @@ BI report project init.
...
@@ -24,18 +21,7 @@ BI report project init.
开发过程中需要注意的事项:
开发过程中需要注意的事项:
1.在en-cn.properties中维护映射关系,则显示中文名,否则显示英文名
1.在en-cn.properties中维护映射关系,则显示中文名,否则显示英文名
2.在编写类似insert into tableA select * from tableB语句时,不需要添加set role admin以及set mapreduce.job.queuename=data语句,而且不能带有";"符号
2.在azkaban中替换项目内容不需要重新配置定时任务;删除后重新上传,则需要重新配置定时任务
3.在azkaban中替换项目内容不需要重新配置定时任务;删除后重新上传,则需要重新配置定时任务
需求v1.0:
1.附件改为xlsx格式 【metabase支持csv、xlsx两种格式】 python代码实现 ok
2.指定发送人 优先级比较低【metabase默认为doctor】 重新写邮件发送代码 ok
3.更改附件的名 指定 中文 带账期【metabase默认取的是问题的名称】 指定附件的名称为中文,重新转换或者直接指定 ok
4.优化邮件内容,wps打开去掉 样式格式化【metabase中包含内容简略视图,而且有metabaselogo】 邮件内容格式化 python实现 ok
5.一个附件多个sheet 或者 一封邮件 多个附件【metabase默认支持指定多个问题、多个附件】 python发送邮件实现,一个文件多个sheet实现起来相对比较难 发送邮件时需要指定附件名称(带账期) ok
6.excel文件内容格式化 优先级比较低 【指定每个字段的最大长度】 使用python实现,尝试 ok
规范约定:
规范约定:
1.job文件的命名
1.job文件的命名
...
...
lib/java/bi-report-service/.idea/workspace.xml
View file @
6e148cd0
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
<property
name=
"RunOnceActivity.ShowReadmeOnStart"
value=
"true"
/>
<property
name=
"RunOnceActivity.ShowReadmeOnStart"
value=
"true"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"aspect.path.notification.shown"
value=
"true"
/>
<property
name=
"aspect.path.notification.shown"
value=
"true"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$
/service-client/shs
"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$"
/>
</component>
</component>
<component
name=
"RecentsManager"
>
<component
name=
"RecentsManager"
>
<key
name=
"CopyFile.RECENT_KEYS"
>
<key
name=
"CopyFile.RECENT_KEYS"
>
...
@@ -199,6 +199,7 @@
...
@@ -199,6 +199,7 @@
<workItem
from=
"1592568026557"
duration=
"772000"
/>
<workItem
from=
"1592568026557"
duration=
"772000"
/>
<workItem
from=
"1593835574199"
duration=
"4438000"
/>
<workItem
from=
"1593835574199"
duration=
"4438000"
/>
<workItem
from=
"1594091429524"
duration=
"3648000"
/>
<workItem
from=
"1594091429524"
duration=
"3648000"
/>
<workItem
from=
"1594173992446"
duration=
"1574000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
...
...
lib/java/bi-report-service/service-server/src/main/java/com/gmei/data/gateway/server/service/impl/EmailServiceImpl.java
View file @
6e148cd0
...
@@ -28,6 +28,8 @@ public class EmailServiceImpl implements EmailService {
...
@@ -28,6 +28,8 @@ public class EmailServiceImpl implements EmailService {
private
String
filePath
;
private
String
filePath
;
@Value
(
"${proper.file.path}"
)
@Value
(
"${proper.file.path}"
)
private
String
properFilePath
;
private
String
properFilePath
;
@Value
(
"${proper.base.path}"
)
private
String
properBasePath
;
@Autowired
@Autowired
private
JavaMailSender
mailSender
;
private
JavaMailSender
mailSender
;
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
EmailServiceImpl
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
EmailServiceImpl
.
class
);
...
@@ -37,7 +39,10 @@ public class EmailServiceImpl implements EmailService {
...
@@ -37,7 +39,10 @@ public class EmailServiceImpl implements EmailService {
int
rs
=
Constants
.
SUCCESS
;
int
rs
=
Constants
.
SUCCESS
;
String
subject
=
""
;
String
subject
=
""
;
String
value
=
ProperUtils
.
getValue
(
properFilePath
,
name
);
String
properPath
=
properBasePath
+
"pm/"
+
name
+
"/en-cn.properties"
;
logger
.
info
(
"邮件主题属性文件目录为:{}"
,
properPath
);
String
value
=
ProperUtils
.
getValue
(
properPath
,
name
);
//String value = ProperUtils.getValue(properFilePath, name);
if
(
null
!=
value
){
if
(
null
!=
value
){
subject
=
value
;
subject
=
value
;
}
else
{
}
else
{
...
...
lib/java/bi-report-service/service-server/src/main/java/com/gmei/data/gateway/server/service/impl/ExcelServiceImpl.java
View file @
6e148cd0
...
@@ -37,8 +37,6 @@ public class ExcelServiceImpl implements ExcelService {
...
@@ -37,8 +37,6 @@ public class ExcelServiceImpl implements ExcelService {
@Value
(
"${excel.output.path}"
)
@Value
(
"${excel.output.path}"
)
private
String
filePath
;
private
String
filePath
;
@Value
(
"${proper.file.path}"
)
private
String
properFilePath
;
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ExcelServiceImpl
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ExcelServiceImpl
.
class
);
/**
/**
...
...
lib/java/bi-report-service/service-server/src/main/java/com/gmei/data/gateway/server/service/impl/SparksqlServiceImpl.java
View file @
6e148cd0
...
@@ -103,7 +103,9 @@ public class SparksqlServiceImpl implements SparksqlService {
...
@@ -103,7 +103,9 @@ public class SparksqlServiceImpl implements SparksqlService {
String
fileName
=
file
.
getName
();
String
fileName
=
file
.
getName
();
String
nameStr
=
fileName
.
replace
(
".sql"
,
""
);
String
nameStr
=
fileName
.
replace
(
".sql"
,
""
);
String
subject
=
""
;
String
subject
=
""
;
String
value
=
ProperUtils
.
getValue
(
properBasePath
+
"pm/"
+
name
+
"/en-cn.properties"
,
nameStr
);
String
properPath
=
properBasePath
+
"pm/"
+
name
+
"/en-cn.properties"
;
logger
.
info
(
"Sheets属性文件目录为:{}"
,
properPath
);
String
value
=
ProperUtils
.
getValue
(
properPath
,
nameStr
);
if
(
null
!=
value
){
if
(
null
!=
value
){
subject
=
value
;
subject
=
value
;
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment