Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-java
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PeiZhen-Java
peizhen-java
Commits
49806c7c
Commit
49806c7c
authored
Sep 25, 2023
by
sdif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加医院列表详细位置
parent
bb7f0db4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
1 deletions
+34
-1
pz-system/src/main/java/com/pz/merchant/service/impl/CompanyServiceImpl.java
+12
-0
pz-system/src/main/java/com/pz/merchant/service/impl/EmployeesServiceImpl.java
+9
-0
pz-system/src/main/java/com/pz/system/domain/Hospital.java
+4
-0
pz-system/src/main/java/com/pz/system/domain/bo/HospitalBo.java
+5
-0
pz-system/src/main/java/com/pz/system/domain/vo/HospitalVo.java
+4
-1
No files found.
pz-system/src/main/java/com/pz/merchant/service/impl/CompanyServiceImpl.java
View file @
49806c7c
...
...
@@ -10,6 +10,7 @@ import com.pz.common.core.domain.entity.SysUser;
import
com.pz.common.core.page.TableDataInfo
;
import
com.pz.common.core.domain.PageQuery
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.pz.common.enums.UserType
;
import
com.pz.common.exception.ServiceException
;
import
com.pz.common.utils.StringUtils
;
import
com.pz.merchant.domain.Company
;
...
...
@@ -52,6 +53,8 @@ public class CompanyServiceImpl implements ICompanyService {
private
final
IncomeMapper
incomeMapper
;
private
final
SysUserMapper
sysUserMapper
;
/**
* 查询商户
*/
...
...
@@ -119,6 +122,15 @@ public class CompanyServiceImpl implements ICompanyService {
public
Boolean
updateByBo
(
CompanyBo
bo
)
{
Company
update
=
BeanUtil
.
toBean
(
bo
,
Company
.
class
);
validEntityBeforeSave
(
update
);
SysUser
sysUser
=
new
SysUser
();
sysUser
.
setUserId
(
update
.
getUid
().
longValue
());
if
(
update
.
getStatus
()
==
0
||
update
.
getStatus
()
==
2
){
sysUser
.
setUserType
(
UserType
.
XCX_USER
.
getUserType
());
sysUserMapper
.
updateById
(
sysUser
);
}
else
if
(
update
.
getStatus
()
==
1
){
sysUser
.
setUserType
(
UserType
.
APP_USER
.
getUserType
());
sysUserMapper
.
updateById
(
sysUser
);
}
return
baseMapper
.
updateById
(
update
)
>
0
;
}
...
...
pz-system/src/main/java/com/pz/merchant/service/impl/EmployeesServiceImpl.java
View file @
49806c7c
...
...
@@ -177,6 +177,15 @@ public class EmployeesServiceImpl implements IEmployeesService {
public
Boolean
updateByBo
(
EmployeesBo
bo
)
{
Employees
update
=
BeanUtil
.
toBean
(
bo
,
Employees
.
class
);
validEntityBeforeSave
(
update
);
SysUser
sysUser
=
new
SysUser
();
sysUser
.
setUserId
(
update
.
getUid
().
longValue
());
if
(
update
.
getStatus
()
==
0
||
update
.
getStatus
()
==
2
){
sysUser
.
setUserType
(
UserType
.
XCX_USER
.
getUserType
());
sysUserMapper
.
updateById
(
sysUser
);
}
else
if
(
update
.
getStatus
()
==
1
){
sysUser
.
setUserType
(
UserType
.
APP_USER
.
getUserType
());
sysUserMapper
.
updateById
(
sysUser
);
}
return
baseMapper
.
updateById
(
update
)
>
0
;
}
...
...
pz-system/src/main/java/com/pz/system/domain/Hospital.java
View file @
49806c7c
...
...
@@ -65,6 +65,10 @@ public class Hospital extends BaseEntity {
*/
private
Integer
status
;
/**
* 地图位置
*/
private
String
mapAddress
;
/**
* 删除标志(0代表存在 2代表删除)
*/
@TableLogic
...
...
pz-system/src/main/java/com/pz/system/domain/bo/HospitalBo.java
View file @
49806c7c
...
...
@@ -73,5 +73,10 @@ public class HospitalBo extends BaseEntity {
*/
private
Integer
status
;
/**
* 地图位置
*/
private
String
mapAddress
;
private
List
<
Integer
>
hisId
;
}
pz-system/src/main/java/com/pz/system/domain/vo/HospitalVo.java
View file @
49806c7c
...
...
@@ -101,7 +101,10 @@ public class HospitalVo {
* 城市名称
*/
private
String
cityName
;
/**
* 地图位置
*/
private
String
mapAddress
;
/**
* 关联科室集
*/
...
...
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