Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
56433b1a
提交
56433b1a
编写于
11月 10, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mosher 发布系统代码 [后台服务,演示应用]
上级
4e84de0d
变更
17
展开全部
显示空白字符变更
内嵌
并排
正在显示
17 个修改的文件
包含
840 行增加
和
3 行删除
+840
-3
ibizsample0001_en_US.ts
...le/lanres/entities/ibizsample0001/ibizsample0001_en_US.ts
+1
-0
ibizsample0001_zh_CN.ts
...le/lanres/entities/ibizsample0001/ibizsample0001_zh_CN.ts
+1
-0
ibizsample0001s.ts
app_Web/src/mock/entity/ibizsample0001s/ibizsample0001s.ts
+446
-0
router.ts
app_Web/src/pages/sample/index/router.ts
+87
-0
ibizsample0001-service-base.ts
...src/service/ibizsample0001/ibizsample0001-service-base.ts
+60
-0
ibizsample0002-service-base.ts
...src/service/ibizsample0002/ibizsample0002-service-base.ts
+1
-0
IBIZSample0001.java
...in/java/cn/ibizlab/core/sample/domain/IBIZSample0001.java
+23
-0
IBIZSample0001SearchContext.java
...izlab/core/sample/filter/IBIZSample0001SearchContext.java
+7
-0
IBIZSample0001Mapper.java
...a/cn/ibizlab/core/sample/mapper/IBIZSample0001Mapper.java
+2
-0
IIBIZSample0001Service.java
...n/ibizlab/core/sample/service/IIBIZSample0001Service.java
+2
-0
IBIZSample0001ServiceImpl.java
...b/core/sample/service/impl/IBIZSample0001ServiceImpl.java
+12
-0
IBIZSample0002ServiceImpl.java
...b/core/sample/service/impl/IBIZSample0002ServiceImpl.java
+3
-0
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+7
-2
IBIZSample0001Mapper.xml
...ces/mapper/sample/ibizsample0001/IBIZSample0001Mapper.xml
+11
-1
DemoSys.json
demo-core/src/main/resources/sysmodel/DemoSys.json
+30
-0
IBIZSample0001DTO.java
...c/main/java/cn/ibizlab/demoapi/dto/IBIZSample0001DTO.java
+17
-0
IBIZSample0001Resource.java
.../java/cn/ibizlab/demoapi/rest/IBIZSample0001Resource.java
+130
-0
未找到文件。
app_Web/src/locale/lanres/entities/ibizsample0001/ibizsample0001_en_US.ts
浏览文件 @
56433b1a
...
...
@@ -33,6 +33,7 @@ export default {
createdate
:
"建立时间"
,
field
:
"大整型"
,
field2
:
"大数值"
,
ibizsample0002id
:
"首页图表数据源标识"
,
},
views
:
{
sf5editview
:
{
...
...
app_Web/src/locale/lanres/entities/ibizsample0001/ibizsample0001_zh_CN.ts
浏览文件 @
56433b1a
...
...
@@ -32,6 +32,7 @@ export default {
createdate
:
"建立时间"
,
field
:
"大整型"
,
field2
:
"大数值"
,
ibizsample0002id
:
"首页图表数据源标识"
,
},
views
:
{
sf5editview
:
{
...
...
app_Web/src/mock/entity/ibizsample0001s/ibizsample0001s.ts
浏览文件 @
56433b1a
此差异已折叠。
点击以展开。
app_Web/src/pages/sample/index/router.ts
浏览文件 @
56433b1a
...
...
@@ -119,6 +119,21 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizuniproduct-pickup-view/ibizuniproduct-pickup-view.vue'
),
},
{
path
:
'ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf4editview/:sf4editview?'
,
meta
:
{
caption
:
'entities.ibizsample0001.views.sf4editview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizsample0002s'
,
parameterName
:
'ibizsample0002'
},
{
pathName
:
'ibizsample0001s'
,
parameterName
:
'ibizsample0001'
},
{
pathName
:
'sf4editview'
,
parameterName
:
'sf4editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0001-sf4-edit-view/ibizsample0001-sf4-edit-view.vue'
),
},
{
path
:
'ibizsample0001s/:ibizsample0001?/sf4editview/:sf4editview?'
,
meta
:
{
...
...
@@ -175,6 +190,21 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-bar-chart-view/ibizorder-bar-chart-view.vue'
),
},
{
path
:
'ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf2editview/:sf2editview?'
,
meta
:
{
caption
:
'entities.ibizsample0001.views.sf2editview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizsample0002s'
,
parameterName
:
'ibizsample0002'
},
{
pathName
:
'ibizsample0001s'
,
parameterName
:
'ibizsample0001'
},
{
pathName
:
'sf2editview'
,
parameterName
:
'sf2editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0001-sf2-edit-view/ibizsample0001-sf2-edit-view.vue'
),
},
{
path
:
'ibizsample0001s/:ibizsample0001?/sf2editview/:sf2editview?'
,
meta
:
{
...
...
@@ -1449,6 +1479,21 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-sf7-edit-view/ibizorder-sf7-edit-view.vue'
),
},
{
path
:
'ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf5editview/:sf5editview?'
,
meta
:
{
caption
:
'entities.ibizsample0001.views.sf5editview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizsample0002s'
,
parameterName
:
'ibizsample0002'
},
{
pathName
:
'ibizsample0001s'
,
parameterName
:
'ibizsample0001'
},
{
pathName
:
'sf5editview'
,
parameterName
:
'sf5editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0001-sf5-edit-view/ibizsample0001-sf5-edit-view.vue'
),
},
{
path
:
'ibizsample0001s/:ibizsample0001?/sf5editview/:sf5editview?'
,
meta
:
{
...
...
@@ -1616,6 +1661,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0018-grid-view/ibizsample0018-grid-view.vue'
),
},
{
path
:
'/ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf5editview/:sf5editview?'
,
meta
:
{
caption
:
'entities.ibizsample0001.views.sf5editview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizsample0002s'
,
parameterName
:
'ibizsample0002'
},
{
pathName
:
'ibizsample0001s'
,
parameterName
:
'ibizsample0001'
},
{
pathName
:
'sf5editview'
,
parameterName
:
'sf5editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0001-sf5-edit-view/ibizsample0001-sf5-edit-view.vue'
),
},
{
path
:
'/ibizsample0001s/:ibizsample0001?/sf5editview/:sf5editview?'
,
meta
:
{
...
...
@@ -1629,6 +1688,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0001-sf5-edit-view/ibizsample0001-sf5-edit-view.vue'
),
},
{
path
:
'/ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf4editview/:sf4editview?'
,
meta
:
{
caption
:
'entities.ibizsample0001.views.sf4editview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizsample0002s'
,
parameterName
:
'ibizsample0002'
},
{
pathName
:
'ibizsample0001s'
,
parameterName
:
'ibizsample0001'
},
{
pathName
:
'sf4editview'
,
parameterName
:
'sf4editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0001-sf4-edit-view/ibizsample0001-sf4-edit-view.vue'
),
},
{
path
:
'/ibizsample0001s/:ibizsample0001?/sf4editview/:sf4editview?'
,
meta
:
{
...
...
@@ -2136,6 +2209,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-sedit-view/ibizorder-sedit-view.vue'
),
},
{
path
:
'/ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf2editview/:sf2editview?'
,
meta
:
{
caption
:
'entities.ibizsample0001.views.sf2editview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizsample0002s'
,
parameterName
:
'ibizsample0002'
},
{
pathName
:
'ibizsample0001s'
,
parameterName
:
'ibizsample0001'
},
{
pathName
:
'sf2editview'
,
parameterName
:
'sf2editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0001-sf2-edit-view/ibizsample0001-sf2-edit-view.vue'
),
},
{
path
:
'/ibizsample0001s/:ibizsample0001?/sf2editview/:sf2editview?'
,
meta
:
{
...
...
app_Web/src/service/ibizsample0001/ibizsample0001-service-base.ts
浏览文件 @
56433b1a
...
...
@@ -48,6 +48,11 @@ export default class IBIZSample0001ServiceBase extends EntityService {
* @memberof IBIZSample0001ServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibizsample0002
&&
context
.
ibizsample0001
){
let
res
:
any
=
Http
.
getInstance
().
post
(
`/ibizsample0002s/
${
context
.
ibizsample0002
}
/ibizsample0001s/
${
context
.
ibizsample0001
}
/select`
,
data
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
post
(
`/ibizsample0001s/
${
context
.
ibizsample0001
}
/select`
,
data
,
isloading
);
return
res
;
...
...
@@ -63,6 +68,20 @@ export default class IBIZSample0001ServiceBase extends EntityService {
* @memberof IBIZSample0001ServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibizsample0002
&&
true
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizsample0002s/
${
context
.
ibizsample0002
}
/ibizsample0001s`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
...
...
@@ -87,6 +106,13 @@ export default class IBIZSample0001ServiceBase extends EntityService {
* @memberof IBIZSample0001ServiceBase
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibizsample0002
&&
context
.
ibizsample0001
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/ibizsample0002s/
${
context
.
ibizsample0002
}
/ibizsample0001s/
${
context
.
ibizsample0001
}
`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/ibizsample0001s/
${
context
.
ibizsample0001
}
`
,
data
,
isloading
);
...
...
@@ -104,6 +130,10 @@ export default class IBIZSample0001ServiceBase extends EntityService {
* @memberof IBIZSample0001ServiceBase
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibizsample0002
&&
context
.
ibizsample0001
){
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/ibizsample0002s/
${
context
.
ibizsample0002
}
/ibizsample0001s/
${
context
.
ibizsample0001
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/ibizsample0001s/
${
context
.
ibizsample0001
}
`
,
isloading
);
return
res
;
}
...
...
@@ -118,6 +148,11 @@ export default class IBIZSample0001ServiceBase extends EntityService {
* @memberof IBIZSample0001ServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibizsample0002
&&
context
.
ibizsample0001
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizsample0002s/
${
context
.
ibizsample0002
}
/ibizsample0001s/
${
context
.
ibizsample0001
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizsample0001s/
${
context
.
ibizsample0001
}
`
,
isloading
);
return
res
;
...
...
@@ -133,6 +168,12 @@ export default class IBIZSample0001ServiceBase extends EntityService {
* @memberof IBIZSample0001ServiceBase
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibizsample0002
&&
true
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizsample0002s/
${
context
.
ibizsample0002
}
/ibizsample0001s/getdraft`
,
isloading
);
res
.
data
.
ibizsample0001
=
data
.
ibizsample0001
;
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizsample0001s/getdraft`
,
isloading
);
res
.
data
.
ibizsample0001
=
data
.
ibizsample0001
;
...
...
@@ -149,6 +190,13 @@ export default class IBIZSample0001ServiceBase extends EntityService {
* @memberof IBIZSample0001ServiceBase
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibizsample0002
&&
context
.
ibizsample0001
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizsample0002s/
${
context
.
ibizsample0002
}
/ibizsample0001s/
${
context
.
ibizsample0001
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
post
(
`/ibizsample0001s/
${
context
.
ibizsample0001
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
...
...
@@ -163,6 +211,13 @@ export default class IBIZSample0001ServiceBase extends EntityService {
* @memberof IBIZSample0001ServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibizsample0002
&&
context
.
ibizsample0001
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizsample0002s/
${
context
.
ibizsample0002
}
/ibizsample0001s/
${
context
.
ibizsample0001
}
/save`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizsample0001s/
${
context
.
ibizsample0001
}
/save`
,
data
,
isloading
);
...
...
@@ -180,6 +235,11 @@ export default class IBIZSample0001ServiceBase extends EntityService {
* @memberof IBIZSample0001ServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibizsample0002
&&
true
){
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/ibizsample0002s/
${
context
.
ibizsample0002
}
/ibizsample0001s/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/ibizsample0001s/fetchdefault`
,
tempData
,
isloading
);
return
res
;
...
...
app_Web/src/service/ibizsample0002/ibizsample0002-service-base.ts
浏览文件 @
56433b1a
...
...
@@ -73,6 +73,7 @@ export default class IBIZSample0002ServiceBase extends EntityService {
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizsample0002s`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_ibizsample0001s'
,
JSON
.
stringify
(
res
.
data
.
ibizsample0001s
?
res
.
data
.
ibizsample0001s
:[]));
return
res
;
}
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/domain/IBIZSample0001.java
浏览文件 @
56433b1a
...
...
@@ -277,6 +277,21 @@ public class IBIZSample0001 extends EntityMP implements Serializable {
@JSONField
(
name
=
"field2"
)
@JsonProperty
(
"field2"
)
private
BigDecimal
field2
;
/**
* 首页图表数据源标识
*/
@TableField
(
value
=
"ibizsample0002id"
)
@JSONField
(
name
=
"ibizsample0002id"
)
@JsonProperty
(
"ibizsample0002id"
)
private
String
ibizsample0002id
;
/**
*
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
core
.
sample
.
domain
.
IBIZSample0002
sample0002Sample00011N
;
...
...
@@ -526,6 +541,14 @@ public class IBIZSample0001 extends EntityMP implements Serializable {
this
.
modify
(
"field2"
,
field2
);
}
/**
* 设置 [首页图表数据源标识]
*/
public
void
setIbizsample0002id
(
String
ibizsample0002id
){
this
.
ibizsample0002id
=
ibizsample0002id
;
this
.
modify
(
"ibizsample0002id"
,
ibizsample0002id
);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/filter/IBIZSample0001SearchContext.java
浏览文件 @
56433b1a
...
...
@@ -48,6 +48,13 @@ public class IBIZSample0001SearchContext extends QueryWrapperContext<IBIZSample0
this
.
getSearchCond
().
like
(
"ibizsample0001name"
,
n_ibizsample0001name_like
);
}
}
private
String
n_ibizsample0002id_eq
;
//[首页图表数据源标识]
public
void
setN_ibizsample0002id_eq
(
String
n_ibizsample0002id_eq
)
{
this
.
n_ibizsample0002id_eq
=
n_ibizsample0002id_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_ibizsample0002id_eq
)){
this
.
getSearchCond
().
eq
(
"ibizsample0002id"
,
n_ibizsample0002id_eq
);
}
}
/**
* 启用快速搜索
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/mapper/IBIZSample0001Mapper.java
浏览文件 @
56433b1a
...
...
@@ -62,4 +62,6 @@ public interface IBIZSample0001Mapper extends BaseMapper<IBIZSample0001>{
@Delete
(
"${sql}"
)
boolean
deleteBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
List
<
IBIZSample0001
>
selectByIbizsample0002id
(
@Param
(
"ibizsample0002id"
)
Serializable
ibizsample0002id
)
;
}
demo-core/src/main/java/cn/ibizlab/core/sample/service/IIBIZSample0001Service.java
浏览文件 @
56433b1a
...
...
@@ -37,6 +37,8 @@ public interface IIBIZSample0001Service extends IService<IBIZSample0001>{
boolean
save
(
IBIZSample0001
et
)
;
void
saveBatch
(
List
<
IBIZSample0001
>
list
)
;
Page
<
IBIZSample0001
>
searchDefault
(
IBIZSample0001SearchContext
context
)
;
List
<
IBIZSample0001
>
selectByIbizsample0002id
(
String
ibizsample0002id
);
void
removeByIbizsample0002id
(
String
ibizsample0002id
);
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/service/impl/IBIZSample0001ServiceImpl.java
浏览文件 @
56433b1a
...
...
@@ -48,6 +48,9 @@ import org.springframework.util.StringUtils;
@Service
(
"IBIZSample0001ServiceImpl"
)
public
class
IBIZSample0001ServiceImpl
extends
ServiceImpl
<
IBIZSample0001Mapper
,
IBIZSample0001
>
implements
IIBIZSample0001Service
{
@Autowired
@Lazy
protected
cn
.
ibizlab
.
core
.
sample
.
service
.
IIBIZSample0002Service
ibizsample0002Service
;
protected
int
batchSize
=
500
;
...
...
@@ -148,6 +151,15 @@ public class IBIZSample0001ServiceImpl extends ServiceImpl<IBIZSample0001Mapper,
}
@Override
public
List
<
IBIZSample0001
>
selectByIbizsample0002id
(
String
ibizsample0002id
)
{
return
baseMapper
.
selectByIbizsample0002id
(
ibizsample0002id
);
}
@Override
public
void
removeByIbizsample0002id
(
String
ibizsample0002id
)
{
this
.
remove
(
new
QueryWrapper
<
IBIZSample0001
>().
eq
(
"ibizsample0002id"
,
ibizsample0002id
));
}
/**
* 查询集合 DEFAULT
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/service/impl/IBIZSample0002ServiceImpl.java
浏览文件 @
56433b1a
...
...
@@ -48,6 +48,9 @@ import org.springframework.util.StringUtils;
@Service
(
"IBIZSample0002ServiceImpl"
)
public
class
IBIZSample0002ServiceImpl
extends
ServiceImpl
<
IBIZSample0002Mapper
,
IBIZSample0002
>
implements
IIBIZSample0002Service
{
@Autowired
@Lazy
protected
cn
.
ibizlab
.
core
.
sample
.
service
.
IIBIZSample0001Service
ibizsample0001Service
;
protected
int
batchSize
=
500
;
...
...
demo-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
56433b1a
...
...
@@ -383,6 +383,8 @@
</column>
<column
name=
"FIELD2"
remarks=
""
type=
"DECIMAL(38,2)"
>
</column>
<column
name=
"IBIZSAMPLE0002ID"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
</createTable>
</changeSet>
...
...
@@ -1055,13 +1057,16 @@
<!--输出实体[IBIZQJ]外键关系 -->
<!--输出实体[IBIZSAMPLE]外键关系 -->
<!--输出实体[IBIZSAMPLE0001]外键关系 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"fk-ibizsample0001-43-38"
>
<addForeignKeyConstraint
baseColumnNames=
"IBIZSAMPLE0002ID"
baseTableName=
"T_IBIZSAMPLE0001"
constraintName=
"DER1N_IBIZSAMPLE0001_IBIZSAMPL"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"IBIZSAMPLE0002ID"
referencedTableName=
"T_IBIZSAMPLE0002"
validate=
"true"
/>
</changeSet>
<!--输出实体[IBIZSAMPLE0002]外键关系 -->
<!--输出实体[IBIZSAMPLE0003]外键关系 -->
<!--输出实体[IBIZSAMPLE0004]外键关系 -->
<!--输出实体[IBIZSAMPLE0005]外键关系 -->
<!--输出实体[IBIZSAMPLE0006]外键关系 -->
<!--输出实体[IBIZSAMPLE0007]外键关系 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"fk-ibizsample0007-4-3
8
"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"fk-ibizsample0007-4-3
9
"
>
<addForeignKeyConstraint
baseColumnNames=
"IBIZSAMPLE0006ID"
baseTableName=
"T_IBIZSAMPLE0007"
constraintName=
"DER1N_IBIZSAMPLE0007_IBIZSAMPL"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"IBIZSAMPLE0006ID"
referencedTableName=
"T_IBIZSAMPLE0006"
validate=
"true"
/>
</changeSet>
<!--输出实体[IBIZSAMPLE0008]外键关系 -->
...
...
@@ -1077,7 +1082,7 @@
<!--输出实体[IBIZSAMPLE0018]外键关系 -->
<!--输出实体[IBIZSAMPLE0019]外键关系 -->
<!--输出实体[IBIZSAMPLE0020]外键关系 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"fk-ibizsample0020-4-
39
"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"fk-ibizsample0020-4-
40
"
>
<addForeignKeyConstraint
baseColumnNames=
"IBIZSAMPLE0019ID"
baseTableName=
"T_IBIZSAMPLE0020"
constraintName=
"DER1N_IBIZSAMPLE0020_IBIZSAMPL"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"IBIZSAMPLE0019ID"
referencedTableName=
"T_IBIZSAMPLE0019"
validate=
"true"
/>
</changeSet>
<!--输出实体[IBIZSOFTWARESUIT]外键关系 -->
...
...
demo-core/src/main/resources/mapper/sample/ibizsample0001/IBIZSample0001Mapper.xml
浏览文件 @
56433b1a
...
...
@@ -23,10 +23,20 @@
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"IBIZSample0001ResultMap"
type=
"cn.ibizlab.core.sample.domain.IBIZSample0001"
autoMapping=
"true"
>
<id
property=
"ibizsample0001id"
column=
"ibizsample0001id"
/>
<!--主键字段映射-->
<result
property=
"ibizsample0002id"
column=
"ibizsample0002id"
/>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association
property=
"sample0002Sample00011N"
javaType=
"cn.ibizlab.core.sample.domain.IBIZSample0002"
column=
"ibizsample0002id"
select=
"cn.ibizlab.core.sample.mapper.IBIZSample0002Mapper.selectById"
fetchType=
"lazy"
></association>
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_IBIZSAMPLE0001_IBIZSAMPLE0002_IBIZSAMPLE0002ID] -->
<select
id=
"selectByIbizsample0002id"
resultMap=
"IBIZSample0001ResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
) t1
where ibizsample0002id=#{ibizsample0002id}
</select>
<!--数据集合[Default]-->
<select
id=
"searchDefault"
parameterType=
"cn.ibizlab.core.sample.filter.IBIZSample0001SearchContext"
resultMap=
"IBIZSample0001ResultMap"
>
...
...
@@ -49,7 +59,7 @@
</sql>
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`FIELD`, t1.`FIELD01`, t1.`FIELD02`, t1.`FIELD05`, t1.`FIELD06`, t1.`FIELD07`, t1.`FIELD08`, t1.`FIELD09`, t1.`FIELD10`, t1.`FIELD11`, t1.`FIELD12`, t1.`FIELD13`, t1.`FIELD14`, t1.`FIELD15`, t1.`FIELD16`, t1.`FIELD17`, t1.`FIELD18`, t1.`FIELD19`, t1.`FIELD2`, t1.`FIELD20`, t1.`FIELD21`, t1.`FIELD22`, t1.`FIELD24`, t1.`FIELD27`, t1.`IBIZSAMPLE0001ID`, t1.`IBIZSAMPLE0001NAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZSAMPLE0001` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`FIELD`, t1.`FIELD01`, t1.`FIELD02`, t1.`FIELD05`, t1.`FIELD06`, t1.`FIELD07`, t1.`FIELD08`, t1.`FIELD09`, t1.`FIELD10`, t1.`FIELD11`, t1.`FIELD12`, t1.`FIELD13`, t1.`FIELD14`, t1.`FIELD15`, t1.`FIELD16`, t1.`FIELD17`, t1.`FIELD18`, t1.`FIELD19`, t1.`FIELD2`, t1.`FIELD20`, t1.`FIELD21`, t1.`FIELD22`, t1.`FIELD24`, t1.`FIELD27`, t1.`IBIZSAMPLE0001ID`, t1.`IBIZSAMPLE0001NAME`, t1.`
IBIZSAMPLE0002ID`, t1.`
UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZSAMPLE0001` t1
]]>
</sql>
<!--数据查询[Default]-->
...
...
demo-core/src/main/resources/sysmodel/DemoSys.json
浏览文件 @
56433b1a
...
...
@@ -2801,11 +2801,35 @@
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"IBIZSAMPLE0002ID"
,
"codename"
:
"IBIZSample0002Id"
,
"field_logic_name"
:
"首页图表数据源标识"
,
"entity_name"
:
"IBIZSample0001"
,
"ref_de"
:
"IBIZSAMPLE0002"
,
"ref_field_name"
:
"IBIZSAMPLE0002ID"
,
"relation_name"
:
"DER1N_IBIZSAMPLE0001_IBIZSAMPLE0002_IBIZSAMPLE0002ID"
,
"relation_codename"
:
"SAMPLE0002_SAMPLE0001_1_N"
,
"field_type"
:
"PICKUP"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
}
],
"subEntitys"
:[
],
"parentEntitys"
:[
{
"name"
:
"DER1N_IBIZSAMPLE0001_IBIZSAMPLE0002_IBIZSAMPLE0002ID"
,
"relation_type"
:
"DER1N"
,
"code_name"
:
"SAMPLE0002_SAMPLE0001_1_N"
,
"entity_name"
:
"IBIZSAMPLE0001"
,
"ref_entity_name"
:
"IBIZSAMPLE0002"
}
]
}
,
...
...
@@ -2936,6 +2960,12 @@
}
],
"subEntitys"
:[
{
"name"
:
"DER1N_IBIZSAMPLE0001_IBIZSAMPLE0002_IBIZSAMPLE0002ID"
,
"relation_type"
:
"DER1N"
,
"code_name"
:
"SAMPLE0002_SAMPLE0001_1_N"
,
"entity_name"
:
"IBIZSAMPLE0001"
,
"ref_entity_name"
:
"IBIZSAMPLE0002"
}
],
"parentEntitys"
:[
]
...
...
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/dto/IBIZSample0001DTO.java
浏览文件 @
56433b1a
...
...
@@ -306,6 +306,15 @@ public class IBIZSample0001DTO extends DTOBase implements Serializable {
@JsonProperty
(
"field2"
)
private
BigDecimal
field2
;
/**
* 属性 [IBIZSAMPLE0002ID]
*
*/
@JSONField
(
name
=
"ibizsample0002id"
)
@JsonProperty
(
"ibizsample0002id"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
ibizsample0002id
;
/**
* 设置 [FIELD01]
...
...
@@ -523,6 +532,14 @@ public class IBIZSample0001DTO extends DTOBase implements Serializable {
this
.
modify
(
"field2"
,
field2
);
}
/**
* 设置 [IBIZSAMPLE0002ID]
*/
public
void
setIbizsample0002id
(
String
ibizsample0002id
){
this
.
ibizsample0002id
=
ibizsample0002id
;
this
.
modify
(
"ibizsample0002id"
,
ibizsample0002id
);
}
}
...
...
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/rest/IBIZSample0001Resource.java
浏览文件 @
56433b1a
此差异已折叠。
点击以展开。
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录