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
b591340b
Commit
b591340b
authored
Oct 31, 2023
by
yaobaizheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合伙招商后台
parent
18a243ac
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
3683 additions
and
0 deletions
+3683
-0
BaseController.java
...java/com/ruoyi/common/core/controller/BaseController.java
+13
-0
ChangeStatusVO.java
...tem/src/main/java/com/ruoyi/system/VO/ChangeStatusVO.java
+68
-0
PartnerProjectStatusChangeLogVO.java
.../com/ruoyi/system/VO/PartnerProjectStatusChangeLogVO.java
+167
-0
ProjectInfoVO.java
...stem/src/main/java/com/ruoyi/system/VO/ProjectInfoVO.java
+132
-0
PartnerProjectInfoController.java
...ruoyi/system/controller/PartnerProjectInfoController.java
+197
-0
PartnerProjectStatusChangeLogController.java
...m/controller/PartnerProjectStatusChangeLogController.java
+127
-0
ProjectInfoController.java
...va/com/ruoyi/system/controller/ProjectInfoController.java
+127
-0
PartnerProjectInfo.java
...main/java/com/ruoyi/system/domain/PartnerProjectInfo.java
+0
-0
PartnerProjectStatusChangeLog.java
...om/ruoyi/system/domain/PartnerProjectStatusChangeLog.java
+165
-0
ProjectInfo.java
...em/src/main/java/com/ruoyi/system/domain/ProjectInfo.java
+306
-0
ImageSourceTypeEnum.java
.../java/com/ruoyi/system/enumerate/ImageSourceTypeEnum.java
+32
-0
PartnerProjectAllocationEnum.java
.../ruoyi/system/enumerate/PartnerProjectAllocationEnum.java
+56
-0
PartnerProjectExamineEnum.java
...com/ruoyi/system/enumerate/PartnerProjectExamineEnum.java
+66
-0
PartnerProjectPushEnum.java
...va/com/ruoyi/system/enumerate/PartnerProjectPushEnum.java
+65
-0
PartnerProjectStatusEnum.java
.../com/ruoyi/system/enumerate/PartnerProjectStatusEnum.java
+48
-0
PartnerProjectToDoEnum.java
...va/com/ruoyi/system/enumerate/PartnerProjectToDoEnum.java
+44
-0
PartnerProjectInfoMapper.java
...ava/com/ruoyi/system/mapper/PartnerProjectInfoMapper.java
+65
-0
PartnerProjectStatusChangeLogMapper.java
...yi/system/mapper/PartnerProjectStatusChangeLogMapper.java
+65
-0
ProjectInfoMapper.java
.../main/java/com/ruoyi/system/mapper/ProjectInfoMapper.java
+61
-0
IPartnerProjectInfoService.java
.../com/ruoyi/system/service/IPartnerProjectInfoService.java
+68
-0
IPartnerProjectStatusChangeLogService.java
...system/service/IPartnerProjectStatusChangeLogService.java
+68
-0
IProjectInfoService.java
...in/java/com/ruoyi/system/service/IProjectInfoService.java
+61
-0
PartnerProjectInfoServiceImpl.java
...yi/system/service/impl/PartnerProjectInfoServiceImpl.java
+136
-0
PartnerProjectStatusChangeLogServiceImpl.java
...ervice/impl/PartnerProjectStatusChangeLogServiceImpl.java
+107
-0
ProjectInfoServiceImpl.java
...com/ruoyi/system/service/impl/ProjectInfoServiceImpl.java
+97
-0
BussinessUtils.java
...m/src/main/java/com/ruoyi/system/util/BussinessUtils.java
+33
-0
PartnerProjectInfoMapper.xml
...ources/mapper/partnerProject/PartnerProjectInfoMapper.xml
+0
-0
ProjectInfoMapper.xml
...m/src/main/resources/mapper/project/ProjectInfoMapper.xml
+157
-0
PartnerProjectStatusChangeLogMapper.xml
...pper/statusChange/PartnerProjectStatusChangeLogMapper.xml
+125
-0
add.html
...src/main/resources/templates/partnerProject/info/add.html
+204
-0
edit.html
...rc/main/resources/templates/partnerProject/info/edit.html
+0
-0
editProjectInfo.html
...ources/templates/partnerProject/info/editProjectInfo.html
+0
-0
info.html
...rc/main/resources/templates/partnerProject/info/info.html
+127
-0
info_bak.html
...ain/resources/templates/partnerProject/info/info_bak.html
+133
-0
selectProject.html
...esources/templates/partnerProject/info/selectProject.html
+123
-0
add.html
...system/src/main/resources/templates/project/info/add.html
+155
-0
edit.html
...ystem/src/main/resources/templates/project/info/edit.html
+160
-0
info.html
...ystem/src/main/resources/templates/project/info/info.html
+0
-0
add.html
...m/src/main/resources/templates/statusChange/info/add.html
+62
-0
edit.html
.../src/main/resources/templates/statusChange/info/edit.html
+63
-0
info.html
.../src/main/resources/templates/statusChange/info/info.html
+0
-0
No files found.
ruoyi-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java
View file @
b591340b
...
...
@@ -117,6 +117,19 @@ public class BaseController
return
rspData
;
}
/**
* 响应请求分页数据
*/
@SuppressWarnings
({
"rawtypes"
,
"unchecked"
})
protected
TableDataInfo
getDataTable
(
List
<?>
list
,
Long
total
)
{
TableDataInfo
rspData
=
new
TableDataInfo
();
rspData
.
setCode
(
0
);
rspData
.
setRows
(
list
);
rspData
.
setTotal
(
total
);
return
rspData
;
}
/**
* 响应返回结果
*
...
...
ruoyi-system/src/main/java/com/ruoyi/system/VO/ChangeStatusVO.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
VO
;
public
class
ChangeStatusVO
{
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
id
;
/** id */
private
Long
projectId
;
private
Integer
status
;
private
String
feedBack
;
private
Integer
repeateType
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
String
getFeedBack
()
{
return
feedBack
;
}
public
void
setFeedBack
(
String
feedBack
)
{
this
.
feedBack
=
feedBack
;
}
public
Integer
getRepeateType
()
{
return
repeateType
;
}
public
void
setRepeateType
(
Integer
repeateType
)
{
this
.
repeateType
=
repeateType
;
}
public
Long
getProjectId
()
{
return
projectId
;
}
public
void
setProjectId
(
Long
projectId
)
{
this
.
projectId
=
projectId
;
}
@Override
public
String
toString
()
{
return
"ChangeStatusVO{"
+
"id="
+
id
+
", projectId="
+
projectId
+
", status="
+
status
+
", feedBack='"
+
feedBack
+
'\''
+
", repeateType="
+
repeateType
+
'}'
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/VO/PartnerProjectStatusChangeLogVO.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
VO
;
import
com.ruoyi.common.annotation.Excel
;
import
com.ruoyi.common.core.domain.BaseEntity
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
java.util.List
;
/**
* 项目节点信息对象 partner_project_status_change_log
*
* @author ruoyi
* @date 2023-10-31
*/
public
class
PartnerProjectStatusChangeLogVO
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** */
private
Long
id
;
/** 项目状态code */
@Excel
(
name
=
"项目状态code"
)
private
List
<
Integer
>
projectStatus
;
/** 项目状态 */
@Excel
(
name
=
"项目状态"
)
private
String
projectStatusDisplay
;
/** */
@Excel
(
name
=
""
)
private
Long
projectId
;
/** 操作人 */
@Excel
(
name
=
"操作人"
)
private
Long
operaterId
;
/** */
@Excel
(
name
=
""
)
private
Long
tenantId
;
/** 描述 */
@Excel
(
name
=
"描述"
)
private
String
description
;
/** 0-项目查重确认 1-确认项目所属 2-确认佣金比例 */
@Excel
(
name
=
"0-项目查重确认 1-确认项目所属 2-确认佣金比例"
)
private
Integer
todoStatus
;
/** 0-项目查重确认 1-确认项目所属 2-确认佣金比例 */
@Excel
(
name
=
"0-项目查重确认 1-确认项目所属 2-确认佣金比例"
)
private
String
todoStatusDescription
;
/** 当前节点状态(0-未审核;1-已审核) */
@Excel
(
name
=
"当前节点状态"
,
readConverterExp
=
"0=-未审核;1-已审核"
)
private
Integer
currentNodeStatus
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setProjectStatus
(
List
<
Integer
>
projectStatus
)
{
this
.
projectStatus
=
projectStatus
;
}
public
List
<
Integer
>
getProjectStatus
()
{
return
projectStatus
;
}
public
void
setProjectStatusDisplay
(
String
projectStatusDisplay
)
{
this
.
projectStatusDisplay
=
projectStatusDisplay
;
}
public
String
getProjectStatusDisplay
()
{
return
projectStatusDisplay
;
}
public
void
setProjectId
(
Long
projectId
)
{
this
.
projectId
=
projectId
;
}
public
Long
getProjectId
()
{
return
projectId
;
}
public
void
setOperaterId
(
Long
operaterId
)
{
this
.
operaterId
=
operaterId
;
}
public
Long
getOperaterId
()
{
return
operaterId
;
}
public
void
setTenantId
(
Long
tenantId
)
{
this
.
tenantId
=
tenantId
;
}
public
Long
getTenantId
()
{
return
tenantId
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
public
String
getDescription
()
{
return
description
;
}
public
void
setTodoStatus
(
Integer
todoStatus
)
{
this
.
todoStatus
=
todoStatus
;
}
public
Integer
getTodoStatus
()
{
return
todoStatus
;
}
public
void
setTodoStatusDescription
(
String
todoStatusDescription
)
{
this
.
todoStatusDescription
=
todoStatusDescription
;
}
public
String
getTodoStatusDescription
()
{
return
todoStatusDescription
;
}
public
void
setCurrentNodeStatus
(
Integer
currentNodeStatus
)
{
this
.
currentNodeStatus
=
currentNodeStatus
;
}
public
Integer
getCurrentNodeStatus
()
{
return
currentNodeStatus
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"projectStatus"
,
getProjectStatus
())
.
append
(
"projectStatusDisplay"
,
getProjectStatusDisplay
())
.
append
(
"projectId"
,
getProjectId
())
.
append
(
"operaterId"
,
getOperaterId
())
.
append
(
"tenantId"
,
getTenantId
())
.
append
(
"description"
,
getDescription
())
.
append
(
"todoStatus"
,
getTodoStatus
())
.
append
(
"todoStatusDescription"
,
getTodoStatusDescription
())
.
append
(
"currentNodeStatus"
,
getCurrentNodeStatus
())
.
toString
();
}
}
ruoyi-system/src/main/java/com/ruoyi/system/VO/ProjectInfoVO.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
VO
;
import
com.ruoyi.common.annotation.Excel
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.math.BigDecimal
;
import
java.util.Date
;
public
class
ProjectInfoVO
{
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
id
;
/** 投资主体 */
@Excel
(
name
=
"投资主体"
)
private
String
investmentSubject
;
@Excel
(
name
=
"项目名称"
)
private
String
projectName
;
/** 投资总额 */
@Excel
(
name
=
"投资总额"
)
private
BigDecimal
projectInvestmentTotal
;
/** 固定资产投资总额 */
@Excel
(
name
=
"固定资产投资总额"
)
private
BigDecimal
projectInvestmentRegular
;
@Excel
(
name
=
"项目阶段"
)
private
String
projectStage
;
/** 确认状态 */
@Excel
(
name
=
"确认状态"
)
private
String
todoStatusDescription
;
/** 合伙人账号 */
@Excel
(
name
=
"合伙人账号"
)
private
String
partnerAccount
;
@Excel
(
name
=
"项目录入时间"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
createTime
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getInvestmentSubject
()
{
return
investmentSubject
;
}
public
void
setInvestmentSubject
(
String
investmentSubject
)
{
this
.
investmentSubject
=
investmentSubject
;
}
public
String
getProjectName
()
{
return
projectName
;
}
public
void
setProjectName
(
String
projectName
)
{
this
.
projectName
=
projectName
;
}
public
BigDecimal
getProjectInvestmentTotal
()
{
return
projectInvestmentTotal
;
}
public
void
setProjectInvestmentTotal
(
BigDecimal
projectInvestmentTotal
)
{
this
.
projectInvestmentTotal
=
projectInvestmentTotal
;
}
public
BigDecimal
getProjectInvestmentRegular
()
{
return
projectInvestmentRegular
;
}
public
void
setProjectInvestmentRegular
(
BigDecimal
projectInvestmentRegular
)
{
this
.
projectInvestmentRegular
=
projectInvestmentRegular
;
}
public
String
getProjectStage
()
{
return
projectStage
;
}
public
void
setProjectStage
(
String
projectStage
)
{
this
.
projectStage
=
projectStage
;
}
public
String
getTodoStatusDescription
()
{
return
todoStatusDescription
;
}
public
void
setTodoStatusDescription
(
String
todoStatusDescription
)
{
this
.
todoStatusDescription
=
todoStatusDescription
;
}
public
String
getPartnerAccount
()
{
return
partnerAccount
;
}
public
void
setPartnerAccount
(
String
partnerAccount
)
{
this
.
partnerAccount
=
partnerAccount
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
@Override
public
String
toString
()
{
return
"ProjectInfoVO{"
+
"id="
+
id
+
", investmentSubject='"
+
investmentSubject
+
'\''
+
", projectName='"
+
projectName
+
'\''
+
", projectInvestmentTotal="
+
projectInvestmentTotal
+
", projectInvestmentRegular="
+
projectInvestmentRegular
+
", projectStage='"
+
projectStage
+
'\''
+
", todoStatusDescription='"
+
todoStatusDescription
+
'\''
+
", partnerAccount='"
+
partnerAccount
+
'\''
+
", createTime="
+
createTime
+
'}'
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/controller/PartnerProjectInfoController.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
controller
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
com.github.pagehelper.PageInfo
;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.system.VO.ChangeStatusVO
;
import
com.ruoyi.system.VO.PartnerProjectStatusChangeLogVO
;
import
com.ruoyi.system.VO.ProjectInfoVO
;
import
com.ruoyi.system.domain.PartnerProjectStatusChangeLog
;
import
com.ruoyi.system.domain.ProjectInfo
;
import
com.ruoyi.system.enumerate.PartnerProjectExamineEnum
;
import
com.ruoyi.system.service.*
;
import
com.ruoyi.system.util.BussinessUtils
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.ModelMap
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
com.ruoyi.common.annotation.Log
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.system.domain.PartnerProjectInfo
;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
/**
* 合伙人项目Controller
*
* @author ruoyi
* @date 2023-10-27
*/
@Controller
@RequestMapping
(
"/partnerProject/info"
)
public
class
PartnerProjectInfoController
extends
BaseController
{
private
String
prefix
=
"partnerProject/info"
;
@Autowired
private
IPartnerProjectInfoService
partnerProjectInfoService
;
@Autowired
private
IPartnerProjectStatusChangeLogService
projectStatusChangeService
;
@RequiresPermissions
(
"partnerProject:info:view"
)
@GetMapping
()
public
String
info
()
{
return
prefix
+
"/info"
;
}
/**
* 查询合伙人项目列表
*/
@RequiresPermissions
(
"partnerProject:info:list"
)
@PostMapping
(
"/list"
)
@ResponseBody
public
TableDataInfo
list
(
PartnerProjectInfo
partnerProjectInfo
)
{
startPage
();
List
<
PartnerProjectInfo
>
list
=
partnerProjectInfoService
.
selectPartnerProjectInfoList
(
partnerProjectInfo
);
return
getDataTable
(
list
);
}
/**
* 查询合伙人项目列表
*/
@RequiresPermissions
(
"partnerProject:info:list"
)
@PostMapping
(
"/listPartnerProject"
)
@ResponseBody
// public TableDataInfo listPartnerProject(PartnerProjectInfo partnerProjectInfo)
public
TableDataInfo
listPartnerProject
(
ProjectInfoVO
projectInfoVO
)
{
startPage
();
List
<
ProjectInfoVO
>
list
=
partnerProjectInfoService
.
selectProjectList
(
projectInfoVO
);
return
getDataTable
(
list
);
}
/**
* 导出合伙人项目列表
*/
@RequiresPermissions
(
"partnerProject:info:export"
)
@Log
(
title
=
"合伙人项目"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
@ResponseBody
public
AjaxResult
export
(
PartnerProjectInfo
partnerProjectInfo
)
{
List
<
PartnerProjectInfo
>
list
=
partnerProjectInfoService
.
selectPartnerProjectInfoList
(
partnerProjectInfo
);
ExcelUtil
<
PartnerProjectInfo
>
util
=
new
ExcelUtil
<
PartnerProjectInfo
>(
PartnerProjectInfo
.
class
);
return
util
.
exportExcel
(
list
,
"合伙人项目数据"
);
}
/**
* 新增合伙人项目
*/
@GetMapping
(
"/add"
)
public
String
add
()
{
return
prefix
+
"/add"
;
}
/**
* 新增保存合伙人项目
*/
@RequiresPermissions
(
"partnerProject:info:add"
)
@Log
(
title
=
"合伙人项目"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
(
"/add"
)
@ResponseBody
public
AjaxResult
addSave
(
PartnerProjectInfo
partnerProjectInfo
)
{
return
toAjax
(
partnerProjectInfoService
.
insertPartnerProjectInfo
(
partnerProjectInfo
));
}
/**
* 修改合伙人项目
*/
@RequiresPermissions
(
"partnerProject:info:edit"
)
@GetMapping
(
"/edit/{id}"
)
public
String
edit
(
@PathVariable
(
"id"
)
Long
id
,
ModelMap
mmap
)
{
PartnerProjectInfo
partnerProjectInfo
=
partnerProjectInfoService
.
selectPartnerProjectInfoById
(
id
);
mmap
.
put
(
"partnerProjectInfo"
,
partnerProjectInfo
);
return
prefix
+
"/edit"
;
}
/**
* 修改合伙人项目
*/
@RequiresPermissions
(
"partnerProject:info:edit"
)
@GetMapping
(
"/editProjectInfo/{id}"
)
public
String
editProjectInfo
(
@PathVariable
(
"id"
)
Long
id
,
ModelMap
mmap
)
{
PartnerProjectInfo
partnerProjectInfo
=
partnerProjectInfoService
.
selectPartnerProjectInfoById
(
id
);
PartnerProjectStatusChangeLogVO
statusChangeLog
=
new
PartnerProjectStatusChangeLogVO
();
statusChangeLog
.
setProjectId
(
id
);
List
<
Integer
>
array
=
new
ArrayList
<>();
for
(
PartnerProjectExamineEnum
ppe:
PartnerProjectExamineEnum
.
values
()){
array
.
add
(
ppe
.
getCode
());
}
statusChangeLog
.
setProjectStatus
(
array
);
List
<
PartnerProjectStatusChangeLog
>
partnerProjectStatusChangeLogs
=
projectStatusChangeService
.
selectStatusChangeLogList
(
statusChangeLog
);
mmap
.
put
(
"partnerProjectInfo"
,
partnerProjectInfo
);
// mmap.put("partnerProjectStatusChangeLogs", partnerProjectStatusChangeLogs);
if
(
partnerProjectStatusChangeLogs
!=
null
&&
partnerProjectStatusChangeLogs
.
size
()==
7
){
mmap
.
put
(
"status1"
,
partnerProjectStatusChangeLogs
.
get
(
0
));
mmap
.
put
(
"status2"
,
partnerProjectStatusChangeLogs
.
get
(
1
));
mmap
.
put
(
"status4"
,
partnerProjectStatusChangeLogs
.
get
(
2
));
mmap
.
put
(
"status5"
,
partnerProjectStatusChangeLogs
.
get
(
3
));
mmap
.
put
(
"status6"
,
partnerProjectStatusChangeLogs
.
get
(
4
));
mmap
.
put
(
"status7"
,
partnerProjectStatusChangeLogs
.
get
(
5
));
mmap
.
put
(
"status8"
,
partnerProjectStatusChangeLogs
.
get
(
6
));
}
return
prefix
+
"/editProjectInfo"
;
}
/**
* 修改保存合伙人项目
*/
@RequiresPermissions
(
"partnerProject:info:edit"
)
@Log
(
title
=
"合伙人项目"
,
businessType
=
BusinessType
.
UPDATE
)
@PostMapping
(
"/edit"
)
@ResponseBody
public
AjaxResult
editSave
(
PartnerProjectInfo
partnerProjectInfo
)
{
return
toAjax
(
partnerProjectInfoService
.
updatePartnerProjectInfo
(
partnerProjectInfo
));
}
/**
* 删除合伙人项目
*/
@RequiresPermissions
(
"partnerProject:info:remove"
)
@Log
(
title
=
"合伙人项目"
,
businessType
=
BusinessType
.
DELETE
)
@PostMapping
(
"/remove"
)
@ResponseBody
public
AjaxResult
remove
(
String
ids
)
{
return
toAjax
(
partnerProjectInfoService
.
deletePartnerProjectInfoByIds
(
ids
));
}
@PostMapping
(
"/updateChangeStatus"
)
@ResponseBody
public
AjaxResult
updateChangeStatus
(
ChangeStatusVO
changeStatusVO
)
{
return
toAjax
(
partnerProjectInfoService
.
updateChangeStatus
(
changeStatusVO
));
}
}
ruoyi-system/src/main/java/com/ruoyi/system/controller/PartnerProjectStatusChangeLogController.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
controller
;
import
java.util.List
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.ModelMap
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
com.ruoyi.common.annotation.Log
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.system.domain.PartnerProjectStatusChangeLog
;
import
com.ruoyi.system.service.IPartnerProjectStatusChangeLogService
;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
/**
* 项目节点信息Controller
*
* @author ruoyi
* @date 2023-10-31
*/
@Controller
@RequestMapping
(
"/statusChange/info"
)
public
class
PartnerProjectStatusChangeLogController
extends
BaseController
{
private
String
prefix
=
"statusChange/info"
;
@Autowired
private
IPartnerProjectStatusChangeLogService
partnerProjectStatusChangeLogService
;
// @RequiresPermissions("statusChange:info:view")
@GetMapping
()
public
String
info
()
{
return
prefix
+
"/info"
;
}
/**
* 查询项目节点信息列表
*/
// @RequiresPermissions("statusChange:info:list")
@PostMapping
(
"/list"
)
@ResponseBody
public
TableDataInfo
list
(
PartnerProjectStatusChangeLog
partnerProjectStatusChangeLog
)
{
startPage
();
List
<
PartnerProjectStatusChangeLog
>
list
=
partnerProjectStatusChangeLogService
.
selectPartnerProjectStatusChangeLogList
(
partnerProjectStatusChangeLog
);
return
getDataTable
(
list
);
}
/**
* 导出项目节点信息列表
*/
// @RequiresPermissions("statusChange:info:export")
@Log
(
title
=
"项目节点信息"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
@ResponseBody
public
AjaxResult
export
(
PartnerProjectStatusChangeLog
partnerProjectStatusChangeLog
)
{
List
<
PartnerProjectStatusChangeLog
>
list
=
partnerProjectStatusChangeLogService
.
selectPartnerProjectStatusChangeLogList
(
partnerProjectStatusChangeLog
);
ExcelUtil
<
PartnerProjectStatusChangeLog
>
util
=
new
ExcelUtil
<
PartnerProjectStatusChangeLog
>(
PartnerProjectStatusChangeLog
.
class
);
return
util
.
exportExcel
(
list
,
"项目节点信息数据"
);
}
/**
* 新增项目节点信息
*/
@GetMapping
(
"/add"
)
public
String
add
()
{
return
prefix
+
"/add"
;
}
/**
* 新增保存项目节点信息
*/
// @RequiresPermissions("statusChange:info:add")
@Log
(
title
=
"项目节点信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
(
"/add"
)
@ResponseBody
public
AjaxResult
addSave
(
PartnerProjectStatusChangeLog
partnerProjectStatusChangeLog
)
{
return
toAjax
(
partnerProjectStatusChangeLogService
.
insertPartnerProjectStatusChangeLog
(
partnerProjectStatusChangeLog
));
}
/**
* 修改项目节点信息
*/
// @RequiresPermissions("statusChange:info:edit")
@GetMapping
(
"/edit/{id}"
)
public
String
edit
(
@PathVariable
(
"id"
)
Long
id
,
ModelMap
mmap
)
{
PartnerProjectStatusChangeLog
partnerProjectStatusChangeLog
=
partnerProjectStatusChangeLogService
.
selectPartnerProjectStatusChangeLogById
(
id
);
mmap
.
put
(
"partnerProjectStatusChangeLog"
,
partnerProjectStatusChangeLog
);
return
prefix
+
"/edit"
;
}
/**
* 修改保存项目节点信息
*/
// @RequiresPermissions("statusChange:info:edit")
@Log
(
title
=
"项目节点信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PostMapping
(
"/edit"
)
@ResponseBody
public
AjaxResult
editSave
(
PartnerProjectStatusChangeLog
partnerProjectStatusChangeLog
)
{
return
toAjax
(
partnerProjectStatusChangeLogService
.
updatePartnerProjectStatusChangeLog
(
partnerProjectStatusChangeLog
));
}
/**
* 删除项目节点信息
*/
// @RequiresPermissions("statusChange:info:remove")
@Log
(
title
=
"项目节点信息"
,
businessType
=
BusinessType
.
DELETE
)
@PostMapping
(
"/remove"
)
@ResponseBody
public
AjaxResult
remove
(
String
ids
)
{
return
toAjax
(
partnerProjectStatusChangeLogService
.
deletePartnerProjectStatusChangeLogByIds
(
ids
));
}
}
ruoyi-system/src/main/java/com/ruoyi/system/controller/ProjectInfoController.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
controller
;
import
java.util.List
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.ModelMap
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
com.ruoyi.common.annotation.Log
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.system.domain.ProjectInfo
;
import
com.ruoyi.system.service.IProjectInfoService
;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
/**
* 产业知道项目信息Controller
*
* @author ruoyi
* @date 2023-10-27
*/
@Controller
@RequestMapping
(
"/project/info"
)
public
class
ProjectInfoController
extends
BaseController
{
private
String
prefix
=
"project/info"
;
@Autowired
private
IProjectInfoService
projectInfoService
;
// @RequiresPermissions("project:info:view")
@GetMapping
()
public
String
info
()
{
return
prefix
+
"/info"
;
}
/**
* 查询产业知道项目信息列表
*/
// @RequiresPermissions("project:info:list")
@PostMapping
(
"/list"
)
@ResponseBody
public
TableDataInfo
list
(
ProjectInfo
projectInfo
)
{
startPage
();
List
<
ProjectInfo
>
list
=
projectInfoService
.
selectProjectInfoList
(
projectInfo
);
return
getDataTable
(
list
);
}
/**
* 导出产业知道项目信息列表
*/
// @RequiresPermissions("project:info:export")
@Log
(
title
=
"产业知道项目信息"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
@ResponseBody
public
AjaxResult
export
(
ProjectInfo
projectInfo
)
{
List
<
ProjectInfo
>
list
=
projectInfoService
.
selectProjectInfoList
(
projectInfo
);
ExcelUtil
<
ProjectInfo
>
util
=
new
ExcelUtil
<
ProjectInfo
>(
ProjectInfo
.
class
);
return
util
.
exportExcel
(
list
,
"产业知道项目信息数据"
);
}
/**
* 新增产业知道项目信息
*/
@GetMapping
(
"/add"
)
public
String
add
()
{
return
prefix
+
"/add"
;
}
/**
* 新增保存产业知道项目信息
*/
// @RequiresPermissions("project:info:add")
@Log
(
title
=
"产业知道项目信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
(
"/add"
)
@ResponseBody
public
AjaxResult
addSave
(
ProjectInfo
projectInfo
)
{
return
toAjax
(
projectInfoService
.
insertProjectInfo
(
projectInfo
));
}
/**
* 修改产业知道项目信息
*/
// @RequiresPermissions("project:info:edit")
@GetMapping
(
"/edit/{id}"
)
public
String
edit
(
@PathVariable
(
"id"
)
Long
id
,
ModelMap
mmap
)
{
ProjectInfo
projectInfo
=
projectInfoService
.
selectProjectInfoById
(
id
);
mmap
.
put
(
"projectInfo"
,
projectInfo
);
return
prefix
+
"/edit"
;
}
/**
* 修改保存产业知道项目信息
*/
// @RequiresPermissions("project:info:edit")
@Log
(
title
=
"产业知道项目信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PostMapping
(
"/edit"
)
@ResponseBody
public
AjaxResult
editSave
(
ProjectInfo
projectInfo
)
{
return
toAjax
(
projectInfoService
.
updateProjectInfo
(
projectInfo
));
}
/**
* 删除产业知道项目信息
*/
// @RequiresPermissions("project:info:remove")
@Log
(
title
=
"产业知道项目信息"
,
businessType
=
BusinessType
.
DELETE
)
@PostMapping
(
"/remove"
)
@ResponseBody
public
AjaxResult
remove
(
String
ids
)
{
return
toAjax
(
projectInfoService
.
deleteProjectInfoByIds
(
ids
));
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/PartnerProjectInfo.java
0 → 100644
View file @
b591340b
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/domain/PartnerProjectStatusChangeLog.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
domain
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.ruoyi.common.annotation.Excel
;
import
com.ruoyi.common.core.domain.BaseEntity
;
/**
* 项目节点信息对象 partner_project_status_change_log
*
* @author ruoyi
* @date 2023-10-31
*/
public
class
PartnerProjectStatusChangeLog
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** */
private
Long
id
;
/** 项目状态code */
@Excel
(
name
=
"项目状态code"
)
private
Integer
projectStatus
;
/** 项目状态 */
@Excel
(
name
=
"项目状态"
)
private
String
projectStatusDisplay
;
/** */
@Excel
(
name
=
""
)
private
Long
projectId
;
/** 操作人 */
@Excel
(
name
=
"操作人"
)
private
Long
operaterId
;
/** */
@Excel
(
name
=
""
)
private
Long
tenantId
;
/** 描述 */
@Excel
(
name
=
"描述"
)
private
String
description
;
/** 0-项目查重确认 1-确认项目所属 2-确认佣金比例 */
@Excel
(
name
=
"0-项目查重确认 1-确认项目所属 2-确认佣金比例"
)
private
Integer
todoStatus
;
/** 0-项目查重确认 1-确认项目所属 2-确认佣金比例 */
@Excel
(
name
=
"0-项目查重确认 1-确认项目所属 2-确认佣金比例"
)
private
String
todoStatusDescription
;
/** 当前节点状态(0-未审核;1-已审核) */
@Excel
(
name
=
"当前节点状态"
,
readConverterExp
=
"0=-未审核;1-已审核"
)
private
Integer
currentNodeStatus
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setProjectStatus
(
Integer
projectStatus
)
{
this
.
projectStatus
=
projectStatus
;
}
public
Integer
getProjectStatus
()
{
return
projectStatus
;
}
public
void
setProjectStatusDisplay
(
String
projectStatusDisplay
)
{
this
.
projectStatusDisplay
=
projectStatusDisplay
;
}
public
String
getProjectStatusDisplay
()
{
return
projectStatusDisplay
;
}
public
void
setProjectId
(
Long
projectId
)
{
this
.
projectId
=
projectId
;
}
public
Long
getProjectId
()
{
return
projectId
;
}
public
void
setOperaterId
(
Long
operaterId
)
{
this
.
operaterId
=
operaterId
;
}
public
Long
getOperaterId
()
{
return
operaterId
;
}
public
void
setTenantId
(
Long
tenantId
)
{
this
.
tenantId
=
tenantId
;
}
public
Long
getTenantId
()
{
return
tenantId
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
public
String
getDescription
()
{
return
description
;
}
public
void
setTodoStatus
(
Integer
todoStatus
)
{
this
.
todoStatus
=
todoStatus
;
}
public
Integer
getTodoStatus
()
{
return
todoStatus
;
}
public
void
setTodoStatusDescription
(
String
todoStatusDescription
)
{
this
.
todoStatusDescription
=
todoStatusDescription
;
}
public
String
getTodoStatusDescription
()
{
return
todoStatusDescription
;
}
public
void
setCurrentNodeStatus
(
Integer
currentNodeStatus
)
{
this
.
currentNodeStatus
=
currentNodeStatus
;
}
public
Integer
getCurrentNodeStatus
()
{
return
currentNodeStatus
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"projectStatus"
,
getProjectStatus
())
.
append
(
"projectStatusDisplay"
,
getProjectStatusDisplay
())
.
append
(
"projectId"
,
getProjectId
())
.
append
(
"operaterId"
,
getOperaterId
())
.
append
(
"tenantId"
,
getTenantId
())
.
append
(
"description"
,
getDescription
())
.
append
(
"todoStatus"
,
getTodoStatus
())
.
append
(
"todoStatusDescription"
,
getTodoStatusDescription
())
.
append
(
"currentNodeStatus"
,
getCurrentNodeStatus
())
.
toString
();
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/ProjectInfo.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
domain
;
import
java.math.BigDecimal
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.ruoyi.common.annotation.Excel
;
import
com.ruoyi.common.core.domain.BaseEntity
;
/**
* 产业知道项目信息对象 project_info
*
* @author ruoyi
* @date 2023-10-27
*/
public
class
ProjectInfo
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 主键 */
private
Long
id
;
/** 项目编号(年月日) */
@Excel
(
name
=
"项目编号"
,
readConverterExp
=
"年=月日"
)
private
String
projectNumber
;
/** 项目编号(UUID) */
@Excel
(
name
=
"项目编号"
,
readConverterExp
=
"U=UID"
)
private
String
projectId
;
/** 项目名称 */
@Excel
(
name
=
"项目名称"
)
private
String
projectName
;
/** 投资方企业ID */
@Excel
(
name
=
"投资方企业ID"
)
private
Long
cid
;
/** 应用领域 */
@Excel
(
name
=
"应用领域"
)
private
String
applyScope
;
/** 投资动因ID */
@Excel
(
name
=
"投资动因ID"
)
private
Integer
investReasonId
;
/** 载体类型 1-基地 2-厂房 3-混合 */
@Excel
(
name
=
"载体类型 1-基地 2-厂房 3-混合"
)
private
Integer
baseType
;
/** 总投资额(亿元) */
@Excel
(
name
=
"总投资额"
,
readConverterExp
=
"亿=元"
)
private
BigDecimal
investAmount
;
/** 固定资产投资额(亿元) */
@Excel
(
name
=
"固定资产投资额"
,
readConverterExp
=
"亿=元"
)
private
BigDecimal
fixAssetInvestAmount
;
/** 达产后年产值(亿元) */
@Excel
(
name
=
"达产后年产值"
,
readConverterExp
=
"亿=元"
)
private
BigDecimal
futureOutputValue
;
/** 达产后年纳税(亿元) */
@Excel
(
name
=
"达产后年纳税"
,
readConverterExp
=
"亿=元"
)
private
BigDecimal
futureTax
;
/** 达产后拉动就业人数(人) */
@Excel
(
name
=
"达产后拉动就业人数"
,
readConverterExp
=
"人="
)
private
Long
futureJobNum
;
/** 当前状态 1-待审批 2-进行中 3-中止 4-终止 5-草稿 6-结束 */
@Excel
(
name
=
"当前状态 1-待审批 2-进行中 3-中止 4-终止 5-草稿 6-结束"
)
private
Integer
currentStatus
;
/** 当前状态 1-项目线索 2-初期沟通 3-区域匹配/确认 4-政企互访 5-项目谈判 6-项目签约 */
@Excel
(
name
=
"当前状态 1-项目线索 2-初期沟通 3-区域匹配/确认 4-政企互访 5-项目谈判 6-项目签约"
)
private
Integer
currentStage
;
/** 创建者 */
@Excel
(
name
=
"创建者"
)
private
String
creator
;
/** 投资内容 */
@Excel
(
name
=
"投资内容"
)
private
String
investContent
;
/** 终止原因类型 */
@Excel
(
name
=
"终止原因类型"
)
private
Integer
endCauseType
;
/** 终止原因描述 */
@Excel
(
name
=
"终止原因描述"
)
private
String
endCauseDesc
;
/** 项目状态 1 储备 2 在推 */
@Excel
(
name
=
"项目状态 1 储备 2 在推"
)
private
Integer
projectStatus
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setProjectNumber
(
String
projectNumber
)
{
this
.
projectNumber
=
projectNumber
;
}
public
String
getProjectNumber
()
{
return
projectNumber
;
}
public
void
setProjectId
(
String
projectId
)
{
this
.
projectId
=
projectId
;
}
public
String
getProjectId
()
{
return
projectId
;
}
public
void
setProjectName
(
String
projectName
)
{
this
.
projectName
=
projectName
;
}
public
String
getProjectName
()
{
return
projectName
;
}
public
void
setCid
(
Long
cid
)
{
this
.
cid
=
cid
;
}
public
Long
getCid
()
{
return
cid
;
}
public
void
setApplyScope
(
String
applyScope
)
{
this
.
applyScope
=
applyScope
;
}
public
String
getApplyScope
()
{
return
applyScope
;
}
public
void
setInvestReasonId
(
Integer
investReasonId
)
{
this
.
investReasonId
=
investReasonId
;
}
public
Integer
getInvestReasonId
()
{
return
investReasonId
;
}
public
void
setBaseType
(
Integer
baseType
)
{
this
.
baseType
=
baseType
;
}
public
Integer
getBaseType
()
{
return
baseType
;
}
public
void
setInvestAmount
(
BigDecimal
investAmount
)
{
this
.
investAmount
=
investAmount
;
}
public
BigDecimal
getInvestAmount
()
{
return
investAmount
;
}
public
void
setFixAssetInvestAmount
(
BigDecimal
fixAssetInvestAmount
)
{
this
.
fixAssetInvestAmount
=
fixAssetInvestAmount
;
}
public
BigDecimal
getFixAssetInvestAmount
()
{
return
fixAssetInvestAmount
;
}
public
void
setFutureOutputValue
(
BigDecimal
futureOutputValue
)
{
this
.
futureOutputValue
=
futureOutputValue
;
}
public
BigDecimal
getFutureOutputValue
()
{
return
futureOutputValue
;
}
public
void
setFutureTax
(
BigDecimal
futureTax
)
{
this
.
futureTax
=
futureTax
;
}
public
BigDecimal
getFutureTax
()
{
return
futureTax
;
}
public
void
setFutureJobNum
(
Long
futureJobNum
)
{
this
.
futureJobNum
=
futureJobNum
;
}
public
Long
getFutureJobNum
()
{
return
futureJobNum
;
}
public
void
setCurrentStatus
(
Integer
currentStatus
)
{
this
.
currentStatus
=
currentStatus
;
}
public
Integer
getCurrentStatus
()
{
return
currentStatus
;
}
public
void
setCurrentStage
(
Integer
currentStage
)
{
this
.
currentStage
=
currentStage
;
}
public
Integer
getCurrentStage
()
{
return
currentStage
;
}
public
void
setCreator
(
String
creator
)
{
this
.
creator
=
creator
;
}
public
String
getCreator
()
{
return
creator
;
}
public
void
setInvestContent
(
String
investContent
)
{
this
.
investContent
=
investContent
;
}
public
String
getInvestContent
()
{
return
investContent
;
}
public
void
setEndCauseType
(
Integer
endCauseType
)
{
this
.
endCauseType
=
endCauseType
;
}
public
Integer
getEndCauseType
()
{
return
endCauseType
;
}
public
void
setEndCauseDesc
(
String
endCauseDesc
)
{
this
.
endCauseDesc
=
endCauseDesc
;
}
public
String
getEndCauseDesc
()
{
return
endCauseDesc
;
}
public
void
setProjectStatus
(
Integer
projectStatus
)
{
this
.
projectStatus
=
projectStatus
;
}
public
Integer
getProjectStatus
()
{
return
projectStatus
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"projectNumber"
,
getProjectNumber
())
.
append
(
"projectId"
,
getProjectId
())
.
append
(
"projectName"
,
getProjectName
())
.
append
(
"cid"
,
getCid
())
.
append
(
"applyScope"
,
getApplyScope
())
.
append
(
"investReasonId"
,
getInvestReasonId
())
.
append
(
"baseType"
,
getBaseType
())
.
append
(
"investAmount"
,
getInvestAmount
())
.
append
(
"fixAssetInvestAmount"
,
getFixAssetInvestAmount
())
.
append
(
"futureOutputValue"
,
getFutureOutputValue
())
.
append
(
"futureTax"
,
getFutureTax
())
.
append
(
"futureJobNum"
,
getFutureJobNum
())
.
append
(
"currentStatus"
,
getCurrentStatus
())
.
append
(
"currentStage"
,
getCurrentStage
())
.
append
(
"creator"
,
getCreator
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"investContent"
,
getInvestContent
())
.
append
(
"endCauseType"
,
getEndCauseType
())
.
append
(
"endCauseDesc"
,
getEndCauseDesc
())
.
append
(
"projectStatus"
,
getProjectStatus
())
.
toString
();
}
}
ruoyi-system/src/main/java/com/ruoyi/system/enumerate/ImageSourceTypeEnum.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
enumerate
;
public
enum
ImageSourceTypeEnum
{
//项目 (1-合伙人管理/区域大纲 2-项目信息图片 3-对公账户营业执照)
OWNER
(
1
,
"合伙人管理/区域大纲"
),
PROJECT
(
2
,
"项目信息图片"
),
BUSSINESSLICENSE
(
3
,
"对公账户营业执照"
),
STOPSTATUS
(
0
,
"禁用"
),
USESTATUS
(
1
,
"正常"
);
private
int
code
;
private
String
message
;
ImageSourceTypeEnum
(
int
code
,
String
message
)
{
this
.
code
=
code
;
this
.
message
=
message
;
}
public
int
getCode
()
{
return
this
.
code
;
}
public
String
getMessage
()
{
return
this
.
message
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/enumerate/PartnerProjectAllocationEnum.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
enumerate
;
public
enum
PartnerProjectAllocationEnum
{
PROJECTSTATUS15
(
15
,
"分配中"
,
99
);
private
int
code
;
private
String
message
;
private
int
nextCode
;
PartnerProjectAllocationEnum
(
int
code
,
String
message
,
int
nextCode
)
{
this
.
code
=
code
;
this
.
nextCode
=
nextCode
;
this
.
message
=
message
;
}
public
int
getCode
()
{
return
this
.
code
;
}
public
String
getMessage
()
{
return
this
.
message
;
}
public
int
getNextCode
()
{
return
nextCode
;
}
/**
* 根据code获取去value
* @param code
* @return
*/
public
static
String
getValueByCode
(
int
code
){
for
(
PartnerProjectAllocationEnum
partnerProjectStatusEnum:
PartnerProjectAllocationEnum
.
values
()){
if
(
code
==
partnerProjectStatusEnum
.
getCode
()){
return
partnerProjectStatusEnum
.
getMessage
();
}
}
return
null
;
}
public
static
int
getNextCodeByCode
(
int
code
){
for
(
PartnerProjectAllocationEnum
partnerProjectStatusEnum:
PartnerProjectAllocationEnum
.
values
()){
if
(
code
==
partnerProjectStatusEnum
.
getCode
()){
return
partnerProjectStatusEnum
.
getNextCode
();
}
}
return
0
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/enumerate/PartnerProjectExamineEnum.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
enumerate
;
public
enum
PartnerProjectExamineEnum
{
// 1-信息提报 2-项目查重通过 3-项目查重拒绝 4-招商公司匹配 5-企业决策人对接
// 6-投资意向确认 7-确认项目信息 8-完成审核
PROJECTSTATUS1
(
1
,
"信息提报"
,
2
),
PROJECTSTATUS2
(
2
,
"项目查重"
,
4
),
// PROJECTSTATUS3(3,"项目查重拒绝"),
PROJECTSTATUS4
(
4
,
"招商公司匹配"
,
5
),
PROJECTSTATUS5
(
5
,
"企业决策人对接"
,
6
),
PROJECTSTATUS6
(
6
,
"投资意向确认"
,
7
),
PROJECTSTATUS7
(
7
,
"确认项目信息"
,
8
),
PROJECTSTATUS8
(
8
,
"完成审核"
,
9
);
private
int
code
;
private
String
message
;
private
int
nextCode
;
PartnerProjectExamineEnum
(
int
code
,
String
message
,
int
nextCode
)
{
this
.
code
=
code
;
this
.
message
=
message
;
this
.
nextCode
=
nextCode
;
}
public
int
getCode
()
{
return
this
.
code
;
}
public
String
getMessage
()
{
return
this
.
message
;
}
public
int
getNextCode
()
{
return
this
.
nextCode
;
}
/**
* 根据code获取去value
* @param code
* @return
*/
public
static
String
getValueByCode
(
int
code
){
for
(
PartnerProjectExamineEnum
partnerProjectStatusEnum:
PartnerProjectExamineEnum
.
values
()){
if
(
code
==
partnerProjectStatusEnum
.
getCode
()){
return
partnerProjectStatusEnum
.
getMessage
();
}
}
return
null
;
}
public
static
int
getNextCodeByCode
(
int
code
){
for
(
PartnerProjectExamineEnum
partnerProjectStatusEnum:
PartnerProjectExamineEnum
.
values
()){
if
(
code
==
partnerProjectStatusEnum
.
getCode
()){
return
partnerProjectStatusEnum
.
getNextCode
();
}
}
return
0
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/enumerate/PartnerProjectPushEnum.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
enumerate
;
public
enum
PartnerProjectPushEnum
{
// 9-项目信息 10-项目沟通 11-区域匹配 12-政企互访 13-项目谈判 14-项目签约
PROJECTSTATUS9
(
9
,
"项目信息"
,
10
),
PROJECTSTATUS10
(
10
,
"项目沟通"
,
11
),
PROJECTSTATUS11
(
11
,
"区域匹配"
,
12
),
PROJECTSTATUS12
(
12
,
"政企互访"
,
13
),
PROJECTSTATUS13
(
13
,
"项目谈判"
,
14
),
PROJECTSTATUS14
(
14
,
"项目签约"
,
15
);
private
int
code
;
private
String
message
;
private
int
nextNode
;
PartnerProjectPushEnum
(
int
code
,
String
message
,
int
nextNode
)
{
this
.
code
=
code
;
this
.
nextNode
=
nextNode
;
this
.
message
=
message
;
}
public
int
getCode
()
{
return
this
.
code
;
}
public
String
getMessage
()
{
return
this
.
message
;
}
public
int
getNextNode
()
{
return
nextNode
;
}
/**
* 根据code获取去value
* @param code
* @return
*/
public
static
String
getValueByCode
(
int
code
){
for
(
PartnerProjectPushEnum
partnerProjectStatusEnum:
PartnerProjectPushEnum
.
values
()){
if
(
code
==
partnerProjectStatusEnum
.
getCode
()){
return
partnerProjectStatusEnum
.
getMessage
();
}
}
return
null
;
}
public
static
int
getNextCodeByCode
(
int
code
){
for
(
PartnerProjectPushEnum
partnerProjectStatusEnum:
PartnerProjectPushEnum
.
values
()){
if
(
code
==
partnerProjectStatusEnum
.
getCode
()){
return
partnerProjectStatusEnum
.
getNextNode
();
}
}
return
0
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/enumerate/PartnerProjectStatusEnum.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
enumerate
;
public
enum
PartnerProjectStatusEnum
{
PROJECTSTATUS0
(
0
,
"暂存"
),
PROJECTSTATUS20
(
20
,
"作废"
),
PROJECTSTATUS99
(
99
,
"结束节点"
),
PROJECT_NO_REPRATE
(
0
,
"未重复"
),
PROJECT_REPRATE
(
1
,
"重复"
),
CURRENT_NODES_START
(
0
,
"未进行"
),
CURRENT_NODES_STARTING
(
1
,
"进行中"
),
CURRENT_NODES_END
(
2
,
"已完成"
);
private
int
code
;
private
String
message
;
PartnerProjectStatusEnum
(
int
code
,
String
message
)
{
this
.
code
=
code
;
this
.
message
=
message
;
}
public
int
getCode
()
{
return
this
.
code
;
}
public
String
getMessage
()
{
return
this
.
message
;
}
/**
* 根据code获取去value
* @param code
* @return
*/
public
static
String
getValueByCode
(
int
code
){
for
(
PartnerProjectStatusEnum
partnerProjectStatusEnum:
PartnerProjectStatusEnum
.
values
()){
if
(
code
==
partnerProjectStatusEnum
.
getCode
()){
return
partnerProjectStatusEnum
.
getMessage
();
}
}
return
null
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/enumerate/PartnerProjectToDoEnum.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
enumerate
;
public
enum
PartnerProjectToDoEnum
{
// 0-项目查重确认 1-确认项目所属 2-确认佣金比例
TODOSTATUS0
(
0
,
"项目查重确认"
),
TODOSTATUS1
(
1
,
"确认项目所属"
),
TODOSTATUS2
(
2
,
"确认佣金比例"
);
private
int
code
;
private
String
message
;
PartnerProjectToDoEnum
(
int
code
,
String
message
)
{
this
.
code
=
code
;
this
.
message
=
message
;
}
public
int
getCode
()
{
return
this
.
code
;
}
public
String
getMessage
()
{
return
this
.
message
;
}
/**
* 根据code获取去value
* @param code
* @return
*/
public
static
String
getValueByCode
(
int
code
){
for
(
PartnerProjectToDoEnum
partnerProjectStatusEnum:
PartnerProjectToDoEnum
.
values
()){
if
(
code
==
partnerProjectStatusEnum
.
getCode
()){
return
partnerProjectStatusEnum
.
getMessage
();
}
}
return
null
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/PartnerProjectInfoMapper.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
mapper
;
import
java.util.List
;
import
com.ruoyi.system.VO.ProjectInfoVO
;
import
com.ruoyi.system.domain.PartnerProjectInfo
;
/**
* 合伙人项目Mapper接口
*
* @author ruoyi
* @date 2023-10-27
*/
public
interface
PartnerProjectInfoMapper
{
/**
* 查询合伙人项目
*
* @param id 合伙人项目主键
* @return 合伙人项目
*/
public
PartnerProjectInfo
selectPartnerProjectInfoById
(
Long
id
);
/**
* 查询合伙人项目列表
*
* @param partnerProjectInfo 合伙人项目
* @return 合伙人项目集合
*/
public
List
<
PartnerProjectInfo
>
selectPartnerProjectInfoList
(
PartnerProjectInfo
partnerProjectInfo
);
public
List
<
ProjectInfoVO
>
selectProjectList
(
ProjectInfoVO
projectInfoVO
);
/**
* 新增合伙人项目
*
* @param partnerProjectInfo 合伙人项目
* @return 结果
*/
public
int
insertPartnerProjectInfo
(
PartnerProjectInfo
partnerProjectInfo
);
/**
* 修改合伙人项目
*
* @param partnerProjectInfo 合伙人项目
* @return 结果
*/
public
int
updatePartnerProjectInfo
(
PartnerProjectInfo
partnerProjectInfo
);
/**
* 删除合伙人项目
*
* @param id 合伙人项目主键
* @return 结果
*/
public
int
deletePartnerProjectInfoById
(
Long
id
);
/**
* 批量删除合伙人项目
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deletePartnerProjectInfoByIds
(
String
[]
ids
);
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/PartnerProjectStatusChangeLogMapper.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
mapper
;
import
java.util.List
;
import
com.ruoyi.system.VO.PartnerProjectStatusChangeLogVO
;
import
com.ruoyi.system.domain.PartnerProjectStatusChangeLog
;
/**
* 项目节点信息Mapper接口
*
* @author ruoyi
* @date 2023-10-31
*/
public
interface
PartnerProjectStatusChangeLogMapper
{
/**
* 查询项目节点信息
*
* @param id 项目节点信息主键
* @return 项目节点信息
*/
public
PartnerProjectStatusChangeLog
selectPartnerProjectStatusChangeLogById
(
Long
id
);
/**
* 查询项目节点信息列表
*
* @param partnerProjectStatusChangeLog 项目节点信息
* @return 项目节点信息集合
*/
public
List
<
PartnerProjectStatusChangeLog
>
selectPartnerProjectStatusChangeLogList
(
PartnerProjectStatusChangeLog
partnerProjectStatusChangeLog
);
public
List
<
PartnerProjectStatusChangeLog
>
selectStatusChangeLogList
(
PartnerProjectStatusChangeLogVO
partnerProjectStatusChangeLog
);
/**
* 新增项目节点信息
*
* @param partnerProjectStatusChangeLog 项目节点信息
* @return 结果
*/
public
int
insertPartnerProjectStatusChangeLog
(
PartnerProjectStatusChangeLog
partnerProjectStatusChangeLog
);
/**
* 修改项目节点信息
*
* @param partnerProjectStatusChangeLog 项目节点信息
* @return 结果
*/
public
int
updatePartnerProjectStatusChangeLog
(
PartnerProjectStatusChangeLog
partnerProjectStatusChangeLog
);
/**
* 删除项目节点信息
*
* @param id 项目节点信息主键
* @return 结果
*/
public
int
deletePartnerProjectStatusChangeLogById
(
Long
id
);
/**
* 批量删除项目节点信息
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deletePartnerProjectStatusChangeLogByIds
(
String
[]
ids
);
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/ProjectInfoMapper.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
mapper
;
import
java.util.List
;
import
com.ruoyi.system.domain.ProjectInfo
;
/**
* 产业知道项目信息Mapper接口
*
* @author ruoyi
* @date 2023-10-27
*/
public
interface
ProjectInfoMapper
{
/**
* 查询产业知道项目信息
*
* @param id 产业知道项目信息主键
* @return 产业知道项目信息
*/
public
ProjectInfo
selectProjectInfoById
(
Long
id
);
/**
* 查询产业知道项目信息列表
*
* @param projectInfo 产业知道项目信息
* @return 产业知道项目信息集合
*/
public
List
<
ProjectInfo
>
selectProjectInfoList
(
ProjectInfo
projectInfo
);
/**
* 新增产业知道项目信息
*
* @param projectInfo 产业知道项目信息
* @return 结果
*/
public
int
insertProjectInfo
(
ProjectInfo
projectInfo
);
/**
* 修改产业知道项目信息
*
* @param projectInfo 产业知道项目信息
* @return 结果
*/
public
int
updateProjectInfo
(
ProjectInfo
projectInfo
);
/**
* 删除产业知道项目信息
*
* @param id 产业知道项目信息主键
* @return 结果
*/
public
int
deleteProjectInfoById
(
Long
id
);
/**
* 批量删除产业知道项目信息
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteProjectInfoByIds
(
String
[]
ids
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/IPartnerProjectInfoService.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
service
;
import
java.util.List
;
import
com.ruoyi.system.VO.ChangeStatusVO
;
import
com.ruoyi.system.VO.ProjectInfoVO
;
import
com.ruoyi.system.domain.PartnerProjectInfo
;
/**
* 合伙人项目Service接口
*
* @author ruoyi
* @date 2023-10-27
*/
public
interface
IPartnerProjectInfoService
{
/**
* 查询合伙人项目
*
* @param id 合伙人项目主键
* @return 合伙人项目
*/
public
PartnerProjectInfo
selectPartnerProjectInfoById
(
Long
id
);
/**
* 查询合伙人项目列表
*
* @param partnerProjectInfo 合伙人项目
* @return 合伙人项目集合
*/
public
List
<
PartnerProjectInfo
>
selectPartnerProjectInfoList
(
PartnerProjectInfo
partnerProjectInfo
);
public
List
<
ProjectInfoVO
>
selectProjectList
(
ProjectInfoVO
projectInfoVO
);
/**
* 新增合伙人项目
*
* @param partnerProjectInfo 合伙人项目
* @return 结果
*/
public
int
insertPartnerProjectInfo
(
PartnerProjectInfo
partnerProjectInfo
);
/**
* 修改合伙人项目
*
* @param partnerProjectInfo 合伙人项目
* @return 结果
*/
public
int
updatePartnerProjectInfo
(
PartnerProjectInfo
partnerProjectInfo
);
/**
* 批量删除合伙人项目
*
* @param ids 需要删除的合伙人项目主键集合
* @return 结果
*/
public
int
deletePartnerProjectInfoByIds
(
String
ids
);
/**
* 删除合伙人项目信息
*
* @param id 合伙人项目主键
* @return 结果
*/
public
int
deletePartnerProjectInfoById
(
Long
id
);
public
int
updateChangeStatus
(
ChangeStatusVO
changeStatusVO
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/IPartnerProjectStatusChangeLogService.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
service
;
import
java.util.List
;
import
com.ruoyi.system.VO.ChangeStatusVO
;
import
com.ruoyi.system.VO.PartnerProjectStatusChangeLogVO
;
import
com.ruoyi.system.domain.PartnerProjectStatusChangeLog
;
/**
* 项目节点信息Service接口
*
* @author ruoyi
* @date 2023-10-31
*/
public
interface
IPartnerProjectStatusChangeLogService
{
/**
* 查询项目节点信息
*
* @param id 项目节点信息主键
* @return 项目节点信息
*/
public
PartnerProjectStatusChangeLog
selectPartnerProjectStatusChangeLogById
(
Long
id
);
/**
* 查询项目节点信息列表
*
* @param partnerProjectStatusChangeLog 项目节点信息
* @return 项目节点信息集合
*/
public
List
<
PartnerProjectStatusChangeLog
>
selectPartnerProjectStatusChangeLogList
(
PartnerProjectStatusChangeLog
partnerProjectStatusChangeLog
);
public
List
<
PartnerProjectStatusChangeLog
>
selectStatusChangeLogList
(
PartnerProjectStatusChangeLogVO
partnerProjectStatusChangeLog
);
/**
* 新增项目节点信息
*
* @param partnerProjectStatusChangeLog 项目节点信息
* @return 结果
*/
public
int
insertPartnerProjectStatusChangeLog
(
PartnerProjectStatusChangeLog
partnerProjectStatusChangeLog
);
/**
* 修改项目节点信息
*
* @param partnerProjectStatusChangeLog 项目节点信息
* @return 结果
*/
public
int
updatePartnerProjectStatusChangeLog
(
PartnerProjectStatusChangeLog
partnerProjectStatusChangeLog
);
/**
* 批量删除项目节点信息
*
* @param ids 需要删除的项目节点信息主键集合
* @return 结果
*/
public
int
deletePartnerProjectStatusChangeLogByIds
(
String
ids
);
/**
* 删除项目节点信息信息
*
* @param id 项目节点信息主键
* @return 结果
*/
public
int
deletePartnerProjectStatusChangeLogById
(
Long
id
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/IProjectInfoService.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
service
;
import
java.util.List
;
import
com.ruoyi.system.domain.ProjectInfo
;
/**
* 产业知道项目信息Service接口
*
* @author ruoyi
* @date 2023-10-27
*/
public
interface
IProjectInfoService
{
/**
* 查询产业知道项目信息
*
* @param id 产业知道项目信息主键
* @return 产业知道项目信息
*/
public
ProjectInfo
selectProjectInfoById
(
Long
id
);
/**
* 查询产业知道项目信息列表
*
* @param projectInfo 产业知道项目信息
* @return 产业知道项目信息集合
*/
public
List
<
ProjectInfo
>
selectProjectInfoList
(
ProjectInfo
projectInfo
);
/**
* 新增产业知道项目信息
*
* @param projectInfo 产业知道项目信息
* @return 结果
*/
public
int
insertProjectInfo
(
ProjectInfo
projectInfo
);
/**
* 修改产业知道项目信息
*
* @param projectInfo 产业知道项目信息
* @return 结果
*/
public
int
updateProjectInfo
(
ProjectInfo
projectInfo
);
/**
* 批量删除产业知道项目信息
*
* @param ids 需要删除的产业知道项目信息主键集合
* @return 结果
*/
public
int
deleteProjectInfoByIds
(
String
ids
);
/**
* 删除产业知道项目信息信息
*
* @param id 产业知道项目信息主键
* @return 结果
*/
public
int
deleteProjectInfoById
(
Long
id
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/PartnerProjectInfoServiceImpl.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
service
.
impl
;
import
java.util.List
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.system.VO.ChangeStatusVO
;
import
com.ruoyi.system.VO.ProjectInfoVO
;
import
com.ruoyi.system.domain.PartnerProjectStatusChangeLog
;
import
com.ruoyi.system.enumerate.PartnerProjectExamineEnum
;
import
com.ruoyi.system.enumerate.PartnerProjectStatusEnum
;
import
com.ruoyi.system.enumerate.PartnerProjectToDoEnum
;
import
com.ruoyi.system.service.IPartnerProjectStatusChangeLogService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.mapper.PartnerProjectInfoMapper
;
import
com.ruoyi.system.domain.PartnerProjectInfo
;
import
com.ruoyi.system.service.IPartnerProjectInfoService
;
import
com.ruoyi.common.core.text.Convert
;
/**
* 合伙人项目Service业务层处理
*
* @author ruoyi
* @date 2023-10-27
*/
@Service
public
class
PartnerProjectInfoServiceImpl
implements
IPartnerProjectInfoService
{
@Autowired
private
PartnerProjectInfoMapper
partnerProjectInfoMapper
;
@Autowired
private
IPartnerProjectStatusChangeLogService
projectStatusChangeService
;
/**
* 查询合伙人项目
*
* @param id 合伙人项目主键
* @return 合伙人项目
*/
@Override
public
PartnerProjectInfo
selectPartnerProjectInfoById
(
Long
id
)
{
return
partnerProjectInfoMapper
.
selectPartnerProjectInfoById
(
id
);
}
/**
* 查询合伙人项目列表
*
* @param partnerProjectInfo 合伙人项目
* @return 合伙人项目
*/
@Override
public
List
<
PartnerProjectInfo
>
selectPartnerProjectInfoList
(
PartnerProjectInfo
partnerProjectInfo
)
{
return
partnerProjectInfoMapper
.
selectPartnerProjectInfoList
(
partnerProjectInfo
);
}
@Override
public
List
<
ProjectInfoVO
>
selectProjectList
(
ProjectInfoVO
projectInfoVO
){
return
partnerProjectInfoMapper
.
selectProjectList
(
projectInfoVO
);
}
/**
* 新增合伙人项目
*
* @param partnerProjectInfo 合伙人项目
* @return 结果
*/
@Override
public
int
insertPartnerProjectInfo
(
PartnerProjectInfo
partnerProjectInfo
)
{
partnerProjectInfo
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
partnerProjectInfoMapper
.
insertPartnerProjectInfo
(
partnerProjectInfo
);
}
/**
* 修改合伙人项目
*
* @param partnerProjectInfo 合伙人项目
* @return 结果
*/
@Override
public
int
updatePartnerProjectInfo
(
PartnerProjectInfo
partnerProjectInfo
)
{
partnerProjectInfo
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
partnerProjectInfoMapper
.
updatePartnerProjectInfo
(
partnerProjectInfo
);
}
/**
* 批量删除合伙人项目
*
* @param ids 需要删除的合伙人项目主键
* @return 结果
*/
@Override
public
int
deletePartnerProjectInfoByIds
(
String
ids
)
{
return
partnerProjectInfoMapper
.
deletePartnerProjectInfoByIds
(
Convert
.
toStrArray
(
ids
));
}
/**
* 删除合伙人项目信息
*
* @param id 合伙人项目主键
* @return 结果
*/
@Override
public
int
deletePartnerProjectInfoById
(
Long
id
)
{
return
partnerProjectInfoMapper
.
deletePartnerProjectInfoById
(
id
);
}
@Override
public
int
updateChangeStatus
(
ChangeStatusVO
changeStatusVO
){
PartnerProjectStatusChangeLog
statusChange
=
new
PartnerProjectStatusChangeLog
();
statusChange
.
setId
(
changeStatusVO
.
getId
());
statusChange
.
setDescription
(
changeStatusVO
.
getFeedBack
());
if
(
changeStatusVO
.
getRepeateType
()
==
PartnerProjectStatusEnum
.
PROJECT_REPRATE
.
getCode
()){
statusChange
.
setTodoStatus
(
PartnerProjectToDoEnum
.
TODOSTATUS0
.
getCode
());
}
statusChange
.
setCurrentNodeStatus
(
PartnerProjectStatusEnum
.
CURRENT_NODES_END
.
getCode
());
projectStatusChangeService
.
updatePartnerProjectStatusChangeLog
(
statusChange
);
PartnerProjectStatusChangeLog
statusChangeNext
=
new
PartnerProjectStatusChangeLog
();
int
nextCode
=
PartnerProjectExamineEnum
.
getNextCodeByCode
(
changeStatusVO
.
getStatus
());
if
(
nextCode
==
PartnerProjectStatusEnum
.
PROJECTSTATUS99
.
getCode
()){
return
1
;
}
statusChangeNext
.
setProjectStatus
(
nextCode
);
statusChangeNext
.
setProjectId
(
changeStatusVO
.
getProjectId
());
List
<
PartnerProjectStatusChangeLog
>
partnerProjectStatusChangeLogs
=
projectStatusChangeService
.
selectPartnerProjectStatusChangeLogList
(
statusChangeNext
);
PartnerProjectStatusChangeLog
partnerProjectStatusChangeLog
=
partnerProjectStatusChangeLogs
.
get
(
0
);
partnerProjectStatusChangeLog
.
setCurrentNodeStatus
(
PartnerProjectStatusEnum
.
CURRENT_NODES_STARTING
.
getCode
());
return
projectStatusChangeService
.
updatePartnerProjectStatusChangeLog
(
statusChange
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/PartnerProjectStatusChangeLogServiceImpl.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
service
.
impl
;
import
java.util.List
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.system.VO.ChangeStatusVO
;
import
com.ruoyi.system.VO.PartnerProjectStatusChangeLogVO
;
import
com.ruoyi.system.enumerate.PartnerProjectExamineEnum
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.mapper.PartnerProjectStatusChangeLogMapper
;
import
com.ruoyi.system.domain.PartnerProjectStatusChangeLog
;
import
com.ruoyi.system.service.IPartnerProjectStatusChangeLogService
;
import
com.ruoyi.common.core.text.Convert
;
/**
* 项目节点信息Service业务层处理
*
* @author ruoyi
* @date 2023-10-31
*/
@Service
public
class
PartnerProjectStatusChangeLogServiceImpl
implements
IPartnerProjectStatusChangeLogService
{
@Autowired
private
PartnerProjectStatusChangeLogMapper
partnerProjectStatusChangeLogMapper
;
/**
* 查询项目节点信息
*
* @param id 项目节点信息主键
* @return 项目节点信息
*/
@Override
public
PartnerProjectStatusChangeLog
selectPartnerProjectStatusChangeLogById
(
Long
id
)
{
return
partnerProjectStatusChangeLogMapper
.
selectPartnerProjectStatusChangeLogById
(
id
);
}
/**
* 查询项目节点信息列表
*
* @param partnerProjectStatusChangeLog 项目节点信息
* @return 项目节点信息
*/
@Override
public
List
<
PartnerProjectStatusChangeLog
>
selectPartnerProjectStatusChangeLogList
(
PartnerProjectStatusChangeLog
partnerProjectStatusChangeLog
)
{
return
partnerProjectStatusChangeLogMapper
.
selectPartnerProjectStatusChangeLogList
(
partnerProjectStatusChangeLog
);
}
@Override
public
List
<
PartnerProjectStatusChangeLog
>
selectStatusChangeLogList
(
PartnerProjectStatusChangeLogVO
partnerProjectStatusChangeLog
)
{
return
partnerProjectStatusChangeLogMapper
.
selectStatusChangeLogList
(
partnerProjectStatusChangeLog
);
}
/**
* 新增项目节点信息
*
* @param partnerProjectStatusChangeLog 项目节点信息
* @return 结果
*/
@Override
public
int
insertPartnerProjectStatusChangeLog
(
PartnerProjectStatusChangeLog
partnerProjectStatusChangeLog
)
{
partnerProjectStatusChangeLog
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
partnerProjectStatusChangeLogMapper
.
insertPartnerProjectStatusChangeLog
(
partnerProjectStatusChangeLog
);
}
/**
* 修改项目节点信息
*
* @param partnerProjectStatusChangeLog 项目节点信息
* @return 结果
*/
@Override
public
int
updatePartnerProjectStatusChangeLog
(
PartnerProjectStatusChangeLog
partnerProjectStatusChangeLog
)
{
partnerProjectStatusChangeLog
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
partnerProjectStatusChangeLogMapper
.
updatePartnerProjectStatusChangeLog
(
partnerProjectStatusChangeLog
);
}
/**
* 批量删除项目节点信息
*
* @param ids 需要删除的项目节点信息主键
* @return 结果
*/
@Override
public
int
deletePartnerProjectStatusChangeLogByIds
(
String
ids
)
{
return
partnerProjectStatusChangeLogMapper
.
deletePartnerProjectStatusChangeLogByIds
(
Convert
.
toStrArray
(
ids
));
}
/**
* 删除项目节点信息信息
*
* @param id 项目节点信息主键
* @return 结果
*/
@Override
public
int
deletePartnerProjectStatusChangeLogById
(
Long
id
)
{
return
partnerProjectStatusChangeLogMapper
.
deletePartnerProjectStatusChangeLogById
(
id
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ProjectInfoServiceImpl.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
service
.
impl
;
import
java.util.List
;
import
com.ruoyi.common.utils.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.mapper.ProjectInfoMapper
;
import
com.ruoyi.system.domain.ProjectInfo
;
import
com.ruoyi.system.service.IProjectInfoService
;
import
com.ruoyi.common.core.text.Convert
;
/**
* 产业知道项目信息Service业务层处理
*
* @author ruoyi
* @date 2023-10-27
*/
@Service
public
class
ProjectInfoServiceImpl
implements
IProjectInfoService
{
@Autowired
private
ProjectInfoMapper
projectInfoMapper
;
/**
* 查询产业知道项目信息
*
* @param id 产业知道项目信息主键
* @return 产业知道项目信息
*/
@Override
public
ProjectInfo
selectProjectInfoById
(
Long
id
)
{
return
projectInfoMapper
.
selectProjectInfoById
(
id
);
}
/**
* 查询产业知道项目信息列表
*
* @param projectInfo 产业知道项目信息
* @return 产业知道项目信息
*/
@Override
public
List
<
ProjectInfo
>
selectProjectInfoList
(
ProjectInfo
projectInfo
)
{
return
projectInfoMapper
.
selectProjectInfoList
(
projectInfo
);
}
/**
* 新增产业知道项目信息
*
* @param projectInfo 产业知道项目信息
* @return 结果
*/
@Override
public
int
insertProjectInfo
(
ProjectInfo
projectInfo
)
{
projectInfo
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
projectInfoMapper
.
insertProjectInfo
(
projectInfo
);
}
/**
* 修改产业知道项目信息
*
* @param projectInfo 产业知道项目信息
* @return 结果
*/
@Override
public
int
updateProjectInfo
(
ProjectInfo
projectInfo
)
{
projectInfo
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
projectInfoMapper
.
updateProjectInfo
(
projectInfo
);
}
/**
* 批量删除产业知道项目信息
*
* @param ids 需要删除的产业知道项目信息主键
* @return 结果
*/
@Override
public
int
deleteProjectInfoByIds
(
String
ids
)
{
return
projectInfoMapper
.
deleteProjectInfoByIds
(
Convert
.
toStrArray
(
ids
));
}
/**
* 删除产业知道项目信息信息
*
* @param id 产业知道项目信息主键
* @return 结果
*/
@Override
public
int
deleteProjectInfoById
(
Long
id
)
{
return
projectInfoMapper
.
deleteProjectInfoById
(
id
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/util/BussinessUtils.java
0 → 100644
View file @
b591340b
package
com
.
ruoyi
.
system
.
util
;
import
com.ruoyi.system.enumerate.PartnerProjectAllocationEnum
;
import
com.ruoyi.system.enumerate.PartnerProjectExamineEnum
;
import
com.ruoyi.system.enumerate.PartnerProjectPushEnum
;
import
com.ruoyi.system.enumerate.PartnerProjectStatusEnum
;
public
class
BussinessUtils
{
public
static
String
projectStage
(
int
code
){
for
(
PartnerProjectExamineEnum
ppee
:
PartnerProjectExamineEnum
.
values
())
{
if
(
ppee
.
getCode
()
==
code
){
return
"审核中"
;
}
}
for
(
PartnerProjectPushEnum
ppee
:
PartnerProjectPushEnum
.
values
())
{
if
(
ppee
.
getCode
()
==
code
){
return
"推进中"
;
}
}
for
(
PartnerProjectAllocationEnum
ppee
:
PartnerProjectAllocationEnum
.
values
())
{
if
(
ppee
.
getCode
()
==
code
){
return
"分配中"
;
}
}
for
(
PartnerProjectStatusEnum
ppee
:
PartnerProjectStatusEnum
.
values
())
{
if
(
ppee
.
getCode
()
==
code
){
return
ppee
.
getMessage
();
}
}
return
"未找到枚举"
;
}
}
ruoyi-system/src/main/resources/mapper/partnerProject/PartnerProjectInfoMapper.xml
0 → 100644
View file @
b591340b
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/resources/mapper/project/ProjectInfoMapper.xml
0 → 100644
View file @
b591340b
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.ruoyi.system.mapper.ProjectInfoMapper"
>
<resultMap
type=
"ProjectInfo"
id=
"ProjectInfoResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"projectNumber"
column=
"project_number"
/>
<result
property=
"projectId"
column=
"project_id"
/>
<result
property=
"projectName"
column=
"project_name"
/>
<result
property=
"cid"
column=
"cid"
/>
<result
property=
"applyScope"
column=
"apply_scope"
/>
<result
property=
"investReasonId"
column=
"invest_reason_id"
/>
<result
property=
"baseType"
column=
"base_type"
/>
<result
property=
"investAmount"
column=
"invest_amount"
/>
<result
property=
"fixAssetInvestAmount"
column=
"fix_asset_invest_amount"
/>
<result
property=
"futureOutputValue"
column=
"future_output_value"
/>
<result
property=
"futureTax"
column=
"future_tax"
/>
<result
property=
"futureJobNum"
column=
"future_job_num"
/>
<result
property=
"currentStatus"
column=
"current_status"
/>
<result
property=
"currentStage"
column=
"current_stage"
/>
<result
property=
"creator"
column=
"creator"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"investContent"
column=
"invest_content"
/>
<result
property=
"endCauseType"
column=
"end_cause_type"
/>
<result
property=
"endCauseDesc"
column=
"end_cause_desc"
/>
<result
property=
"projectStatus"
column=
"project_status"
/>
</resultMap>
<sql
id=
"selectProjectInfoVo"
>
select id, project_number, project_id, project_name, cid, apply_scope, invest_reason_id, base_type, invest_amount, fix_asset_invest_amount, future_output_value, future_tax, future_job_num, current_status, current_stage, creator, create_time, update_time, invest_content, end_cause_type, end_cause_desc, project_status from project_info
</sql>
<select
id=
"selectProjectInfoList"
parameterType=
"ProjectInfo"
resultMap=
"ProjectInfoResult"
>
<include
refid=
"selectProjectInfoVo"
/>
<where>
<if
test=
"id != null and id != ''"
>
and id = #{id}
</if>
<if
test=
"projectNumber != null and projectNumber != ''"
>
and project_number = #{projectNumber}
</if>
<if
test=
"projectId != null and projectId != ''"
>
and project_id = #{projectId}
</if>
<if
test=
"projectName != null and projectName != ''"
>
and project_name like concat('%', #{projectName}, '%')
</if>
<if
test=
"cid != null "
>
and cid = #{cid}
</if>
<if
test=
"applyScope != null and applyScope != ''"
>
and apply_scope = #{applyScope}
</if>
<if
test=
"investReasonId != null "
>
and invest_reason_id = #{investReasonId}
</if>
<if
test=
"baseType != null "
>
and base_type = #{baseType}
</if>
<if
test=
"investAmount != null "
>
and invest_amount = #{investAmount}
</if>
<if
test=
"fixAssetInvestAmount != null "
>
and fix_asset_invest_amount = #{fixAssetInvestAmount}
</if>
<if
test=
"futureOutputValue != null "
>
and future_output_value = #{futureOutputValue}
</if>
<if
test=
"futureTax != null "
>
and future_tax = #{futureTax}
</if>
<if
test=
"futureJobNum != null "
>
and future_job_num = #{futureJobNum}
</if>
<if
test=
"currentStatus != null "
>
and current_status = #{currentStatus}
</if>
<if
test=
"currentStage != null "
>
and current_stage = #{currentStage}
</if>
<if
test=
"creator != null and creator != ''"
>
and creator = #{creator}
</if>
<if
test=
"investContent != null and investContent != ''"
>
and invest_content = #{investContent}
</if>
<if
test=
"endCauseType != null "
>
and end_cause_type = #{endCauseType}
</if>
<if
test=
"endCauseDesc != null and endCauseDesc != ''"
>
and end_cause_desc = #{endCauseDesc}
</if>
<if
test=
"projectStatus != null "
>
and project_status = #{projectStatus}
</if>
</where>
</select>
<select
id=
"selectProjectInfoById"
parameterType=
"Long"
resultMap=
"ProjectInfoResult"
>
<include
refid=
"selectProjectInfoVo"
/>
where id = #{id}
</select>
<insert
id=
"insertProjectInfo"
parameterType=
"ProjectInfo"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into project_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"projectNumber != null and projectNumber != ''"
>
project_number,
</if>
<if
test=
"projectId != null and projectId != ''"
>
project_id,
</if>
<if
test=
"projectName != null"
>
project_name,
</if>
<if
test=
"cid != null"
>
cid,
</if>
<if
test=
"applyScope != null"
>
apply_scope,
</if>
<if
test=
"investReasonId != null"
>
invest_reason_id,
</if>
<if
test=
"baseType != null"
>
base_type,
</if>
<if
test=
"investAmount != null"
>
invest_amount,
</if>
<if
test=
"fixAssetInvestAmount != null"
>
fix_asset_invest_amount,
</if>
<if
test=
"futureOutputValue != null"
>
future_output_value,
</if>
<if
test=
"futureTax != null"
>
future_tax,
</if>
<if
test=
"futureJobNum != null"
>
future_job_num,
</if>
<if
test=
"currentStatus != null"
>
current_status,
</if>
<if
test=
"currentStage != null"
>
current_stage,
</if>
<if
test=
"creator != null"
>
creator,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"investContent != null"
>
invest_content,
</if>
<if
test=
"endCauseType != null"
>
end_cause_type,
</if>
<if
test=
"endCauseDesc != null"
>
end_cause_desc,
</if>
<if
test=
"projectStatus != null"
>
project_status,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"projectNumber != null and projectNumber != ''"
>
#{projectNumber},
</if>
<if
test=
"projectId != null and projectId != ''"
>
#{projectId},
</if>
<if
test=
"projectName != null"
>
#{projectName},
</if>
<if
test=
"cid != null"
>
#{cid},
</if>
<if
test=
"applyScope != null"
>
#{applyScope},
</if>
<if
test=
"investReasonId != null"
>
#{investReasonId},
</if>
<if
test=
"baseType != null"
>
#{baseType},
</if>
<if
test=
"investAmount != null"
>
#{investAmount},
</if>
<if
test=
"fixAssetInvestAmount != null"
>
#{fixAssetInvestAmount},
</if>
<if
test=
"futureOutputValue != null"
>
#{futureOutputValue},
</if>
<if
test=
"futureTax != null"
>
#{futureTax},
</if>
<if
test=
"futureJobNum != null"
>
#{futureJobNum},
</if>
<if
test=
"currentStatus != null"
>
#{currentStatus},
</if>
<if
test=
"currentStage != null"
>
#{currentStage},
</if>
<if
test=
"creator != null"
>
#{creator},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"investContent != null"
>
#{investContent},
</if>
<if
test=
"endCauseType != null"
>
#{endCauseType},
</if>
<if
test=
"endCauseDesc != null"
>
#{endCauseDesc},
</if>
<if
test=
"projectStatus != null"
>
#{projectStatus},
</if>
</trim>
</insert>
<update
id=
"updateProjectInfo"
parameterType=
"ProjectInfo"
>
update project_info
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"projectNumber != null and projectNumber != ''"
>
project_number = #{projectNumber},
</if>
<if
test=
"projectId != null and projectId != ''"
>
project_id = #{projectId},
</if>
<if
test=
"projectName != null"
>
project_name = #{projectName},
</if>
<if
test=
"cid != null"
>
cid = #{cid},
</if>
<if
test=
"applyScope != null"
>
apply_scope = #{applyScope},
</if>
<if
test=
"investReasonId != null"
>
invest_reason_id = #{investReasonId},
</if>
<if
test=
"baseType != null"
>
base_type = #{baseType},
</if>
<if
test=
"investAmount != null"
>
invest_amount = #{investAmount},
</if>
<if
test=
"fixAssetInvestAmount != null"
>
fix_asset_invest_amount = #{fixAssetInvestAmount},
</if>
<if
test=
"futureOutputValue != null"
>
future_output_value = #{futureOutputValue},
</if>
<if
test=
"futureTax != null"
>
future_tax = #{futureTax},
</if>
<if
test=
"futureJobNum != null"
>
future_job_num = #{futureJobNum},
</if>
<if
test=
"currentStatus != null"
>
current_status = #{currentStatus},
</if>
<if
test=
"currentStage != null"
>
current_stage = #{currentStage},
</if>
<if
test=
"creator != null"
>
creator = #{creator},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"investContent != null"
>
invest_content = #{investContent},
</if>
<if
test=
"endCauseType != null"
>
end_cause_type = #{endCauseType},
</if>
<if
test=
"endCauseDesc != null"
>
end_cause_desc = #{endCauseDesc},
</if>
<if
test=
"projectStatus != null"
>
project_status = #{projectStatus},
</if>
</trim>
where id = #{id}
</update>
<delete
id=
"deleteProjectInfoById"
parameterType=
"Long"
>
delete from project_info where id = #{id}
</delete>
<delete
id=
"deleteProjectInfoByIds"
parameterType=
"String"
>
delete from project_info where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
ruoyi-system/src/main/resources/mapper/statusChange/PartnerProjectStatusChangeLogMapper.xml
0 → 100644
View file @
b591340b
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.ruoyi.system.mapper.PartnerProjectStatusChangeLogMapper"
>
<resultMap
type=
"PartnerProjectStatusChangeLog"
id=
"PartnerProjectStatusChangeLogResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"projectStatus"
column=
"project_status"
/>
<result
property=
"projectStatusDisplay"
column=
"project_status_display"
/>
<result
property=
"projectId"
column=
"project_id"
/>
<result
property=
"operaterId"
column=
"operater_id"
/>
<result
property=
"tenantId"
column=
"tenant_id"
/>
<result
property=
"description"
column=
"description"
/>
<result
property=
"todoStatus"
column=
"todo_status"
/>
<result
property=
"todoStatusDescription"
column=
"todo_status_description"
/>
<result
property=
"currentNodeStatus"
column=
"current_node_status"
/>
</resultMap>
<sql
id=
"selectPartnerProjectStatusChangeLogVo"
>
select id, create_time, update_time, project_status, project_status_display, project_id, operater_id, tenant_id, description, todo_status, todo_status_description, current_node_status from partner_project_status_change_log
</sql>
<select
id=
"selectPartnerProjectStatusChangeLogList"
parameterType=
"PartnerProjectStatusChangeLog"
resultMap=
"PartnerProjectStatusChangeLogResult"
>
<include
refid=
"selectPartnerProjectStatusChangeLogVo"
/>
<where>
<if
test=
"projectStatus != null "
>
and project_status = #{projectStatus}
</if>
<if
test=
"projectStatusDisplay != null and projectStatusDisplay != ''"
>
and project_status_display = #{projectStatusDisplay}
</if>
<if
test=
"projectId != null "
>
and project_id = #{projectId}
</if>
<if
test=
"operaterId != null "
>
and operater_id = #{operaterId}
</if>
<if
test=
"tenantId != null "
>
and tenant_id = #{tenantId}
</if>
<if
test=
"description != null and description != ''"
>
and description = #{description}
</if>
<if
test=
"todoStatus != null "
>
and todo_status = #{todoStatus}
</if>
<if
test=
"todoStatusDescription != null and todoStatusDescription != ''"
>
and todo_status_description = #{todoStatusDescription}
</if>
<if
test=
"currentNodeStatus != null "
>
and current_node_status = #{currentNodeStatus}
</if>
</where>
</select>
<select
id=
"selectStatusChangeLogList"
parameterType=
"com.ruoyi.system.VO.PartnerProjectStatusChangeLogVO"
resultMap=
"PartnerProjectStatusChangeLogResult"
>
<include
refid=
"selectPartnerProjectStatusChangeLogVo"
/>
<where>
<if
test=
"projectStatus != null "
>
and project_status in
<foreach
collection=
"projectStatus"
item=
"id"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</if>
<if
test=
"projectStatusDisplay != null and projectStatusDisplay != ''"
>
and project_status_display = #{projectStatusDisplay}
</if>
<if
test=
"projectId != null "
>
and project_id = #{projectId}
</if>
<if
test=
"operaterId != null "
>
and operater_id = #{operaterId}
</if>
<if
test=
"tenantId != null "
>
and tenant_id = #{tenantId}
</if>
<if
test=
"description != null and description != ''"
>
and description = #{description}
</if>
<if
test=
"todoStatus != null "
>
and todo_status = #{todoStatus}
</if>
<if
test=
"todoStatusDescription != null and todoStatusDescription != ''"
>
and todo_status_description = #{todoStatusDescription}
</if>
<if
test=
"currentNodeStatus != null "
>
and current_node_status = #{currentNodeStatus}
</if>
</where>
</select>
<select
id=
"selectPartnerProjectStatusChangeLogById"
parameterType=
"Long"
resultMap=
"PartnerProjectStatusChangeLogResult"
>
<include
refid=
"selectPartnerProjectStatusChangeLogVo"
/>
where id = #{id}
</select>
<insert
id=
"insertPartnerProjectStatusChangeLog"
parameterType=
"PartnerProjectStatusChangeLog"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into partner_project_status_change_log
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"projectStatus != null"
>
project_status,
</if>
<if
test=
"projectStatusDisplay != null"
>
project_status_display,
</if>
<if
test=
"projectId != null"
>
project_id,
</if>
<if
test=
"operaterId != null"
>
operater_id,
</if>
<if
test=
"tenantId != null"
>
tenant_id,
</if>
<if
test=
"description != null"
>
description,
</if>
<if
test=
"todoStatus != null"
>
todo_status,
</if>
<if
test=
"todoStatusDescription != null"
>
todo_status_description,
</if>
<if
test=
"currentNodeStatus != null"
>
current_node_status,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"projectStatus != null"
>
#{projectStatus},
</if>
<if
test=
"projectStatusDisplay != null"
>
#{projectStatusDisplay},
</if>
<if
test=
"projectId != null"
>
#{projectId},
</if>
<if
test=
"operaterId != null"
>
#{operaterId},
</if>
<if
test=
"tenantId != null"
>
#{tenantId},
</if>
<if
test=
"description != null"
>
#{description},
</if>
<if
test=
"todoStatus != null"
>
#{todoStatus},
</if>
<if
test=
"todoStatusDescription != null"
>
#{todoStatusDescription},
</if>
<if
test=
"currentNodeStatus != null"
>
#{currentNodeStatus},
</if>
</trim>
</insert>
<update
id=
"updatePartnerProjectStatusChangeLog"
parameterType=
"PartnerProjectStatusChangeLog"
>
update partner_project_status_change_log
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"projectStatus != null"
>
project_status = #{projectStatus},
</if>
<if
test=
"projectStatusDisplay != null"
>
project_status_display = #{projectStatusDisplay},
</if>
<if
test=
"projectId != null"
>
project_id = #{projectId},
</if>
<if
test=
"operaterId != null"
>
operater_id = #{operaterId},
</if>
<if
test=
"tenantId != null"
>
tenant_id = #{tenantId},
</if>
<if
test=
"description != null"
>
description = #{description},
</if>
<if
test=
"todoStatus != null"
>
todo_status = #{todoStatus},
</if>
<if
test=
"todoStatusDescription != null"
>
todo_status_description = #{todoStatusDescription},
</if>
<if
test=
"currentNodeStatus != null"
>
current_node_status = #{currentNodeStatus},
</if>
</trim>
where id = #{id}
</update>
<delete
id=
"deletePartnerProjectStatusChangeLogById"
parameterType=
"Long"
>
delete from partner_project_status_change_log where id = #{id}
</delete>
<delete
id=
"deletePartnerProjectStatusChangeLogByIds"
parameterType=
"String"
>
delete from partner_project_status_change_log where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
ruoyi-system/src/main/resources/templates/partnerProject/info/add.html
0 → 100644
View file @
b591340b
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<th:block
th:include=
"include :: header('新增合伙人项目')"
/>
<th:block
th:include=
"include :: summernote-css"
/>
</head>
<body
class=
"white-bg"
>
<div
class=
"wrapper wrapper-content animated fadeInRight ibox-content"
>
<form
class=
"form-horizontal m"
id=
"form-info-add"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
近年营收:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"continuousRevenue"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
投资主体:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"investmentSubject"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
企业亮点:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"enterpriseHighlights"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
产业基地:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"industrialBase"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
建设内容建设内容:
</label>
<div
class=
"col-sm-8"
>
<input
type=
"hidden"
class=
"form-control"
name=
"constructionContent"
>
<div
class=
"summernote"
id=
"constructionContent"
></div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
投资总额:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"projectInvestmentTotal"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
固定资产投资总额:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"projectInvestmentRegular"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
投资内容:
</label>
<div
class=
"col-sm-8"
>
<input
type=
"hidden"
class=
"form-control"
name=
"investmentContent"
>
<div
class=
"summernote"
id=
"investmentContent"
></div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
项目诉求:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"projectAppeal"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
意向区域:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"intendedRegion"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
佣金比例:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"regionCommissionRate"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
土地需求:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"carrierRequirementsLandDemand"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
厂房需求:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"carrierRequirementsFactoryDemand"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
决策人:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"decisionMaker"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
决策人职位:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"decisionMakerPosition"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
0-暂存 1-信息提报 2-项目查重通过 3-项目查重拒绝 4-招商公司匹配 5-企业对接 6-投资意向确认 7-确认项目信息 8-完成审核 9-项目信息 10-项目沟通 11-区域匹配 12-政企互访 13-项目谈判 14-项目签约 15-分配中 20-作废:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"statusDescription"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
项目归属人:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"partnerId"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
归属人是否已确认:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"partnerHasConfirm"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
匹配招商公司:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"investmentPromotionCompany"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
租户id:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"tenantId"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
秘书id:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"secretaryId"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
产业知道项目id:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"projectId"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
0-项目查重确认 1-确认项目所属 2-确认佣金比例:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"todoStatusDescription"
class=
"form-control"
type=
"text"
>
</div>
</div>
</form>
</div>
<th:block
th:include=
"include :: footer"
/>
<th:block
th:include=
"include :: summernote-js"
/>
<script
th:inline=
"javascript"
>
var
prefix
=
ctx
+
"partnerProject/info"
$
(
"#form-info-add"
).
validate
({
focusCleanup
:
true
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
())
{
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-info-add'
).
serialize
());
}
}
$
(
function
()
{
$
(
'.summernote'
).
summernote
({
lang
:
'zh-CN'
,
dialogsInBody
:
true
,
callbacks
:
{
onChange
:
function
(
contents
,
$edittable
)
{
$
(
"input[name='"
+
this
.
id
+
"']"
).
val
(
contents
);
},
onImageUpload
:
function
(
files
)
{
var
obj
=
this
;
var
data
=
new
FormData
();
data
.
append
(
"file"
,
files
[
0
]);
$
.
ajax
({
type
:
"post"
,
url
:
ctx
+
"common/upload"
,
data
:
data
,
cache
:
false
,
contentType
:
false
,
processData
:
false
,
dataType
:
'json'
,
success
:
function
(
result
)
{
if
(
result
.
code
==
web_status
.
SUCCESS
)
{
$
(
'#'
+
obj
.
id
).
summernote
(
'insertImage'
,
result
.
url
);
}
else
{
$
.
modal
.
alertError
(
result
.
msg
);
}
},
error
:
function
(
error
)
{
$
.
modal
.
alertWarning
(
"图片上传失败。"
);
}
});
}
}
});
});
</script>
</body>
</html>
\ No newline at end of file
ruoyi-system/src/main/resources/templates/partnerProject/info/edit.html
0 → 100644
View file @
b591340b
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/resources/templates/partnerProject/info/editProjectInfo.html
0 → 100644
View file @
b591340b
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/resources/templates/partnerProject/info/info.html
0 → 100644
View file @
b591340b
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
xmlns:shiro=
"http://www.pollix.at/thymeleaf/shiro"
>
<head>
<th:block
th:include=
"include :: header('合伙人项目列表')"
/>
</head>
<body
class=
"gray-bg"
>
<div
class=
"container-div"
>
<div
class=
"row"
>
<div
class=
"col-sm-12 search-collapse"
>
<form
id=
"formId"
>
<div
class=
"select-list"
>
<ul>
<li>
<label>
企业名称:
</label>
<input
type=
"text"
name=
"investmentSubject"
/>
</li>
<li>
<label
style=
"width:80px"
>
合伙人账号:
</label>
<input
type=
"text"
name=
"partnerAccount"
/>
</li>
<li>
<label>
项目名称:
</label>
<input
type=
"text"
name=
"projectName"
/>
</li>
<li>
<a
class=
"btn btn-primary btn-rounded btn-sm"
onclick=
"$.table.search()"
><i
class=
"fa fa-search"
></i>
搜索
</a>
<a
class=
"btn btn-warning btn-rounded btn-sm"
onclick=
"$.form.reset()"
><i
class=
"fa fa-refresh"
></i>
重置
</a>
</li>
</ul>
</div>
</form>
</div>
<div
class=
"btn-group-sm"
id=
"toolbar"
role=
"group"
>
<a
class=
"btn btn-success"
onclick=
"$.operate.add()"
shiro:hasPermission=
"partnerProject:info:add"
>
<i
class=
"fa fa-plus"
></i>
添加
</a>
<a
class=
"btn btn-primary single disabled"
onclick=
"$.operate.edit()"
shiro:hasPermission=
"partnerProject:info:edit"
>
<i
class=
"fa fa-edit"
></i>
修改
</a>
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="partnerProject:info:remove">-->
<!-- <i class="fa fa-remove"></i> 删除-->
<!-- </a>-->
<a
class=
"btn btn-warning"
onclick=
"$.table.exportExcel()"
shiro:hasPermission=
"partnerProject:info:export"
>
<i
class=
"fa fa-download"
></i>
导出
</a>
</div>
<div
class=
"col-sm-12 select-table table-striped"
>
<table
id=
"bootstrap-table"
></table>
</div>
</div>
</div>
<th:block
th:include=
"include :: footer"
/>
<script
th:inline=
"javascript"
>
var
editFlag
=
[[
$
{@
permission
.
hasPermi
(
'partnerProject:info:edit'
)}]];
var
removeFlag
=
[[
$
{@
permission
.
hasPermi
(
'partnerProject:info:remove'
)}]];
var
prefix
=
ctx
+
"partnerProject/info"
;
$
(
function
()
{
var
options
=
{
url
:
prefix
+
"/listPartnerProject"
,
createUrl
:
prefix
+
"/add"
,
// updateUrl: prefix + "/edit/{id}",
updateUrl
:
prefix
+
"/editProjectInfo/{id}"
,
removeUrl
:
prefix
+
"/remove"
,
exportUrl
:
prefix
+
"/export"
,
modalName
:
"合伙人项目"
,
columns
:
[{
checkbox
:
true
},
{
field
:
'id'
,
title
:
'id'
,
visible
:
false
},
{
field
:
'investmentSubject'
,
title
:
'企业名称'
},
{
field
:
'projectName'
,
title
:
'项目名称'
},
{
field
:
'projectInvestmentTotal'
,
title
:
'投资总额'
},
{
field
:
'projectInvestmentRegular'
,
title
:
'固定资产投资总额'
},
{
field
:
'projectStage'
,
title
:
'项目阶段'
},
{
field
:
'todoStatusDescription'
,
title
:
'确认状态'
},
{
field
:
'createTime'
,
title
:
'项目录入时间'
},
{
field
:
'partnerAccount'
,
title
:
'合伙人账号'
},
{
title
:
'操作'
,
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="javascript:void(0)" onclick="$.operate.edit(
\'
'
+
row
.
id
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
// actions.push('
<
a
class
=
"btn btn-danger btn-xs ' + removeFlag + '"
href
=
"javascript:void(0)"
onclick
=
"$.operate.remove(
\
'' + row.id + '
\
')"
><
i
class
=
"fa fa-remove"
><
/i>删除</
a
>
');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>
\ No newline at end of file
ruoyi-system/src/main/resources/templates/partnerProject/info/info_bak.html
0 → 100644
View file @
b591340b
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
xmlns:shiro=
"http://www.pollix.at/thymeleaf/shiro"
>
<head>
<th:block
th:include=
"include :: header('合伙人项目列表')"
/>
</head>
<body
class=
"gray-bg"
>
<div
class=
"container-div"
>
<div
class=
"row"
>
<div
class=
"col-sm-12 search-collapse"
>
<form
id=
"formId"
>
<div
class=
"select-list"
>
<ul>
<li>
<label>
企业名称:
</label>
<input
type=
"text"
name=
"investmentSubject"
/>
</li>
<li>
<label>
合伙人账号:
</label>
<input
type=
"text"
name=
"partnerId"
/>
</li>
<!-- <li>-->
<!-- <label>项目名称:</label>-->
<!-- <input type="text" name="projectName"/>-->
<!-- </li>-->
<li>
<a
class=
"btn btn-primary btn-rounded btn-sm"
onclick=
"$.table.search()"
><i
class=
"fa fa-search"
></i>
搜索
</a>
<a
class=
"btn btn-warning btn-rounded btn-sm"
onclick=
"$.form.reset()"
><i
class=
"fa fa-refresh"
></i>
重置
</a>
</li>
</ul>
</div>
</form>
</div>
<div
class=
"btn-group-sm"
id=
"toolbar"
role=
"group"
>
<a
class=
"btn btn-success"
onclick=
"$.operate.add()"
shiro:hasPermission=
"partnerProject:info:add"
>
<i
class=
"fa fa-plus"
></i>
添加
</a>
<a
class=
"btn btn-primary single disabled"
onclick=
"$.operate.edit()"
shiro:hasPermission=
"partnerProject:info:edit"
>
<i
class=
"fa fa-edit"
></i>
修改
</a>
<a
class=
"btn btn-danger multiple disabled"
onclick=
"$.operate.removeAll()"
shiro:hasPermission=
"partnerProject:info:remove"
>
<i
class=
"fa fa-remove"
></i>
删除
</a>
<a
class=
"btn btn-warning"
onclick=
"$.table.exportExcel()"
shiro:hasPermission=
"partnerProject:info:export"
>
<i
class=
"fa fa-download"
></i>
导出
</a>
</div>
<div
class=
"col-sm-12 select-table table-striped"
>
<table
id=
"bootstrap-table"
></table>
</div>
</div>
</div>
<th:block
th:include=
"include :: footer"
/>
<script
th:inline=
"javascript"
>
var
editFlag
=
[[
$
{@
permission
.
hasPermi
(
'partnerProject:info:edit'
)}]];
var
removeFlag
=
[[
$
{@
permission
.
hasPermi
(
'partnerProject:info:remove'
)}]];
var
prefix
=
ctx
+
"partnerProject/info"
;
$
(
function
()
{
var
options
=
{
url
:
prefix
+
"/list"
,
createUrl
:
prefix
+
"/add"
,
updateUrl
:
prefix
+
"/edit/{id}"
,
removeUrl
:
prefix
+
"/remove"
,
exportUrl
:
prefix
+
"/export"
,
modalName
:
"合伙人项目"
,
columns
:
[{
checkbox
:
true
},
{
field
:
'id'
,
title
:
'id'
,
visible
:
false
},
{
field
:
'investmentSubject'
,
title
:
'企业名称'
},
{
field
:
'projectInvestmentTotal'
,
title
:
'投资总额'
},
{
field
:
'projectInvestmentRegular'
,
title
:
'固定资产投资总额'
},
{
field
:
'status'
,
// title: '0-暂存 1-信息提报 2-项目查重通过 3-项目查重拒绝 4-招商公司匹配 5-企业对接 6-投资意向确认 7-确认项目信息 8-完成审核 9-项目信息 10-项目沟通 11-区域匹配 12-政企互访 13-项目谈判 14-项目签约 15-分配中 20-作废'
title
:
'项目阶段'
},
{
field
:
'statusDescription'
,
// title: '0-暂存 1-信息提报 2-项目查重通过 3-项目查重拒绝 4-招商公司匹配 5-企业对接 6-投资意向确认 7-确认项目信息 8-完成审核 9-项目信息 10-项目沟通 11-区域匹配 12-政企互访 13-项目谈判 14-项目签约 15-分配中 20-作废'
title
:
'项目阶段'
},
{
field
:
'todoStatus'
,
title
:
'确认状态'
},
{
field
:
'todoStatusDescription'
,
title
:
'确认状态'
},
{
field
:
'createTime'
,
title
:
'项目录入时间'
},
{
field
:
'partnerId'
,
title
:
'合伙人账号'
},
{
title
:
'操作'
,
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="javascript:void(0)" onclick="$.operate.edit(
\'
'
+
row
.
id
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="javascript:void(0)" onclick="$.operate.remove(
\'
'
+
row
.
id
+
'
\'
)"><i class="fa fa-remove"></i>删除</a>'
);
return
actions
.
join
(
''
);
}
}]
};
$
.
table
.
init
(
options
);
});
</script>
</body>
</html>
\ No newline at end of file
ruoyi-system/src/main/resources/templates/partnerProject/info/selectProject.html
0 → 100644
View file @
b591340b
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
xmlns:shiro=
"http://www.pollix.at/thymeleaf/shiro"
>
<head>
<th:block
th:include=
"include :: header('选择')"
/>
</head>
<body
class=
"gray-bg"
>
<input
type=
"hidden"
id=
"rowIds"
>
<div
class=
"container-div"
>
<div
class=
"row"
>
<div
class=
"col-sm-12 search-collapse"
>
<form
id=
"formId"
>
<div
class=
"select-list"
>
<ul>
<li>
<label>
名称:
</label>
<input
type=
"text"
name=
"name"
/>
</li>
<li>
<input
type=
"hidden"
name=
"type"
id=
"type"
th:value=
"${type}"
>
</li>
<li>
<a
class=
"btn btn-primary btn-rounded btn-sm"
onclick=
"$.table.search()"
><i
class=
"fa fa-search"
></i>
搜索
</a>
<a
class=
"btn btn-warning btn-rounded btn-sm"
onclick=
"$.form.reset()"
><i
class=
"fa fa-refresh"
></i>
重置
</a>
</li>
</ul>
</div>
</form>
</div>
<div
class=
"col-sm-12 select-table table-striped"
>
<table
id=
"bootstrap-table"
></table>
</div>
</div>
</div>
<div
th:include=
"include :: footer"
></div>
<script
th:inline=
"javascript"
>
var
prefix
=
ctx
+
"carousel/info"
;
console
.
info
(
"type"
+
$
(
"#type"
).
val
());
var
datacarriers
=
[
// {
// id: "100",
// type: "1",
// name: "商品名称",
// distance: "100",
// costTime: "12.5",
// }
];
$
(
function
()
{
var
options
=
{
// url: prefix + "/listSelectType/"+$("#type").val()+"/"+$("#name").val(),
url
:
prefix
+
"/listSelectType"
,
// data: 'type='+$("#type"),
showSearch
:
false
,
showRefresh
:
false
,
showToggle
:
false
,
showColumns
:
false
,
columns
:
[{
radio
:
true
},
{
field
:
'id'
,
title
:
'类型id'
},
{
field
:
'name'
,
title
:
'名称'
}
// ,
// {
// title: '操作',
// align: 'center',
// formatter: function(value, row, index) {
// var actions = [];
// actions.push('
<
a
class
=
"btn btn-success btn-xs"
href
=
"#"
><
i
class
=
"fa fa-edit"
><
/i>编辑</
a
>
');
// actions.push('
<
a
class
=
"btn btn-danger btn-xs"
href
=
"#"
><
i
class
=
"fa fa-remove"
><
/i>删除</
a
>
');
// return actions.join('');
// }
// }
]
};
$.table.init(options);
});
/* 添加用户-选择用户-提交(子页面调用父页面形式) */
// function submitHandler(index, layero) {
// var id = $.table.selectFirstColumns();
// if (id.length == 0) {
// $.modal.alertWarning("请选择一条记录");
// return;
// }
// var name = $.table.selectColumns('
name
');
// $.modal.close();
// // 父页面的方法
// // activeWindow().selectUsers();
// // 父页面的变量
// console.info("qqqqqq",id[0],name[0]);
// debugger;
// activeWindow().$('
#
associationName
').val(name[0]);
// activeWindow().$('
#
associationId
').val(id[0]);
// }
/* 添加用户-选择用户-提交(回调形式-父页面调用子页面) */
function getSelections() {
var dataObject = {};
var name = $.table.selectColumns('
name
');
dataObject.name = name[0];
var id = $.table.selectFirstColumns();
dataObject.id = id[0];
// return $.table.selectFirstColumns();
return dataObject;
}
// $("#bootstrap-table").on("check.bs.table check-all.bs.table uncheck.bs.table uncheck-all.bs.table", function (e, rowsAfter, rowsBefore) {
// var rows = $.common.equals("uncheck-all", e.type) ? rowsBefore : rowsAfter;
// var rowIds = $.table.affectedRowIds(rows);
// $("#rowIds").val(rowIds);
// });
</script>
</body>
</html>
\ No newline at end of file
ruoyi-system/src/main/resources/templates/project/info/add.html
0 → 100644
View file @
b591340b
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<th:block
th:include=
"include :: header('新增产业知道项目信息')"
/>
<th:block
th:include=
"include :: summernote-css"
/>
</head>
<body
class=
"white-bg"
>
<div
class=
"wrapper wrapper-content animated fadeInRight ibox-content"
>
<form
class=
"form-horizontal m"
id=
"form-info-add"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
项目编号:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"projectNumber"
class=
"form-control"
type=
"text"
required
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
项目编号:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"projectId"
class=
"form-control"
type=
"text"
required
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
项目名称:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"projectName"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
投资方企业ID:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"cid"
class=
"form-control"
type=
"text"
required
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
应用领域:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"applyScope"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
投资动因ID:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"investReasonId"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
总投资额:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"investAmount"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
固定资产投资额:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"fixAssetInvestAmount"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
达产后年产值:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"futureOutputValue"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
达产后年纳税:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"futureTax"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
达产后拉动就业人数:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"futureJobNum"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
当前状态 1-项目线索 2-初期沟通 3-区域匹配/确认 4-政企互访 5-项目谈判 6-项目签约:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"currentStage"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
创建者:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"creator"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
投资内容:
</label>
<div
class=
"col-sm-8"
>
<input
type=
"hidden"
class=
"form-control"
name=
"investContent"
>
<div
class=
"summernote"
id=
"investContent"
></div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
终止原因描述:
</label>
<div
class=
"col-sm-8"
>
<textarea
name=
"endCauseDesc"
class=
"form-control"
></textarea>
</div>
</div>
</form>
</div>
<th:block
th:include=
"include :: footer"
/>
<th:block
th:include=
"include :: summernote-js"
/>
<script
th:inline=
"javascript"
>
var
prefix
=
ctx
+
"project/info"
$
(
"#form-info-add"
).
validate
({
focusCleanup
:
true
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
())
{
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-info-add'
).
serialize
());
}
}
$
(
function
()
{
$
(
'.summernote'
).
summernote
({
lang
:
'zh-CN'
,
dialogsInBody
:
true
,
callbacks
:
{
onChange
:
function
(
contents
,
$edittable
)
{
$
(
"input[name='"
+
this
.
id
+
"']"
).
val
(
contents
);
},
onImageUpload
:
function
(
files
)
{
var
obj
=
this
;
var
data
=
new
FormData
();
data
.
append
(
"file"
,
files
[
0
]);
$
.
ajax
({
type
:
"post"
,
url
:
ctx
+
"common/upload"
,
data
:
data
,
cache
:
false
,
contentType
:
false
,
processData
:
false
,
dataType
:
'json'
,
success
:
function
(
result
)
{
if
(
result
.
code
==
web_status
.
SUCCESS
)
{
$
(
'#'
+
obj
.
id
).
summernote
(
'insertImage'
,
result
.
url
);
}
else
{
$
.
modal
.
alertError
(
result
.
msg
);
}
},
error
:
function
(
error
)
{
$
.
modal
.
alertWarning
(
"图片上传失败。"
);
}
});
}
}
});
});
</script>
</body>
</html>
\ No newline at end of file
ruoyi-system/src/main/resources/templates/project/info/edit.html
0 → 100644
View file @
b591340b
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<th:block
th:include=
"include :: header('修改产业知道项目信息')"
/>
<th:block
th:include=
"include :: summernote-css"
/>
</head>
<body
class=
"white-bg"
>
<div
class=
"wrapper wrapper-content animated fadeInRight ibox-content"
>
<form
class=
"form-horizontal m"
id=
"form-info-edit"
th:object=
"${projectInfo}"
>
<input
name=
"id"
th:field=
"*{id}"
type=
"hidden"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
项目编号:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"projectNumber"
th:field=
"*{projectNumber}"
class=
"form-control"
type=
"text"
required
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
项目编号:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"projectId"
th:field=
"*{projectId}"
class=
"form-control"
type=
"text"
required
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
项目名称:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"projectName"
th:field=
"*{projectName}"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
投资方企业ID:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"cid"
th:field=
"*{cid}"
class=
"form-control"
type=
"text"
required
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
应用领域:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"applyScope"
th:field=
"*{applyScope}"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
投资动因ID:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"investReasonId"
th:field=
"*{investReasonId}"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
总投资额:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"investAmount"
th:field=
"*{investAmount}"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
固定资产投资额:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"fixAssetInvestAmount"
th:field=
"*{fixAssetInvestAmount}"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
达产后年产值:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"futureOutputValue"
th:field=
"*{futureOutputValue}"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
达产后年纳税:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"futureTax"
th:field=
"*{futureTax}"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
达产后拉动就业人数:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"futureJobNum"
th:field=
"*{futureJobNum}"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
当前状态 1-项目线索 2-初期沟通 3-区域匹配/确认 4-政企互访 5-项目谈判 6-项目签约:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"currentStage"
th:field=
"*{currentStage}"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
创建者:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"creator"
th:field=
"*{creator}"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
投资内容:
</label>
<div
class=
"col-sm-8"
>
<input
type=
"hidden"
class=
"form-control"
th:field=
"*{investContent}"
>
<div
class=
"summernote"
id=
"investContent"
></div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
终止原因描述:
</label>
<div
class=
"col-sm-8"
>
<textarea
name=
"endCauseDesc"
class=
"form-control"
>
[[*{endCauseDesc}]]
</textarea>
</div>
</div>
</form>
</div>
<th:block
th:include=
"include :: footer"
/>
<th:block
th:include=
"include :: summernote-js"
/>
<script
th:inline=
"javascript"
>
var
prefix
=
ctx
+
"project/info"
;
$
(
"#form-info-edit"
).
validate
({
focusCleanup
:
true
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
())
{
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-info-edit'
).
serialize
());
}
}
$
(
function
()
{
$
(
'.summernote'
).
each
(
function
(
i
)
{
$
(
'#'
+
this
.
id
).
summernote
({
lang
:
'zh-CN'
,
dialogsInBody
:
true
,
callbacks
:
{
onChange
:
function
(
contents
,
$edittable
)
{
$
(
"input[name='"
+
this
.
id
+
"']"
).
val
(
contents
);
},
onImageUpload
:
function
(
files
)
{
var
obj
=
this
;
var
data
=
new
FormData
();
data
.
append
(
"file"
,
files
[
0
]);
$
.
ajax
({
type
:
"post"
,
url
:
ctx
+
"common/upload"
,
data
:
data
,
cache
:
false
,
contentType
:
false
,
processData
:
false
,
dataType
:
'json'
,
success
:
function
(
result
)
{
if
(
result
.
code
==
web_status
.
SUCCESS
)
{
$
(
'#'
+
obj
.
id
).
summernote
(
'insertImage'
,
result
.
url
);
}
else
{
$
.
modal
.
alertError
(
result
.
msg
);
}
},
error
:
function
(
error
)
{
$
.
modal
.
alertWarning
(
"图片上传失败。"
);
}
});
}
}
});
var
content
=
$
(
"input[name='"
+
this
.
id
+
"']"
).
val
();
$
(
'#'
+
this
.
id
).
summernote
(
'code'
,
content
);
})
});
</script>
</body>
</html>
\ No newline at end of file
ruoyi-system/src/main/resources/templates/project/info/info.html
0 → 100644
View file @
b591340b
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/resources/templates/statusChange/info/add.html
0 → 100644
View file @
b591340b
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<th:block
th:include=
"include :: header('新增项目节点信息')"
/>
</head>
<body
class=
"white-bg"
>
<div
class=
"wrapper wrapper-content animated fadeInRight ibox-content"
>
<form
class=
"form-horizontal m"
id=
"form-info-add"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
项目状态:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"projectStatusDisplay"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"projectId"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
操作人:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"operaterId"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"tenantId"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
描述:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"description"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
0-项目查重确认 1-确认项目所属 2-确认佣金比例:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"todoStatusDescription"
class=
"form-control"
type=
"text"
>
</div>
</div>
</form>
</div>
<th:block
th:include=
"include :: footer"
/>
<script
th:inline=
"javascript"
>
var
prefix
=
ctx
+
"statusChange/info"
$
(
"#form-info-add"
).
validate
({
focusCleanup
:
true
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
())
{
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-info-add'
).
serialize
());
}
}
</script>
</body>
</html>
\ No newline at end of file
ruoyi-system/src/main/resources/templates/statusChange/info/edit.html
0 → 100644
View file @
b591340b
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<th:block
th:include=
"include :: header('修改项目节点信息')"
/>
</head>
<body
class=
"white-bg"
>
<div
class=
"wrapper wrapper-content animated fadeInRight ibox-content"
>
<form
class=
"form-horizontal m"
id=
"form-info-edit"
th:object=
"${partnerProjectStatusChangeLog}"
>
<input
name=
"id"
th:field=
"*{id}"
type=
"hidden"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
项目状态:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"projectStatusDisplay"
th:field=
"*{projectStatusDisplay}"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"projectId"
th:field=
"*{projectId}"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
操作人:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"operaterId"
th:field=
"*{operaterId}"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"tenantId"
th:field=
"*{tenantId}"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
描述:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"description"
th:field=
"*{description}"
class=
"form-control"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
0-项目查重确认 1-确认项目所属 2-确认佣金比例:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"todoStatusDescription"
th:field=
"*{todoStatusDescription}"
class=
"form-control"
type=
"text"
>
</div>
</div>
</form>
</div>
<th:block
th:include=
"include :: footer"
/>
<script
th:inline=
"javascript"
>
var
prefix
=
ctx
+
"statusChange/info"
;
$
(
"#form-info-edit"
).
validate
({
focusCleanup
:
true
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
())
{
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-info-edit'
).
serialize
());
}
}
</script>
</body>
</html>
\ No newline at end of file
ruoyi-system/src/main/resources/templates/statusChange/info/info.html
0 → 100644
View file @
b591340b
This diff is collapsed.
Click to expand it.
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