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

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

上级 590a6bef
...@@ -20,6 +20,7 @@ export default { ...@@ -20,6 +20,7 @@ export default {
borrowstatus: "图书借阅状态", borrowstatus: "图书借阅状态",
stepstatus: "步骤", stepstatus: "步骤",
borrower: "借阅人", borrower: "借阅人",
borrowway: "借阅方式",
}, },
views: { views: {
statewizardview: { statewizardview: {
......
...@@ -19,6 +19,7 @@ export default { ...@@ -19,6 +19,7 @@ export default {
borrowstatus: "图书借阅状态", borrowstatus: "图书借阅状态",
stepstatus: "步骤", stepstatus: "步骤",
borrower: "借阅人", borrower: "借阅人",
borrowway: "借阅方式",
}, },
views: { views: {
statewizardview: { statewizardview: {
......
...@@ -72,6 +72,9 @@ export default class BookTypeSelectModel { ...@@ -72,6 +72,9 @@ export default class BookTypeSelectModel {
{ {
name: 'borrower', name: 'borrower',
}, },
{
name: 'borrowway',
},
] ]
} }
......
...@@ -90,6 +90,10 @@ export default class GuideModel { ...@@ -90,6 +90,10 @@ export default class GuideModel {
name: 'borrower', name: 'borrower',
prop: 'borrower', prop: 'borrower',
}, },
{
name: 'borrowway',
prop: 'borrowway',
},
] ]
} }
......
...@@ -90,24 +90,7 @@ ...@@ -90,24 +90,7 @@
</i-col> </i-col>
<i-col v-show="detailsModel.formitem2.visible" :style="{}" :lg="{ span: 24, offset: 0 }" :xl="{ span: 8, offset: 0 }"> <i-col v-show="detailsModel.formitem2.visible" :style="{}" :lg="{ span: 24, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='formitem2' :itemRules="this.rules().formitem2" class='' :caption="$t('entities.ibizbook.interfuncform_2_form.details.formitem2')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem2.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='formitem2' :itemRules="this.rules().formitem2" class='' :caption="$t('entities.ibizbook.interfuncform_2_form.details.formitem2')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem2.error" :isEmptyCaption="false" labelPos="LEFT">
<app-address-selection :value="data.formitem2" :disabled="detailsModel.formitem2.disabled" style=""></app-address-selection>
<app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.formitem2.disabled"
name='formitem2'
valueitem='borrower'
:value="data.formitem2"
editortype="pickup-no-ac"
:pickupView="{ viewname: 'ibizcustomer-mpickup-view', title: $t('entities.ibizcustomer.views.mpickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'mpickupview', parameterName: 'mpickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
</app-form-item> </app-form-item>
</i-col> </i-col>
......
...@@ -72,6 +72,9 @@ export default class MainModel { ...@@ -72,6 +72,9 @@ export default class MainModel {
{ {
name: 'borrower', name: 'borrower',
}, },
{
name: 'borrowway',
},
] ]
} }
......
...@@ -90,6 +90,10 @@ export default class StateGuideModel { ...@@ -90,6 +90,10 @@ export default class StateGuideModel {
name: 'borrower', name: 'borrower',
prop: 'borrower', prop: 'borrower',
}, },
{
name: 'borrowway',
prop: 'borrowway',
},
] ]
} }
......
...@@ -185,6 +185,13 @@ public class IBIZBOOK extends EntityMP implements Serializable { ...@@ -185,6 +185,13 @@ public class IBIZBOOK extends EntityMP implements Serializable {
@JSONField(name = "borrower") @JSONField(name = "borrower")
@JsonProperty("borrower") @JsonProperty("borrower")
private String borrower; private String borrower;
/**
* 借阅方式
*/
@TableField(value = "borrowway")
@JSONField(name = "borrowway")
@JsonProperty("borrowway")
private String borrowway;
...@@ -320,6 +327,14 @@ public class IBIZBOOK extends EntityMP implements Serializable { ...@@ -320,6 +327,14 @@ public class IBIZBOOK extends EntityMP implements Serializable {
this.modify("borrower", borrower); this.modify("borrower", borrower);
} }
/**
* 设置 [借阅方式]
*/
public void setBorrowway(String borrowway) {
this.borrowway = borrowway;
this.modify("borrowway", borrowway);
}
/** /**
* 复制当前对象数据到目标对象(粘贴重置) * 复制当前对象数据到目标对象(粘贴重置)
......
...@@ -48,6 +48,13 @@ public class IBIZBOOKSearchContext extends QueryWrapperContext<IBIZBOOK> { ...@@ -48,6 +48,13 @@ public class IBIZBOOKSearchContext extends QueryWrapperContext<IBIZBOOK> {
this.getSearchCond().eq("sailstate", n_sailstate_eq); this.getSearchCond().eq("sailstate", n_sailstate_eq);
} }
} }
private String n_borrowway_eq;//[借阅方式]
public void setN_borrowway_eq(String n_borrowway_eq) {
this.n_borrowway_eq = n_borrowway_eq;
if(!ObjectUtils.isEmpty(this.n_borrowway_eq)){
this.getSearchCond().eq("borrowway", n_borrowway_eq);
}
}
/** /**
* 启用快速搜索 * 启用快速搜索
......
...@@ -69,6 +69,8 @@ ...@@ -69,6 +69,8 @@
</column> </column>
<column name="BORROWER" remarks="" type="VARCHAR(100)"> <column name="BORROWER" remarks="" type="VARCHAR(100)">
</column> </column>
<column name="BORROWWAY" remarks="" type="VARCHAR(60)">
</column>
</createTable> </createTable>
</changeSet> </changeSet>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性--> <!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="IBIZBOOKResultMap" databaseId="mysql"> <select id="selectById" resultMap="IBIZBOOKResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`AUTHOR`, t1.`BOOKNUMBER`, t1.`BORROWER`, t1.`BORROWSTATUS`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZBOOKID`, t1.`IBIZBOOKNAME`, t1.`ICON`, t1.`LENDOUTTIME`, t1.`PRESS`, t1.`PRICE`, t1.`RETURNTIME`, t1.`SAILSTATE`, t1.`STEPSTATUS`, t1.`SUBTEXT`, t1.`TYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZBOOK` t1 ) t1 where ibizbookid=#{id}]]> <![CDATA[select t1.* from (SELECT t1.`AUTHOR`, t1.`BOOKNUMBER`, t1.`BORROWER`, t1.`BORROWSTATUS`, t1.`BORROWWAY`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZBOOKID`, t1.`IBIZBOOKNAME`, t1.`ICON`, t1.`LENDOUTTIME`, t1.`PRESS`, t1.`PRICE`, t1.`RETURNTIME`, t1.`SAILSTATE`, t1.`STEPSTATUS`, t1.`SUBTEXT`, t1.`TYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZBOOK` t1 ) t1 where ibizbookid=#{id}]]>
</select> </select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 --> <!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
...@@ -27,12 +27,12 @@ ...@@ -27,12 +27,12 @@
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="mysql"> <sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`AUTHOR`, t1.`BOOKNUMBER`, t1.`BORROWER`, t1.`BORROWSTATUS`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZBOOKID`, t1.`IBIZBOOKNAME`, t1.`ICON`, t1.`LENDOUTTIME`, t1.`PRESS`, t1.`PRICE`, t1.`RETURNTIME`, t1.`SAILSTATE`, t1.`STEPSTATUS`, t1.`SUBTEXT`, t1.`TYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZBOOK` t1 <![CDATA[ SELECT t1.`AUTHOR`, t1.`BOOKNUMBER`, t1.`BORROWER`, t1.`BORROWSTATUS`, t1.`BORROWWAY`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZBOOKID`, t1.`IBIZBOOKNAME`, t1.`ICON`, t1.`LENDOUTTIME`, t1.`PRESS`, t1.`PRICE`, t1.`RETURNTIME`, t1.`SAILSTATE`, t1.`STEPSTATUS`, t1.`SUBTEXT`, t1.`TYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZBOOK` t1
]]> ]]>
</sql> </sql>
<!--数据查询[View]--> <!--数据查询[View]-->
<sql id="View" databaseId="mysql"> <sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`AUTHOR`, t1.`BOOKNUMBER`, t1.`BORROWER`, t1.`BORROWSTATUS`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZBOOKID`, t1.`IBIZBOOKNAME`, t1.`ICON`, t1.`LENDOUTTIME`, t1.`PRESS`, t1.`PRICE`, t1.`RETURNTIME`, t1.`SAILSTATE`, t1.`STEPSTATUS`, t1.`SUBTEXT`, t1.`TYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZBOOK` t1 <![CDATA[ SELECT t1.`AUTHOR`, t1.`BOOKNUMBER`, t1.`BORROWER`, t1.`BORROWSTATUS`, t1.`BORROWWAY`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZBOOKID`, t1.`IBIZBOOKNAME`, t1.`ICON`, t1.`LENDOUTTIME`, t1.`PRESS`, t1.`PRICE`, t1.`RETURNTIME`, t1.`SAILSTATE`, t1.`STEPSTATUS`, t1.`SUBTEXT`, t1.`TYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZBOOK` t1
]]> ]]>
</sql> </sql>
</mapper> </mapper>
......
...@@ -431,6 +431,20 @@ ...@@ -431,6 +431,20 @@
"key_field":0, "key_field":0,
"show_order":1000, "show_order":1000,
"major_field":0 "major_field":0
},
{
"fieldname":"BORROWWAY" ,
"codename":"Borrowway",
"field_logic_name":"借阅方式",
"entity_name":"IBIZBOOK",
"field_type":"SSCODELIST",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":60,
"key_field":0,
"show_order":1000,
"major_field":0
} }
], ],
"subEntitys":[ "subEntitys":[
......
...@@ -200,6 +200,15 @@ public class IBIZBOOKDTO extends DTOBase implements Serializable { ...@@ -200,6 +200,15 @@ public class IBIZBOOKDTO extends DTOBase implements Serializable {
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String borrower; private String borrower;
/**
* 属性 [BORROWWAY]
*
*/
@JSONField(name = "borrowway")
@JsonProperty("borrowway")
@Size(min = 0, max = 60, message = "内容长度必须小于等于[60]")
private String borrowway;
/** /**
* 设置 [IBIZBOOKNAME] * 设置 [IBIZBOOKNAME]
...@@ -313,6 +322,14 @@ public class IBIZBOOKDTO extends DTOBase implements Serializable { ...@@ -313,6 +322,14 @@ public class IBIZBOOKDTO extends DTOBase implements Serializable {
this.modify("borrower",borrower); this.modify("borrower",borrower);
} }
/**
* 设置 [BORROWWAY]
*/
public void setBorrowway(String borrowway){
this.borrowway = borrowway ;
this.modify("borrowway",borrowway);
}
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册