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
29f625f2
Commit
29f625f2
authored
Dec 06, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
77
parent
de4f5efb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
2 deletions
+19
-2
ComExpert.java
...n/src/main/java/com/yiboshi/science/entity/ComExpert.java
+3
-0
ComExpertDTO.java
...main/java/com/yiboshi/science/param/dto/ComExpertDTO.java
+3
-0
ComExpertQueryVO.java
...ava/com/yiboshi/science/param/query/ComExpertQueryVO.java
+6
-1
ComExpertController.java
...java/com/yiboshi/science/rest/v1/ComExpertController.java
+2
-0
ComExpertServiceImpl.java
...om/yiboshi/science/service/impl/ComExpertServiceImpl.java
+5
-1
No files found.
science-admin/src/main/java/com/yiboshi/science/entity/ComExpert.java
View file @
29f625f2
...
@@ -18,6 +18,9 @@ public class ComExpert extends BaseEntity {
...
@@ -18,6 +18,9 @@ public class ComExpert extends BaseEntity {
/** 专家状态 1 启用 2 停用 */
/** 专家状态 1 启用 2 停用 */
@ApiModelProperty
(
value
=
"专家状态 1 启用 2 停用"
,
position
=
7
)
@ApiModelProperty
(
value
=
"专家状态 1 启用 2 停用"
,
position
=
7
)
private
Integer
expertState
;
private
Integer
expertState
;
/** 上报状态 1 未上报 2 已上报 */
@ApiModelProperty
(
value
=
"上报状态 1 未上报 2 已上报"
,
position
=
7
)
private
Integer
reportState
;
/** 备注 */
/** 备注 */
@ApiModelProperty
(
value
=
"备注"
,
position
=
19
)
@ApiModelProperty
(
value
=
"备注"
,
position
=
19
)
@Length
(
max
=
200
,
message
=
"备注不能大于200"
)
@Length
(
max
=
200
,
message
=
"备注不能大于200"
)
...
...
science-admin/src/main/java/com/yiboshi/science/param/dto/ComExpertDTO.java
View file @
29f625f2
...
@@ -24,6 +24,9 @@ public class ComExpertDTO extends BaseDTO {
...
@@ -24,6 +24,9 @@ public class ComExpertDTO extends BaseDTO {
/** 专家状态 1 启用 2 停用 */
/** 专家状态 1 启用 2 停用 */
@ApiModelProperty
(
value
=
"专家状态 1 启用 2 停用"
,
position
=
3
)
@ApiModelProperty
(
value
=
"专家状态 1 启用 2 停用"
,
position
=
3
)
private
Integer
expertState
;
private
Integer
expertState
;
/** 上报状态 1 未上报 2 已上报 */
@ApiModelProperty
(
value
=
"上报状态 1 未上报 2 已上报"
,
position
=
7
)
private
Integer
reportState
;
/** 备注 */
/** 备注 */
@ApiModelProperty
(
value
=
"备注"
,
position
=
19
)
@ApiModelProperty
(
value
=
"备注"
,
position
=
19
)
@Length
(
max
=
200
,
message
=
"备注不能大于200"
)
@Length
(
max
=
200
,
message
=
"备注不能大于200"
)
...
...
science-admin/src/main/java/com/yiboshi/science/param/query/ComExpertQueryVO.java
View file @
29f625f2
...
@@ -25,16 +25,21 @@ public class ComExpertQueryVO extends PaginationVO {
...
@@ -25,16 +25,21 @@ public class ComExpertQueryVO extends PaginationVO {
/** 专家状态 1 启用 2 停用 */
/** 专家状态 1 启用 2 停用 */
@ApiModelProperty
(
value
=
"专家状态 1 启用 2 停用"
,
position
=
7
)
@ApiModelProperty
(
value
=
"专家状态 1 启用 2 停用"
,
position
=
7
)
private
Integer
expertState
;
private
Integer
expertState
;
/** 上报状态 1 未上报 2 已上报 */
@ApiModelProperty
(
value
=
"上报状态 1 未上报 2 已上报"
,
position
=
7
)
private
Integer
reportState
;
/** 备注 */
/** 备注 */
@ApiModelProperty
(
value
=
"备注"
,
position
=
19
)
@ApiModelProperty
(
value
=
"备注"
,
position
=
19
)
@Length
(
max
=
200
,
message
=
"备注不能大于200"
)
@Length
(
max
=
200
,
message
=
"备注不能大于200"
)
private
String
remark
;
private
String
remark
;
/** 专家状态 1 启用 2 停用 */
/** 专家状态 1 启用 2 停用 */
@ApiModelProperty
(
value
=
"专家状态 1 启用 2 停用"
,
position
=
4
)
@ApiModelProperty
(
value
=
"专家状态 1 启用 2 停用"
,
position
=
4
)
private
String
expertStateName
;
private
String
expertStateName
;
/** 上报状态 1 未上报 2 已上报 */
@ApiModelProperty
(
value
=
"上报状态 1 未上报 2 已上报"
,
position
=
7
)
private
Integer
reportStateName
;
/** 姓名 */
/** 姓名 */
@ExcelProperty
(
"姓名"
)
@ExcelProperty
(
"姓名"
)
...
...
science-admin/src/main/java/com/yiboshi/science/rest/v1/ComExpertController.java
View file @
29f625f2
...
@@ -54,6 +54,8 @@ public class ComExpertController extends BaseController<ComExpertService, ComExp
...
@@ -54,6 +54,8 @@ public class ComExpertController extends BaseController<ComExpertService, ComExp
vo
.
setRoleId
(
CommonEnum
.
systemRole
.
expert
.
getCode
().
toString
());
vo
.
setRoleId
(
CommonEnum
.
systemRole
.
expert
.
getCode
().
toString
());
if
(
SecurityUserHolder
.
getRoles
().
contains
(
CommonEnum
.
systemRole
.
unit
.
getCode
().
toString
()))
{
if
(
SecurityUserHolder
.
getRoles
().
contains
(
CommonEnum
.
systemRole
.
unit
.
getCode
().
toString
()))
{
vo
.
setUnitId
(
SecurityUserHolder
.
getUnitId
());
vo
.
setUnitId
(
SecurityUserHolder
.
getUnitId
());
}
else
{
vo
.
setReportState
(
2
);
}
}
Pagination
<
ComExpertDTO
>
page
=
comExpertService
.
getListByPage
(
vo
);
Pagination
<
ComExpertDTO
>
page
=
comExpertService
.
getListByPage
(
vo
);
if
(
null
!=
page
&&
null
!=
page
.
getDataList
()
&&
page
.
getDataList
().
size
()
!=
0
)
{
if
(
null
!=
page
&&
null
!=
page
.
getDataList
()
&&
page
.
getDataList
().
size
()
!=
0
)
{
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComExpertServiceImpl.java
View file @
29f625f2
...
@@ -47,7 +47,10 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
...
@@ -47,7 +47,10 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
@Override
@Override
protected
void
setCriteriaForQuery
(
ComExpertQueryVO
vo
,
QueryWrapper
<
ComExpertQueryVO
>
criteria
)
{
protected
void
setCriteriaForQuery
(
ComExpertQueryVO
vo
,
QueryWrapper
<
ComExpertQueryVO
>
criteria
)
{
if
(
Objects
.
nonNull
(
vo
.
getUnitId
()))
{
if
(
Objects
.
nonNull
(
vo
.
getUnitId
()))
{
criteria
.
eq
(
"e.unit_id"
,
vo
.
getUnitId
());
criteria
.
eq
(
"a.unit_id"
,
vo
.
getUnitId
());
}
if
(
Objects
.
nonNull
(
vo
.
getReportState
()))
{
criteria
.
eq
(
"a.report_state"
,
vo
.
getReportState
());
}
}
if
(
Objects
.
nonNull
(
vo
.
getCertId
()))
{
if
(
Objects
.
nonNull
(
vo
.
getCertId
()))
{
criteria
.
eq
(
"e.cert_id"
,
vo
.
getCertId
());
criteria
.
eq
(
"e.cert_id"
,
vo
.
getCertId
());
...
@@ -107,6 +110,7 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
...
@@ -107,6 +110,7 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
@Transactional
@Transactional
public
String
insert
(
ComExpertDTO
dto
)
{
public
String
insert
(
ComExpertDTO
dto
)
{
dto
.
setReportState
(
1
);
dto
.
setCertId
(
dto
.
getCertId
().
toLowerCase
());
dto
.
setCertId
(
dto
.
getCertId
().
toLowerCase
());
ComPerson
comPerson
=
comPersonService
.
getPersonByCertId
(
dto
.
getCertId
());
ComPerson
comPerson
=
comPersonService
.
getPersonByCertId
(
dto
.
getCertId
());
ComExpert
comExpert
=
new
ComExpert
();
ComExpert
comExpert
=
new
ComExpert
();
...
...
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