Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vehicle-quality-review
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王飞
vehicle-quality-review
Commits
e1a7a1c6
Commit
e1a7a1c6
authored
Apr 02, 2024
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wangdingyi' into 'dev'
部门管理添加地址,邮编 See merge request
!257
parents
9158eba2
81652c50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
2 deletions
+34
-2
SysDept.java
...ain/java/com/ruoyi/common/core/domain/entity/SysDept.java
+25
-1
SysDeptMapper.xml
...system/src/main/resources/mapper/system/SysDeptMapper.xml
+9
-1
No files found.
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java
View file @
e1a7a1c6
...
...
@@ -51,7 +51,13 @@ public class SysDept extends BaseEntity
/** 父部门名称 */
private
String
parentName
;
/** 地址 */
private
String
address
;
/** 邮编 */
private
String
postcode
;
/** 子部门 */
private
List
<
SysDept
>
children
=
new
ArrayList
<
SysDept
>();
...
...
@@ -181,6 +187,22 @@ public class SysDept extends BaseEntity
this
.
children
=
children
;
}
public
String
getAddress
()
{
return
address
;
}
public
void
setAddress
(
String
address
)
{
this
.
address
=
address
;
}
public
String
getPostcode
()
{
return
postcode
;
}
public
void
setPostcode
(
String
postcode
)
{
this
.
postcode
=
postcode
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
...
...
@@ -198,6 +220,8 @@ public class SysDept extends BaseEntity
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"address"
,
getAddress
())
.
append
(
"postcode"
,
getPostcode
())
.
toString
();
}
}
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
View file @
e1a7a1c6
...
...
@@ -20,10 +20,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"address"
column=
"address"
/>
<result
property=
"postcode"
column=
"postcode"
/>
</resultMap>
<sql
id=
"selectDeptVo"
>
select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time
select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time
, d.address, d.postcode
from sys_dept d
</sql>
...
...
@@ -99,6 +101,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"email != null and email != ''"
>
email,
</if>
<if
test=
"status != null"
>
status,
</if>
<if
test=
"createBy != null and createBy != ''"
>
create_by,
</if>
<if
test=
"address != null and address != ''"
>
address,
</if>
<if
test=
"postcode != null and postcode != ''"
>
postcode,
</if>
create_time
)values(
<if
test=
"deptId != null and deptId != 0"
>
#{deptId},
</if>
...
...
@@ -111,6 +115,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"email != null and email != ''"
>
#{email},
</if>
<if
test=
"status != null"
>
#{status},
</if>
<if
test=
"createBy != null and createBy != ''"
>
#{createBy},
</if>
<if
test=
"address != null and address != ''"
>
#{address},
</if>
<if
test=
"postcode != null and postcode != ''"
>
#{postcode},
</if>
sysdate()
)
</insert>
...
...
@@ -127,6 +133,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"email != null"
>
email = #{email},
</if>
<if
test=
"status != null and status != ''"
>
status = #{status},
</if>
<if
test=
"updateBy != null and updateBy != ''"
>
update_by = #{updateBy},
</if>
<if
test=
"address != null and address != ''"
>
address = #{address},
</if>
<if
test=
"postcode != null and postcode != ''"
>
postcode = #{postcode},
</if>
update_time = sysdate()
</set>
where dept_id = #{deptId}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment