提交 cf0ae4f9 编写于 作者: ibizdev's avatar ibizdev

Mosher 发布系统代码 [后台服务,演示应用]

上级 d27a1c66
......@@ -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>
......
......@@ -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);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
......
......@@ -1161,6 +1161,8 @@
</column>
<column name="CURDEPTID" remarks="" type="VARCHAR(100)">
</column>
<column name="AMOUNT" remarks="" type="FLOAT">
</column>
</createTable>
</changeSet>
......
......@@ -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>
......
......@@ -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":[
......
......@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册