Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz商业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz商业套件
iBiz商业中心
提交
7762566b
提交
7762566b
编写于
10月 26, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 发布系统代码
上级
9eee95e3
变更
5
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
27 行增加
和
0 行删除
+27
-0
mail_messageFallback.java
...sscentral/core/odoo_mail/client/mail_messageFallback.java
+4
-0
mail_messageFeignClient.java
...entral/core/odoo_mail/client/mail_messageFeignClient.java
+4
-0
IMail_messageService.java
...scentral/core/odoo_mail/service/IMail_messageService.java
+1
-0
Mail_messageServiceImpl.java
.../core/odoo_mail/service/impl/Mail_messageServiceImpl.java
+7
-0
Mail_messageResource.java
...izlab/businesscentral/core/rest/Mail_messageResource.java
+11
-0
未找到文件。
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_mail/client/mail_messageFallback.java
浏览文件 @
7762566b
...
@@ -73,6 +73,10 @@ public class mail_messageFallback implements mail_messageFeignClient{
...
@@ -73,6 +73,10 @@ public class mail_messageFallback implements mail_messageFeignClient{
return
null
;
return
null
;
}
}
public
Mail_message
post_message
(
Long
id
,
Mail_message
mail_message
){
return
null
;
}
public
Boolean
save
(
Mail_message
mail_message
){
public
Boolean
save
(
Mail_message
mail_message
){
return
false
;
return
false
;
}
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_mail/client/mail_messageFeignClient.java
浏览文件 @
7762566b
...
@@ -68,6 +68,10 @@ public interface mail_messageFeignClient {
...
@@ -68,6 +68,10 @@ public interface mail_messageFeignClient {
Mail_message
generate_tracking_message_id
(
@PathVariable
(
"id"
)
Long
id
,
@RequestBody
Mail_message
mail_message
);
Mail_message
generate_tracking_message_id
(
@PathVariable
(
"id"
)
Long
id
,
@RequestBody
Mail_message
mail_message
);
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/mail_messages/{id}/post_message"
)
Mail_message
post_message
(
@PathVariable
(
"id"
)
Long
id
,
@RequestBody
Mail_message
mail_message
);
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/mail_messages/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/mail_messages/save"
)
Boolean
save
(
@RequestBody
Mail_message
mail_message
);
Boolean
save
(
@RequestBody
Mail_message
mail_message
);
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_mail/service/IMail_messageService.java
浏览文件 @
7762566b
...
@@ -36,6 +36,7 @@ public interface IMail_messageService extends IService<Mail_message>{
...
@@ -36,6 +36,7 @@ public interface IMail_messageService extends IService<Mail_message>{
Mail_message
getDraft
(
Mail_message
et
)
;
Mail_message
getDraft
(
Mail_message
et
)
;
boolean
checkKey
(
Mail_message
et
)
;
boolean
checkKey
(
Mail_message
et
)
;
Mail_message
generate_tracking_message_id
(
Mail_message
et
)
;
Mail_message
generate_tracking_message_id
(
Mail_message
et
)
;
Mail_message
post_message
(
Mail_message
et
)
;
boolean
save
(
Mail_message
et
)
;
boolean
save
(
Mail_message
et
)
;
void
saveBatch
(
List
<
Mail_message
>
list
)
;
void
saveBatch
(
List
<
Mail_message
>
list
)
;
Page
<
Mail_message
>
searchDefault
(
Mail_messageSearchContext
context
)
;
Page
<
Mail_message
>
searchDefault
(
Mail_messageSearchContext
context
)
;
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_mail/service/impl/Mail_messageServiceImpl.java
浏览文件 @
7762566b
...
@@ -205,6 +205,13 @@ public class Mail_messageServiceImpl extends EBSServiceImpl<Mail_messageMapper,
...
@@ -205,6 +205,13 @@ public class Mail_messageServiceImpl extends EBSServiceImpl<Mail_messageMapper,
return
et
;
return
et
;
}
}
@Override
@Transactional
public
Mail_message
post_message
(
Mail_message
et
)
{
//自定义代码
return
et
;
}
@Override
@Override
@Transactional
@Transactional
public
boolean
save
(
Mail_message
et
)
{
public
boolean
save
(
Mail_message
et
)
{
...
...
businesscentral-provider/businesscentral-provider-core/src/main/java/cn/ibizlab/businesscentral/core/rest/Mail_messageResource.java
浏览文件 @
7762566b
...
@@ -132,6 +132,17 @@ public class Mail_messageResource {
...
@@ -132,6 +132,17 @@ public class Mail_messageResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
mail_messagedto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
mail_messagedto
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Mail_message-Post_message-all')"
)
@ApiOperation
(
value
=
"发送消息"
,
tags
=
{
"消息"
},
notes
=
"发送消息"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/mail_messages/{mail_message_id}/post_message"
)
public
ResponseEntity
<
Mail_messageDTO
>
post_message
(
@PathVariable
(
"mail_message_id"
)
Long
mail_message_id
,
@RequestBody
Mail_messageDTO
mail_messagedto
)
{
Mail_message
domain
=
mail_messageMapping
.
toDomain
(
mail_messagedto
);
domain
.
setId
(
mail_message_id
);
domain
=
mail_messageService
.
post_message
(
domain
);
mail_messagedto
=
mail_messageMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
mail_messagedto
);
}
@PreAuthorize
(
"hasPermission(this.mail_messageMapping.toDomain(#mail_messagedto),'iBizBusinessCentral-Mail_message-Save')"
)
@PreAuthorize
(
"hasPermission(this.mail_messageMapping.toDomain(#mail_messagedto),'iBizBusinessCentral-Mail_message-Save')"
)
@ApiOperation
(
value
=
"保存消息"
,
tags
=
{
"消息"
},
notes
=
"保存消息"
)
@ApiOperation
(
value
=
"保存消息"
,
tags
=
{
"消息"
},
notes
=
"保存消息"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/mail_messages/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/mail_messages/save"
)
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录