Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cfld-know-admin
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
cfld-backend
cfld-know-admin
Commits
8924a3e7
Commit
8924a3e7
authored
Nov 02, 2023
by
yaobaizheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合伙招商后台
parent
9e2b1305
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
PartnerProjectInfoServiceImpl.java
...yi/system/service/impl/PartnerProjectInfoServiceImpl.java
+15
-0
editProjectInfo.html
...ources/templates/partnerProject/info/editProjectInfo.html
+2
-2
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/PartnerProjectInfoServiceImpl.java
View file @
8924a3e7
package
com
.
ruoyi
.
system
.
service
.
impl
;
package
com
.
ruoyi
.
system
.
service
.
impl
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
com.ruoyi.common.exception.GlobalException
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.system.VO.ChangeStatusVO
;
import
com.ruoyi.system.VO.ChangeStatusVO
;
import
com.ruoyi.system.VO.ProjectInfoVO
;
import
com.ruoyi.system.VO.ProjectInfoVO
;
...
@@ -17,6 +21,10 @@ import com.ruoyi.system.mapper.PartnerProjectInfoMapper;
...
@@ -17,6 +21,10 @@ import com.ruoyi.system.mapper.PartnerProjectInfoMapper;
import
com.ruoyi.system.domain.PartnerProjectInfo
;
import
com.ruoyi.system.domain.PartnerProjectInfo
;
import
com.ruoyi.system.service.IPartnerProjectInfoService
;
import
com.ruoyi.system.service.IPartnerProjectInfoService
;
import
com.ruoyi.common.core.text.Convert
;
import
com.ruoyi.common.core.text.Convert
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Transactional
;
import
static
org
.
springframework
.
transaction
.
TransactionDefinition
.
PROPAGATION_REQUIRED
;
/**
/**
* 合伙人项目Service业务层处理
* 合伙人项目Service业务层处理
...
@@ -112,6 +120,7 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService
...
@@ -112,6 +120,7 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService
}
}
@Override
@Override
@Transactional
public
int
updateChangeStatus
(
ChangeStatusVO
changeStatusVO
){
public
int
updateChangeStatus
(
ChangeStatusVO
changeStatusVO
){
//更新项目的信息
//更新项目的信息
...
@@ -126,6 +135,7 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService
...
@@ -126,6 +135,7 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService
}
}
partnerProjectInfoUp
.
setStatus
(
nextCodeByCode
);
partnerProjectInfoUp
.
setStatus
(
nextCodeByCode
);
partnerProjectInfoUp
.
setStatusDescription
(
message
);
partnerProjectInfoUp
.
setStatusDescription
(
message
);
partnerProjectInfoUp
.
setUpdateTime
(
new
Date
());
//更新当前节点
//更新当前节点
PartnerProjectStatusChangeLog
statusChange
=
new
PartnerProjectStatusChangeLog
();
PartnerProjectStatusChangeLog
statusChange
=
new
PartnerProjectStatusChangeLog
();
...
@@ -134,6 +144,7 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService
...
@@ -134,6 +144,7 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService
statusChange
.
setTodoStatus
(
PartnerProjectToDoEnum
.
TODOSTATUS_1
.
getCode
());
statusChange
.
setTodoStatus
(
PartnerProjectToDoEnum
.
TODOSTATUS_1
.
getCode
());
statusChange
.
setTodoStatusDescription
(
PartnerProjectToDoEnum
.
TODOSTATUS_1
.
getMessage
());
statusChange
.
setTodoStatusDescription
(
PartnerProjectToDoEnum
.
TODOSTATUS_1
.
getMessage
());
statusChange
.
setCurrentNodeStatus
(
PartnerProjectStatusEnum
.
CURRENT_NODES_END
.
getCode
());
statusChange
.
setCurrentNodeStatus
(
PartnerProjectStatusEnum
.
CURRENT_NODES_END
.
getCode
());
statusChange
.
setUpdateTime
(
new
Date
());
if
(
changeStatusVO
.
getStatus
()
==
PartnerProjectExamineEnum
.
PROJECTSTATUS2
.
getCode
()){
if
(
changeStatusVO
.
getStatus
()
==
PartnerProjectExamineEnum
.
PROJECTSTATUS2
.
getCode
()){
if
(
changeStatusVO
.
getRepeateType
()
==
PartnerProjectStatusEnum
.
PROJECT_REPRATE
.
getCode
()){
if
(
changeStatusVO
.
getRepeateType
()
==
PartnerProjectStatusEnum
.
PROJECT_REPRATE
.
getCode
()){
statusChange
.
setTodoStatus
(
PartnerProjectToDoEnum
.
TODOSTATUS0
.
getCode
());
statusChange
.
setTodoStatus
(
PartnerProjectToDoEnum
.
TODOSTATUS0
.
getCode
());
...
@@ -162,6 +173,9 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService
...
@@ -162,6 +173,9 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService
//关联产业知道id
//关联产业知道id
if
(
changeStatusVO
.
getStatus
()
==
PartnerProjectExamineEnum
.
PROJECTSTATUS4
.
getCode
()){
if
(
changeStatusVO
.
getStatus
()
==
PartnerProjectExamineEnum
.
PROJECTSTATUS4
.
getCode
()){
if
(
ObjectUtils
.
isEmpty
(
changeStatusVO
.
getChanyezhidaoPeojectId
())){
throw
new
ServiceException
(
"关联id不能为空"
);
}
PartnerProjectInfo
partnerProjectInfo
=
new
PartnerProjectInfo
();
PartnerProjectInfo
partnerProjectInfo
=
new
PartnerProjectInfo
();
partnerProjectInfo
.
setProjectId
(
changeStatusVO
.
getChanyezhidaoPeojectId
());
partnerProjectInfo
.
setProjectId
(
changeStatusVO
.
getChanyezhidaoPeojectId
());
partnerProjectInfo
.
setId
(
changeStatusVO
.
getProjectId
());
partnerProjectInfo
.
setId
(
changeStatusVO
.
getProjectId
());
...
@@ -180,6 +194,7 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService
...
@@ -180,6 +194,7 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService
//更新下一个节点
//更新下一个节点
PartnerProjectStatusChangeLog
partnerProjectStatusChangeLog
=
partnerProjectStatusChangeLogs
.
get
(
0
);
PartnerProjectStatusChangeLog
partnerProjectStatusChangeLog
=
partnerProjectStatusChangeLogs
.
get
(
0
);
partnerProjectStatusChangeLog
.
setCurrentNodeStatus
(
PartnerProjectStatusEnum
.
CURRENT_NODES_STARTING
.
getCode
());
partnerProjectStatusChangeLog
.
setCurrentNodeStatus
(
PartnerProjectStatusEnum
.
CURRENT_NODES_STARTING
.
getCode
());
partnerProjectStatusChangeLog
.
setUpdateTime
(
new
Date
());
if
(
changeStatusVO
.
getStatus
()
==
PartnerProjectExamineEnum
.
PROJECTSTATUS2
.
getCode
())
{
if
(
changeStatusVO
.
getStatus
()
==
PartnerProjectExamineEnum
.
PROJECTSTATUS2
.
getCode
())
{
if
(
changeStatusVO
.
getRepeateType
()
==
PartnerProjectStatusEnum
.
PROJECT_REPRATE
.
getCode
())
{
if
(
changeStatusVO
.
getRepeateType
()
==
PartnerProjectStatusEnum
.
PROJECT_REPRATE
.
getCode
())
{
partnerProjectStatusChangeLog
.
setCurrentNodeStatus
(
PartnerProjectStatusEnum
.
CURRENT_NODES_START
.
getCode
());
partnerProjectStatusChangeLog
.
setCurrentNodeStatus
(
PartnerProjectStatusEnum
.
CURRENT_NODES_START
.
getCode
());
...
...
ruoyi-system/src/main/resources/templates/partnerProject/info/editProjectInfo.html
View file @
8924a3e7
...
@@ -274,14 +274,14 @@
...
@@ -274,14 +274,14 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
近年营收:
</label>
<label
class=
"col-sm-3 control-label"
>
近年营收:
</label>
<div
class=
"col-sm-8"
>
<div
class=
"col-sm-8"
>
<input
name=
"continuousRevenue"
th:field=
"*{continuousRevenue}"
class=
"form-control"
<input
readonly=
"readonly"
name=
"continuousRevenue"
th:field=
"*{continuousRevenue}"
class=
"form-control"
type=
"text"
>
type=
"text"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
产业基地:
</label>
<label
class=
"col-sm-3 control-label"
>
产业基地:
</label>
<div
class=
"col-sm-8"
>
<div
class=
"col-sm-8"
>
<input
name=
"industrialBase"
th:field=
"*{industrialBase}"
class=
"form-control"
<input
readonly=
"readonly"
name=
"industrialBase"
th:field=
"*{industrialBase}"
class=
"form-control"
type=
"text"
>
type=
"text"
>
</div>
</div>
</div>
</div>
...
...
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