Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz商业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz商业套件
iBiz商业中心
提交
53d4cfa6
提交
53d4cfa6
编写于
10月 23, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 发布系统代码
上级
56860264
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
17 行增加
和
19 行删除
+17
-19
Ir_model_fields.java
.../businesscentral/core/odoo_ir/domain/Ir_model_fields.java
+9
-10
Ir_model_fieldsSearchContext.java
...ral/core/odoo_ir/filter/Ir_model_fieldsSearchContext.java
+1
-1
Ir_model_fieldsMapper.xml
.../mapper/odoo_ir/ir_model_fields/Ir_model_fieldsMapper.xml
+4
-5
iBizBusinessCentral.json
...core/src/main/resources/sysmodel/iBizBusinessCentral.json
+3
-3
未找到文件。
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_ir/domain/Ir_model_fields.java
浏览文件 @
53d4cfa6
...
@@ -80,7 +80,7 @@ public class Ir_model_fields extends EntityMP implements Serializable {
...
@@ -80,7 +80,7 @@ public class Ir_model_fields extends EntityMP implements Serializable {
@JsonProperty
(
"field_description"
)
@JsonProperty
(
"field_description"
)
private
String
fieldDescription
;
private
String
fieldDescription
;
/**
/**
*
ID
*
模型
*/
*/
@DEField
(
name
=
"model_id"
)
@DEField
(
name
=
"model_id"
)
@TableField
(
value
=
"model_id"
)
@TableField
(
value
=
"model_id"
)
...
@@ -90,11 +90,10 @@ public class Ir_model_fields extends EntityMP implements Serializable {
...
@@ -90,11 +90,10 @@ public class Ir_model_fields extends EntityMP implements Serializable {
/**
/**
* 属性类型
* 属性类型
*/
*/
@DEField
(
name
=
"field_type"
)
@TableField
(
value
=
"ttype"
)
@TableField
(
value
=
"field_type"
)
@JSONField
(
name
=
"ttype"
)
@JSONField
(
name
=
"field_type"
)
@JsonProperty
(
"ttype"
)
@JsonProperty
(
"field_type"
)
private
String
ttype
;
private
String
fieldType
;
/**
/**
*
*
...
@@ -139,7 +138,7 @@ public class Ir_model_fields extends EntityMP implements Serializable {
...
@@ -139,7 +138,7 @@ public class Ir_model_fields extends EntityMP implements Serializable {
}
}
/**
/**
* 设置 [
ID
]
* 设置 [
模型
]
*/
*/
public
void
setModelId
(
Long
modelId
){
public
void
setModelId
(
Long
modelId
){
this
.
modelId
=
modelId
;
this
.
modelId
=
modelId
;
...
@@ -149,9 +148,9 @@ public class Ir_model_fields extends EntityMP implements Serializable {
...
@@ -149,9 +148,9 @@ public class Ir_model_fields extends EntityMP implements Serializable {
/**
/**
* 设置 [属性类型]
* 设置 [属性类型]
*/
*/
public
void
set
FieldType
(
String
fieldT
ype
){
public
void
set
Ttype
(
String
tt
ype
){
this
.
fieldType
=
fieldT
ype
;
this
.
ttype
=
tt
ype
;
this
.
modify
(
"
field_type"
,
fieldT
ype
);
this
.
modify
(
"
ttype"
,
tt
ype
);
}
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_ir/filter/Ir_model_fieldsSearchContext.java
浏览文件 @
53d4cfa6
...
@@ -41,7 +41,7 @@ public class Ir_model_fieldsSearchContext extends QueryWrapperContext<Ir_model_f
...
@@ -41,7 +41,7 @@ public class Ir_model_fieldsSearchContext extends QueryWrapperContext<Ir_model_f
this
.
getSearchCond
().
eq
(
"model"
,
n_model_eq
);
this
.
getSearchCond
().
eq
(
"model"
,
n_model_eq
);
}
}
}
}
private
Long
n_model_id_eq
;
//[
ID
]
private
Long
n_model_id_eq
;
//[
模型
]
public
void
setN_model_id_eq
(
Long
n_model_id_eq
)
{
public
void
setN_model_id_eq
(
Long
n_model_id_eq
)
{
this
.
n_model_id_eq
=
n_model_id_eq
;
this
.
n_model_id_eq
=
n_model_id_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_model_id_eq
)){
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_model_id_eq
)){
...
...
businesscentral-core/src/main/resources/mapper/odoo_ir/ir_model_fields/Ir_model_fieldsMapper.xml
浏览文件 @
53d4cfa6
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"Ir_model_fieldsResultMap"
databaseId=
"postgresql"
>
<select
id=
"selectById"
resultMap=
"Ir_model_fieldsResultMap"
databaseId=
"postgresql"
>
<![CDATA[select t1.* from (SELECT t1.FIELD_DESCRIPTION, t1.
FIELD_TYPE, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING
FROM IR_MODEL_FIELDS t1 ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.FIELD_DESCRIPTION, t1.
ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING, t1.TTYPE
FROM IR_MODEL_FIELDS t1 ) t1 where id=#{id}]]>
</select>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
<id
property=
"id"
column=
"id"
/>
<!--主键字段映射-->
<id
property=
"id"
column=
"id"
/>
<!--主键字段映射-->
<result
property=
"fieldDescription"
column=
"field_description"
/>
<result
property=
"fieldDescription"
column=
"field_description"
/>
<result
property=
"modelId"
column=
"model_id"
/>
<result
property=
"modelId"
column=
"model_id"
/>
<result
property=
"fieldType"
column=
"field_type"
/>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
...
@@ -51,18 +50,18 @@
...
@@ -51,18 +50,18 @@
<!--数据查询[Default]-->
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"postgresql"
>
<sql
id=
"Default"
databaseId=
"postgresql"
>
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.
FIELD_TYPE, 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, t1.TTYPE
FROM IR_MODEL_FIELDS t1
]]>
]]>
</sql>
</sql>
<!--数据查询[TrackingFields]-->
<!--数据查询[TrackingFields]-->
<sql
id=
"TrackingFields"
databaseId=
"postgresql"
>
<sql
id=
"TrackingFields"
databaseId=
"postgresql"
>
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.
FIELD_TYPE, 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, t1.TTYPE
FROM IR_MODEL_FIELDS t1
WHERE ( t1.TRACKING IS NOT NULL )
WHERE ( t1.TRACKING IS NOT NULL )
]]>
]]>
</sql>
</sql>
<!--数据查询[View]-->
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"postgresql"
>
<sql
id=
"View"
databaseId=
"postgresql"
>
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.
FIELD_TYPE, 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, t1.TTYPE
FROM IR_MODEL_FIELDS t1
]]>
]]>
</sql>
</sql>
</mapper>
</mapper>
...
...
businesscentral-core/src/main/resources/sysmodel/iBizBusinessCentral.json
浏览文件 @
53d4cfa6
...
@@ -71725,7 +71725,7 @@
...
@@ -71725,7 +71725,7 @@
{
{
"fieldname":"MODEL_ID" ,
"fieldname":"MODEL_ID" ,
"codename":"Model_id",
"codename":"Model_id",
"field_logic_name":"
ID
",
"field_logic_name":"
模型
",
"entity_name":"Ir_model_fields",
"entity_name":"Ir_model_fields",
"ref_de":"IR_MODEL",
"ref_de":"IR_MODEL",
"ref_field_name":"ID",
"ref_field_name":"ID",
...
@@ -71740,8 +71740,8 @@
...
@@ -71740,8 +71740,8 @@
"major_field":0
"major_field":0
},
},
{
{
"fieldname":"
FIELD_
TYPE" ,
"fieldname":"
T
TYPE" ,
"codename":"
Field_
type",
"codename":"
T
type",
"field_logic_name":"属性类型",
"field_logic_name":"属性类型",
"entity_name":"Ir_model_fields",
"entity_name":"Ir_model_fields",
"field_type":"TEXT",
"field_type":"TEXT",
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录