Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz商业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz商业套件
iBiz商业中心
提交
f4deed7a
提交
f4deed7a
编写于
10月 23, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 发布系统代码
上级
37c0f655
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
29 行增加
和
0 行删除
+29
-0
Ir_model_fieldsMapper.java
...esscentral/core/odoo_ir/mapper/Ir_model_fieldsMapper.java
+1
-0
IIr_model_fieldsService.java
...central/core/odoo_ir/service/IIr_model_fieldsService.java
+1
-0
Ir_model_fieldsServiceImpl.java
...core/odoo_ir/service/impl/Ir_model_fieldsServiceImpl.java
+9
-0
Ir_model_fieldsMapper.xml
.../mapper/odoo_ir/ir_model_fields/Ir_model_fieldsMapper.xml
+18
-0
未找到文件。
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_ir/mapper/Ir_model_fieldsMapper.java
浏览文件 @
f4deed7a
...
@@ -20,6 +20,7 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -20,6 +20,7 @@ import com.alibaba.fastjson.JSONObject;
public
interface
Ir_model_fieldsMapper
extends
BaseMapper
<
Ir_model_fields
>{
public
interface
Ir_model_fieldsMapper
extends
BaseMapper
<
Ir_model_fields
>{
Page
<
Ir_model_fields
>
searchDefault
(
IPage
page
,
@Param
(
"srf"
)
Ir_model_fieldsSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
Ir_model_fields
>
wrapper
)
;
Page
<
Ir_model_fields
>
searchDefault
(
IPage
page
,
@Param
(
"srf"
)
Ir_model_fieldsSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
Ir_model_fields
>
wrapper
)
;
Page
<
Ir_model_fields
>
searchTrackingField
(
IPage
page
,
@Param
(
"srf"
)
Ir_model_fieldsSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
Ir_model_fields
>
wrapper
)
;
@Override
@Override
Ir_model_fields
selectById
(
Serializable
id
);
Ir_model_fields
selectById
(
Serializable
id
);
@Override
@Override
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_ir/service/IIr_model_fieldsService.java
浏览文件 @
f4deed7a
...
@@ -38,6 +38,7 @@ public interface IIr_model_fieldsService extends IService<Ir_model_fields>{
...
@@ -38,6 +38,7 @@ public interface IIr_model_fieldsService extends IService<Ir_model_fields>{
boolean
save
(
Ir_model_fields
et
)
;
boolean
save
(
Ir_model_fields
et
)
;
void
saveBatch
(
List
<
Ir_model_fields
>
list
)
;
void
saveBatch
(
List
<
Ir_model_fields
>
list
)
;
Page
<
Ir_model_fields
>
searchDefault
(
Ir_model_fieldsSearchContext
context
)
;
Page
<
Ir_model_fields
>
searchDefault
(
Ir_model_fieldsSearchContext
context
)
;
Page
<
Ir_model_fields
>
searchTrackingField
(
Ir_model_fieldsSearchContext
context
)
;
List
<
Ir_model_fields
>
selectByModelId
(
Long
id
)
;
List
<
Ir_model_fields
>
selectByModelId
(
Long
id
)
;
void
removeByModelId
(
Long
id
)
;
void
removeByModelId
(
Long
id
)
;
/**
/**
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_ir/service/impl/Ir_model_fieldsServiceImpl.java
浏览文件 @
f4deed7a
...
@@ -171,6 +171,15 @@ public class Ir_model_fieldsServiceImpl extends ServiceImpl<Ir_model_fieldsMappe
...
@@ -171,6 +171,15 @@ public class Ir_model_fieldsServiceImpl extends ServiceImpl<Ir_model_fieldsMappe
return
new
PageImpl
<
Ir_model_fields
>(
pages
.
getRecords
(),
context
.
getPageable
(),
pages
.
getTotal
());
return
new
PageImpl
<
Ir_model_fields
>(
pages
.
getRecords
(),
context
.
getPageable
(),
pages
.
getTotal
());
}
}
/**
* 查询集合 跟踪字段
*/
@Override
public
Page
<
Ir_model_fields
>
searchTrackingField
(
Ir_model_fieldsSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
Ir_model_fields
>
pages
=
baseMapper
.
searchTrackingField
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
Ir_model_fields
>(
pages
.
getRecords
(),
context
.
getPageable
(),
pages
.
getTotal
());
}
...
...
businesscentral-core/src/main/resources/mapper/odoo_ir/ir_model_fields/Ir_model_fieldsMapper.xml
浏览文件 @
f4deed7a
...
@@ -36,11 +36,29 @@
...
@@ -36,11 +36,29 @@
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
</select>
</select>
<!--数据集合[TrackingField]-->
<select
id=
"searchTrackingField"
parameterType=
"cn.ibizlab.businesscentral.core.odoo_ir.filter.Ir_model_fieldsSearchContext"
resultMap=
"Ir_model_fieldsResultMap"
>
select * from (
select t1.* from (
<include
refid=
"TrackingField"
/>
)t1
<where><if
test=
"ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere"
>
${ew.sqlSegment}
</if></where>
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
)t1
order by tracking asc
</select>
<!--数据查询[Default]-->
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"postgresql"
>
<sql
id=
"Default"
databaseId=
"postgresql"
>
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1
]]>
]]>
</sql>
</sql>
<!--数据查询[TrackingField]-->
<sql
id=
"TrackingField"
databaseId=
"postgresql"
>
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1
WHERE ( t1.TRACKING IS NOT NULL )
]]>
</sql>
<!--数据查询[View]-->
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"postgresql"
>
<sql
id=
"View"
databaseId=
"postgresql"
>
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录