Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
0afbbf31
提交
0afbbf31
authored
2月 23, 2021
作者:
fit2cloud-chenyw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 修改组织创建时间类型
上级
638ecb9b
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
44 行增加
和
45 行删除
+44
-45
SysDept.java
backend/src/main/java/io/dataease/base/domain/SysDept.java
+3
-3
SysDeptExample.java
...src/main/java/io/dataease/base/domain/SysDeptExample.java
+20
-21
SysDeptMapper.xml
...d/src/main/java/io/dataease/base/mapper/SysDeptMapper.xml
+15
-14
SysDeptController.java
...in/java/io/dataease/controller/sys/SysDeptController.java
+0
-1
DeptService.java
...nd/src/main/java/io/dataease/service/sys/DeptService.java
+2
-2
V8__system.sql
backend/src/main/resources/db/migration/V8__system.sql
+2
-2
dept.vue
frontend/src/business/components/settings/sys/dept.vue
+2
-2
没有找到文件。
backend/src/main/java/io/dataease/base/domain/SysDept.java
浏览文件 @
0afbbf31
package
io
.
dataease
.
base
.
domain
;
import
java.io.Serializable
;
import
java.util.Date
;
import
lombok.Data
;
@Data
...
...
@@ -22,9 +21,9 @@ public class SysDept implements Serializable {
private
String
updateBy
;
private
Date
createTime
;
private
Long
createTime
;
private
Date
updateTime
;
private
Long
updateTime
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
backend/src/main/java/io/dataease/base/domain/SysDeptExample.java
浏览文件 @
0afbbf31
package
io
.
dataease
.
base
.
domain
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
SysDeptExample
{
...
...
@@ -625,52 +624,52 @@ public class SysDeptExample {
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeEqualTo
(
Date
value
)
{
public
Criteria
andCreateTimeEqualTo
(
Long
value
)
{
addCriterion
(
"create_time ="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotEqualTo
(
Date
value
)
{
public
Criteria
andCreateTimeNotEqualTo
(
Long
value
)
{
addCriterion
(
"create_time <>"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThan
(
Date
value
)
{
public
Criteria
andCreateTimeGreaterThan
(
Long
value
)
{
addCriterion
(
"create_time >"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThanOrEqualTo
(
Date
value
)
{
public
Criteria
andCreateTimeGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"create_time >="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThan
(
Date
value
)
{
public
Criteria
andCreateTimeLessThan
(
Long
value
)
{
addCriterion
(
"create_time <"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThanOrEqualTo
(
Date
value
)
{
public
Criteria
andCreateTimeLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"create_time <="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIn
(
List
<
Date
>
values
)
{
public
Criteria
andCreateTimeIn
(
List
<
Long
>
values
)
{
addCriterion
(
"create_time in"
,
values
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotIn
(
List
<
Date
>
values
)
{
public
Criteria
andCreateTimeNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"create_time not in"
,
values
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeBetween
(
Date
value1
,
Date
value2
)
{
public
Criteria
andCreateTimeBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"create_time between"
,
value1
,
value2
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
public
Criteria
andCreateTimeNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"create_time not between"
,
value1
,
value2
,
"createTime"
);
return
(
Criteria
)
this
;
}
...
...
@@ -685,52 +684,52 @@ public class SysDeptExample {
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeEqualTo
(
Date
value
)
{
public
Criteria
andUpdateTimeEqualTo
(
Long
value
)
{
addCriterion
(
"update_time ="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotEqualTo
(
Date
value
)
{
public
Criteria
andUpdateTimeNotEqualTo
(
Long
value
)
{
addCriterion
(
"update_time <>"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThan
(
Date
value
)
{
public
Criteria
andUpdateTimeGreaterThan
(
Long
value
)
{
addCriterion
(
"update_time >"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
Date
value
)
{
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"update_time >="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThan
(
Date
value
)
{
public
Criteria
andUpdateTimeLessThan
(
Long
value
)
{
addCriterion
(
"update_time <"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
Date
value
)
{
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"update_time <="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIn
(
List
<
Date
>
values
)
{
public
Criteria
andUpdateTimeIn
(
List
<
Long
>
values
)
{
addCriterion
(
"update_time in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotIn
(
List
<
Date
>
values
)
{
public
Criteria
andUpdateTimeNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"update_time not in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeBetween
(
Date
value1
,
Date
value2
)
{
public
Criteria
andUpdateTimeBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"update_time between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
public
Criteria
andUpdateTimeNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"update_time not between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
...
...
backend/src/main/java/io/dataease/base/mapper/SysDeptMapper.xml
浏览文件 @
0afbbf31
...
...
@@ -10,8 +10,8 @@
<result
column=
"enabled"
jdbcType=
"BIT"
property=
"enabled"
/>
<result
column=
"create_by"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"update_by"
jdbcType=
"VARCHAR"
property=
"updateBy"
/>
<result
column=
"create_time"
jdbcType=
"
TIMESTAMP
"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"
TIMESTAMP
"
property=
"updateTime"
/>
<result
column=
"create_time"
jdbcType=
"
BIGINT
"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"
BIGINT
"
property=
"updateTime"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
...
...
@@ -112,8 +112,8 @@
update_time)
values (#{deptId,jdbcType=BIGINT}, #{pid,jdbcType=BIGINT}, #{subCount,jdbcType=INTEGER},
#{name,jdbcType=VARCHAR}, #{deptSort,jdbcType=INTEGER}, #{enabled,jdbcType=BIT},
#{createBy,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR}, #{createTime,jdbcType=
TIMESTAMP
},
#{updateTime,jdbcType=
TIMESTAMP
})
#{createBy,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR}, #{createTime,jdbcType=
BIGINT
},
#{updateTime,jdbcType=
BIGINT
})
</insert>
<insert
id=
"insertSelective"
parameterType=
"io.dataease.base.domain.SysDept"
>
insert into sys_dept
...
...
@@ -175,10 +175,10 @@
#{updateBy,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=
TIMESTAMP
},
#{createTime,jdbcType=
BIGINT
},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=
TIMESTAMP
},
#{updateTime,jdbcType=
BIGINT
},
</if>
</trim>
</insert>
...
...
@@ -216,10 +216,10 @@
update_by = #{record.updateBy,jdbcType=VARCHAR},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=
TIMESTAMP
},
create_time = #{record.createTime,jdbcType=
BIGINT
},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=
TIMESTAMP
},
update_time = #{record.updateTime,jdbcType=
BIGINT
},
</if>
</set>
<if
test=
"_parameter != null"
>
...
...
@@ -236,8 +236,8 @@
enabled = #{record.enabled,jdbcType=BIT},
create_by = #{record.createBy,jdbcType=VARCHAR},
update_by = #{record.updateBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=
TIMESTAMP
},
update_time = #{record.updateTime,jdbcType=
TIMESTAMP
}
create_time = #{record.createTime,jdbcType=
BIGINT
},
update_time = #{record.updateTime,jdbcType=
BIGINT
}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -267,10 +267,10 @@
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=
TIMESTAMP
},
create_time = #{createTime,jdbcType=
BIGINT
},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=
TIMESTAMP
},
update_time = #{updateTime,jdbcType=
BIGINT
},
</if>
</set>
where dept_id = #{deptId,jdbcType=BIGINT}
...
...
@@ -284,8 +284,8 @@
enabled = #{enabled,jdbcType=BIT},
create_by = #{createBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=
TIMESTAMP
},
update_time = #{updateTime,jdbcType=
TIMESTAMP
}
create_time = #{createTime,jdbcType=
BIGINT
},
update_time = #{updateTime,jdbcType=
BIGINT
}
where dept_id = #{deptId,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
backend/src/main/java/io/dataease/controller/sys/SysDeptController.java
浏览文件 @
0afbbf31
...
...
@@ -12,7 +12,6 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.stream.Collectors
;
...
...
backend/src/main/java/io/dataease/service/sys/DeptService.java
浏览文件 @
0afbbf31
...
...
@@ -50,7 +50,7 @@ public class DeptService {
if
(
deptCreateRequest
.
isTop
()){
sysDept
.
setPid
(
DEPT_ROOT_PID
);
}
Date
now
=
new
Date
();
long
now
=
System
.
currentTimeMillis
();
sysDept
.
setCreateTime
(
now
);
sysDept
.
setUpdateTime
(
now
);
sysDept
.
setCreateBy
(
null
);
...
...
@@ -92,7 +92,7 @@ public class DeptService {
if
(
deptCreateRequest
.
isTop
()){
sysDept
.
setPid
(
DEPT_ROOT_PID
);
}
sysDept
.
setUpdateTime
(
new
Date
());
sysDept
.
setUpdateTime
(
System
.
currentTimeMillis
());
sysDept
.
setUpdateBy
(
null
);
Long
deptId
=
sysDept
.
getDeptId
();
SysDept
dept_old
=
sysDeptMapper
.
selectByPrimaryKey
(
deptId
);
...
...
backend/src/main/resources/db/migration/V8__system.sql
浏览文件 @
0afbbf31
...
...
@@ -8,8 +8,8 @@ CREATE TABLE IF NOT EXISTS `sys_dept` (
`enabled`
bit
(
1
)
NOT
NULL
COMMENT
'状态'
,
`create_by`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'创建者'
,
`update_by`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'更新者'
,
`create_time`
datetime
DEFAULT
NULL
COMMENT
'创建日期'
,
`update_time`
datetime
DEFAULT
NULL
COMMENT
'更新时间'
,
`create_time`
bigint
(
13
)
DEFAULT
NULL
COMMENT
'创建日期'
,
`update_time`
bigint
(
13
)
DEFAULT
NULL
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`dept_id`
)
USING
BTREE
,
KEY
`inx_pid`
(
`pid`
),
KEY
`inx_enabled`
(
`enabled`
)
...
...
frontend/src/business/components/settings/sys/dept.vue
浏览文件 @
0afbbf31
...
...
@@ -31,8 +31,8 @@
</
template
>
</el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建日期"
>
<
template
slot-scope
=
"scope"
>
<span>
{{
scope
.
row
.
createTim
e
}}
</span>
<
template
v-slot:default
=
"scope"
>
<span>
{{
scope
.
row
.
createTime
|
timestampFormatDat
e
}}
</span>
</
template
>
</el-table-column>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论