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
37166684
Commit
37166684
authored
Dec 11, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
77
parent
6e99c126
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
24 additions
and
23 deletions
+24
-23
ComProjectBasic.java
...main/java/com/yiboshi/science/entity/ComProjectBasic.java
+4
-0
ComProjectBasicDTO.java
...ava/com/yiboshi/science/param/dto/ComProjectBasicDTO.java
+4
-0
ComProjectBasicQueryVO.java
...m/yiboshi/science/param/query/ComProjectBasicQueryVO.java
+4
-0
AuthorizationController.java
.../com/yiboshi/science/rest/v1/AuthorizationController.java
+2
-1
ComPersonController.java
...java/com/yiboshi/science/rest/v1/ComPersonController.java
+1
-11
ComPersonService.java
...in/java/com/yiboshi/science/service/ComPersonService.java
+1
-1
ComPersonServiceImpl.java
...om/yiboshi/science/service/impl/ComPersonServiceImpl.java
+5
-5
ComProjectServiceImpl.java
...m/yiboshi/science/service/impl/ComProjectServiceImpl.java
+2
-4
ComProjectDAO.xml
science-admin/src/main/resources/mapper/ComProjectDAO.xml
+1
-1
No files found.
science-admin/src/main/java/com/yiboshi/science/entity/ComProjectBasic.java
View file @
37166684
...
@@ -35,6 +35,10 @@ public class ComProjectBasic extends BaseEntity {
...
@@ -35,6 +35,10 @@ public class ComProjectBasic extends BaseEntity {
@ApiModelProperty
(
value
=
"主要研究领域"
,
position
=
19
)
@ApiModelProperty
(
value
=
"主要研究领域"
,
position
=
19
)
@Length
(
max
=
200
,
message
=
"主要研究领域不能大于200"
)
@Length
(
max
=
200
,
message
=
"主要研究领域不能大于200"
)
private
String
mainResearchAreas
;
private
String
mainResearchAreas
;
/** 申报人通信地址 */
@ApiModelProperty
(
value
=
"申报人通信地址"
,
position
=
15
)
@Length
(
max
=
200
,
message
=
"申报人通信地址不能大于200"
)
private
String
address
;
/** 单位联系人姓名 */
/** 单位联系人姓名 */
@ApiModelProperty
(
value
=
"单位联系人姓名"
,
position
=
16
)
@ApiModelProperty
(
value
=
"单位联系人姓名"
,
position
=
16
)
...
...
science-admin/src/main/java/com/yiboshi/science/param/dto/ComProjectBasicDTO.java
View file @
37166684
...
@@ -34,6 +34,10 @@ public class ComProjectBasicDTO extends BaseDTO {
...
@@ -34,6 +34,10 @@ public class ComProjectBasicDTO extends BaseDTO {
@ApiModelProperty
(
value
=
"主要研究领域"
,
position
=
19
)
@ApiModelProperty
(
value
=
"主要研究领域"
,
position
=
19
)
@Length
(
max
=
200
,
message
=
"主要研究领域不能大于200"
)
@Length
(
max
=
200
,
message
=
"主要研究领域不能大于200"
)
private
String
mainResearchAreas
;
private
String
mainResearchAreas
;
/** 申报人通信地址 */
@ApiModelProperty
(
value
=
"申报人通信地址"
,
position
=
15
)
@Length
(
max
=
200
,
message
=
"申报人通信地址不能大于200"
)
private
String
address
;
/** 单位联系人姓名 */
/** 单位联系人姓名 */
@ApiModelProperty
(
value
=
"单位联系人姓名"
,
position
=
16
)
@ApiModelProperty
(
value
=
"单位联系人姓名"
,
position
=
16
)
...
...
science-admin/src/main/java/com/yiboshi/science/param/query/ComProjectBasicQueryVO.java
View file @
37166684
...
@@ -33,6 +33,10 @@ public class ComProjectBasicQueryVO extends PaginationVO{
...
@@ -33,6 +33,10 @@ public class ComProjectBasicQueryVO extends PaginationVO{
@ApiModelProperty
(
value
=
"主要研究领域"
,
position
=
19
)
@ApiModelProperty
(
value
=
"主要研究领域"
,
position
=
19
)
@Length
(
max
=
200
,
message
=
"主要研究领域不能大于200"
)
@Length
(
max
=
200
,
message
=
"主要研究领域不能大于200"
)
private
String
mainResearchAreas
;
private
String
mainResearchAreas
;
/** 申报人通信地址 */
@ApiModelProperty
(
value
=
"申报人通信地址"
,
position
=
15
)
@Length
(
max
=
200
,
message
=
"申报人通信地址不能大于200"
)
private
String
address
;
/** 单位联系人姓名 */
/** 单位联系人姓名 */
@ApiModelProperty
(
value
=
"单位联系人姓名"
,
position
=
16
)
@ApiModelProperty
(
value
=
"单位联系人姓名"
,
position
=
16
)
...
...
science-admin/src/main/java/com/yiboshi/science/rest/v1/AuthorizationController.java
View file @
37166684
...
@@ -169,7 +169,8 @@ public class AuthorizationController {
...
@@ -169,7 +169,8 @@ public class AuthorizationController {
if
(!
user
.
getType
().
equals
(
"3"
)){
if
(!
user
.
getType
().
equals
(
"3"
)){
user
.
setProjType
(
systemSetService
.
getByKey
(
SystemSetKey
.
SysProjectType
));
user
.
setProjType
(
systemSetService
.
getByKey
(
SystemSetKey
.
SysProjectType
));
}
}
user
.
setComplete
(
comPersonService
.
isComplete
(
SecurityUserHolder
.
getPersonId
()));
ComPerson
person
=
comPersonService
.
getById
(
SecurityUserHolder
.
getPersonId
());
user
.
setComplete
(
comPersonService
.
isComplete
(
person
));
List
<
UserMenuDTO
>
menuList
=
systemMenuService
.
findByRoleId
(
SecurityUserHolder
.
getRoles
());
List
<
UserMenuDTO
>
menuList
=
systemMenuService
.
findByRoleId
(
SecurityUserHolder
.
getRoles
());
Map
<
String
,
Object
>
userInfo
=
new
HashMap
<
String
,
Object
>(
3
)
{
Map
<
String
,
Object
>
userInfo
=
new
HashMap
<
String
,
Object
>(
3
)
{
{
{
...
...
science-admin/src/main/java/com/yiboshi/science/rest/v1/ComPersonController.java
View file @
37166684
...
@@ -177,17 +177,7 @@ public class ComPersonController extends BaseController<ComPersonService, ComPer
...
@@ -177,17 +177,7 @@ public class ComPersonController extends BaseController<ComPersonService, ComPer
public
ResponseDataModel
<
Map
<
String
,
Object
>>
getAppPersonInfo
()
{
public
ResponseDataModel
<
Map
<
String
,
Object
>>
getAppPersonInfo
()
{
boolean
isComplete
=
true
;
boolean
isComplete
=
true
;
ComPerson
comPerson
=
comPersonService
.
entityById
(
SecurityUserHolder
.
getPersonId
());
ComPerson
comPerson
=
comPersonService
.
entityById
(
SecurityUserHolder
.
getPersonId
());
if
(
null
==
comPerson
)
boolean
finalComplete
=
comPersonService
.
isComplete
(
comPerson
);
isComplete
=
false
;
if
(
StringUtils
.
isEmpty
(
comPerson
.
getNation
())
||
StringUtils
.
isEmpty
(
comPerson
.
getTitle
())
||
StringUtils
.
isEmpty
(
comPerson
.
getDegree
())
||
StringUtils
.
isEmpty
(
comPerson
.
getEducation
())
||
StringUtils
.
isEmpty
(
comPerson
.
getSpec
())
||
StringUtils
.
isEmpty
(
comPerson
.
getEmail
()))
{
isComplete
=
false
;
}
boolean
finalComplete
=
isComplete
;
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>(
3
)
{
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>(
3
)
{
{
{
put
(
"person"
,
comPerson
);
put
(
"person"
,
comPerson
);
...
...
science-admin/src/main/java/com/yiboshi/science/service/ComPersonService.java
View file @
37166684
...
@@ -107,5 +107,5 @@ public interface ComPersonService extends BaseService<ComPersonQueryVO, ComPerso
...
@@ -107,5 +107,5 @@ public interface ComPersonService extends BaseService<ComPersonQueryVO, ComPerso
DataStatisticsDTO
getRegisterPersonCount
(
ComPersonQueryVO
v
);
DataStatisticsDTO
getRegisterPersonCount
(
ComPersonQueryVO
v
);
DataStatisticsDTO
getRegisterPersonCountByDay
(
ComPersonQueryVO
v
);
DataStatisticsDTO
getRegisterPersonCountByDay
(
ComPersonQueryVO
v
);
boolean
isComplete
(
String
id
);
boolean
isComplete
(
ComPerson
person
);
}
}
science-admin/src/main/java/com/yiboshi/science/service/impl/ComPersonServiceImpl.java
View file @
37166684
...
@@ -327,15 +327,15 @@ public class ComPersonServiceImpl extends BaseServiceImpl<ComPersonDAO, ComPerso
...
@@ -327,15 +327,15 @@ public class ComPersonServiceImpl extends BaseServiceImpl<ComPersonDAO, ComPerso
return
state
;
return
state
;
}
}
public
boolean
isComplete
(
String
id
)
{
public
boolean
isComplete
(
ComPerson
person
)
{
ComPerson
person
=
this
.
getById
(
id
);
if
(
null
==
person
)
if
(
null
==
person
)
return
false
;
return
false
;
if
(
StringUtils
.
isEmpty
(
person
.
getNation
())
||
if
(
StringUtils
.
isEmpty
(
person
.
getPersonName
())
||
StringUtils
.
isEmpty
(
person
.
getNation
())
||
StringUtils
.
isEmpty
(
person
.
getTitle
())
||
StringUtils
.
isEmpty
(
person
.
getTitle
())
||
StringUtils
.
isEmpty
(
person
.
getDegree
())
||
StringUtils
.
isEmpty
(
person
.
getEducation
())
||
StringUtils
.
isEmpty
(
person
.
getSpec
())
||
StringUtils
.
isEmpty
(
person
.
getSpec
())
||
StringUtils
.
isEmpty
(
person
.
getDegree
())
||
StringUtils
.
isEmpty
(
person
.
getDuty
())
||
StringUtils
.
isEmpty
(
person
.
getEmail
()))
{
StringUtils
.
isEmpty
(
person
.
getEmail
()))
{
return
false
;
return
false
;
}
}
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectServiceImpl.java
View file @
37166684
...
@@ -255,8 +255,6 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
...
@@ -255,8 +255,6 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
ComUnitDTO
comUnitDTO
=
comUnitService
.
getUnitById
(
SecurityUserHolder
.
getUnitId
());
ComUnitDTO
comUnitDTO
=
comUnitService
.
getUnitById
(
SecurityUserHolder
.
getUnitId
());
if
(
null
!=
comUnitDTO
)
{
if
(
null
!=
comUnitDTO
)
{
dto
.
setAppUnitName
(
comUnitDTO
.
getUnitName
());
dto
.
setAppUnitName
(
comUnitDTO
.
getUnitName
());
dto
.
setUnitTypeName
(
comUnitDTO
.
getUnitTypeName
());
dto
.
setAddress
(
comUnitDTO
.
getUnitAddress
());
//
//
// dto.setOrganizationCode(comUnitDTO.getOrganizationCode());
// dto.setOrganizationCode(comUnitDTO.getOrganizationCode());
// dto.setRegisteredAddress(comUnitDTO.getRegisteredAddress());
// dto.setRegisteredAddress(comUnitDTO.getRegisteredAddress());
...
@@ -283,6 +281,8 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
...
@@ -283,6 +281,8 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
ComPersonDTO
comPersonDTO
=
comPersonService
.
getPersonById
(
SecurityUserHolder
.
getPersonId
());
ComPersonDTO
comPersonDTO
=
comPersonService
.
getPersonById
(
SecurityUserHolder
.
getPersonId
());
if
(
null
!=
comPersonDTO
)
{
if
(
null
!=
comPersonDTO
)
{
loadPersonInfo
(
dto
,
comPersonDTO
);
loadPersonInfo
(
dto
,
comPersonDTO
);
dto
.
setAddress
(
comPersonDTO
.
getAddress
());
dto
.
setMainResearchAreas
(
comPersonDTO
.
getMainResearchAreas
());
}
}
//经费表
//经费表
...
@@ -332,8 +332,6 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
...
@@ -332,8 +332,6 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
ComUnitDTO
comUnitDTO
=
comUnitService
.
getUnitById
(
dto
.
getAppUnitId
());
ComUnitDTO
comUnitDTO
=
comUnitService
.
getUnitById
(
dto
.
getAppUnitId
());
if
(
null
!=
comUnitDTO
)
{
if
(
null
!=
comUnitDTO
)
{
dto
.
setAppUnitName
(
comUnitDTO
.
getUnitName
());
dto
.
setAppUnitName
(
comUnitDTO
.
getUnitName
());
dto
.
setUnitTypeName
(
comUnitDTO
.
getUnitTypeName
());
dto
.
setAddress
(
comUnitDTO
.
getUnitAddress
());
}
}
// 项目合作单位
// 项目合作单位
...
...
science-admin/src/main/resources/mapper/ComProjectDAO.xml
View file @
37166684
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<select
id=
"getById"
parameterType=
"java.lang.String"
resultType=
"com.yiboshi.science.param.dto.ComProjectDTO"
>
<select
id=
"getById"
parameterType=
"java.lang.String"
resultType=
"com.yiboshi.science.param.dto.ComProjectDTO"
>
SELECT a.*,b.name knowledge_name,
SELECT a.*,b.name knowledge_name,
ic.proj_id,ic.job_time,ic.main_research_areas,
ic.proj_id,ic.job_time,ic.main_research_areas,
ic.address
ic.unit_link_name,ic.unit_link_mobile,ic.unit_link_email,ic.unit_link_fax,ic.subject_scope,ic.proj_abstract,ic.proj_keywords,
ic.unit_link_name,ic.unit_link_mobile,ic.unit_link_email,ic.unit_link_fax,ic.subject_scope,ic.proj_abstract,ic.proj_keywords,
ic.total_funding,ic.gov_funding,ic.unit_funding,ic.self_funding,ic.other_funding,
ic.total_funding,ic.gov_funding,ic.unit_funding,ic.self_funding,ic.other_funding,
ic.proj_content,
ic.proj_content,
...
...
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