Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
cf0ae4f9
提交
cf0ae4f9
编写于
12月 09, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mosher 发布系统代码 [后台服务,演示应用]
上级
d27a1c66
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
50 行增加
和
11 行删除
+50
-11
main-form-base.vue
app_Web/src/widgets/ibizbook/main-form/main-form-base.vue
+1
-8
IBIZSample0021.java
...in/java/cn/ibizlab/core/sample/domain/IBIZSample0021.java
+15
-0
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+2
-0
IBIZSample0021Mapper.xml
...ces/mapper/sample/ibizsample0021/IBIZSample0021Mapper.xml
+3
-3
DemoSys.json
demo-core/src/main/resources/sysmodel/DemoSys.json
+13
-0
IBIZSample0021DTO.java
...c/main/java/cn/ibizlab/demoapi/dto/IBIZSample0021DTO.java
+16
-0
未找到文件。
app_Web/src/widgets/ibizbook/main-form/main-form-base.vue
浏览文件 @
cf0ae4f9
...
...
@@ -124,14 +124,7 @@
</i-col>
<i-col
v-show=
"detailsModel.icon.visible"
:style=
"
{}" :sm="{ span: 8, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item
name=
'icon'
:itemRules=
"this.rules().icon"
class=
''
:caption=
"$t('entities.ibizbook.main_form.details.icon')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.icon.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.icon"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.icon.disabled"
type=
'text'
style=
""
>
</input-box>
<app-image-upload
:multiple=
"false"
:formState=
"formState"
:ignorefieldvaluechange=
"ignorefieldvaluechange"
@
formitemvaluechange=
"onFormItemValueChange"
:data=
"JSON.stringify(this.data)"
name=
'icon'
:value=
"data.icon"
:disabled=
"detailsModel.icon.disabled"
:uploadparams=
'
{}' :exportparams='{}' >
</app-image-upload>
</app-form-item>
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/domain/IBIZSample0021.java
浏览文件 @
cf0ae4f9
...
...
@@ -129,6 +129,13 @@ public class IBIZSample0021 extends EntityMP implements Serializable {
@JSONField
(
name
=
"curdeptid"
)
@JsonProperty
(
"curdeptid"
)
private
String
curdeptid
;
/**
* 总计
*/
@TableField
(
value
=
"amount"
)
@JSONField
(
name
=
"amount"
)
@JsonProperty
(
"amount"
)
private
Double
amount
;
...
...
@@ -190,6 +197,14 @@ public class IBIZSample0021 extends EntityMP implements Serializable {
this
.
modify
(
"curdeptid"
,
curdeptid
);
}
/**
* 设置 [总计]
*/
public
void
setAmount
(
Double
amount
)
{
this
.
amount
=
amount
;
this
.
modify
(
"amount"
,
amount
);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
...
...
demo-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
cf0ae4f9
...
...
@@ -1161,6 +1161,8 @@
</column>
<column
name=
"CURDEPTID"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"AMOUNT"
remarks=
""
type=
"FLOAT"
>
</column>
</createTable>
</changeSet>
...
...
demo-core/src/main/resources/mapper/sample/ibizsample0021/IBIZSample0021Mapper.xml
浏览文件 @
cf0ae4f9
...
...
@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"IBIZSample0021ResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CURDEPTID`, t1.`CURORGID`, t1.`IBIZSAMPLE0021ID`, t1.`IBIZSAMPLE0021NAME`, t1.`MEMO`, t1.`ORDERSTATE`, t1.`ORDERTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZSAMPLE0021` t1 ) t1 where ibizsample0021id=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`
AMOUNT`, t1.`
CREATEDATE`, t1.`CREATEMAN`, t1.`CURDEPTID`, t1.`CURORGID`, t1.`IBIZSAMPLE0021ID`, t1.`IBIZSAMPLE0021NAME`, t1.`MEMO`, t1.`ORDERSTATE`, t1.`ORDERTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZSAMPLE0021` t1 ) t1 where ibizsample0021id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
...
...
@@ -27,12 +27,12 @@
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CURDEPTID`, t1.`CURORGID`, t1.`IBIZSAMPLE0021ID`, t1.`IBIZSAMPLE0021NAME`, t1.`MEMO`, t1.`ORDERSTATE`, t1.`ORDERTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZSAMPLE0021` t1
<![CDATA[ SELECT t1.`
AMOUNT`, t1.`
CREATEDATE`, t1.`CREATEMAN`, t1.`CURDEPTID`, t1.`CURORGID`, t1.`IBIZSAMPLE0021ID`, t1.`IBIZSAMPLE0021NAME`, t1.`MEMO`, t1.`ORDERSTATE`, t1.`ORDERTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZSAMPLE0021` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CURDEPTID`, t1.`CURORGID`, t1.`IBIZSAMPLE0021ID`, t1.`IBIZSAMPLE0021NAME`, t1.`MEMO`, t1.`ORDERSTATE`, t1.`ORDERTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZSAMPLE0021` t1
<![CDATA[ SELECT t1.`
AMOUNT`, t1.`
CREATEDATE`, t1.`CREATEMAN`, t1.`CURDEPTID`, t1.`CURORGID`, t1.`IBIZSAMPLE0021ID`, t1.`IBIZSAMPLE0021NAME`, t1.`MEMO`, t1.`ORDERSTATE`, t1.`ORDERTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZSAMPLE0021` t1
]]>
</sql>
</mapper>
...
...
demo-core/src/main/resources/sysmodel/DemoSys.json
浏览文件 @
cf0ae4f9
...
...
@@ -7935,6 +7935,19 @@
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"AMOUNT"
,
"codename"
:
"Amount"
,
"field_logic_name"
:
"总计"
,
"entity_name"
:
"IBIZSample0021"
,
"field_type"
:
"FLOAT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"FLOAT"
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
}
],
"subEntitys"
:[
...
...
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/dto/IBIZSample0021DTO.java
浏览文件 @
cf0ae4f9
...
...
@@ -128,6 +128,14 @@ public class IBIZSample0021DTO extends DTOBase implements Serializable {
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
curdeptid
;
/**
* 属性 [AMOUNT]
*
*/
@JSONField
(
name
=
"amount"
)
@JsonProperty
(
"amount"
)
private
Double
amount
;
/**
* 设置 [IBIZSAMPLE0021NAME]
...
...
@@ -177,6 +185,14 @@ public class IBIZSample0021DTO extends DTOBase implements Serializable {
this
.
modify
(
"curdeptid"
,
curdeptid
);
}
/**
* 设置 [AMOUNT]
*/
public
void
setAmount
(
Double
amount
){
this
.
amount
=
amount
;
this
.
modify
(
"amount"
,
amount
);
}
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录