Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-health-science
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐俊
yn-health-science
Commits
99aecb9f
Commit
99aecb9f
authored
Dec 26, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
77
parent
a00e6447
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
ComExpertServiceImpl.java
...om/yiboshi/science/service/impl/ComExpertServiceImpl.java
+9
-5
No files found.
science-admin/src/main/java/com/yiboshi/science/service/impl/ComExpertServiceImpl.java
View file @
99aecb9f
...
@@ -164,7 +164,7 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
...
@@ -164,7 +164,7 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
comExpert
=
new
ComExpert
();
comExpert
=
new
ComExpert
();
comExpert
.
setId
(
dto
.
getId
());
comExpert
.
setId
(
dto
.
getId
());
comExpert
.
setRemark
(
dto
.
getRemark
());
comExpert
.
setRemark
(
dto
.
getRemark
());
if
(
dto
.
getReportState
()!=
null
)
{
if
(
dto
.
getReportState
()
!=
null
)
{
comExpert
.
setReportState
(
dto
.
getReportState
());
comExpert
.
setReportState
(
dto
.
getReportState
());
}
}
this
.
update
(
comExpert
);
this
.
update
(
comExpert
);
...
@@ -176,9 +176,13 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
...
@@ -176,9 +176,13 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
@Transactional
@Transactional
public
String
deleteExpert
(
ComExpertDTO
d
)
{
public
String
deleteExpert
(
ComExpertDTO
d
)
{
//systemUserRoleService.deleteById(d.getUserRoleId());
// this.deleteById(d.getId());
if
(
null
!=
d
.
getUserRoleId
())
// comExpertSpecService.deleteById(d.getId());
// comPersonService.deleteById(d.getId());
// systemUserService.deleteById(d.getId());
if
(
null
==
d
.
getUserRoleId
())
throw
new
BusinessException
(
"系统限制,专家暂时不能删除!"
);
throw
new
BusinessException
(
"系统限制,专家暂时不能删除!"
);
systemUserRoleService
.
deleteById
(
d
.
getUserRoleId
());
return
d
.
getUserRoleId
();
return
d
.
getUserRoleId
();
}
}
...
@@ -191,7 +195,7 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
...
@@ -191,7 +195,7 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
return
id
;
return
id
;
}
}
public
String
expertImport
(
List
<
ComExpertDTO
>
list
,
String
unitName
)
{
public
String
expertImport
(
List
<
ComExpertDTO
>
list
,
String
unitName
)
{
try
{
try
{
//职称
//职称
List
<
SystemParameter
>
titleList
=
systemParameterService
.
getListByType
(
7
);
List
<
SystemParameter
>
titleList
=
systemParameterService
.
getListByType
(
7
);
...
@@ -234,7 +238,7 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
...
@@ -234,7 +238,7 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
e
.
setUnitId
(
SecurityUserHolder
.
getUnitId
());
e
.
setUnitId
(
SecurityUserHolder
.
getUnitId
());
e
.
setWorkUnit
(
unitName
);
e
.
setWorkUnit
(
unitName
);
e
.
setReportState
(
1
);
e
.
setReportState
(
1
);
}
else
{
}
else
{
e
.
setWorkUnit
(
e
.
getUnitName
());
e
.
setWorkUnit
(
e
.
getUnitName
());
e
.
setReportState
(
2
);
e
.
setReportState
(
2
);
}
}
...
...
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