Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz商业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz商业套件
iBiz商业中心
提交
a6002249
提交
a6002249
编写于
10月 23, 2020
作者:
yujiaming
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
http://demo.ibizlab.cn/iBizEBS/iBizBusinessCentral
上级
810a00ea
013cb603
变更
6
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
62 行增加
和
0 行删除
+62
-0
Mail_tracking_valueExService.java
...core/extensions/service/Mail_tracking_valueExService.java
+35
-0
mail_tracking_valueFallback.java
...al/core/odoo_mail/client/mail_tracking_valueFallback.java
+4
-0
mail_tracking_valueFeignClient.java
...core/odoo_mail/client/mail_tracking_valueFeignClient.java
+4
-0
IMail_tracking_valueService.java
...l/core/odoo_mail/service/IMail_tracking_valueService.java
+1
-0
Mail_tracking_valueServiceImpl.java
...doo_mail/service/impl/Mail_tracking_valueServiceImpl.java
+7
-0
Mail_tracking_valueResource.java
...usinesscentral/core/rest/Mail_tracking_valueResource.java
+11
-0
未找到文件。
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/extensions/service/Mail_tracking_valueExService.java
0 → 100644
浏览文件 @
a6002249
package
cn
.
ibizlab
.
businesscentral
.
core
.
extensions
.
service
;
import
cn.ibizlab.businesscentral.core.odoo_mail.service.impl.Mail_tracking_valueServiceImpl
;
import
lombok.extern.slf4j.Slf4j
;
import
cn.ibizlab.businesscentral.core.odoo_mail.domain.Mail_tracking_value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Primary
;
import
java.util.*
;
/**
* 实体[邮件跟踪值] 自定义服务对象
*/
@Slf4j
@Primary
@Service
(
"Mail_tracking_valueExService"
)
public
class
Mail_tracking_valueExService
extends
Mail_tracking_valueServiceImpl
{
@Override
protected
Class
currentModelClass
()
{
return
com
.
baomidou
.
mybatisplus
.
core
.
toolkit
.
ReflectionKit
.
getSuperClassGenericType
(
this
.
getClass
().
getSuperclass
(),
1
);
}
/**
* 自定义行为[A]用户扩展
* @param et
* @return
*/
@Override
@Transactional
public
Mail_tracking_value
a
(
Mail_tracking_value
et
)
{
return
super
.
a
(
et
);
}
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_mail/client/mail_tracking_valueFallback.java
浏览文件 @
a6002249
...
...
@@ -64,6 +64,10 @@ public class mail_tracking_valueFallback implements mail_tracking_valueFeignClie
public
Mail_tracking_value
a
(
Long
id
,
Mail_tracking_value
mail_tracking_value
){
return
null
;
}
public
Boolean
checkKey
(
Mail_tracking_value
mail_tracking_value
){
return
false
;
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_mail/client/mail_tracking_valueFeignClient.java
浏览文件 @
a6002249
...
...
@@ -60,6 +60,10 @@ public interface mail_tracking_valueFeignClient {
Mail_tracking_value
getDraft
();
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/mail_tracking_values/{id}/a"
)
Mail_tracking_value
a
(
@PathVariable
(
"id"
)
Long
id
,
@RequestBody
Mail_tracking_value
mail_tracking_value
);
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/mail_tracking_values/checkkey"
)
Boolean
checkKey
(
@RequestBody
Mail_tracking_value
mail_tracking_value
);
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_mail/service/IMail_tracking_valueService.java
浏览文件 @
a6002249
...
...
@@ -34,6 +34,7 @@ public interface IMail_tracking_valueService extends IService<Mail_tracking_valu
void
removeBatch
(
Collection
<
Long
>
idList
)
;
Mail_tracking_value
get
(
Long
key
)
;
Mail_tracking_value
getDraft
(
Mail_tracking_value
et
)
;
Mail_tracking_value
a
(
Mail_tracking_value
et
)
;
boolean
checkKey
(
Mail_tracking_value
et
)
;
boolean
save
(
Mail_tracking_value
et
)
;
void
saveBatch
(
List
<
Mail_tracking_value
>
list
)
;
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_mail/service/impl/Mail_tracking_valueServiceImpl.java
浏览文件 @
a6002249
...
...
@@ -123,6 +123,13 @@ public class Mail_tracking_valueServiceImpl extends ServiceImpl<Mail_tracking_va
return
et
;
}
@Override
@Transactional
public
Mail_tracking_value
a
(
Mail_tracking_value
et
)
{
//自定义代码
return
et
;
}
@Override
public
boolean
checkKey
(
Mail_tracking_value
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getId
()))&&(!
Objects
.
isNull
(
this
.
getById
(
et
.
getId
())));
...
...
businesscentral-provider/businesscentral-provider-core/src/main/java/cn/ibizlab/businesscentral/core/rest/Mail_tracking_valueResource.java
浏览文件 @
a6002249
...
...
@@ -115,6 +115,17 @@ public class Mail_tracking_valueResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
mail_tracking_valueMapping
.
toDto
(
mail_tracking_valueService
.
getDraft
(
new
Mail_tracking_value
())));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Mail_tracking_value-A-all')"
)
@ApiOperation
(
value
=
"行为"
,
tags
=
{
"邮件跟踪值"
},
notes
=
"行为"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/mail_tracking_values/{mail_tracking_value_id}/a"
)
public
ResponseEntity
<
Mail_tracking_valueDTO
>
a
(
@PathVariable
(
"mail_tracking_value_id"
)
Long
mail_tracking_value_id
,
@RequestBody
Mail_tracking_valueDTO
mail_tracking_valuedto
)
{
Mail_tracking_value
domain
=
mail_tracking_valueMapping
.
toDomain
(
mail_tracking_valuedto
);
domain
.
setId
(
mail_tracking_value_id
);
domain
=
mail_tracking_valueService
.
a
(
domain
);
mail_tracking_valuedto
=
mail_tracking_valueMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
mail_tracking_valuedto
);
}
@ApiOperation
(
value
=
"检查邮件跟踪值"
,
tags
=
{
"邮件跟踪值"
},
notes
=
"检查邮件跟踪值"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/mail_tracking_values/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
Mail_tracking_valueDTO
mail_tracking_valuedto
)
{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录