Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
资
资产管理
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
资产管理
提交
56fae8ab
提交
56fae8ab
编写于
8月 05, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lab_gzf 部署微服务应用
上级
93e5cc08
变更
11
显示空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
177 行增加
和
22 行删除
+177
-22
eamapply.ts
app_AssetManagement/src/interface/entity/eamapply.ts
+24
-0
eamapply_en_US.ts
...ent/src/locale/lanres/entities/eamapply/eamapply_en_US.ts
+3
-0
eamapply_zh_CN.ts
...ent/src/locale/lanres/entities/eamapply/eamapply_zh_CN.ts
+3
-0
eamasset-ui-service-base.ts
...gement/src/uiservice/eamasset/eamasset-ui-service-base.ts
+2
-0
main-info-dashboard.html
...ets/eamasset/main-info-dashboard/main-info-dashboard.html
+5
-5
main-info-dashboard.html
.../eamlocation/main-info-dashboard/main-info-dashboard.html
+5
-5
board-001-dashboard.html
...-parts-group/board-001-dashboard/board-001-dashboard.html
+5
-5
EAMApply.java
...n/ibizlab/assetmanagement/core/apply/domain/EAMApply.java
+67
-0
h2_table.xml
...management-core/src/main/resources/liquibase/h2_table.xml
+10
-4
EAMApplyMapper.xml
...c/main/resources/mapper/apply/eamapply/EAMApplyMapper.xml
+3
-3
EAMApplyDTO.java
.../cn/ibizlab/assetmanagement/assetapi/dto/EAMApplyDTO.java
+50
-0
未找到文件。
app_AssetManagement/src/interface/entity/eamapply.ts
浏览文件 @
56fae8ab
...
...
@@ -77,4 +77,28 @@ export interface EAMApply {
* @memberof EAMApply
*/
assetid
?:
any
;
/**
* 描述
*
* @returns {*}
* @memberof EAMApply
*/
description
?:
any
;
/**
* 希望开始时间
*
* @returns {*}
* @memberof EAMApply
*/
begintime
?:
any
;
/**
* 希望结束时间
*
* @returns {*}
* @memberof EAMApply
*/
endtime
?:
any
;
}
\ No newline at end of file
app_AssetManagement/src/locale/lanres/entities/eamapply/eamapply_en_US.ts
浏览文件 @
56fae8ab
...
...
@@ -10,5 +10,8 @@ export default {
eamapplytypeid
:
"维护申请类型标识"
,
eamlocationid
:
"功能位置标识"
,
assetid
:
"资产标识"
,
description
:
"描述"
,
begintime
:
"希望开始时间"
,
endtime
:
"希望结束时间"
,
},
};
\ No newline at end of file
app_AssetManagement/src/locale/lanres/entities/eamapply/eamapply_zh_CN.ts
浏览文件 @
56fae8ab
...
...
@@ -9,5 +9,8 @@ export default {
eamapplytypeid
:
"维护申请类型标识"
,
eamlocationid
:
"功能位置标识"
,
assetid
:
"资产标识"
,
description
:
"描述"
,
begintime
:
"希望开始时间"
,
endtime
:
"希望结束时间"
,
},
};
\ No newline at end of file
app_AssetManagement/src/uiservice/eamasset/eamasset-ui-service-base.ts
浏览文件 @
56fae8ab
...
...
@@ -180,6 +180,7 @@ export default class EAMAssetUIServiceBase extends UIService {
viewname
:
'eamasset-edit-view'
,
height
:
0
,
width
:
0
,
title
:
actionContext
.
$t
(
'entities.eamasset.views.editview.title'
),
};
openPopupModal
(
view
,
data
);
}
...
...
@@ -367,6 +368,7 @@ export default class EAMAssetUIServiceBase extends UIService {
viewname
:
'eamasset-quick-create-view'
,
height
:
0
,
width
:
0
,
title
:
actionContext
.
$t
(
'entities.eamasset.views.quickcreateview.title'
),
placement
:
'DRAWER_RIGHT'
,
};
openDrawer
(
view
,
data
);
...
...
app_AssetManagement/src/widgets/eamasset/main-info-dashboard/main-info-dashboard.html
浏览文件 @
56fae8ab
...
...
@@ -10,7 +10,7 @@
<row>
<i-col
:md=
"{ span: 24, offset: 0 }"
>
<div
class=
"portlet-without-title"
>
<card
class=
"portlet-card custom-card"
:bordered=
"false"
dis-hover
:padding=
"1
0"
>
<card
class=
"portlet-card"
:bordered=
"false"
dis-hover
:padding=
"
0"
>
<span>
<view
_dashboard_sysportlet1
:viewState=
"viewState"
...
...
app_AssetManagement/src/widgets/eamlocation/main-info-dashboard/main-info-dashboard.html
浏览文件 @
56fae8ab
...
...
@@ -10,7 +10,7 @@
<row>
<i-col
:md=
"{ span: 24, offset: 0 }"
>
<div
class=
"portlet-without-title"
>
<card
class=
"portlet-card custom-card"
:bordered=
"false"
dis-hover
:padding=
"1
0"
>
<card
class=
"portlet-card"
:bordered=
"false"
dis-hover
:padding=
"
0"
>
<span>
<view
_dashboard_sysportlet1
:viewState=
"viewState"
...
...
app_AssetManagement/src/widgets/eamspare-parts-group/board-001-dashboard/board-001-dashboard.html
浏览文件 @
56fae8ab
...
...
@@ -10,7 +10,7 @@
<row>
<i-col
:md=
"{ span: 24, offset: 0 }"
>
<div
class=
"portlet-without-title"
>
<card
class=
"portlet-card custom-card"
:bordered=
"false"
dis-hover
:padding=
"1
0"
>
<card
class=
"portlet-card"
:bordered=
"false"
dis-hover
:padding=
"
0"
>
<span>
<view
_dashboard_sysportlet1
:viewState=
"viewState"
...
...
assetmanagement-core/src/main/java/cn/ibizlab/assetmanagement/core/apply/domain/EAMApply.java
浏览文件 @
56fae8ab
...
...
@@ -110,6 +110,29 @@ public class EAMApply extends EntityMP implements Serializable {
@JSONField
(
name
=
"assetid"
)
@JsonProperty
(
"assetid"
)
private
String
assetid
;
/**
* 描述
*/
@TableField
(
value
=
"description"
)
@JSONField
(
name
=
"description"
)
@JsonProperty
(
"description"
)
private
String
description
;
/**
* 希望开始时间
*/
@TableField
(
value
=
"begintime"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"begintime"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"begintime"
)
private
Timestamp
begintime
;
/**
* 希望结束时间
*/
@TableField
(
value
=
"endtime"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"endtime"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"endtime"
)
private
Timestamp
endtime
;
/**
*
...
...
@@ -169,6 +192,50 @@ public class EAMApply extends EntityMP implements Serializable {
this
.
modify
(
"assetid"
,
assetid
);
}
/**
* 设置 [描述]
*/
public
void
setDescription
(
String
description
){
this
.
description
=
description
;
this
.
modify
(
"description"
,
description
);
}
/**
* 设置 [希望开始时间]
*/
public
void
setBegintime
(
Timestamp
begintime
){
this
.
begintime
=
begintime
;
this
.
modify
(
"begintime"
,
begintime
);
}
/**
* 格式化日期 [希望开始时间]
*/
public
String
formatBegintime
(){
if
(
this
.
begintime
==
null
)
{
return
null
;
}
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
return
sdf
.
format
(
begintime
);
}
/**
* 设置 [希望结束时间]
*/
public
void
setEndtime
(
Timestamp
endtime
){
this
.
endtime
=
endtime
;
this
.
modify
(
"endtime"
,
endtime
);
}
/**
* 格式化日期 [希望结束时间]
*/
public
String
formatEndtime
(){
if
(
this
.
endtime
==
null
)
{
return
null
;
}
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
return
sdf
.
format
(
endtime
);
}
}
...
...
assetmanagement-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
56fae8ab
...
...
@@ -4,7 +4,7 @@
<!--输出实体[EAMAPPLY]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamapply-1
1
-1"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-eamapply-1
4
-1"
>
<createTable
tableName=
"EAMAPPLY"
>
<column
name=
"UPDATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
...
...
@@ -25,6 +25,12 @@
</column>
<column
name=
"ASSETID"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"DESCRIPTION"
remarks=
""
type=
"VARCHAR(2000)"
>
</column>
<column
name=
"BEGINTIME"
remarks=
""
type=
"DATETIME"
>
</column>
<column
name=
"ENDTIME"
remarks=
""
type=
"DATETIME"
>
</column>
</createTable>
</changeSet>
...
...
@@ -677,13 +683,13 @@
</changeSet>
<!--输出实体[EAMAPPLY]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamapply-1
1
-30"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamapply-1
4
-30"
>
<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
author=
"a_LAB01_e85d8801c"
id=
"fk-eamapply-1
1
-31"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamapply-1
4
-31"
>
<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
author=
"a_LAB01_e85d8801c"
id=
"fk-eamapply-1
1
-32"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-eamapply-1
4
-32"
>
<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>
<!--输出实体[EAMAPPLYSTATE]外键关系 -->
...
...
assetmanagement-core/src/main/resources/mapper/apply/eamapply/EAMApplyMapper.xml
浏览文件 @
56fae8ab
...
...
@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"EAMApplyResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`ASSETID`, t1.`
CREATEDATE`, t1.`CREATEMAN`, t1.`EAMAPPLYID`, t1.`EAMAPPLYNAME`, t1.`EAMAPPLYTYPEID`, t1.`EAMLOCATIONID
`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EAMAPPLY` t1 ) t1 where eamapplyid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`ASSETID`, t1.`
BEGINTIME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DESCRIPTION`, t1.`EAMAPPLYID`, t1.`EAMAPPLYNAME`, t1.`EAMAPPLYTYPEID`, t1.`EAMLOCATIONID`, t1.`ENDTIME
`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EAMAPPLY` t1 ) t1 where eamapplyid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
...
...
@@ -57,12 +57,12 @@
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`ASSETID`, t1.`
CREATEDATE`, t1.`CREATEMAN`, t1.`EAMAPPLYID`, t1.`EAMAPPLYNAME`, t1.`EAMAPPLYTYPEID`, t1.`EAMLOCATIONID
`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EAMAPPLY` t1
<![CDATA[ SELECT t1.`ASSETID`, t1.`
BEGINTIME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DESCRIPTION`, t1.`EAMAPPLYID`, t1.`EAMAPPLYNAME`, t1.`EAMAPPLYTYPEID`, t1.`EAMLOCATIONID`, t1.`ENDTIME
`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EAMAPPLY` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`ASSETID`, t1.`
CREATEDATE`, t1.`CREATEMAN`, t1.`EAMAPPLYID`, t1.`EAMAPPLYNAME`, t1.`EAMAPPLYTYPEID`, t1.`EAMLOCATIONID
`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EAMAPPLY` t1
<![CDATA[ SELECT t1.`ASSETID`, t1.`
BEGINTIME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DESCRIPTION`, t1.`EAMAPPLYID`, t1.`EAMAPPLYNAME`, t1.`EAMAPPLYTYPEID`, t1.`EAMLOCATIONID`, t1.`ENDTIME
`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EAMAPPLY` t1
]]>
</sql>
</mapper>
...
...
assetmanagement-provider/assetmanagement-provider-assetapi/src/main/java/cn/ibizlab/assetmanagement/assetapi/dto/EAMApplyDTO.java
浏览文件 @
56fae8ab
...
...
@@ -97,6 +97,32 @@ public class EAMApplyDTO extends DTOBase implements Serializable {
@JsonProperty
(
"assetid"
)
private
String
assetid
;
/**
* 属性 [DESCRIPTION]
*
*/
@JSONField
(
name
=
"description"
)
@JsonProperty
(
"description"
)
private
String
description
;
/**
* 属性 [BEGINTIME]
*
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"begintime"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"begintime"
)
private
Timestamp
begintime
;
/**
* 属性 [ENDTIME]
*
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"endtime"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"endtime"
)
private
Timestamp
endtime
;
/**
* 设置 [EAMAPPLYNAME]
...
...
@@ -130,6 +156,30 @@ public class EAMApplyDTO extends DTOBase implements Serializable {
this
.
modify
(
"assetid"
,
assetid
);
}
/**
* 设置 [DESCRIPTION]
*/
public
void
setDescription
(
String
description
){
this
.
description
=
description
;
this
.
modify
(
"description"
,
description
);
}
/**
* 设置 [BEGINTIME]
*/
public
void
setBegintime
(
Timestamp
begintime
){
this
.
begintime
=
begintime
;
this
.
modify
(
"begintime"
,
begintime
);
}
/**
* 设置 [ENDTIME]
*/
public
void
setEndtime
(
Timestamp
endtime
){
this
.
endtime
=
endtime
;
this
.
modify
(
"endtime"
,
endtime
);
}
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录