Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
资
资产管理
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
资产管理
提交
da6f898b
提交
da6f898b
编写于
7月 29, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lab_gzf 部署微服务应用
上级
30236883
变更
32
显示空白字符变更
内嵌
并排
正在显示
32 个修改的文件
包含
389 行增加
和
51 行删除
+389
-51
view-config.json
app_AssetManagement/public/assets/json/view-config.json
+10
-0
eamasset-state-model-line.ts
...agement/src/interface/entity/eamasset-state-model-line.ts
+16
-0
eamasset-state-model-line_en_US.ts
...asset-state-model-line/eamasset-state-model-line_en_US.ts
+2
-0
eamasset-state-model-line_zh_CN.ts
...asset-state-model-line/eamasset-state-model-line_zh_CN.ts
+2
-0
eamasset-state_en_US.ts
...le/lanres/entities/eamasset-state/eamasset-state_en_US.ts
+2
-0
eamasset-state_zh_CN.ts
...le/lanres/entities/eamasset-state/eamasset-state_zh_CN.ts
+2
-0
eamlocation-state_en_US.ts
...res/entities/eamlocation-state/eamlocation-state_en_US.ts
+4
-0
eamlocation-state_zh_CN.ts
...res/entities/eamlocation-state/eamlocation-state_zh_CN.ts
+4
-0
viewconfig.ts
app_AssetManagement/src/mock/viewconfig/viewconfig.ts
+8
-0
DataViewBase.tsx
app_AssetManagement/src/studio-core/view/DataViewBase.tsx
+13
-0
ControlBase.tsx
app_AssetManagement/src/studio-core/widgets/ControlBase.tsx
+1
-1
FormControlBase.tsx
...setManagement/src/studio-core/widgets/FormControlBase.tsx
+1
-1
default.less
app_AssetManagement/src/styles/default.less
+24
-0
eamlocation-state-ui-service-base.ts
...ce/eamlocation-state/eamlocation-state-ui-service-base.ts
+1
-0
main-grid-base.tsx
...t/src/widgets/eamasset-state/main-grid/main-grid-base.tsx
+32
-0
main-grid-model.ts
...t/src/widgets/eamasset-state/main-grid/main-grid-model.ts
+10
-0
main-grid.html
...ement/src/widgets/eamasset-state/main-grid/main-grid.html
+24
-0
AssetManagementApplication.java
...anagement/assetmanagement/AssetManagementApplication.java
+0
-1
DevBootApplication.java
...n/java/cn/ibizlab/assetmanagement/DevBootApplication.java
+0
-1
DevBootAutoConfiguration.java
...zlab/assetmanagement/config/DevBootAutoConfiguration.java
+11
-0
pom.xml
assetmanagement-core/pom.xml
+23
-0
EAMAssetStateModelLine.java
...tmanagement/core/asset/domain/EAMAssetStateModelLine.java
+14
-0
EAMAssetStateModelLineSearchContext.java
...ore/asset/filter/EAMAssetStateModelLineSearchContext.java
+28
-0
EAMAssetStateModelLineServiceImpl.java
...asset/service/impl/EAMAssetStateModelLineServiceImpl.java
+33
-0
20200728181130_init_ibztx.xml
...sources/liquibase/changelog/20200728181130_init_ibztx.xml
+34
-0
h2_table.xml
...management-core/src/main/resources/liquibase/h2_table.xml
+17
-17
EAMAssetStateModelLineMapper.xml
...t/eamassetstatemodelline/EAMAssetStateModelLineMapper.xml
+3
-3
pom.xml
assetmanagement-dependencies/pom.xml
+26
-26
AssetApiAutoConfiguration.java
...management/assetapi/config/AssetApiAutoConfiguration.java
+4
-0
EAMAssetStateModelLineDTO.java
...setmanagement/assetapi/dto/EAMAssetStateModelLineDTO.java
+16
-0
iBizAssetManagementAssetApiApplication.java
...ment/assetapi/iBizAssetManagementAssetApiApplication.java
+0
-1
pom.xml
assetmanagement-provider/pom.xml
+24
-0
未找到文件。
app_AssetManagement/public/assets/json/view-config.json
浏览文件 @
da6f898b
...
@@ -119,6 +119,16 @@
...
@@ -119,6 +119,16 @@
"viewtag"
:
"9e9b3600ba892d31757bacef1dcc9458"
,
"viewtag"
:
"9e9b3600ba892d31757bacef1dcc9458"
,
"memo"
:
""
"memo"
:
""
},
},
"eamlocationstatelistexpview"
:
{
"title"
:
"功能位置状态列表导航视图"
,
"caption"
:
"功能位置状态"
,
"viewtype"
:
"DELISTEXPVIEW"
,
"viewmodule"
:
"Location"
,
"viewname"
:
"EAMLocationStateListExpView"
,
"viewfilename"
:
"eamlocation-state-list-exp-view"
,
"viewtag"
:
"a3d6a9a21765dd59afa2d3d20a99096c"
,
"memo"
:
""
},
"eamlocationinfo_mainview"
:
{
"eamlocationinfo_mainview"
:
{
"title"
:
"功能位置编辑视图"
,
"title"
:
"功能位置编辑视图"
,
"caption"
:
"功能位置"
,
"caption"
:
"功能位置"
,
...
...
app_AssetManagement/src/interface/entity/eamasset-state-model-line.ts
浏览文件 @
da6f898b
...
@@ -69,4 +69,20 @@ export interface EAMAssetStateModelLine {
...
@@ -69,4 +69,20 @@ export interface EAMAssetStateModelLine {
* @memberof EAMAssetStateModelLine
* @memberof EAMAssetStateModelLine
*/
*/
eamassetstateid
?:
any
;
eamassetstateid
?:
any
;
/**
* 资产状态
*
* @returns {*}
* @memberof EAMAssetStateModelLine
*/
eamassetstatename
?:
any
;
/**
* 资产状态模型
*
* @returns {*}
* @memberof EAMAssetStateModelLine
*/
eamassetstatemodelname
?:
any
;
}
}
\ No newline at end of file
app_AssetManagement/src/locale/lanres/entities/eamasset-state-model-line/eamasset-state-model-line_en_US.ts
浏览文件 @
da6f898b
...
@@ -9,5 +9,7 @@ export default {
...
@@ -9,5 +9,7 @@ export default {
updateman
:
"更新人"
,
updateman
:
"更新人"
,
eamassetstatemodelid
:
"资产状态模型标识"
,
eamassetstatemodelid
:
"资产状态模型标识"
,
eamassetstateid
:
"资产状态标识"
,
eamassetstateid
:
"资产状态标识"
,
eamassetstatename
:
"资产状态"
,
eamassetstatemodelname
:
"资产状态模型"
,
},
},
};
};
\ No newline at end of file
app_AssetManagement/src/locale/lanres/entities/eamasset-state-model-line/eamasset-state-model-line_zh_CN.ts
浏览文件 @
da6f898b
...
@@ -8,5 +8,7 @@ export default {
...
@@ -8,5 +8,7 @@ export default {
updateman
:
"更新人"
,
updateman
:
"更新人"
,
eamassetstatemodelid
:
"资产状态模型标识"
,
eamassetstatemodelid
:
"资产状态模型标识"
,
eamassetstateid
:
"资产状态标识"
,
eamassetstateid
:
"资产状态标识"
,
eamassetstatename
:
"资产状态"
,
eamassetstatemodelname
:
"资产状态模型"
,
},
},
};
};
\ No newline at end of file
app_AssetManagement/src/locale/lanres/entities/eamasset-state/eamasset-state_en_US.ts
浏览文件 @
da6f898b
...
@@ -41,6 +41,8 @@ export default {
...
@@ -41,6 +41,8 @@ export default {
},
},
main_grid
:
{
main_grid
:
{
columns
:
{
columns
:
{
eamassetstateid
:
"资产状态标识"
,
eamassetstatename
:
"资产状态名称"
,
},
},
uiactions
:
{
uiactions
:
{
},
},
...
...
app_AssetManagement/src/locale/lanres/entities/eamasset-state/eamasset-state_zh_CN.ts
浏览文件 @
da6f898b
...
@@ -40,6 +40,8 @@ export default {
...
@@ -40,6 +40,8 @@ export default {
},
},
main_grid
:
{
main_grid
:
{
columns
:
{
columns
:
{
eamassetstateid
:
"资产状态标识"
,
eamassetstatename
:
"资产状态名称"
,
},
},
uiactions
:
{
uiactions
:
{
},
},
...
...
app_AssetManagement/src/locale/lanres/entities/eamlocation-state/eamlocation-state_en_US.ts
浏览文件 @
da6f898b
...
@@ -15,6 +15,10 @@ export default {
...
@@ -15,6 +15,10 @@ export default {
caption
:
"功能位置状态"
,
caption
:
"功能位置状态"
,
title
:
"功能位置状态信息"
,
title
:
"功能位置状态信息"
,
},
},
listexpview
:
{
caption
:
"功能位置状态"
,
title
:
"功能位置状态列表导航视图"
,
},
pickupview
:
{
pickupview
:
{
caption
:
"功能位置状态"
,
caption
:
"功能位置状态"
,
title
:
"功能位置状态数据选择视图"
,
title
:
"功能位置状态数据选择视图"
,
...
...
app_AssetManagement/src/locale/lanres/entities/eamlocation-state/eamlocation-state_zh_CN.ts
浏览文件 @
da6f898b
...
@@ -14,6 +14,10 @@ export default {
...
@@ -14,6 +14,10 @@ export default {
caption
:
"功能位置状态"
,
caption
:
"功能位置状态"
,
title
:
"功能位置状态信息"
,
title
:
"功能位置状态信息"
,
},
},
listexpview
:
{
caption
:
"功能位置状态"
,
title
:
"功能位置状态列表导航视图"
,
},
pickupview
:
{
pickupview
:
{
caption
:
"功能位置状态"
,
caption
:
"功能位置状态"
,
title
:
"功能位置状态数据选择视图"
,
title
:
"功能位置状态数据选择视图"
,
...
...
app_AssetManagement/src/mock/viewconfig/viewconfig.ts
浏览文件 @
da6f898b
...
@@ -103,6 +103,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
...
@@ -103,6 +103,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"EAMLocationStateModelGridView"
,
"viewname"
:
"EAMLocationStateModelGridView"
,
"viewtag"
:
"9e9b3600ba892d31757bacef1dcc9458"
"viewtag"
:
"9e9b3600ba892d31757bacef1dcc9458"
},
},
"eamlocationstatelistexpview"
:
{
"title"
:
"功能位置状态列表导航视图"
,
"caption"
:
"功能位置状态"
,
"viewtype"
:
"DELISTEXPVIEW"
,
"viewmodule"
:
"Location"
,
"viewname"
:
"EAMLocationStateListExpView"
,
"viewtag"
:
"a3d6a9a21765dd59afa2d3d20a99096c"
},
"eamlocationinfo_mainview"
:
{
"eamlocationinfo_mainview"
:
{
"title"
:
"功能位置编辑视图"
,
"title"
:
"功能位置编辑视图"
,
"caption"
:
"功能位置"
,
"caption"
:
"功能位置"
,
...
...
app_AssetManagement/src/studio-core/view/DataViewBase.tsx
浏览文件 @
da6f898b
...
@@ -9,4 +9,17 @@ import { MDViewBase } from './MDViewBase';
...
@@ -9,4 +9,17 @@ import { MDViewBase } from './MDViewBase';
*/
*/
export
class
DataViewBase
extends
MDViewBase
{
export
class
DataViewBase
extends
MDViewBase
{
/**
* 快速搜索
*
* @protected
* @memberof DataViewBase
*/
protected
onSearch
():
void
{
const
dataview
:
any
=
this
.
$refs
.
dataview
;
if
(
dataview
)
{
dataview
.
refresh
({});
}
}
}
}
\ No newline at end of file
app_AssetManagement/src/studio-core/widgets/ControlBase.tsx
浏览文件 @
da6f898b
...
@@ -16,7 +16,7 @@ export class ControlBase extends Vue {
...
@@ -16,7 +16,7 @@ export class ControlBase extends Vue {
* @memberof ControlBase
* @memberof ControlBase
*/
*/
@
Prop
()
@
Prop
()
public
name
?
:
string
;
public
name
!
:
string
;
/**
/**
* 视图通讯对象
* 视图通讯对象
...
...
app_AssetManagement/src/studio-core/widgets/FormControlBase.tsx
浏览文件 @
da6f898b
...
@@ -223,7 +223,7 @@ export class FormControlBase extends MainControlBase {
...
@@ -223,7 +223,7 @@ export class FormControlBase extends MainControlBase {
* @memberof FormControlBase
* @memberof FormControlBase
*/
*/
public
formValidateStatus
():
boolean
{
public
formValidateStatus
():
boolean
{
const
form
:
any
=
this
.
$refs
.
form
;
const
form
:
any
=
this
.
$refs
[
this
.
name
]
;
let
validatestate
:
boolean
=
true
;
let
validatestate
:
boolean
=
true
;
form
.
validate
((
valid
:
boolean
)
=>
{
form
.
validate
((
valid
:
boolean
)
=>
{
validatestate
=
valid
?
true
:
false
;
validatestate
=
valid
?
true
:
false
;
...
...
app_AssetManagement/src/styles/default.less
浏览文件 @
da6f898b
...
@@ -1160,4 +1160,28 @@ div::-webkit-scrollbar-thumb {
...
@@ -1160,4 +1160,28 @@ div::-webkit-scrollbar-thumb {
padding-top: 50px;
padding-top: 50px;
}
}
}
}
// 向导面板样式
.app-wizard {
height: 100%;
width: 100%;
.wizard-steps {
height: 58px;
}
.app-wizard-content {
height: calc(100% - 90px);
overflow: auto;
}
.app-wizard-footer {
height: 32px;
text-align: right;
.ivu-btn {
margin-right: 5px;
}
}
}
@import './user.less';
@import './user.less';
\ No newline at end of file
app_AssetManagement/src/uiservice/eamlocation-state/eamlocation-state-ui-service-base.ts
浏览文件 @
da6f898b
...
@@ -90,6 +90,7 @@ export default class EAMLocationStateUIServiceBase extends UIService {
...
@@ -90,6 +90,7 @@ export default class EAMLocationStateUIServiceBase extends UIService {
*/
*/
public
initViewMap
(){
public
initViewMap
(){
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'eamlocationstates'
});
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'eamlocationstates'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'listexpview'
,
srfappde
:
'eamlocationstates'
});
this
.
allViewMap
.
set
(
'PICKUPVIEW:'
,{
viewname
:
'pickupview'
,
srfappde
:
'eamlocationstates'
});
this
.
allViewMap
.
set
(
'PICKUPVIEW:'
,{
viewname
:
'pickupview'
,
srfappde
:
'eamlocationstates'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'pickupgridview'
,
srfappde
:
'eamlocationstates'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'pickupgridview'
,
srfappde
:
'eamlocationstates'
});
this
.
allViewMap
.
set
(
'MDATAVIEW:'
,{
viewname
:
'gridview'
,
srfappde
:
'eamlocationstates'
});
this
.
allViewMap
.
set
(
'MDATAVIEW:'
,{
viewname
:
'gridview'
,
srfappde
:
'eamlocationstates'
});
...
...
app_AssetManagement/src/widgets/eamasset-state/main-grid/main-grid-base.tsx
浏览文件 @
da6f898b
...
@@ -83,6 +83,22 @@ export class MainGridBase extends GridControlBase {
...
@@ -83,6 +83,22 @@ export class MainGridBase extends GridControlBase {
* @memberof MainGridBase
* @memberof MainGridBase
*/
*/
public
allColumns
:
any
[]
=
[
public
allColumns
:
any
[]
=
[
{
name
:
'eamassetstateid'
,
label
:
'资产状态标识'
,
langtag
:
'entities.eamassetstate.main_grid.columns.eamassetstateid'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'eamassetstatename'
,
label
:
'资产状态名称'
,
langtag
:
'entities.eamassetstate.main_grid.columns.eamassetstatename'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
]
]
/**
/**
...
@@ -117,6 +133,8 @@ export class MainGridBase extends GridControlBase {
...
@@ -117,6 +133,8 @@ export class MainGridBase extends GridControlBase {
* @memberof MainBase
* @memberof MainBase
*/
*/
public
hasRowEdit
:
any
=
{
public
hasRowEdit
:
any
=
{
'eamassetstateid'
:
false
,
'eamassetstatename'
:
false
,
};
};
/**
/**
...
@@ -131,4 +149,18 @@ export class MainGridBase extends GridControlBase {
...
@@ -131,4 +149,18 @@ export class MainGridBase extends GridControlBase {
}
}
/**
* 导出数据格式化
*
* @param {*} filterVal
* @param {*} jsonData
* @param {any[]} [codelistColumns=[]]
* @returns {Promise<any>}
* @memberof MainGridBase
*/
public
async
formatExcelData
(
filterVal
:
any
,
jsonData
:
any
,
codelistColumns
?:
any
[]):
Promise
<
any
>
{
return
super
.
formatExcelData
(
filterVal
,
jsonData
,
[
]);
}
}
}
\ No newline at end of file
app_AssetManagement/src/widgets/eamasset-state/main-grid/main-grid-model.ts
浏览文件 @
da6f898b
...
@@ -26,6 +26,16 @@ export default class MainModel {
...
@@ -26,6 +26,16 @@ export default class MainModel {
]
]
}
else
{
}
else
{
return
[
return
[
{
name
:
'eamassetstatename'
,
prop
:
'eamassetstatename'
,
dataType
:
'TEXT'
,
},
{
name
:
'eamassetstateid'
,
prop
:
'eamassetstateid'
,
dataType
:
'GUID'
,
},
{
{
name
:
'srfmajortext'
,
name
:
'srfmajortext'
,
prop
:
'eamassetstatename'
,
prop
:
'eamassetstatename'
,
...
...
app_AssetManagement/src/widgets/eamasset-state/main-grid/main-grid.html
浏览文件 @
da6f898b
...
@@ -23,6 +23,30 @@
...
@@ -23,6 +23,30 @@
<template
v-if=
"!isSingleSelect"
>
<template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</template>
</template>
<template
v-if=
"getColumnState('eamassetstateid')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'eamassetstateid'"
:label=
"$t('entities.eamassetstate.main_grid.columns.eamassetstateid')"
:width=
"200"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.eamassetstate.main_grid.columns.eamassetstateid')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.eamassetstateid}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('eamassetstatename')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'eamassetstatename'"
:label=
"$t('entities.eamassetstate.main_grid.columns.eamassetstatename')"
:width=
"200"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.eamassetstate.main_grid.columns.eamassetstatename')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.eamassetstatename}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"adaptiveState"
>
<template
v-if=
"adaptiveState"
>
<el-table-column></el-table-column>
<el-table-column></el-table-column>
</template>
</template>
...
...
assetmanagement-app/assetmanagement-app-assetmanagement/src/main/java/cn/ibizlab/assetmanagement/assetmanagement/AssetManagementApplication.java
浏览文件 @
da6f898b
...
@@ -17,7 +17,6 @@ import java.util.List;
...
@@ -17,7 +17,6 @@ import java.util.List;
@Slf4j
@Slf4j
@Import
({
@Import
({
com
.
alibaba
.
cloud
.
seata
.
feign
.
SeataFeignClientAutoConfiguration
.
class
,
FeignClientsConfiguration
.
class
FeignClientsConfiguration
.
class
})
})
@EnableDiscoveryClient
@EnableDiscoveryClient
...
...
assetmanagement-boot/src/main/java/cn/ibizlab/assetmanagement/DevBootApplication.java
浏览文件 @
da6f898b
...
@@ -28,7 +28,6 @@ import java.util.List;
...
@@ -28,7 +28,6 @@ import java.util.List;
// }
// }
)
)
@Import
({
@Import
({
com
.
alibaba
.
cloud
.
seata
.
feign
.
SeataFeignClientAutoConfiguration
.
class
,
org
.
springframework
.
cloud
.
openfeign
.
FeignClientsConfiguration
.
class
org
.
springframework
.
cloud
.
openfeign
.
FeignClientsConfiguration
.
class
})
})
@EnableAsync
@EnableAsync
...
...
assetmanagement-boot/src/main/java/cn/ibizlab/assetmanagement/config/DevBootAutoConfiguration.java
0 → 100644
浏览文件 @
da6f898b
package
cn
.
ibizlab
.
assetmanagement
.
config
;
import
com.alibaba.cloud.seata.feign.SeataFeignClientAutoConfiguration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Import
;
@Configuration
@Import
({
SeataFeignClientAutoConfiguration
.
class
})
public
class
DevBootAutoConfiguration
{
}
assetmanagement-core/pom.xml
浏览文件 @
da6f898b
...
@@ -98,6 +98,29 @@
...
@@ -98,6 +98,29 @@
<artifactId>
jobs-spring-boot-starter
</artifactId>
<artifactId>
jobs-spring-boot-starter
</artifactId>
</dependency>
</dependency>
<!-- 阿里seata分布式事务 -->
<dependency>
<groupId>
io.seata
</groupId>
<artifactId>
seata-spring-boot-starter
</artifactId>
<exclusions>
<exclusion>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-alibaba-seata
</artifactId>
<exclusions>
<exclusion>
<groupId>
io.seata
</groupId>
<artifactId>
seata-spring-boot-starter
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencies>
<properties>
<properties>
...
...
assetmanagement-core/src/main/java/cn/ibizlab/assetmanagement/core/asset/domain/EAMAssetStateModelLine.java
浏览文件 @
da6f898b
...
@@ -103,6 +103,20 @@ public class EAMAssetStateModelLine extends EntityMP implements Serializable {
...
@@ -103,6 +103,20 @@ public class EAMAssetStateModelLine extends EntityMP implements Serializable {
@JSONField
(
name
=
"eamassetstateid"
)
@JSONField
(
name
=
"eamassetstateid"
)
@JsonProperty
(
"eamassetstateid"
)
@JsonProperty
(
"eamassetstateid"
)
private
String
eamassetstateid
;
private
String
eamassetstateid
;
/**
* 资产状态
*/
@TableField
(
exist
=
false
)
@JSONField
(
name
=
"eamassetstatename"
)
@JsonProperty
(
"eamassetstatename"
)
private
String
eamassetstatename
;
/**
* 资产状态模型
*/
@TableField
(
exist
=
false
)
@JSONField
(
name
=
"eamassetstatemodelname"
)
@JsonProperty
(
"eamassetstatemodelname"
)
private
String
eamassetstatemodelname
;
/**
/**
*
*
...
...
assetmanagement-core/src/main/java/cn/ibizlab/assetmanagement/core/asset/filter/EAMAssetStateModelLineSearchContext.java
浏览文件 @
da6f898b
...
@@ -48,6 +48,34 @@ public class EAMAssetStateModelLineSearchContext extends QueryWrapperContext<EAM
...
@@ -48,6 +48,34 @@ public class EAMAssetStateModelLineSearchContext extends QueryWrapperContext<EAM
this
.
getSearchCond
().
eq
(
"eamassetstateid"
,
n_eamassetstateid_eq
);
this
.
getSearchCond
().
eq
(
"eamassetstateid"
,
n_eamassetstateid_eq
);
}
}
}
}
private
String
n_eamassetstatename_eq
;
//[资产状态]
public
void
setN_eamassetstatename_eq
(
String
n_eamassetstatename_eq
)
{
this
.
n_eamassetstatename_eq
=
n_eamassetstatename_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_eamassetstatename_eq
)){
this
.
getSearchCond
().
eq
(
"eamassetstatename"
,
n_eamassetstatename_eq
);
}
}
private
String
n_eamassetstatename_like
;
//[资产状态]
public
void
setN_eamassetstatename_like
(
String
n_eamassetstatename_like
)
{
this
.
n_eamassetstatename_like
=
n_eamassetstatename_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_eamassetstatename_like
)){
this
.
getSearchCond
().
like
(
"eamassetstatename"
,
n_eamassetstatename_like
);
}
}
private
String
n_eamassetstatemodelname_eq
;
//[资产状态模型]
public
void
setN_eamassetstatemodelname_eq
(
String
n_eamassetstatemodelname_eq
)
{
this
.
n_eamassetstatemodelname_eq
=
n_eamassetstatemodelname_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_eamassetstatemodelname_eq
)){
this
.
getSearchCond
().
eq
(
"eamassetstatemodelname"
,
n_eamassetstatemodelname_eq
);
}
}
private
String
n_eamassetstatemodelname_like
;
//[资产状态模型]
public
void
setN_eamassetstatemodelname_like
(
String
n_eamassetstatemodelname_like
)
{
this
.
n_eamassetstatemodelname_like
=
n_eamassetstatemodelname_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_eamassetstatemodelname_like
)){
this
.
getSearchCond
().
like
(
"eamassetstatemodelname"
,
n_eamassetstatemodelname_like
);
}
}
/**
/**
* 启用快速搜索
* 启用快速搜索
...
...
assetmanagement-core/src/main/java/cn/ibizlab/assetmanagement/core/asset/service/impl/EAMAssetStateModelLineServiceImpl.java
浏览文件 @
da6f898b
...
@@ -58,6 +58,7 @@ public class EAMAssetStateModelLineServiceImpl extends ServiceImpl<EAMAssetState
...
@@ -58,6 +58,7 @@ public class EAMAssetStateModelLineServiceImpl extends ServiceImpl<EAMAssetState
@Override
@Override
@Transactional
@Transactional
public
boolean
create
(
EAMAssetStateModelLine
et
)
{
public
boolean
create
(
EAMAssetStateModelLine
et
)
{
fillParentData
(
et
);
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
return
false
;
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getEamassetstatemodellineid
()),
et
);
CachedBeanCopier
.
copy
(
get
(
et
.
getEamassetstatemodellineid
()),
et
);
...
@@ -66,12 +67,14 @@ public class EAMAssetStateModelLineServiceImpl extends ServiceImpl<EAMAssetState
...
@@ -66,12 +67,14 @@ public class EAMAssetStateModelLineServiceImpl extends ServiceImpl<EAMAssetState
@Override
@Override
public
void
createBatch
(
List
<
EAMAssetStateModelLine
>
list
)
{
public
void
createBatch
(
List
<
EAMAssetStateModelLine
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
this
.
saveBatch
(
list
,
batchSize
);
this
.
saveBatch
(
list
,
batchSize
);
}
}
@Override
@Override
@Transactional
@Transactional
public
boolean
update
(
EAMAssetStateModelLine
et
)
{
public
boolean
update
(
EAMAssetStateModelLine
et
)
{
fillParentData
(
et
);
if
(!
update
(
et
,(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"eamassetstatemodellineid"
,
et
.
getEamassetstatemodellineid
())))
if
(!
update
(
et
,(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"eamassetstatemodellineid"
,
et
.
getEamassetstatemodellineid
())))
return
false
;
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getEamassetstatemodellineid
()),
et
);
CachedBeanCopier
.
copy
(
get
(
et
.
getEamassetstatemodellineid
()),
et
);
...
@@ -80,6 +83,7 @@ public class EAMAssetStateModelLineServiceImpl extends ServiceImpl<EAMAssetState
...
@@ -80,6 +83,7 @@ public class EAMAssetStateModelLineServiceImpl extends ServiceImpl<EAMAssetState
@Override
@Override
public
void
updateBatch
(
List
<
EAMAssetStateModelLine
>
list
)
{
public
void
updateBatch
(
List
<
EAMAssetStateModelLine
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
updateBatchById
(
list
,
batchSize
);
updateBatchById
(
list
,
batchSize
);
}
}
...
@@ -110,6 +114,7 @@ public class EAMAssetStateModelLineServiceImpl extends ServiceImpl<EAMAssetState
...
@@ -110,6 +114,7 @@ public class EAMAssetStateModelLineServiceImpl extends ServiceImpl<EAMAssetState
@Override
@Override
public
EAMAssetStateModelLine
getDraft
(
EAMAssetStateModelLine
et
)
{
public
EAMAssetStateModelLine
getDraft
(
EAMAssetStateModelLine
et
)
{
fillParentData
(
et
);
return
et
;
return
et
;
}
}
...
@@ -137,12 +142,14 @@ public class EAMAssetStateModelLineServiceImpl extends ServiceImpl<EAMAssetState
...
@@ -137,12 +142,14 @@ public class EAMAssetStateModelLineServiceImpl extends ServiceImpl<EAMAssetState
@Override
@Override
public
boolean
saveBatch
(
Collection
<
EAMAssetStateModelLine
>
list
)
{
public
boolean
saveBatch
(
Collection
<
EAMAssetStateModelLine
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
saveOrUpdateBatch
(
list
,
batchSize
);
saveOrUpdateBatch
(
list
,
batchSize
);
return
true
;
return
true
;
}
}
@Override
@Override
public
void
saveBatch
(
List
<
EAMAssetStateModelLine
>
list
)
{
public
void
saveBatch
(
List
<
EAMAssetStateModelLine
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
saveOrUpdateBatch
(
list
,
batchSize
);
saveOrUpdateBatch
(
list
,
batchSize
);
}
}
...
@@ -179,6 +186,32 @@ public class EAMAssetStateModelLineServiceImpl extends ServiceImpl<EAMAssetState
...
@@ -179,6 +186,32 @@ public class EAMAssetStateModelLineServiceImpl extends ServiceImpl<EAMAssetState
/**
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* @param et
*/
private
void
fillParentData
(
EAMAssetStateModelLine
et
){
//实体关系[DER1N_EAMASSETSTATEMODELLINE_EAMASSETSTATEMODEL_EAMASSETSTATEMODELID]
if
(!
ObjectUtils
.
isEmpty
(
et
.
getEamassetstatemodelid
())){
cn
.
ibizlab
.
assetmanagement
.
core
.
asset
.
domain
.
EAMAssetStateModel
eamassetstatemodel
=
et
.
getEamassetstatemodel
();
if
(
ObjectUtils
.
isEmpty
(
eamassetstatemodel
)){
cn
.
ibizlab
.
assetmanagement
.
core
.
asset
.
domain
.
EAMAssetStateModel
majorEntity
=
eamassetstatemodelService
.
get
(
et
.
getEamassetstatemodelid
());
et
.
setEamassetstatemodel
(
majorEntity
);
eamassetstatemodel
=
majorEntity
;
}
et
.
setEamassetstatemodelname
(
eamassetstatemodel
.
getEamassetstatemodelname
());
}
//实体关系[DER1N_EAMASSETSTATEMODELLINE_EAMASSETSTATE_EAMASSETSTATEID]
if
(!
ObjectUtils
.
isEmpty
(
et
.
getEamassetstateid
())){
cn
.
ibizlab
.
assetmanagement
.
core
.
asset
.
domain
.
EAMAssetState
eamassetstate
=
et
.
getEamassetstate
();
if
(
ObjectUtils
.
isEmpty
(
eamassetstate
)){
cn
.
ibizlab
.
assetmanagement
.
core
.
asset
.
domain
.
EAMAssetState
majorEntity
=
eamassetstateService
.
get
(
et
.
getEamassetstateid
());
et
.
setEamassetstate
(
majorEntity
);
eamassetstate
=
majorEntity
;
}
et
.
setEamassetstatename
(
eamassetstate
.
getEamassetstatename
());
}
}
...
...
assetmanagement-core/src/main/resources/liquibase/changelog/20200728181130_init_ibztx.xml
0 → 100644
浏览文件 @
da6f898b
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.9.xsd"
>
<changeSet
author=
"Think (generated)"
id=
"1595929877142-2"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<tableExists
tableName=
"undo_log"
/>
</not>
</preConditions>
<createTable
remarks=
"AT transaction mode undo table"
tableName=
"undo_log"
>
<column
name=
"branch_id"
remarks=
"branch transaction id"
type=
"BIGINT"
>
<constraints
nullable=
"false"
/>
</column>
<column
name=
"xid"
remarks=
"global transaction id"
type=
"VARCHAR(100)"
>
<constraints
nullable=
"false"
/>
</column>
<column
name=
"context"
remarks=
"undo_log context,such as serialization"
type=
"VARCHAR(128)"
>
<constraints
nullable=
"false"
/>
</column>
<column
name=
"rollback_info"
remarks=
"rollback info"
type=
"LONGBLOB"
>
<constraints
nullable=
"false"
/>
</column>
<column
name=
"log_status"
remarks=
"0:normal status,1:defense status"
type=
"INT"
>
<constraints
nullable=
"false"
/>
</column>
<column
name=
"log_created"
remarks=
"create datetime"
type=
"datetime"
>
<constraints
nullable=
"false"
/>
</column>
<column
name=
"log_modified"
remarks=
"modify datetime"
type=
"datetime"
>
<constraints
nullable=
"false"
/>
</column>
</createTable>
<addUniqueConstraint
columnNames=
"xid, branch_id"
constraintName=
"ux_undo_log"
tableName=
"undo_log"
/>
</changeSet>
</databaseChangeLog>
assetmanagement-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
da6f898b
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<!--输出实体[EAMAPPLY]数据结构 -->
<!--输出实体[EAMAPPLY]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamapply-
8
-1"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamapply-
9
-1"
>
<createTable
tableName=
"EAMAPPLY"
>
<createTable
tableName=
"EAMAPPLY"
>
<column
name=
"UPDATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
<column
name=
"UPDATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
</column>
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<!--输出实体[EAMAPPLYSTATE]数据结构 -->
<!--输出实体[EAMAPPLYSTATE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamapplystate-
8
-2"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamapplystate-
9
-2"
>
<createTable
tableName=
"EAMAPPLYSTATE"
>
<createTable
tableName=
"EAMAPPLYSTATE"
>
<column
name=
"EAMAPPLYSTATEID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"EAMAPPLYSTATEID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_EAMAPPLYSTATE_EAMAPPLYSTATE"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_EAMAPPLYSTATE_EAMAPPLYSTATE"
/>
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
<!--输出实体[EAMAPPLYSTATEMODELLINE]数据结构 -->
<!--输出实体[EAMAPPLYSTATEMODELLINE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamapplystatemodelline-
7
-4"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamapplystatemodelline-
8
-4"
>
<createTable
tableName=
"EAMAPPLYSTATEMODELLINE"
>
<createTable
tableName=
"EAMAPPLYSTATEMODELLINE"
>
<column
name=
"EAMAPPLYSTATEMODELLINENAME"
remarks=
""
type=
"VARCHAR(200)"
>
<column
name=
"EAMAPPLYSTATEMODELLINENAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
</column>
...
@@ -142,7 +142,7 @@
...
@@ -142,7 +142,7 @@
<!--输出实体[EAMASSETSTATE]数据结构 -->
<!--输出实体[EAMASSETSTATE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamassetstate-
16
-7"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamassetstate-
20
-7"
>
<createTable
tableName=
"EAMASSETSTATE"
>
<createTable
tableName=
"EAMASSETSTATE"
>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
</column>
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
<!--输出实体[EAMASSETSTATEMODEL]数据结构 -->
<!--输出实体[EAMASSETSTATEMODEL]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamassetstatemodel-
8
-8"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamassetstatemodel-
12
-8"
>
<createTable
tableName=
"EAMASSETSTATEMODEL"
>
<createTable
tableName=
"EAMASSETSTATEMODEL"
>
<column
name=
"EAMASSETSTATEMODELID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"EAMASSETSTATEMODELID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_EAMASSETSTATEMODEL_EAMASSET"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_EAMASSETSTATEMODEL_EAMASSET"
/>
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
<!--输出实体[EAMASSETSTATEMODELLINE]数据结构 -->
<!--输出实体[EAMASSETSTATEMODELLINE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamassetstatemodelline-
8
-9"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamassetstatemodelline-
14
-9"
>
<createTable
tableName=
"EAMASSETSTATEMODELLINE"
>
<createTable
tableName=
"EAMASSETSTATEMODELLINE"
>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
</column>
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
<!--输出实体[EAMLOCATION]数据结构 -->
<!--输出实体[EAMLOCATION]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamlocation-
58
-11"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamlocation-
61
-11"
>
<createTable
tableName=
"EAMLOCATION"
>
<createTable
tableName=
"EAMLOCATION"
>
<column
name=
"EAMLOCATIONID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"EAMLOCATIONID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_EAMLOCATION_EAMLOCATIONID"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_EAMLOCATION_EAMLOCATIONID"
/>
...
@@ -256,7 +256,7 @@
...
@@ -256,7 +256,7 @@
<!--输出实体[EAMLOCATIONSTATE]数据结构 -->
<!--输出实体[EAMLOCATIONSTATE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamlocationstate-3
1
-12"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamlocationstate-3
7
-12"
>
<createTable
tableName=
"EAMLOCATIONSTATE"
>
<createTable
tableName=
"EAMLOCATIONSTATE"
>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
</column>
...
@@ -280,7 +280,7 @@
...
@@ -280,7 +280,7 @@
<!--输出实体[EAMLOCATIONSTATEMODEL]数据结构 -->
<!--输出实体[EAMLOCATIONSTATEMODEL]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamlocationstatemodel-2
1
-13"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamlocationstatemodel-2
2
-13"
>
<createTable
tableName=
"EAMLOCATIONSTATEMODEL"
>
<createTable
tableName=
"EAMLOCATIONSTATEMODEL"
>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
</column>
...
@@ -553,19 +553,19 @@
...
@@ -553,19 +553,19 @@
</changeSet>
</changeSet>
<!--输出实体[EAMAPPLY]外键关系 -->
<!--输出实体[EAMAPPLY]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamapply-
8
-25"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamapply-
9
-25"
>
<addForeignKeyConstraint
baseColumnNames=
"EAMAPPLYTYPEID"
baseTableName=
"EAMAPPLY"
constraintName=
"DER1N_EAMAPPLY_EAMAPPLYTYPE_EA"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EAMAPPLYTYPEID"
referencedTableName=
"EAMAPPLYTYPE"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"EAMAPPLYTYPEID"
baseTableName=
"EAMAPPLY"
constraintName=
"DER1N_EAMAPPLY_EAMAPPLYTYPE_EA"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EAMAPPLYTYPEID"
referencedTableName=
"EAMAPPLYTYPE"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamapply-
8
-26"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamapply-
9
-26"
>
<addForeignKeyConstraint
baseColumnNames=
"ASSETID"
baseTableName=
"EAMAPPLY"
constraintName=
"DER1N_EAMAPPLY_EAMASSET_ASSETI"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ASSETID"
referencedTableName=
"ASSET"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"ASSETID"
baseTableName=
"EAMAPPLY"
constraintName=
"DER1N_EAMAPPLY_EAMASSET_ASSETI"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ASSETID"
referencedTableName=
"ASSET"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamapply-
8
-27"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamapply-
9
-27"
>
<addForeignKeyConstraint
baseColumnNames=
"EAMLOCATIONID"
baseTableName=
"EAMAPPLY"
constraintName=
"DER1N_EAMAPPLY_EAMLOCATION_EAM"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EAMLOCATIONID"
referencedTableName=
"EAMLOCATION"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"EAMLOCATIONID"
baseTableName=
"EAMAPPLY"
constraintName=
"DER1N_EAMAPPLY_EAMLOCATION_EAM"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EAMLOCATIONID"
referencedTableName=
"EAMLOCATION"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[EAMAPPLYSTATE]外键关系 -->
<!--输出实体[EAMAPPLYSTATE]外键关系 -->
<!--输出实体[EAMAPPLYSTATEMODEL]外键关系 -->
<!--输出实体[EAMAPPLYSTATEMODEL]外键关系 -->
<!--输出实体[EAMAPPLYSTATEMODELLINE]外键关系 -->
<!--输出实体[EAMAPPLYSTATEMODELLINE]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamapplystatemodelline-
7
-28"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamapplystatemodelline-
8
-28"
>
<addForeignKeyConstraint
baseColumnNames=
"EAMAPPLYSTATEMODELID"
baseTableName=
"EAMAPPLYSTATEMODELLINE"
constraintName=
"DER1N_EAMAPPLYSTATEMODELLINE_E"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EAMAPPLYSTATEMODELID"
referencedTableName=
"EAMAPPLYSTATEMODEL"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"EAMAPPLYSTATEMODELID"
baseTableName=
"EAMAPPLYSTATEMODELLINE"
constraintName=
"DER1N_EAMAPPLYSTATEMODELLINE_E"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EAMAPPLYSTATEMODELID"
referencedTableName=
"EAMAPPLYSTATEMODEL"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[EAMAPPLYTYPE]外键关系 -->
<!--输出实体[EAMAPPLYTYPE]外键关系 -->
...
@@ -585,7 +585,7 @@
...
@@ -585,7 +585,7 @@
<!--输出实体[EAMASSETSTATE]外键关系 -->
<!--输出实体[EAMASSETSTATE]外键关系 -->
<!--输出实体[EAMASSETSTATEMODEL]外键关系 -->
<!--输出实体[EAMASSETSTATEMODEL]外键关系 -->
<!--输出实体[EAMASSETSTATEMODELLINE]外键关系 -->
<!--输出实体[EAMASSETSTATEMODELLINE]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamassetstatemodelline-
8
-34"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamassetstatemodelline-
14
-34"
>
<addForeignKeyConstraint
baseColumnNames=
"EAMASSETSTATEMODELID"
baseTableName=
"EAMASSETSTATEMODELLINE"
constraintName=
"DER1N_EAMASSETSTATEMODELLINE_E"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EAMASSETSTATEMODELID"
referencedTableName=
"EAMASSETSTATEMODEL"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"EAMASSETSTATEMODELID"
baseTableName=
"EAMASSETSTATEMODELLINE"
constraintName=
"DER1N_EAMASSETSTATEMODELLINE_E"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EAMASSETSTATEMODELID"
referencedTableName=
"EAMASSETSTATEMODEL"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[EAMASSETTYPE]外键关系 -->
<!--输出实体[EAMASSETTYPE]外键关系 -->
...
@@ -593,13 +593,13 @@
...
@@ -593,13 +593,13 @@
<addForeignKeyConstraint
baseColumnNames=
"EAMASSETSTATEMODELID"
baseTableName=
"EAMASSETTYPE"
constraintName=
"DER1N_EAMASSETTYPE_EAMASSETSTA"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EAMASSETSTATEMODELID"
referencedTableName=
"EAMASSETSTATEMODEL"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"EAMASSETSTATEMODELID"
baseTableName=
"EAMASSETTYPE"
constraintName=
"DER1N_EAMASSETTYPE_EAMASSETSTA"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EAMASSETSTATEMODELID"
referencedTableName=
"EAMASSETSTATEMODEL"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[EAMLOCATION]外键关系 -->
<!--输出实体[EAMLOCATION]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamlocation-
58
-37"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamlocation-
61
-37"
>
<addForeignKeyConstraint
baseColumnNames=
"EAMLOCATIONSTATEID"
baseTableName=
"EAMLOCATION"
constraintName=
"DER1N_EAMLOCATION_EAMLOCATIONS"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EAMLOCATIONSTATEID"
referencedTableName=
"EAMLOCATIONSTATE"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"EAMLOCATIONSTATEID"
baseTableName=
"EAMLOCATION"
constraintName=
"DER1N_EAMLOCATION_EAMLOCATIONS"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EAMLOCATIONSTATEID"
referencedTableName=
"EAMLOCATIONSTATE"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamlocation-
58
-38"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamlocation-
61
-38"
>
<addForeignKeyConstraint
baseColumnNames=
"EAMLOCATIONTYPEID"
baseTableName=
"EAMLOCATION"
constraintName=
"DER1N_EAMLOCATION_EAMLOCATIONT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EAMLOCATIONTYPEID"
referencedTableName=
"EAMLOCATIONTYPE"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"EAMLOCATIONTYPEID"
baseTableName=
"EAMLOCATION"
constraintName=
"DER1N_EAMLOCATION_EAMLOCATIONT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EAMLOCATIONTYPEID"
referencedTableName=
"EAMLOCATIONTYPE"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamlocation-
58
-39"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamlocation-
61
-39"
>
<addForeignKeyConstraint
baseColumnNames=
"PEAMLOCATIONID"
baseTableName=
"EAMLOCATION"
constraintName=
"DER1N_EAMLOCATION_EAMLOCATION_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EAMLOCATIONID"
referencedTableName=
"EAMLOCATION"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"PEAMLOCATIONID"
baseTableName=
"EAMLOCATION"
constraintName=
"DER1N_EAMLOCATION_EAMLOCATION_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EAMLOCATIONID"
referencedTableName=
"EAMLOCATION"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[EAMLOCATIONSTATE]外键关系 -->
<!--输出实体[EAMLOCATIONSTATE]外键关系 -->
...
...
assetmanagement-core/src/main/resources/mapper/asset/eamassetstatemodelline/EAMAssetStateModelLineMapper.xml
浏览文件 @
da6f898b
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"EAMAssetStateModelLineResultMap"
databaseId=
"mysql"
>
<select
id=
"selectById"
resultMap=
"EAMAssetStateModelLineResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`EAMASSETSTATEID`, t1.`EAMASSETSTATEMODELID`, t1.`EAMASSETSTATEMODELLINEID`, t1.`EAMASSETSTATEMODELLINENAME`, t
1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EAMASSETSTATEMODELLINE` t1
) t1 where eamassetstatemodellineid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`EAMASSETSTATEID`, t1.`EAMASSETSTATEMODELID`, t1.`EAMASSETSTATEMODELLINEID`, t1.`EAMASSETSTATEMODELLINENAME`, t
21.`EAMASSETSTATEMODELNAME`, t11.`EAMASSETSTATENAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EAMASSETSTATEMODELLINE` t1 LEFT JOIN EAMASSETSTATE t11 ON t1.EAMASSETSTATEID = t11.EAMASSETSTATEID LEFT JOIN EAMASSETSTATEMODEL t21 ON t1.EAMASSETSTATEMODELID = t21.EAMASSETSTATEMODELID
) t1 where eamassetstatemodellineid=#{id}]]>
</select>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
...
@@ -47,12 +47,12 @@
...
@@ -47,12 +47,12 @@
<!--数据查询[Default]-->
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`EAMASSETSTATEID`, t1.`EAMASSETSTATEMODELID`, t1.`EAMASSETSTATEMODELLINEID`, t1.`EAMASSETSTATEMODELLINENAME`, t
1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EAMASSETSTATEMODELLINE` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`EAMASSETSTATEID`, t1.`EAMASSETSTATEMODELID`, t1.`EAMASSETSTATEMODELLINEID`, t1.`EAMASSETSTATEMODELLINENAME`, t
21.`EAMASSETSTATEMODELNAME`, t11.`EAMASSETSTATENAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EAMASSETSTATEMODELLINE` t1 LEFT JOIN EAMASSETSTATE t11 ON t1.EAMASSETSTATEID = t11.EAMASSETSTATEID LEFT JOIN EAMASSETSTATEMODEL t21 ON t1.EAMASSETSTATEMODELID = t21.EAMASSETSTATEMODELID
]]>
]]>
</sql>
</sql>
<!--数据查询[View]-->
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`EAMASSETSTATEID`, t1.`EAMASSETSTATEMODELID`, t1.`EAMASSETSTATEMODELLINEID`, t1.`EAMASSETSTATEMODELLINENAME`, t
1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EAMASSETSTATEMODELLINE` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`EAMASSETSTATEID`, t1.`EAMASSETSTATEMODELID`, t1.`EAMASSETSTATEMODELLINEID`, t1.`EAMASSETSTATEMODELLINENAME`, t
21.`EAMASSETSTATEMODELNAME`, t11.`EAMASSETSTATENAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EAMASSETSTATEMODELLINE` t1 LEFT JOIN EAMASSETSTATE t11 ON t1.EAMASSETSTATEID = t11.EAMASSETSTATEID LEFT JOIN EAMASSETSTATEMODEL t21 ON t1.EAMASSETSTATEMODELID = t21.EAMASSETSTATEMODELID
]]>
]]>
</sql>
</sql>
</mapper>
</mapper>
...
...
assetmanagement-dependencies/pom.xml
浏览文件 @
da6f898b
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</parent>
</parent>
<properties>
<properties>
<!-- Spring Cloud Alibaba(2.
1.x.RELEASE) & Spring Cloud(Spring Cloud Greenwich) & Spring Boot(2.1
.x.RELEASE) compatibility -->
<!-- Spring Cloud Alibaba(2.
2.x.RELEASE) & Spring Cloud(Spring Cloud Greenwich) & Spring Boot(2.2
.x.RELEASE) compatibility -->
<spring-cloud-alibaba.version>
2.2.1.RELEASE
</spring-cloud-alibaba.version>
<spring-cloud-alibaba.version>
2.2.1.RELEASE
</spring-cloud-alibaba.version>
<spring-cloud-openfeign.version>
2.2.1.RELEASE
</spring-cloud-openfeign.version>
<spring-cloud-openfeign.version>
2.2.1.RELEASE
</spring-cloud-openfeign.version>
...
@@ -268,6 +268,31 @@
...
@@ -268,6 +268,31 @@
<version>
${baomidou-jobs.version}
</version>
<version>
${baomidou-jobs.version}
</version>
</dependency>
</dependency>
<!-- 阿里seata分布式事务 -->
<dependency>
<groupId>
io.seata
</groupId>
<artifactId>
seata-spring-boot-starter
</artifactId>
<version>
${alibaba-seata.version}
</version>
<exclusions>
<exclusion>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-alibaba-seata
</artifactId>
<version>
${spring-cloud-alibaba.version}
</version>
<exclusions>
<exclusion>
<groupId>
io.seata
</groupId>
<artifactId>
seata-spring-boot-starter
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencies>
</dependencyManagement>
</dependencyManagement>
...
@@ -336,31 +361,6 @@
...
@@ -336,31 +361,6 @@
</dependency>
</dependency>
<!-- 阿里seata分布式事务 -->
<dependency>
<groupId>
io.seata
</groupId>
<artifactId>
seata-spring-boot-starter
</artifactId>
<version>
${alibaba-seata.version}
</version>
<exclusions>
<exclusion>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-alibaba-seata
</artifactId>
<version>
${spring-cloud-alibaba.version}
</version>
<exclusions>
<exclusion>
<groupId>
io.seata
</groupId>
<artifactId>
seata-spring-boot-starter
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
assetmanagement-provider/assetmanagement-provider-assetapi/src/main/java/cn/ibizlab/assetmanagement/assetapi/config/AssetApiAutoConfiguration.java
浏览文件 @
da6f898b
...
@@ -13,7 +13,11 @@ import org.springframework.web.servlet.DispatcherServlet;
...
@@ -13,7 +13,11 @@ import org.springframework.web.servlet.DispatcherServlet;
import
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
;
import
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
;
import
java.util.concurrent.Executor
;
import
java.util.concurrent.Executor
;
import
java.util.concurrent.ThreadPoolExecutor
;
import
java.util.concurrent.ThreadPoolExecutor
;
import
org.springframework.context.annotation.Import
;
@Import
({
com
.
alibaba
.
cloud
.
seata
.
feign
.
SeataFeignClientAutoConfiguration
.
class
,
})
@Configuration
@Configuration
@ConditionalOnClass
(
AssetApiRestConfiguration
.
class
)
@ConditionalOnClass
(
AssetApiRestConfiguration
.
class
)
@ConditionalOnWebApplication
@ConditionalOnWebApplication
...
...
assetmanagement-provider/assetmanagement-provider-assetapi/src/main/java/cn/ibizlab/assetmanagement/assetapi/dto/EAMAssetStateModelLineDTO.java
浏览文件 @
da6f898b
...
@@ -89,6 +89,22 @@ public class EAMAssetStateModelLineDTO extends DTOBase implements Serializable {
...
@@ -89,6 +89,22 @@ public class EAMAssetStateModelLineDTO extends DTOBase implements Serializable {
@JsonProperty
(
"eamassetstateid"
)
@JsonProperty
(
"eamassetstateid"
)
private
String
eamassetstateid
;
private
String
eamassetstateid
;
/**
* 属性 [EAMASSETSTATENAME]
*
*/
@JSONField
(
name
=
"eamassetstatename"
)
@JsonProperty
(
"eamassetstatename"
)
private
String
eamassetstatename
;
/**
* 属性 [EAMASSETSTATEMODELNAME]
*
*/
@JSONField
(
name
=
"eamassetstatemodelname"
)
@JsonProperty
(
"eamassetstatemodelname"
)
private
String
eamassetstatemodelname
;
/**
/**
* 设置 [EAMASSETSTATEMODELLINENAME]
* 设置 [EAMASSETSTATEMODELLINENAME]
...
...
assetmanagement-provider/assetmanagement-provider-assetapi/src/main/java/cn/ibizlab/assetmanagement/assetapi/iBizAssetManagementAssetApiApplication.java
浏览文件 @
da6f898b
...
@@ -33,7 +33,6 @@ import java.util.List;
...
@@ -33,7 +33,6 @@ import java.util.List;
org
.
springframework
.
boot
.
autoconfigure
.
mongo
.
MongoAutoConfiguration
.
class
,
org
.
springframework
.
boot
.
autoconfigure
.
mongo
.
MongoAutoConfiguration
.
class
,
})
})
@Import
({
@Import
({
com
.
alibaba
.
cloud
.
seata
.
feign
.
SeataFeignClientAutoConfiguration
.
class
,
org
.
springframework
.
cloud
.
openfeign
.
FeignClientsConfiguration
.
class
org
.
springframework
.
cloud
.
openfeign
.
FeignClientsConfiguration
.
class
})
})
@EnableFeignClients
(
basePackages
=
{
"cn.ibizlab.assetmanagement"
})
@EnableFeignClients
(
basePackages
=
{
"cn.ibizlab.assetmanagement"
})
...
...
assetmanagement-provider/pom.xml
浏览文件 @
da6f898b
...
@@ -24,6 +24,30 @@
...
@@ -24,6 +24,30 @@
<artifactId>
javax.servlet-api
</artifactId>
<artifactId>
javax.servlet-api
</artifactId>
<scope>
provided
</scope>
<scope>
provided
</scope>
</dependency>
</dependency>
<!-- 阿里seata分布式事务 -->
<dependency>
<groupId>
io.seata
</groupId>
<artifactId>
seata-spring-boot-starter
</artifactId>
<exclusions>
<exclusion>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-alibaba-seata
</artifactId>
<exclusions>
<exclusion>
<groupId>
io.seata
</groupId>
<artifactId>
seata-spring-boot-starter
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录