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
c4364fb1
Commit
c4364fb1
authored
Dec 16, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
77
parent
7940206f
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
30 additions
and
21 deletions
+30
-21
ComExpertSpec.java
...c/main/java/com/yiboshi/science/entity/ComExpertSpec.java
+3
-0
ComExpertDTO.java
...main/java/com/yiboshi/science/param/dto/ComExpertDTO.java
+0
-4
ComExpertSpecDTO.java
.../java/com/yiboshi/science/param/dto/ComExpertSpecDTO.java
+4
-3
ComProjectDTO.java
...ain/java/com/yiboshi/science/param/dto/ComProjectDTO.java
+2
-0
ComExpertSpecQueryVO.java
...com/yiboshi/science/param/query/ComExpertSpecQueryVO.java
+3
-0
ComExpertSpecService.java
...ava/com/yiboshi/science/service/ComExpertSpecService.java
+1
-1
ComExpertServiceImpl.java
...om/yiboshi/science/service/impl/ComExpertServiceImpl.java
+8
-6
ComExpertSpecServiceImpl.java
...iboshi/science/service/impl/ComExpertSpecServiceImpl.java
+7
-5
ComExpertSpecDAO.xml
science-admin/src/main/resources/mapper/ComExpertSpecDAO.xml
+2
-2
No files found.
science-admin/src/main/java/com/yiboshi/science/entity/ComExpertSpec.java
View file @
c4364fb1
...
@@ -19,4 +19,7 @@ public class ComExpertSpec extends BaseEntity {
...
@@ -19,4 +19,7 @@ public class ComExpertSpec extends BaseEntity {
@ApiModelProperty
(
value
=
"专业Id"
,
position
=
2
)
@ApiModelProperty
(
value
=
"专业Id"
,
position
=
2
)
@Length
(
max
=
36
,
message
=
"专业Id不能大于36"
)
@Length
(
max
=
36
,
message
=
"专业Id不能大于36"
)
private
String
specId
;
private
String
specId
;
/** 排序 */
@ApiModelProperty
(
value
=
"排序"
,
position
=
5
)
private
Integer
showIndex
;
}
}
science-admin/src/main/java/com/yiboshi/science/param/dto/ComExpertDTO.java
View file @
c4364fb1
...
@@ -106,12 +106,8 @@ public class ComExpertDTO extends BaseDTO {
...
@@ -106,12 +106,8 @@ public class ComExpertDTO extends BaseDTO {
@ApiModelProperty
(
value
=
"项目分配信息"
,
position
=
23
)
@ApiModelProperty
(
value
=
"项目分配信息"
,
position
=
23
)
private
List
<
AssignCount
>
assignInfo
;
private
List
<
AssignCount
>
assignInfo
;
/** 评审专业 */
/** 评审专业 */
@ApiModelProperty
(
value
=
"评审专业"
,
position
=
24
)
private
List
<
String
>
auditSpecList
;
/** 评审专业 */
@ApiModelProperty
(
value
=
"评审专业"
,
position
=
25
)
@ApiModelProperty
(
value
=
"评审专业"
,
position
=
25
)
private
List
<
ComExpertSpecDTO
>
specList
;
private
List
<
ComExpertSpecDTO
>
specList
;
/** 用户Id*/
/** 用户Id*/
@ApiModelProperty
(
value
=
"用户Id"
,
position
=
30
)
@ApiModelProperty
(
value
=
"用户Id"
,
position
=
30
)
private
String
userId
;
private
String
userId
;
...
...
science-admin/src/main/java/com/yiboshi/science/param/dto/ComExpertSpecDTO.java
View file @
c4364fb1
package
com
.
yiboshi
.
science
.
param
.
dto
;
package
com
.
yiboshi
.
science
.
param
.
dto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yiboshi.science.base.BaseDTO
;
import
com.yiboshi.science.base.BaseDTO
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -8,8 +7,6 @@ import lombok.Data;
...
@@ -8,8 +7,6 @@ import lombok.Data;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
org.hibernate.validator.constraints.Length
;
import
org.hibernate.validator.constraints.Length
;
import
java.util.Date
;
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
description
=
"专家项目分配表DTO"
)
@ApiModel
(
description
=
"专家项目分配表DTO"
)
...
@@ -27,4 +24,8 @@ public class ComExpertSpecDTO extends BaseDTO {
...
@@ -27,4 +24,8 @@ public class ComExpertSpecDTO extends BaseDTO {
@ApiModelProperty
(
value
=
"专业名称"
,
position
=
4
)
@ApiModelProperty
(
value
=
"专业名称"
,
position
=
4
)
@Length
(
max
=
200
,
message
=
"专业名称不能大于200"
)
@Length
(
max
=
200
,
message
=
"专业名称不能大于200"
)
private
String
specName
;
private
String
specName
;
/** 排序 */
@ApiModelProperty
(
value
=
"排序"
,
position
=
5
)
private
Integer
showIndex
;
}
}
science-admin/src/main/java/com/yiboshi/science/param/dto/ComProjectDTO.java
View file @
c4364fb1
...
@@ -327,6 +327,8 @@ public class ComProjectDTO extends BaseDTO {
...
@@ -327,6 +327,8 @@ public class ComProjectDTO extends BaseDTO {
private
ProjectKPIStatisticDTO
projectKPI
;
private
ProjectKPIStatisticDTO
projectKPI
;
/** 购置设备预算明细表 */
/** 购置设备预算明细表 */
private
List
<
ComProjectEquipmentDTO
>
equipments
;
private
List
<
ComProjectEquipmentDTO
>
equipments
;
/** 购置设备预算明细表 */
private
List
<
ComProjectEquipmentDTO
>
deviceList
;
/** 附件列表 */
/** 附件列表 */
private
List
<
ComFileDTO
>
fileList
;
private
List
<
ComFileDTO
>
fileList
;
/** 审核列表 */
/** 审核列表 */
...
...
science-admin/src/main/java/com/yiboshi/science/param/query/ComExpertSpecQueryVO.java
View file @
c4364fb1
...
@@ -22,4 +22,7 @@ public class ComExpertSpecQueryVO extends PaginationVO {
...
@@ -22,4 +22,7 @@ public class ComExpertSpecQueryVO extends PaginationVO {
@ApiModelProperty
(
value
=
"专业Id"
,
position
=
2
)
@ApiModelProperty
(
value
=
"专业Id"
,
position
=
2
)
@Length
(
max
=
36
,
message
=
"专业Id不能大于36"
)
@Length
(
max
=
36
,
message
=
"专业Id不能大于36"
)
private
String
specId
;
private
String
specId
;
/** 排序 */
@ApiModelProperty
(
value
=
"排序"
,
position
=
5
)
private
Integer
showIndex
;
}
}
science-admin/src/main/java/com/yiboshi/science/service/ComExpertSpecService.java
View file @
c4364fb1
...
@@ -27,7 +27,7 @@ public interface ComExpertSpecService extends BaseService<ComExpertSpecQueryVO,
...
@@ -27,7 +27,7 @@ public interface ComExpertSpecService extends BaseService<ComExpertSpecQueryVO,
* @param list
* @param list
* @param expertId
* @param expertId
*/
*/
void
insertSpecList
(
List
<
String
>
list
,
String
expertId
);
void
insertSpecList
(
List
<
ComExpertSpecDTO
>
list
,
String
expertId
);
/**
/**
* 根据参数获取参数列表
* 根据参数获取参数列表
*
*
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComExpertServiceImpl.java
View file @
c4364fb1
...
@@ -9,6 +9,7 @@ import com.yiboshi.science.dao.ComExpertDAO;
...
@@ -9,6 +9,7 @@ import com.yiboshi.science.dao.ComExpertDAO;
import
com.yiboshi.science.entity.*
;
import
com.yiboshi.science.entity.*
;
import
com.yiboshi.science.enumeration.CommonEnum
;
import
com.yiboshi.science.enumeration.CommonEnum
;
import
com.yiboshi.science.param.dto.ComExpertDTO
;
import
com.yiboshi.science.param.dto.ComExpertDTO
;
import
com.yiboshi.science.param.dto.ComExpertSpecDTO
;
import
com.yiboshi.science.param.query.ComExpertQueryVO
;
import
com.yiboshi.science.param.query.ComExpertQueryVO
;
import
com.yiboshi.science.service.*
;
import
com.yiboshi.science.service.*
;
import
com.yiboshi.science.utils.ChineseToPinyin
;
import
com.yiboshi.science.utils.ChineseToPinyin
;
...
@@ -98,7 +99,6 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
...
@@ -98,7 +99,6 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
ComExpertDTO
dto
=
comExpertDAO
.
getExpertById
(
id
);
ComExpertDTO
dto
=
comExpertDAO
.
getExpertById
(
id
);
if
(
null
!=
dto
)
{
if
(
null
!=
dto
)
{
dto
.
setSpecList
(
comExpertSpecService
.
getListByExpertId
(
id
));
dto
.
setSpecList
(
comExpertSpecService
.
getListByExpertId
(
id
));
dto
.
setAuditSpecList
(
comExpertSpecService
.
getIdListByExpertId
(
id
));
dto
.
setCertId
(
hideAllIdCardNum
(
dto
.
getCertId
()));
dto
.
setCertId
(
hideAllIdCardNum
(
dto
.
getCertId
()));
// if (Objects.nonNull(dto.getMobile()))
// if (Objects.nonNull(dto.getMobile()))
// dto.setMobile(hideAllPhoneNum(dto.getMobile()));
// dto.setMobile(hideAllPhoneNum(dto.getMobile()));
...
@@ -146,7 +146,7 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
...
@@ -146,7 +146,7 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
comExpert
.
setReportState
(
dto
.
getReportState
());
comExpert
.
setReportState
(
dto
.
getReportState
());
String
id
=
this
.
insert
(
comExpert
);
String
id
=
this
.
insert
(
comExpert
);
dto
.
setId
(
comExpert
.
getId
());
dto
.
setId
(
comExpert
.
getId
());
comExpertSpecService
.
insertSpecList
(
dto
.
get
Audit
SpecList
(),
id
);
comExpertSpecService
.
insertSpecList
(
dto
.
getSpecList
(),
id
);
return
dto
.
getId
();
return
dto
.
getId
();
}
}
...
@@ -170,7 +170,7 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
...
@@ -170,7 +170,7 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
this
.
update
(
comExpert
);
this
.
update
(
comExpert
);
comPersonService
.
updateById
(
comPerson
);
comPersonService
.
updateById
(
comPerson
);
comExpertSpecService
.
insertSpecList
(
dto
.
get
Audit
SpecList
(),
dto
.
getId
());
comExpertSpecService
.
insertSpecList
(
dto
.
getSpecList
(),
dto
.
getId
());
return
dto
.
getId
();
return
dto
.
getId
();
}
}
...
@@ -208,9 +208,11 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
...
@@ -208,9 +208,11 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
if
(
null
!=
e
.
getSpecName
())
{
if
(
null
!=
e
.
getSpecName
())
{
List
<
SystemParameter
>
findList2
=
specList
.
stream
().
filter
(
p
->
e
.
getSpecName
().
equals
(
p
.
getName
())).
collect
(
Collectors
.
toList
());
List
<
SystemParameter
>
findList2
=
specList
.
stream
().
filter
(
p
->
e
.
getSpecName
().
equals
(
p
.
getName
())).
collect
(
Collectors
.
toList
());
if
(
findList2
.
size
()
>
0
)
{
if
(
findList2
.
size
()
>
0
)
{
List
<
String
>
audtiSpecList
=
new
ArrayList
<>();
List
<
ComExpertSpecDTO
>
audtiSpecList
=
new
ArrayList
<>();
audtiSpecList
.
add
(
findList2
.
stream
().
findFirst
().
get
().
getId
());
ComExpertSpecDTO
w
=
new
ComExpertSpecDTO
();
e
.
setAuditSpecList
(
audtiSpecList
);
w
.
setSpecId
(
findList2
.
stream
().
findFirst
().
get
().
getId
());
audtiSpecList
.
add
(
w
);
e
.
setSpecList
(
audtiSpecList
);
}
}
}
}
e
.
setWorkUnit
(
e
.
getUnitName
());
e
.
setWorkUnit
(
e
.
getUnitName
());
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComExpertSpecServiceImpl.java
View file @
c4364fb1
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import
com.yiboshi.science.base.BaseServiceImpl
;
import
com.yiboshi.science.base.BaseServiceImpl
;
import
com.yiboshi.science.dao.ComExpertSpecDAO
;
import
com.yiboshi.science.dao.ComExpertSpecDAO
;
import
com.yiboshi.science.entity.ComExpertSpec
;
import
com.yiboshi.science.entity.ComExpertSpec
;
import
com.yiboshi.science.entity.ComFile
;
import
com.yiboshi.science.entity.SystemMenu
;
import
com.yiboshi.science.entity.SystemMenu
;
import
com.yiboshi.science.entity.SelectListItem
;
import
com.yiboshi.science.entity.SelectListItem
;
import
com.yiboshi.science.param.dto.ComExpertDTO
;
import
com.yiboshi.science.param.dto.ComExpertDTO
;
...
@@ -40,19 +41,20 @@ public class ComExpertSpecServiceImpl extends BaseServiceImpl<ComExpertSpecDAO,
...
@@ -40,19 +41,20 @@ public class ComExpertSpecServiceImpl extends BaseServiceImpl<ComExpertSpecDAO,
}
}
}
}
public
void
insertSpecList
(
List
<
String
>
list
,
String
expertId
)
{
public
void
insertSpecList
(
List
<
ComExpertSpecDTO
>
list
,
String
expertId
)
{
if
(
list
!=
null
&&
list
.
size
()
>
0
)
{
if
(
list
!=
null
&&
list
.
size
()
>
0
)
{
ComExpertSpec
comExpertSpec
=
new
ComExpertSpec
();
ComExpertSpec
comExpertSpec
=
new
ComExpertSpec
();
comExpertSpec
.
setExpertId
(
expertId
);
comExpertSpec
.
setExpertId
(
expertId
);
this
.
delete
(
comExpertSpec
);
this
.
delete
(
comExpertSpec
);
list
.
forEach
((
e
)
->
{
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
if
(!
is
Null
(
e
))
{
if
(!
is
ObjectNull
(
list
.
get
(
i
)
))
{
ComExpertSpec
expertSpec
=
new
ComExpertSpec
();
ComExpertSpec
expertSpec
=
new
ComExpertSpec
();
expertSpec
.
setExpertId
(
expertId
);
expertSpec
.
setExpertId
(
expertId
);
expertSpec
.
setSpecId
(
e
);
expertSpec
.
setSpecId
(
list
.
get
(
i
).
getSpecId
());
list
.
get
(
i
).
setShowIndex
(
i
+
1
);
this
.
insert
(
expertSpec
);
this
.
insert
(
expertSpec
);
}
}
}
);
}
}
}
}
}
...
...
science-admin/src/main/resources/mapper/ComExpertSpecDAO.xml
View file @
c4364fb1
...
@@ -8,13 +8,13 @@
...
@@ -8,13 +8,13 @@
<select
id=
"getIdListByExpertId"
parameterType=
"java.lang.String"
resultType=
"java.lang.String"
>
<select
id=
"getIdListByExpertId"
parameterType=
"java.lang.String"
resultType=
"java.lang.String"
>
SELECT a.spec_id
SELECT a.spec_id
FROM com_expert_spec a
FROM com_expert_spec a
where expert_id=#{expertId}
where expert_id=#{expertId}
order by a.show_index
</select>
</select>
<select
id=
"getListByExpertId"
parameterType=
"java.lang.String"
resultType=
"com.yiboshi.science.param.dto.ComExpertSpecDTO"
>
<select
id=
"getListByExpertId"
parameterType=
"java.lang.String"
resultType=
"com.yiboshi.science.param.dto.ComExpertSpecDTO"
>
SELECT a.spec_id,b.name specName
SELECT a.spec_id,b.name specName
FROM com_expert_spec a
FROM com_expert_spec a
left join system_parameter b on a.spec_id=b.id and b.type_id=57
left join system_parameter b on a.spec_id=b.id and b.type_id=57
where expert_id=#{expertId}
where expert_id=#{expertId}
order by a.show_index
</select>
</select>
<select
id=
"getExpertListBySpecId"
resultType=
"com.yiboshi.science.param.dto.ComExpertDTO"
>
<select
id=
"getExpertListBySpecId"
resultType=
"com.yiboshi.science.param.dto.ComExpertDTO"
>
select distinct a.expert_id id,c.person_name,c.cert_id,c.sex,c.birthday,e.unit_name as work_unit
select distinct a.expert_id id,c.person_name,c.cert_id,c.sex,c.birthday,e.unit_name as work_unit
...
...
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