Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
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
d1d93b73
Commit
d1d93b73
authored
Sep 01, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
73f4d0b7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
90 additions
and
27 deletions
+90
-27
ComEvaluationItemDTO.java
...a/com/yiboshi/science/param/dto/ComEvaluationItemDTO.java
+14
-2
ComEvaluationValueDTO.java
.../com/yiboshi/science/param/dto/ComEvaluationValueDTO.java
+27
-2
ComEvaluationValueServiceImpl.java
...i/science/service/impl/ComEvaluationValueServiceImpl.java
+27
-9
ComTalentAssignServiceImpl.java
...oshi/science/service/impl/ComTalentAssignServiceImpl.java
+3
-3
TaskInfoToPDFUtil.java
...ain/java/com/yiboshi/science/utils/TaskInfoToPDFUtil.java
+7
-6
ComEvaluationItemDAO.xml
...-admin/src/main/resources/mapper/ComEvaluationItemDAO.xml
+7
-3
ComEvaluationValueDAO.xml
...admin/src/main/resources/mapper/ComEvaluationValueDAO.xml
+5
-2
No files found.
science-admin/src/main/java/com/yiboshi/science/param/dto/ComEvaluationItemDTO.java
View file @
d1d93b73
...
...
@@ -49,7 +49,7 @@ public class ComEvaluationItemDTO extends BaseDTO {
/** 父Id */
@ApiModelProperty
(
value
=
"父Id"
,
position
=
2
)
private
String
p
pId
;
private
String
p
arentId1
;
/** 内容 */
@ApiModelProperty
(
value
=
"内容"
,
position
=
2
)
@Length
(
max
=
200
,
message
=
"内容不能大于200"
)
...
...
@@ -57,9 +57,21 @@ public class ComEvaluationItemDTO extends BaseDTO {
/** 父Id */
@ApiModelProperty
(
value
=
"父Id"
,
position
=
2
)
private
String
p
Id
;
private
String
p
arentId2
;
/** 内容 */
@ApiModelProperty
(
value
=
"内容"
,
position
=
2
)
@Length
(
max
=
200
,
message
=
"内容不能大于200"
)
private
String
content2
;
/** 父Id */
@ApiModelProperty
(
value
=
"父Id"
,
position
=
2
)
private
String
parentId3
;
/** 内容 */
@ApiModelProperty
(
value
=
"内容"
,
position
=
2
)
@Length
(
max
=
200
,
message
=
"内容不能大于200"
)
private
String
content3
;
/** 备注 */
@ApiModelProperty
(
value
=
"备注"
,
position
=
2
)
@Length
(
max
=
200
,
message
=
"备注"
)
private
String
remark3
;
}
science-admin/src/main/java/com/yiboshi/science/param/dto/ComEvaluationValueDTO.java
View file @
d1d93b73
...
...
@@ -58,7 +58,7 @@ public class ComEvaluationValueDTO extends BaseDTO {
/** 父Id */
@ApiModelProperty
(
value
=
"父Id"
,
position
=
2
)
private
String
p
pId
;
private
String
p
arentId1
;
/** 内容 */
@ApiModelProperty
(
value
=
"内容"
,
position
=
2
)
@Length
(
max
=
200
,
message
=
"内容不能大于200"
)
...
...
@@ -66,15 +66,40 @@ public class ComEvaluationValueDTO extends BaseDTO {
/** 父Id */
@ApiModelProperty
(
value
=
"父Id"
,
position
=
2
)
private
String
p
Id
;
private
String
p
arentId2
;
/** 内容 */
@ApiModelProperty
(
value
=
"内容"
,
position
=
2
)
@Length
(
max
=
200
,
message
=
"内容不能大于200"
)
private
String
content2
;
/** 父Id */
@ApiModelProperty
(
value
=
"父Id"
,
position
=
2
)
private
String
parentId3
;
/** 内容 */
@ApiModelProperty
(
value
=
"内容"
,
position
=
2
)
@Length
(
max
=
200
,
message
=
"内容不能大于200"
)
private
String
content3
;
/** 备注 */
@ApiModelProperty
(
value
=
"备注"
,
position
=
2
)
@Length
(
max
=
200
,
message
=
"备注"
)
private
String
remark3
;
/** 组名 */
@ApiModelProperty
(
value
=
"组名"
,
position
=
2
)
@Length
(
max
=
200
,
message
=
"组名"
)
private
String
groupName
;
/** 组序号 */
@ApiModelProperty
(
value
=
"组序号"
,
position
=
2
)
@Length
(
max
=
200
,
message
=
"组序号"
)
private
List
<
Integer
>
groupItem
;
/** 合并单元格字段 */
private
Integer
row1
;
/** 合并单元格字段 */
private
Integer
row2
;
/** 合并单元格字段 */
private
Integer
row3
;
}
science-admin/src/main/java/com/yiboshi/science/service/impl/ComEvaluationValueServiceImpl.java
View file @
d1d93b73
...
...
@@ -17,7 +17,9 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
@Service
...
...
@@ -47,24 +49,40 @@ public class ComEvaluationValueServiceImpl extends BaseServiceImpl<ComEvaluation
list
.
add
(
dto
);
});
}
final
String
[]
ppId
=
{
""
};
final
String
[]
pId
=
{
""
};
final
String
[]
parentId1
=
{
""
};
final
String
[]
parentId2
=
{
""
};
final
String
[]
parentId3
=
{
""
};
final
int
[]
groupIndex
=
{
0
};
final
int
[]
groupItem
=
{
0
};
final
List
<
Integer
>[]
itemList
=
new
List
[]{
new
ArrayList
<>()};
list
.
forEach
((
e
)
->
{
if
(!
p
pId
[
0
].
equals
(
e
.
getPpId
()))
{
Integer
row1
=
list
.
stream
().
filter
(
f
->
f
.
getP
pId
().
equals
(
e
.
getPpId
())).
collect
(
Collectors
.
toList
()).
size
();
if
(!
p
arentId1
[
0
].
equals
(
e
.
getParentId1
()))
{
Integer
row1
=
list
.
stream
().
filter
(
f
->
f
.
getP
arentId1
().
equals
(
e
.
getParentId1
())).
collect
(
Collectors
.
toList
()).
size
();
e
.
setRow1
(
row1
);
p
pId
[
0
]
=
e
.
getPpId
();
p
arentId1
[
0
]
=
e
.
getParentId1
();
}
else
{
e
.
setRow1
(
0
);
}
if
(!
p
Id
[
0
].
equals
(
e
.
getPId
()))
{
Integer
row2
=
list
.
stream
().
filter
(
f
->
f
.
getP
Id
().
equals
(
e
.
getPId
())).
collect
(
Collectors
.
toList
()).
size
();
if
(!
p
arentId2
[
0
].
equals
(
e
.
getParentId2
()))
{
Integer
row2
=
list
.
stream
().
filter
(
f
->
f
.
getP
arentId2
().
equals
(
e
.
getParentId2
())).
collect
(
Collectors
.
toList
()).
size
();
e
.
setRow2
(
row2
);
p
Id
[
0
]
=
e
.
getPId
();
p
arentId2
[
0
]
=
e
.
getParentId2
();
}
else
{
e
.
setRow2
(
0
);
}
e
.
setMaxScore
(
10
);
if
(!
parentId3
[
0
].
equals
(
e
.
getParentId3
()))
{
Integer
row3
=
list
.
stream
().
filter
(
f
->
f
.
getParentId3
().
equals
(
e
.
getParentId3
())).
collect
(
Collectors
.
toList
()).
size
();
e
.
setRow3
(
row3
);
itemList
[
0
]
=
new
ArrayList
<>();
groupIndex
[
0
]++;
parentId3
[
0
]
=
e
.
getParentId3
();
}
else
{
e
.
setRow3
(
0
);
}
itemList
[
0
].
add
(
groupItem
[
0
]);
e
.
setGroupItem
(
itemList
[
0
]);
e
.
setGroupName
(
"group"
+
groupIndex
[
0
]);
groupItem
[
0
]++;
});
return
list
;
}
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComTalentAssignServiceImpl.java
View file @
d1d93b73
...
...
@@ -178,9 +178,9 @@ public class ComTalentAssignServiceImpl extends BaseServiceImpl<ComTalentAssignD
public
ComTalentAssignDTO
getAssignExpertById
(
String
id
)
{
ComTalentAssignDTO
dto
=
comTalentAssignDAO
.
getAssignExpertById
(
id
);
if
(
null
!=
dto
)
{
dto
.
setSpecList
(
comExpertSpecService
.
getListByExpertId
(
dto
.
getExpertId
()));
}
//
if (null != dto) {
//
dto.setSpecList(comExpertSpecService.getListByExpertId(dto.getExpertId()));
//
}
dto
.
setScoreList
(
comEvaluationValueService
.
getListByAssignId
(
id
));
return
dto
;
}
...
...
science-admin/src/main/java/com/yiboshi/science/utils/TaskInfoToPDFUtil.java
View file @
d1d93b73
...
...
@@ -20,6 +20,7 @@ import static com.yiboshi.science.utils.ProjectInfoToPDF.getCurrentOperatingSyst
public
class
TaskInfoToPDFUtil
{
static
SimpleDateFormat
fd
=
new
SimpleDateFormat
(
"yyyy-MM"
);
static
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
static
SimpleDateFormat
sdfM
=
new
SimpleDateFormat
(
"yyyy年MM月"
);
...
...
@@ -108,11 +109,11 @@ public class TaskInfoToPDFUtil {
private
static
void
firstPageInfo
(
Document
document
,
ComProjectTaskDTO
dto
,
BaseFont
bfChinese
,
BaseFont
fsChinese
)
throws
DocumentException
{
Font
normalFont
=
new
Font
(
bfChinese
,
16
,
Font
.
NORMAL
);
// 添加附件编号
Paragraph
attachment
=
new
Paragraph
(
"附件4"
,
normalFont
);
attachment
.
setAlignment
(
Element
.
ALIGN_LEFT
);
document
.
add
(
attachment
);
document
.
add
(
new
Paragraph
(
"\n"
));
//
// 添加附件编号
//
Paragraph attachment = new Paragraph("附件4", normalFont);
//
attachment.setAlignment(Element.ALIGN_LEFT);
//
document.add(attachment);
//
document.add(new Paragraph("\n"));
// 从DTO获取项目编号
Paragraph
projectNoPara
=
new
Paragraph
(
"项目编号:"
+
dto
.
getProjNo
(),
normalFont
);
...
...
@@ -137,7 +138,7 @@ public class TaskInfoToPDFUtil {
addTablePageCell
(
table
,
"项目下达单位(甲方):"
,
4
,
dto
.
getAppUnitName
(),
null
,
labelFont
);
addTablePageCell
(
table
,
"项目承担单位(乙方):"
,
4
,
dto
.
getAppUnitName
(),
null
,
labelFont
);
addTablePageCell
(
table
,
"项目负责人:"
,
2
,
dto
.
getAppPersonName
(),
3
,
labelFont
);
addTablePageCell
(
table
,
"项目起止年限:"
,
3
,
sdf
.
format
(
dto
.
getStartDate
())
+
" 至 "
+
sdf
.
format
(
dto
.
getEndDate
()),
2
,
labelFont
);
addTablePageCell
(
table
,
"项目起止年限:"
,
3
,
fd
.
format
(
dto
.
getStartDate
())
+
" 至 "
+
fd
.
format
(
dto
.
getEndDate
()),
2
,
labelFont
);
document
.
add
(
table
);
}
...
...
science-admin/src/main/resources/mapper/ComEvaluationItemDAO.xml
View file @
d1d93b73
...
...
@@ -7,11 +7,15 @@
t.user_id as userId, t.role_id as roleId, t.login_time as loginTime, t.login_ip as loginIp, t.remark as remark
</sql>
<select
id=
"getListByEvaluationId"
parameterType=
"java.lang.String"
resultType=
"com.yiboshi.science.param.dto.ComEvaluationItemDTO"
>
SELECT a.*,b.content content2, b.id pId,c.content content1, c.id ppId
SELECT d.id parentId1,d.content content1,
c.id parentId2,c.content content2,
b.id parentId3,b.content content3,b.remark remark3,
a.*
FROM com_evaluation_item a
left join com_evaluation_item b on a.parent_id=b.id
left join com_evaluation_item c on b.parent_id=c.id
where a.evaluation_id=#{evaluationId} and b.id is not null and c.id is not null and a.state=1 and b.state=1 and c.state=1
order by a.show_index asc
left join com_evaluation_item d on c.parent_id=d.id
where a.evaluation_id=#{evaluationId} and a.remark='4'
order by d.show_index,c.show_index,b.show_index,a.show_index asc
</select>
</mapper>
science-admin/src/main/resources/mapper/ComEvaluationValueDAO.xml
View file @
d1d93b73
...
...
@@ -8,12 +8,15 @@
</sql>
<select
id=
"getListByAssignId"
parameterType=
"java.lang.String"
resultType=
"com.yiboshi.science.param.dto.ComEvaluationValueDTO"
>
SELECT b.*,a.item_id,a.assign_id,a.detail,a.count,a.score,
c.content content2, c.id pId,d.content content1, d.id ppId
c.id parentId3,c.content content3,c.remark remark3,
b.id parentId2,b.content content2,
e.id parentId1,e.content content1
FROM com_evaluation_value a
left join com_evaluation_item b on a.item_id=b.id
left join com_evaluation_item c on b.parent_id=c.id
left join com_evaluation_item d on c.parent_id=d.id
left join com_evaluation_item e on d.parent_id=e.id
where a.assign_id=#{assignId}
order by b.show_index asc
order by
e.show_index,d.show_index,c.show_index,
b.show_index asc
</select>
</mapper>
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