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

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

上级 1ffe6590
......@@ -437,6 +437,18 @@ export default {
usr2gridviewtoolbar_toolbar: {
},
listviewtoolbar_toolbar: {
deuiaction1: {
caption: "New",
tip: "New",
},
deuiaction3: {
caption: "Edit",
tip: "Edit {0}",
},
deuiaction2: {
caption: "Remove",
tip: "Remove {0}",
},
},
internalfuncgridviewtoolbar_toolbar: {
tbitem3: {
......
......@@ -436,6 +436,18 @@ export default {
usr2gridviewtoolbar_toolbar: {
},
listviewtoolbar_toolbar: {
deuiaction1: {
caption: "新建",
tip: "新建",
},
deuiaction3: {
caption: "编辑",
tip: "编辑",
},
deuiaction2: {
caption: "删除",
tip: "删除",
},
},
internalfuncgridviewtoolbar_toolbar: {
tbitem3: {
......
......@@ -16,6 +16,27 @@
<i-input v-show="!isExpandSearchForm" v-model="query" search enter-button @on-search="onSearch($event)" class='pull-left' placeholder="图书名称" style='max-width: 400px;margin-top:6px;' />
<div class='pull-right'>
<div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.deuiaction1.visabled" :disabled="toolBarModels.deuiaction1.disabled" class='' @click="toolbar_click({ tag: 'deuiaction1' }, $event)">
<i class='fa fa-file-text-o'></i>
<span class='caption'>{{$t('entities.ibizbook.listviewtoolbar_toolbar.deuiaction1.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.listviewtoolbar_toolbar.deuiaction1.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.deuiaction3.visabled" :disabled="toolBarModels.deuiaction3.disabled" class='' @click="toolbar_click({ tag: 'deuiaction3' }, $event)">
<i class='fa fa-edit'></i>
<span class='caption'>{{$t('entities.ibizbook.listviewtoolbar_toolbar.deuiaction3.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.listviewtoolbar_toolbar.deuiaction3.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.deuiaction2.visabled" :disabled="toolBarModels.deuiaction2.disabled" class='' @click="toolbar_click({ tag: 'deuiaction2' }, $event)">
<i class='fa fa-remove'></i>
<span class='caption'>{{$t('entities.ibizbook.listviewtoolbar_toolbar.deuiaction2.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.listviewtoolbar_toolbar.deuiaction2.tip')}}</div>
</tooltip>
</div>
</div>
</div>
......@@ -283,6 +304,12 @@ export default class IBIZBOOKListViewBase extends Vue {
* @memberof IBIZBOOKListView
*/
public toolBarModels: any = {
deuiaction1: { name: 'deuiaction1', actiontarget: 'NONE', caption: '新建', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '' } },
deuiaction3: { name: 'deuiaction3', actiontarget: 'NONE', caption: '编辑', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' } },
deuiaction2: { name: 'deuiaction2', actiontarget: 'NONE', caption: '删除', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY' } },
};
......@@ -614,6 +641,26 @@ export default class IBIZBOOKListViewBase extends Vue {
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKListViewBase
*/
public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction3')) {
this.toolbar_deuiaction3_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction2')) {
this.toolbar_deuiaction2_click(null, '', $event2);
}
}
/**
* list 部件 selectionchange 事件
*
......@@ -711,6 +758,90 @@ export default class IBIZBOOKListViewBase extends Vue {
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.list;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction3_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.list;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Edit(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction2_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.list;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Remove(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 打开新建数据视图
*
......@@ -791,6 +922,71 @@ export default class IBIZBOOKListViewBase extends Vue {
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKListViewBase
*/
public New(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (_this.newdata && _this.newdata instanceof Function) {
const data: any = {};
_this.newdata([{ ...data }],[{ ...data }], params, $event, xData);
} else {
_this.$Notice.error({ title: '错误', desc: 'newdata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKListViewBase
*/
public Edit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) {
return;
}
const _this: any = this;
if (_this.opendata && _this.opendata instanceof Function) {
const data: any = { };
if (args.length > 0) {
Object.assign(data, { ibizbook: args[0].ibizbook })
}
_this.opendata([{ ...data }], params, $event, xData);
} else {
_this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 批量删除
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKListViewBase
*/
public Remove(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (!xData || !(xData.remove instanceof Function)) {
return ;
}
xData.remove(args);
}
/**
* 关闭视图
......
......@@ -77,7 +77,7 @@
</span>
</template>
<template v-slot="{row,column,$index}">
<app-format-data dataType="CURRENCY" precision="0" :data="row.price"></app-format-data>
<app-format-data dataType="FLOAT" precision="2" :data="row.price"></app-format-data>
</template>
</el-table-column>
</template>
......
......@@ -44,7 +44,7 @@ export default class InternalFuncModel {
{
name: 'price',
prop: 'price',
dataType: 'CURRENCY',
dataType: 'FLOAT',
},
{
name: 'ibizbookid',
......
......@@ -75,6 +75,7 @@
:disabled="detailsModel.price.disabled"
type='number'
:precision="2"
style="">
</input-box>
......@@ -650,8 +651,8 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.press.required, type: 'string', message: '图书出版社 值不能为空', trigger: 'blur' },
],
price: [
{ required: this.detailsModel.price.required, type: 'string', message: '图书价格 值不能为空', trigger: 'change' },
{ required: this.detailsModel.price.required, type: 'string', message: '图书价格 值不能为空', trigger: 'blur' },
{ required: this.detailsModel.price.required, type: 'number', message: '图书价格 值不能为空', trigger: 'change' },
{ required: this.detailsModel.price.required, type: 'number', message: '图书价格 值不能为空', trigger: 'blur' },
],
type: [
{ required: this.detailsModel.type.required, type: 'string', message: '图书类型 值不能为空', trigger: 'change' },
......
......@@ -78,7 +78,7 @@ export default class MainModel {
{
name: 'price',
prop: 'price',
dataType: 'CURRENCY',
dataType: 'FLOAT',
},
{
name: 'type',
......
......@@ -87,7 +87,7 @@
</span>
</template>
<template v-slot="{row,column,$index}">
<app-format-data dataType="CURRENCY" precision="0" :data="row.price"></app-format-data>
<app-format-data dataType="FLOAT" precision="2" :data="row.price"></app-format-data>
</template>
</el-table-column>
</template>
......
......@@ -44,7 +44,7 @@ export default class Main2Model {
{
name: 'price',
prop: 'price',
dataType: 'CURRENCY',
dataType: 'FLOAT',
},
{
name: 'ibizbookid',
......
......@@ -87,7 +87,7 @@
</span>
</template>
<template v-slot="{row,column,$index}">
<app-format-data dataType="CURRENCY" precision="0" :data="row.price"></app-format-data>
<app-format-data dataType="FLOAT" precision="2" :data="row.price"></app-format-data>
</template>
</el-table-column>
</template>
......
......@@ -44,7 +44,7 @@ export default class Main3Model {
{
name: 'price',
prop: 'price',
dataType: 'CURRENCY',
dataType: 'FLOAT',
},
{
name: 'ibizbookid',
......
......@@ -79,7 +79,7 @@
</span>
</template>
<template v-slot="{row,column,$index}">
<app-format-data dataType="CURRENCY" precision="0" :data="row.price"></app-format-data>
<app-format-data dataType="FLOAT" precision="2" :data="row.price"></app-format-data>
</template>
</el-table-column>
</template>
......
......@@ -44,7 +44,7 @@ export default class Main4Model {
{
name: 'price',
prop: 'price',
dataType: 'CURRENCY',
dataType: 'FLOAT',
},
{
name: 'booknumber',
......
......@@ -79,7 +79,7 @@
</span>
</template>
<template v-slot="{row,column,$index}">
<app-format-data dataType="CURRENCY" precision="0" :data="row.price"></app-format-data>
<app-format-data dataType="FLOAT" precision="2" :data="row.price"></app-format-data>
</template>
</el-table-column>
</template>
......
......@@ -44,7 +44,7 @@ export default class Main5Model {
{
name: 'price',
prop: 'price',
dataType: 'CURRENCY',
dataType: 'FLOAT',
},
{
name: 'booknumber',
......
......@@ -147,7 +147,7 @@
:disabled="getColumnDisabled(row,column.property)"
v-model="row[column.property]"
type="number"
:precision="0"
:precision="2"
style=""
@change="($event)=>{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
......@@ -155,7 +155,7 @@
</app-form-item>
</template>
<template v-if="!actualIsOpenEdit">
<app-span name='price' editorType="NUMBER" :value="row.price" dataType="CURRENCY" precision="0" ></app-span>
<app-span name='price' editorType="NUMBER" :value="row.price" dataType="FLOAT" precision="2" ></app-span>
</template>
</template>
</el-table-column>
......@@ -2348,7 +2348,7 @@ export default class NewDefaultBase extends Vue implements ControlInterface {
row['ibizbookname'] = '新建默认值:图书';
}
if (row.hasOwnProperty('price')) {
row['price'] = '133.3';
row['price'] = 133.3;
}
if (row.hasOwnProperty('updatedate')) {
row['updatedate'] = this.$util.dateFormat(new Date());
......
......@@ -47,7 +47,7 @@ export default class NewDefaultModel {
{
name: 'price',
prop: 'price',
dataType: 'CURRENCY',
dataType: 'FLOAT',
isEditable:true
},
{
......
......@@ -25,7 +25,8 @@
@enter="onEnter($event)"
:disabled="detailsModel.n_price_gtandeq.disabled"
type='text'
type='number'
:precision="2"
style="width:100px;">
</input-box>
......@@ -322,10 +323,10 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
{ required: this.detailsModel.n_ibizbookname_like.required, type: 'string', message: '图书名称(%) 值不能为空', trigger: 'blur' },
],
n_price_gtandeq: [
{ type: 'string', message: '图书价格(>=) 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '图书价格(>=) 值必须为字符串类型', trigger: 'blur' },
{ required: this.detailsModel.n_price_gtandeq.required, type: 'string', message: '图书价格(>=) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.n_price_gtandeq.required, type: 'string', message: '图书价格(>=) 值不能为空', trigger: 'blur' },
{ type: 'number', message: '图书价格(>=) 值必须为数值类型', trigger: 'change' },
{ type: 'number', message: '图书价格(>=) 值必须为数值类型', trigger: 'blur' },
{ required: this.detailsModel.n_price_gtandeq.required, type: 'number', message: '图书价格(>=) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.n_price_gtandeq.required, type: 'number', message: '图书价格(>=) 值不能为空', trigger: 'blur' },
],
}
......
......@@ -33,7 +33,7 @@ export default class QUICKSEARCHFORMModel {
{
name: 'n_price_gtandeq',
prop: 'price',
dataType: 'CURRENCY',
dataType: 'FLOAT',
},
]
}
......
......@@ -159,7 +159,7 @@
:disabled="getColumnDisabled(row,column.property)"
v-model="row[column.property]"
type="number"
:precision="0"
:precision="2"
style=""
@change="($event)=>{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
......@@ -167,7 +167,7 @@
</app-form-item>
</template>
<template v-if="!actualIsOpenEdit">
<app-span name='price' editorType="NUMBER" :value="row.price" dataType="CURRENCY" precision="0" ></app-span>
<app-span name='price' editorType="NUMBER" :value="row.price" dataType="FLOAT" precision="2" ></app-span>
</template>
</template>
</el-table-column>
......
......@@ -47,7 +47,7 @@ export default class RowEditModel {
{
name: 'price',
prop: 'price',
dataType: 'CURRENCY',
dataType: 'FLOAT',
isEditable:true
},
{
......
......@@ -147,7 +147,7 @@
:disabled="getColumnDisabled(row,column.property)"
v-model="row[column.property]"
type="number"
:precision="0"
:precision="2"
style=""
@change="($event)=>{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
......@@ -155,7 +155,7 @@
</app-form-item>
</template>
<template v-if="!actualIsOpenEdit">
<app-span name='price' editorType="NUMBER" :value="row.price" dataType="CURRENCY" precision="0" ></app-span>
<app-span name='price' editorType="NUMBER" :value="row.price" dataType="FLOAT" precision="2" ></app-span>
</template>
</template>
</el-table-column>
......
......@@ -47,7 +47,7 @@ export default class RowRulesModel {
{
name: 'price',
prop: 'price',
dataType: 'CURRENCY',
dataType: 'FLOAT',
isEditable:true
},
{
......
......@@ -147,7 +147,7 @@
:disabled="getColumnDisabled(row,column.property)"
v-model="row[column.property]"
type="number"
:precision="0"
:precision="2"
style=""
@change="($event)=>{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
......@@ -155,7 +155,7 @@
</app-form-item>
</template>
<template v-if="!actualIsOpenEdit">
<app-span name='price' editorType="NUMBER" :value="row.price" dataType="CURRENCY" precision="0" ></app-span>
<app-span name='price' editorType="NUMBER" :value="row.price" dataType="FLOAT" precision="2" ></app-span>
</template>
</template>
</el-table-column>
......@@ -2356,7 +2356,7 @@ export default class UpdateDefaultBase extends Vue implements ControlInterface {
row['ibizbookname'] = '更新默认值:图书';
}
if (row.hasOwnProperty('price') && !row.price && row.hasUpdated) {
row['price'] = '133.3';
row['price'] = 133.3;
}
if (row.hasOwnProperty('updatedate') && !row.updatedate && row.hasUpdated) {
row['updatedate'] = this.$util.dateFormat(new Date());
......
......@@ -47,7 +47,7 @@ export default class UpdateDefaultModel {
{
name: 'price',
prop: 'price',
dataType: 'CURRENCY',
dataType: 'FLOAT',
isEditable:true
},
{
......
......@@ -1070,10 +1070,10 @@ export default class MainBase extends Vue implements ControlInterface {
serviceName:'ibizorder',
appDeLogicName:'订单',
importData:{
"IBIZORDERNAME":{"headername":"订单名称","isuniqueitem":false,"name":"ibizordername","order":1000},
"ORDERTYPE":{"codelist":{"type":"DYNAMIC","tag":"ORDERTYPE","isnumber":false},"headername":"订单类型","isuniqueitem":false,"name":"ordertype","order":1000},
"ORDERTIME":{"headername":"订单时间","isuniqueitem":false,"name":"ordertime","order":1000},
"ORDERUID":{"headername":"订单编号","isuniqueitem":true,"name":"orderuid","order":1000}
"ORDERUID":{"headername":"订单编号","isuniqueitem":true,"name":"orderuid","order":1000},
"IBIZORDERNAME":{"headername":"订单名称","isuniqueitem":false,"name":"ibizordername","order":1000}
}
}
if(Object.keys(importDataModel).length == 0){
......
......@@ -1066,10 +1066,10 @@ export default class UIPART_0015Base extends Vue implements ControlInterface {
serviceName:'ibizorder',
appDeLogicName:'订单',
importData:{
"IBIZORDERNAME":{"headername":"订单名称","isuniqueitem":false,"name":"ibizordername","order":1000},
"ORDERTYPE":{"codelist":{"type":"DYNAMIC","tag":"ORDERTYPE","isnumber":false},"headername":"订单类型","isuniqueitem":false,"name":"ordertype","order":1000},
"ORDERTIME":{"headername":"订单时间","isuniqueitem":false,"name":"ordertime","order":1000},
"ORDERUID":{"headername":"订单编号","isuniqueitem":true,"name":"orderuid","order":1000}
"ORDERUID":{"headername":"订单编号","isuniqueitem":true,"name":"orderuid","order":1000},
"IBIZORDERNAME":{"headername":"订单名称","isuniqueitem":false,"name":"ibizordername","order":1000}
}
}
if(Object.keys(importDataModel).length == 0){
......
......@@ -1189,10 +1189,10 @@ export default class UIPART_0017Base extends Vue implements ControlInterface {
serviceName:'ibizorder',
appDeLogicName:'订单',
importData:{
"IBIZORDERNAME":{"headername":"订单名称","isuniqueitem":false,"name":"ibizordername","order":1000},
"ORDERTYPE":{"codelist":{"type":"DYNAMIC","tag":"ORDERTYPE","isnumber":false},"headername":"订单类型","isuniqueitem":false,"name":"ordertype","order":1000},
"ORDERTIME":{"headername":"订单时间","isuniqueitem":false,"name":"ordertime","order":1000},
"ORDERUID":{"headername":"订单编号","isuniqueitem":true,"name":"orderuid","order":1000}
"ORDERUID":{"headername":"订单编号","isuniqueitem":true,"name":"orderuid","order":1000},
"IBIZORDERNAME":{"headername":"订单名称","isuniqueitem":false,"name":"ibizordername","order":1000}
}
}
if(Object.keys(importDataModel).length == 0){
......
......@@ -1121,10 +1121,10 @@ export default class UIPART_0018Base extends Vue implements ControlInterface {
serviceName:'ibizorder',
appDeLogicName:'订单',
importData:{
"IBIZORDERNAME":{"headername":"订单名称","isuniqueitem":false,"name":"ibizordername","order":1000},
"ORDERTYPE":{"codelist":{"type":"DYNAMIC","tag":"ORDERTYPE","isnumber":false},"headername":"订单类型","isuniqueitem":false,"name":"ordertype","order":1000},
"ORDERTIME":{"headername":"订单时间","isuniqueitem":false,"name":"ordertime","order":1000},
"ORDERUID":{"headername":"订单编号","isuniqueitem":true,"name":"orderuid","order":1000}
"ORDERUID":{"headername":"订单编号","isuniqueitem":true,"name":"orderuid","order":1000},
"IBIZORDERNAME":{"headername":"订单名称","isuniqueitem":false,"name":"ibizordername","order":1000}
}
}
if(Object.keys(importDataModel).length == 0){
......
......@@ -105,7 +105,7 @@ public class IBIZBOOK extends EntityMP implements Serializable {
@TableField(value = "price")
@JSONField(name = "price")
@JsonProperty("price")
private String price;
private Double price;
/**
* 图书出版社
*/
......@@ -149,7 +149,7 @@ public class IBIZBOOK extends EntityMP implements Serializable {
/**
* 设置 [图书价格]
*/
public void setPrice(String price) {
public void setPrice(Double price) {
this.price = price;
this.modify("price", price);
}
......
......@@ -34,8 +34,8 @@ public class IBIZBOOKSearchContext extends QueryWrapperContext<IBIZBOOK> {
this.getSearchCond().like("ibizbookname", n_ibizbookname_like);
}
}
private String n_price_gtandeq;//[图书价格]
public void setN_price_gtandeq(String n_price_gtandeq) {
private Double n_price_gtandeq;//[图书价格]
public void setN_price_gtandeq(Double n_price_gtandeq) {
this.n_price_gtandeq = n_price_gtandeq;
if(!ObjectUtils.isEmpty(this.n_price_gtandeq)){
this.getSearchCond().ge("price", n_price_gtandeq);
......
......@@ -28,7 +28,7 @@
<!--输出实体[IBIZBOOK]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-173-2">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-183-2">
<createTable tableName="T_IBIZBOOK">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -45,7 +45,7 @@
</column>
<column name="AUTHOR" remarks="" type="VARCHAR(100)">
</column>
<column name="PRICE" remarks="" type="VARCHAR(200)">
<column name="PRICE" remarks="" type="FLOAT">
</column>
<column name="PRESS" remarks="" type="VARCHAR(100)">
</column>
......
......@@ -268,11 +268,11 @@
"codename":"Price",
"field_logic_name":"图书价格",
"entity_name":"IBIZBOOK",
"field_type":"CURRENCY",
"field_type":"FLOAT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":200,
"data_type":"FLOAT",
"data_preci":2,
"key_field":0,
"show_order":1000,
"major_field":0
......
......@@ -99,8 +99,7 @@ public class IBIZBOOKDTO extends DTOBase implements Serializable {
*/
@JSONField(name = "price")
@JsonProperty("price")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String price;
private Double price;
/**
* 属性 [PRESS]
......@@ -148,7 +147,7 @@ public class IBIZBOOKDTO extends DTOBase implements Serializable {
/**
* 设置 [PRICE]
*/
public void setPrice(String price){
public void setPrice(Double price){
this.price = price ;
this.modify("price",price);
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册