Commit b591340b authored by yaobaizheng's avatar yaobaizheng

合伙招商后台

parent 18a243ac
......@@ -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;
}
/**
* 响应返回结果
*
......
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 +
'}';
}
}
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();
}
}
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 +
'}';
}
}
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));
}
}
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));
}
}
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));
}
}
package com.ruoyi.system.domain;
import java.math.BigDecimal;
import java.util.Date;
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;
import org.springframework.format.annotation.DateTimeFormat;
/**
* 合伙人项目对象 partner_project_info
*
* @author ruoyi
* @date 2023-10-27
*/
public class PartnerProjectInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 近年营收 */
@Excel(name = "近年营收")
private String continuousRevenue;
/** id */
private Long id;
/** 投资主体 */
@Excel(name = "投资主体")
private String investmentSubject;
/** 企业亮点 */
@Excel(name = "企业亮点")
private String enterpriseHighlights;
/** 产业基地 */
@Excel(name = "产业基地")
private String industrialBase;
/** 建设内容建设内容 */
@Excel(name = "建设内容建设内容")
private String constructionContent;
/** 投资总额 */
@Excel(name = "投资总额")
private BigDecimal projectInvestmentTotal;
/** 固定资产投资总额 */
@Excel(name = "固定资产投资总额")
private BigDecimal projectInvestmentRegular;
/** 投资内容 */
@Excel(name = "投资内容")
private String investmentContent;
/** 项目诉求 */
@Excel(name = "项目诉求")
private String projectAppeal;
/** 意向区域 */
@Excel(name = "意向区域")
private String intendedRegion;
/** 佣金比例 */
@Excel(name = "佣金比例")
private String regionCommissionRate;
/** 载体类别 */
@Excel(name = "载体类别")
private String carrierType;
/** 土地需求(单位亩) */
@Excel(name = "土地需求", readConverterExp = "单=位亩")
private String carrierRequirementsLandDemand;
/** 厂房需求(单位平米) */
@Excel(name = "厂房需求", readConverterExp = "单=位平米")
private String carrierRequirementsFactoryDemand;
/** 决策人 */
@Excel(name = "决策人")
private String decisionMaker;
/** 决策人职位 */
@Excel(name = "决策人职位")
private String decisionMakerPosition;
/** 0-暂存 1-信息提报 2-项目查重通过 3-项目查重拒绝 4-招商公司匹配 5-企业对接 6-投资意向确认 7-确认项目信息 8-完成审核 9-项目信息 10-项目沟通 11-区域匹配 12-政企互访 13-项目谈判 14-项目签约 15-分配中 20-作废 */
@Excel(name = "0-暂存 1-信息提报 2-项目查重通过 3-项目查重拒绝 4-招商公司匹配 5-企业对接 6-投资意向确认 7-确认项目信息 8-完成审核 9-项目信息 10-项目沟通 11-区域匹配 12-政企互访 13-项目谈判 14-项目签约 15-分配中 20-作废")
private Integer status;
/** 0-暂存 1-信息提报 2-项目查重通过 3-项目查重拒绝 4-招商公司匹配 5-企业对接 6-投资意向确认 7-确认项目信息 8-完成审核 9-项目信息 10-项目沟通 11-区域匹配 12-政企互访 13-项目谈判 14-项目签约 15-分配中 20-作废 */
@Excel(name = "0-暂存 1-信息提报 2-项目查重通过 3-项目查重拒绝 4-招商公司匹配 5-企业对接 6-投资意向确认 7-确认项目信息 8-完成审核 9-项目信息 10-项目沟通 11-区域匹配 12-政企互访 13-项目谈判 14-项目签约 15-分配中 20-作废")
private String statusDescription;
/** 项目归属人 */
@Excel(name = "项目归属人")
private Long partnerId;
/** 归属人是否已确认 */
@Excel(name = "归属人是否已确认")
private Integer partnerHasConfirm;
/** 匹配招商公司 */
@Excel(name = "匹配招商公司")
private String investmentPromotionCompany;
/** 租户id */
@Excel(name = "租户id")
private Long tenantId;
/** 秘书id */
@Excel(name = "秘书id")
private Long secretaryId;
@Excel(name = "项目录入时间")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
/** 0-项目查重确认 1-确认项目所属 2-确认佣金比例 */
@Excel(name = "0-项目查重确认 1-确认项目所属 2-确认佣金比例")
private Integer todoStatus;
/** 产业知道项目id */
@Excel(name = "产业知道项目id")
private Long projectId;
/** 0-项目查重确认 1-确认项目所属 2-确认佣金比例 */
@Excel(name = "0-项目查重确认 1-确认项目所属 2-确认佣金比例")
private String todoStatusDescription;
public void setContinuousRevenue(String continuousRevenue)
{
this.continuousRevenue = continuousRevenue;
}
public String getContinuousRevenue()
{
return continuousRevenue;
}
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setInvestmentSubject(String investmentSubject)
{
this.investmentSubject = investmentSubject;
}
public String getInvestmentSubject()
{
return investmentSubject;
}
public void setEnterpriseHighlights(String enterpriseHighlights)
{
this.enterpriseHighlights = enterpriseHighlights;
}
public String getEnterpriseHighlights()
{
return enterpriseHighlights;
}
public void setIndustrialBase(String industrialBase)
{
this.industrialBase = industrialBase;
}
public String getIndustrialBase()
{
return industrialBase;
}
public void setConstructionContent(String constructionContent)
{
this.constructionContent = constructionContent;
}
public String getConstructionContent()
{
return constructionContent;
}
public void setProjectInvestmentTotal(BigDecimal projectInvestmentTotal)
{
this.projectInvestmentTotal = projectInvestmentTotal;
}
public BigDecimal getProjectInvestmentTotal()
{
return projectInvestmentTotal;
}
public void setProjectInvestmentRegular(BigDecimal projectInvestmentRegular)
{
this.projectInvestmentRegular = projectInvestmentRegular;
}
public BigDecimal getProjectInvestmentRegular()
{
return projectInvestmentRegular;
}
public void setInvestmentContent(String investmentContent)
{
this.investmentContent = investmentContent;
}
public String getInvestmentContent()
{
return investmentContent;
}
public void setProjectAppeal(String projectAppeal)
{
this.projectAppeal = projectAppeal;
}
public String getProjectAppeal()
{
return projectAppeal;
}
public void setIntendedRegion(String intendedRegion)
{
this.intendedRegion = intendedRegion;
}
public String getIntendedRegion()
{
return intendedRegion;
}
public void setRegionCommissionRate(String regionCommissionRate)
{
this.regionCommissionRate = regionCommissionRate;
}
public String getRegionCommissionRate()
{
return regionCommissionRate;
}
public void setCarrierType(String carrierType)
{
this.carrierType = carrierType;
}
public String getCarrierType()
{
return carrierType;
}
public void setCarrierRequirementsLandDemand(String carrierRequirementsLandDemand)
{
this.carrierRequirementsLandDemand = carrierRequirementsLandDemand;
}
public String getCarrierRequirementsLandDemand()
{
return carrierRequirementsLandDemand;
}
public void setCarrierRequirementsFactoryDemand(String carrierRequirementsFactoryDemand)
{
this.carrierRequirementsFactoryDemand = carrierRequirementsFactoryDemand;
}
public String getCarrierRequirementsFactoryDemand()
{
return carrierRequirementsFactoryDemand;
}
public void setDecisionMaker(String decisionMaker)
{
this.decisionMaker = decisionMaker;
}
public String getDecisionMaker()
{
return decisionMaker;
}
public void setDecisionMakerPosition(String decisionMakerPosition)
{
this.decisionMakerPosition = decisionMakerPosition;
}
public String getDecisionMakerPosition()
{
return decisionMakerPosition;
}
public void setStatus(Integer status)
{
this.status = status;
}
public Integer getStatus()
{
return status;
}
public void setStatusDescription(String statusDescription)
{
this.statusDescription = statusDescription;
}
public String getStatusDescription()
{
return statusDescription;
}
public void setPartnerId(Long partnerId)
{
this.partnerId = partnerId;
}
public Long getPartnerId()
{
return partnerId;
}
public void setPartnerHasConfirm(Integer partnerHasConfirm)
{
this.partnerHasConfirm = partnerHasConfirm;
}
public Integer getPartnerHasConfirm()
{
return partnerHasConfirm;
}
public void setInvestmentPromotionCompany(String investmentPromotionCompany)
{
this.investmentPromotionCompany = investmentPromotionCompany;
}
public String getInvestmentPromotionCompany()
{
return investmentPromotionCompany;
}
public void setTenantId(Long tenantId)
{
this.tenantId = tenantId;
}
public Long getTenantId()
{
return tenantId;
}
public void setSecretaryId(Long secretaryId)
{
this.secretaryId = secretaryId;
}
public Long getSecretaryId()
{
return secretaryId;
}
public void setTodoStatus(Integer todoStatus)
{
this.todoStatus = todoStatus;
}
public Integer getTodoStatus()
{
return todoStatus;
}
public void setProjectId(Long projectId)
{
this.projectId = projectId;
}
public Long getProjectId()
{
return projectId;
}
public void setTodoStatusDescription(String todoStatusDescription)
{
this.todoStatusDescription = todoStatusDescription;
}
public String getTodoStatusDescription()
{
return todoStatusDescription;
}
@Override
public Date getCreateTime() {
return createTime;
}
@Override
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("continuousRevenue", getContinuousRevenue())
.append("id", getId())
.append("investmentSubject", getInvestmentSubject())
.append("enterpriseHighlights", getEnterpriseHighlights())
.append("industrialBase", getIndustrialBase())
.append("constructionContent", getConstructionContent())
.append("projectInvestmentTotal", getProjectInvestmentTotal())
.append("projectInvestmentRegular", getProjectInvestmentRegular())
.append("investmentContent", getInvestmentContent())
.append("projectAppeal", getProjectAppeal())
.append("intendedRegion", getIntendedRegion())
.append("regionCommissionRate", getRegionCommissionRate())
.append("carrierType", getCarrierType())
.append("carrierRequirementsLandDemand", getCarrierRequirementsLandDemand())
.append("carrierRequirementsFactoryDemand", getCarrierRequirementsFactoryDemand())
.append("decisionMaker", getDecisionMaker())
.append("decisionMakerPosition", getDecisionMakerPosition())
.append("status", getStatus())
.append("statusDescription", getStatusDescription())
.append("partnerId", getPartnerId())
.append("partnerHasConfirm", getPartnerHasConfirm())
.append("investmentPromotionCompany", getInvestmentPromotionCompany())
.append("tenantId", getTenantId())
.append("secretaryId", getSecretaryId())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.append("todoStatus", getTodoStatus())
.append("projectId", getProjectId())
.append("todoStatusDescription", getTodoStatusDescription())
.append("createTime", getCreateTime())
.toString();
}
}
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();
}
}
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();
}
}
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;
}
}
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;
}
}
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;
}
}
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;
}
}
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;
}
}
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;
}
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
}
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);
}
}
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);
}
}
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 "未找到枚举";
}
}
<?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.PartnerProjectInfoMapper">
<resultMap type="PartnerProjectInfo" id="PartnerProjectInfoResult">
<result property="continuousRevenue" column="continuous_revenue" />
<result property="id" column="id" />
<result property="investmentSubject" column="investment_subject" />
<result property="enterpriseHighlights" column="enterprise_highlights" />
<result property="industrialBase" column="industrial_base" />
<result property="constructionContent" column="construction_content" />
<result property="projectInvestmentTotal" column="project_investment_total" />
<result property="projectInvestmentRegular" column="project_investment_regular" />
<result property="investmentContent" column="investment_content" />
<result property="projectAppeal" column="project_appeal" />
<result property="intendedRegion" column="intended_region" />
<result property="regionCommissionRate" column="region_commission_rate" />
<result property="carrierType" column="carrier_type" />
<result property="carrierRequirementsLandDemand" column="carrier_requirements_land_demand" />
<result property="carrierRequirementsFactoryDemand" column="carrier_requirements_factory_demand" />
<result property="decisionMaker" column="decision_maker" />
<result property="decisionMakerPosition" column="decision_maker_position" />
<result property="status" column="status" />
<result property="statusDescription" column="status_description" />
<result property="partnerId" column="partner_id" />
<result property="partnerHasConfirm" column="partner_has_confirm" />
<result property="investmentPromotionCompany" column="investment_promotion_company" />
<result property="tenantId" column="tenant_id" />
<result property="secretaryId" column="secretary_id" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="todoStatus" column="todo_status" />
<result property="projectId" column="project_id" />
<result property="todoStatusDescription" column="todo_status_description" />
</resultMap>
<resultMap type="com.ruoyi.system.VO.ProjectInfoVO" id="ProjectInfoVOResult">
<result property="id" column="id" />
<result property="projectName" column="project_name" />
<result property="investmentSubject" column="investment_subject" />
<result property="projectInvestmentTotal" column="project_investment_total" />
<result property="projectInvestmentRegular" column="project_investment_regular" />
<result property="projectStage" column="project_stage" />
<result property="todoStatusDescription" column="todo_status_description" />
<result property="partnerAccount" column="partner_account" />
<result property="createTime" column="create_time" />
</resultMap>
<sql id="selectPartnerProjectInfoVo">
select continuous_revenue, id, investment_subject, enterprise_highlights, industrial_base, construction_content, project_investment_total, project_investment_regular, investment_content, project_appeal, intended_region, region_commission_rate, carrier_type, carrier_requirements_land_demand, carrier_requirements_factory_demand, decision_maker, decision_maker_position, status, status_description, partner_id, partner_has_confirm, investment_promotion_company, tenant_id, secretary_id, create_time, update_time, todo_status, project_id, todo_status_description from partner_project_info
</sql>
<select id="selectPartnerProjectInfoList" parameterType="PartnerProjectInfo" resultMap="PartnerProjectInfoResult">
<include refid="selectPartnerProjectInfoVo"/>
<where>
<if test="continuousRevenue != null and continuousRevenue != ''"> and continuous_revenue = #{continuousRevenue}</if>
<if test="investmentSubject != null and investmentSubject != ''"> and investment_subject = #{investmentSubject}</if>
<if test="enterpriseHighlights != null and enterpriseHighlights != ''"> and enterprise_highlights = #{enterpriseHighlights}</if>
<if test="industrialBase != null and industrialBase != ''"> and industrial_base = #{industrialBase}</if>
<if test="constructionContent != null and constructionContent != ''"> and construction_content = #{constructionContent}</if>
<if test="projectInvestmentTotal != null "> and project_investment_total = #{projectInvestmentTotal}</if>
<if test="projectInvestmentRegular != null "> and project_investment_regular = #{projectInvestmentRegular}</if>
<if test="investmentContent != null and investmentContent != ''"> and investment_content = #{investmentContent}</if>
<if test="projectAppeal != null and projectAppeal != ''"> and project_appeal = #{projectAppeal}</if>
<if test="intendedRegion != null and intendedRegion != ''"> and intended_region = #{intendedRegion}</if>
<if test="regionCommissionRate != null and regionCommissionRate != ''"> and region_commission_rate = #{regionCommissionRate}</if>
<if test="carrierType != null and carrierType != ''"> and carrier_type = #{carrierType}</if>
<if test="carrierRequirementsLandDemand != null and carrierRequirementsLandDemand != ''"> and carrier_requirements_land_demand = #{carrierRequirementsLandDemand}</if>
<if test="carrierRequirementsFactoryDemand != null and carrierRequirementsFactoryDemand != ''"> and carrier_requirements_factory_demand = #{carrierRequirementsFactoryDemand}</if>
<if test="decisionMaker != null and decisionMaker != ''"> and decision_maker = #{decisionMaker}</if>
<if test="decisionMakerPosition != null and decisionMakerPosition != ''"> and decision_maker_position = #{decisionMakerPosition}</if>
<if test="status != null "> and status = #{status}</if>
<if test="statusDescription != null and statusDescription != ''"> and status_description = #{statusDescription}</if>
<if test="partnerId != null "> and partner_id = #{partnerId}</if>
<if test="partnerHasConfirm != null "> and partner_has_confirm = #{partnerHasConfirm}</if>
<if test="investmentPromotionCompany != null and investmentPromotionCompany != ''"> and investment_promotion_company = #{investmentPromotionCompany}</if>
<if test="tenantId != null "> and tenant_id = #{tenantId}</if>
<if test="secretaryId != null "> and secretary_id = #{secretaryId}</if>
<if test="todoStatus != null "> and todo_status = #{todoStatus}</if>
<if test="projectId != null "> and project_id = #{projectId}</if>
<if test="todoStatusDescription != null and todoStatusDescription != ''"> and todo_status_description = #{todoStatusDescription}</if>
</where>
</select>
<select id="selectProjectList" parameterType="com.ruoyi.system.VO.ProjectInfoVO" resultMap="ProjectInfoVOResult">
select ppi.id,
CASE
WHEN ppi.status &lt; 5 THEN ppi.investment_subject
WHEN ppi.status &gt;= 5 THEN c.ent_name
ELSE '' END AS investment_subject,
pi.project_name,
CASE
WHEN ppi.status &lt; 5 THEN ppi.project_investment_total
WHEN ppi.status &gt;= 5 THEN pi.invest_amount
ELSE '' END AS project_investment_total,
CASE
WHEN ppi.status &lt; 5 THEN ppi.project_investment_regular
WHEN ppi.status &gt;= 5 THEN pi.fix_asset_invest_amount
ELSE '' END AS project_investment_regular,
CASE
WHEN ppi.status = 0 THEN '暂存'
WHEN ppi.status &gt;= 1 AND ppi.status &lt;= 8 THEN '审核中'
WHEN ppi.status &gt;= 9 AND ppi.status &lt;= 14 THEN '推进中'
WHEN ppi.status = 15 THEN '分配中'
ELSE '' END AS project_stage,
ppi.todo_status_description,
su.login_name partner_account,
ppi.create_time
from partner_project_info ppi
left join project_info pi on ppi.project_id = pi.id
left join sys_user su on ppi.partner_id = su.user_id
left join company c on c.id = pi.cid
<where>
ppi.status != 20 -- 作废
<if test="investmentSubject != null and investmentSubject != ''">
and (ppi.investment_subject like concat('%',#{investmentSubject} ,'%') or c.ent_name like concat('%',#{investmentSubject},'%') )
</if>
<if test="projectName != null and projectName != ''">
and pi.project_name like concat('%', #{projectName} ,'%')
</if>
<if test="partnerAccount != null and partnerAccount != ''">
and su.login_name like concat('%', #{partnerAccount} ,'%')
</if>
</where>
</select>
<select id="selectPartnerProjectInfoById" parameterType="Long" resultMap="PartnerProjectInfoResult">
<include refid="selectPartnerProjectInfoVo"/>
where id = #{id}
</select>
<insert id="insertPartnerProjectInfo" parameterType="PartnerProjectInfo" useGeneratedKeys="true" keyProperty="id">
insert into partner_project_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="continuousRevenue != null">continuous_revenue,</if>
<if test="investmentSubject != null">investment_subject,</if>
<if test="enterpriseHighlights != null">enterprise_highlights,</if>
<if test="industrialBase != null">industrial_base,</if>
<if test="constructionContent != null">construction_content,</if>
<if test="projectInvestmentTotal != null">project_investment_total,</if>
<if test="projectInvestmentRegular != null">project_investment_regular,</if>
<if test="investmentContent != null">investment_content,</if>
<if test="projectAppeal != null">project_appeal,</if>
<if test="intendedRegion != null">intended_region,</if>
<if test="regionCommissionRate != null">region_commission_rate,</if>
<if test="carrierType != null">carrier_type,</if>
<if test="carrierRequirementsLandDemand != null">carrier_requirements_land_demand,</if>
<if test="carrierRequirementsFactoryDemand != null">carrier_requirements_factory_demand,</if>
<if test="decisionMaker != null">decision_maker,</if>
<if test="decisionMakerPosition != null">decision_maker_position,</if>
<if test="status != null">status,</if>
<if test="statusDescription != null">status_description,</if>
<if test="partnerId != null">partner_id,</if>
<if test="partnerHasConfirm != null">partner_has_confirm,</if>
<if test="investmentPromotionCompany != null">investment_promotion_company,</if>
<if test="tenantId != null">tenant_id,</if>
<if test="secretaryId != null">secretary_id,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="todoStatus != null">todo_status,</if>
<if test="projectId != null">project_id,</if>
<if test="todoStatusDescription != null">todo_status_description,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="continuousRevenue != null">#{continuousRevenue},</if>
<if test="investmentSubject != null">#{investmentSubject},</if>
<if test="enterpriseHighlights != null">#{enterpriseHighlights},</if>
<if test="industrialBase != null">#{industrialBase},</if>
<if test="constructionContent != null">#{constructionContent},</if>
<if test="projectInvestmentTotal != null">#{projectInvestmentTotal},</if>
<if test="projectInvestmentRegular != null">#{projectInvestmentRegular},</if>
<if test="investmentContent != null">#{investmentContent},</if>
<if test="projectAppeal != null">#{projectAppeal},</if>
<if test="intendedRegion != null">#{intendedRegion},</if>
<if test="regionCommissionRate != null">#{regionCommissionRate},</if>
<if test="carrierType != null">#{carrierType},</if>
<if test="carrierRequirementsLandDemand != null">#{carrierRequirementsLandDemand},</if>
<if test="carrierRequirementsFactoryDemand != null">#{carrierRequirementsFactoryDemand},</if>
<if test="decisionMaker != null">#{decisionMaker},</if>
<if test="decisionMakerPosition != null">#{decisionMakerPosition},</if>
<if test="status != null">#{status},</if>
<if test="statusDescription != null">#{statusDescription},</if>
<if test="partnerId != null">#{partnerId},</if>
<if test="partnerHasConfirm != null">#{partnerHasConfirm},</if>
<if test="investmentPromotionCompany != null">#{investmentPromotionCompany},</if>
<if test="tenantId != null">#{tenantId},</if>
<if test="secretaryId != null">#{secretaryId},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="todoStatus != null">#{todoStatus},</if>
<if test="projectId != null">#{projectId},</if>
<if test="todoStatusDescription != null">#{todoStatusDescription},</if>
</trim>
</insert>
<update id="updatePartnerProjectInfo" parameterType="PartnerProjectInfo">
update partner_project_info
<trim prefix="SET" suffixOverrides=",">
<if test="continuousRevenue != null">continuous_revenue = #{continuousRevenue},</if>
<if test="investmentSubject != null">investment_subject = #{investmentSubject},</if>
<if test="enterpriseHighlights != null">enterprise_highlights = #{enterpriseHighlights},</if>
<if test="industrialBase != null">industrial_base = #{industrialBase},</if>
<if test="constructionContent != null">construction_content = #{constructionContent},</if>
<if test="projectInvestmentTotal != null">project_investment_total = #{projectInvestmentTotal},</if>
<if test="projectInvestmentRegular != null">project_investment_regular = #{projectInvestmentRegular},</if>
<if test="investmentContent != null">investment_content = #{investmentContent},</if>
<if test="projectAppeal != null">project_appeal = #{projectAppeal},</if>
<if test="intendedRegion != null">intended_region = #{intendedRegion},</if>
<if test="regionCommissionRate != null">region_commission_rate = #{regionCommissionRate},</if>
<if test="carrierType != null">carrier_type = #{carrierType},</if>
<if test="carrierRequirementsLandDemand != null">carrier_requirements_land_demand = #{carrierRequirementsLandDemand},</if>
<if test="carrierRequirementsFactoryDemand != null">carrier_requirements_factory_demand = #{carrierRequirementsFactoryDemand},</if>
<if test="decisionMaker != null">decision_maker = #{decisionMaker},</if>
<if test="decisionMakerPosition != null">decision_maker_position = #{decisionMakerPosition},</if>
<if test="status != null">status = #{status},</if>
<if test="statusDescription != null">status_description = #{statusDescription},</if>
<if test="partnerId != null">partner_id = #{partnerId},</if>
<if test="partnerHasConfirm != null">partner_has_confirm = #{partnerHasConfirm},</if>
<if test="investmentPromotionCompany != null">investment_promotion_company = #{investmentPromotionCompany},</if>
<if test="tenantId != null">tenant_id = #{tenantId},</if>
<if test="secretaryId != null">secretary_id = #{secretaryId},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="todoStatus != null">todo_status = #{todoStatus},</if>
<if test="projectId != null">project_id = #{projectId},</if>
<if test="todoStatusDescription != null">todo_status_description = #{todoStatusDescription},</if>
</trim>
where id = #{id}
</update>
<delete id="deletePartnerProjectInfoById" parameterType="Long">
delete from partner_project_info where id = #{id}
</delete>
<delete id="deletePartnerProjectInfoByIds" parameterType="String">
delete from partner_project_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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
<?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
<!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
<!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="${partnerProjectInfo}">
<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="continuousRevenue" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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-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
<!DOCTYPE html>
<html lang="zh">
<head>
<th:block th:include="include :: header('基本表单')" />
<style>
.myselfClass{
float: left;
background-color: azure;
width: 200px;
height: 75px;
margin-right: 13px;
margin-bottom: 10px;
}
.sizeDiv{
height:100px;
}
</style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
<div class="col-sm-12" id="changeStatusLogs">
<!-- <div class="myselfClass" th:each="status,statusCount : ${partnerProjectStatusChangeLogs}" onclick="changeStatus()">-->
<!-- <span id="count" th:text="${statusCount.count}" hidden="hidden"></span>-->
<!-- <span id="projectStatus" th:text="${status.projectStatus}" hidden="hidden"></span>-->
<!-- <span id="currentNodeStatus" th:text="${status.currentNodeStatus}" hidden="hidden"></span>-->
<!-- <span id="projectStatusDisplay" th:text="${status.projectStatusDisplay}"></span>-->
<!-- </div>-->
<div id="changeStatus1" class="myselfClass" onclick="changeStatus1()">
<span id="projectId1" th:text="${status1.projectId}" hidden="hidden"></span>
<span id="id1" th:text="${status1.id}" hidden="hidden"></span>
<span id="projectStatus1" th:text="${status1.projectStatus}" hidden="hidden"></span>
<span id="currentNodeStatus1" th:text="${status1.currentNodeStatus}" hidden="hidden"></span>
<span id="projectStatusDisplay1" th:text="${status1.projectStatusDisplay}"></span>
</div>
<div id="changeStatus2" class="myselfClass" onclick="changeStatus2()">
<span id="projectId2" th:text="${status2.projectId}" hidden="hidden"></span>
<span id="id2" th:text="${status2.id}" hidden="hidden"></span>
<span id="projectStatus2" th:text="${status2.projectStatus}" hidden="hidden"></span>
<span id="currentNodeStatus2" th:text="${status2.currentNodeStatus}" hidden="hidden"></span>
<span id="projectStatusDisplay2" th:text="${status2.projectStatusDisplay}"></span>
</div>
<div id="changeStatus4" class="myselfClass" onclick="changeStatus4()">
<span id="projectId4" th:text="${status4.projectId}" hidden="hidden"></span>
<span id="id4" th:text="${status4.id}" hidden="hidden"></span>
<span id="projectStatus4" th:text="${status4.projectStatus}" hidden="hidden"></span>
<span id="currentNodeStatus4" th:text="${status4.currentNodeStatus}" hidden="hidden"></span>
<span id="projectStatusDisplay4" th:text="${status4.projectStatusDisplay}"></span>
</div>
<div id="changeStatus5" class="myselfClass" onclick="changeStatus5()">
<span id="projectId5" th:text="${status5.projectId}" hidden="hidden"></span>
<span id="id5" th:text="${status5.id}" hidden="hidden"></span>
<span id="projectStatus5" th:text="${status5.projectStatus}" hidden="hidden"></span>
<span id="currentNodeStatus5" th:text="${status5.currentNodeStatus}" hidden="hidden"></span>
<span id="projectStatusDisplay5" th:text="${status5.projectStatusDisplay}"></span>
</div>
<div id="changeStatus6" class="myselfClass" onclick="changeStatus6()">
<span id="projectId6" th:text="${status6.projectId}" hidden="hidden"></span>
<span id="id6" th:text="${status6.id}" hidden="hidden"></span>
<span id="projectStatus6" th:text="${status6.projectStatus}" hidden="hidden"></span>
<span id="currentNodeStatus6" th:text="${status6.currentNodeStatus}" hidden="hidden"></span>
<span id="projectStatusDisplay6" th:text="${status6.projectStatusDisplay}"></span>
</div>
<div id="changeStatus7" class="myselfClass" onclick="changeStatus7()">
<span id="projectId7" th:text="${status7.projectId}" hidden="hidden"></span>
<span id="id7" th:text="${status7.id}" hidden="hidden"></span>
<span id="projectStatus7" th:text="${status7.projectStatus}" hidden="hidden"></span>
<span id="currentNodeStatus7" th:text="${status7.currentNodeStatus}" hidden="hidden"></span>
<span id="projectStatusDisplay7" th:text="${status7.projectStatusDisplay}"></span>
</div>
<div id="changeStatus8" class="myselfClass" onclick="changeStatus8()">
<span id="projectId8" th:text="${status8.projectId}" hidden="hidden"></span>
<span id="id8" th:text="${status8.id}" hidden="hidden"></span>
<span id="projectStatus8" th:text="${status8.projectStatus}" hidden="hidden"></span>
<span id="currentNodeStatus8" th:text="${status8.currentNodeStatus}" hidden="hidden"></span>
<span id="projectStatusDisplay8" th:text="${status8.projectStatusDisplay}"></span>
</div>
</div>
</div>
<div class="row sizeDiv" style="display: none" id="changeStatusDiv1">
<div class="col-sm-4">
</div>
<div class="col-sm-6">
ertyioghjd
</div>
<div class="col-sm-2">
ertyioghjd
</div>
</div>
<div class="row sizeDiv" style="display: none" id="changeStatusDiv2">
<div class="col-sm-4">
<div class="form-group">
<label class="col-sm-2 control-label">项目查重:</label>
<div class="col-sm-10">
<select class="form-control m-b" id="repeatType" name="repeatType">
<option value="0">未重复</option>
<option value="1">重复</option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<label class="col-sm-2 control-label">阶段反馈:</label>
<div class="col-sm-10">
<textarea name="feedback2" id="feedback2" rows="4" class="form-control"></textarea>
</div>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-w-m btn-default" onclick="changeStatusButton2()" >确认更新</button>
</div>
</div>
<div class="row" style="display: none" id="changeStatusDiv4">
<div class="col-sm-4">
<div class="form-group">
<label class="col-sm-2 control-label">关联项目:</label>
<div class="col-sm-10">
<div class="input-group">
<input class="form-control" type="text" id="chanyezhidaoPeojectId" name="chanyezhidaoPeojectId" onclick="selectType()" th:field="*{chanyezhidaoPeojectId}">
<span class="input-group-addon"><i class="fa fa-search"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<label class="col-sm-4 control-label">阶段反馈:</label>
<div class="col-sm-8">
<textarea name="feedback" class="form-control"></textarea>
</div>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-w-m btn-default" changeStatusButton4()>确认更新</button>
</div>
</div>
<div class="row" style="display: none" id="changeStatusDiv5">
<div class="col-sm-4">
wertyufhjk
</div>
<div class="col-sm-6">
ertyioghjd
</div>
<div class="col-sm-2">
ertyioghjd
</div>
</div>
<div class="row" style="display: none" id="changeStatusDiv6">
<div class="col-sm-4">
wertyufhjk
</div>
<div class="col-sm-6">
ertyioghjd
</div>
<div class="col-sm-2">
ertyioghjd
</div>
</div>
<div class="row" style="display: none" id="changeStatusDiv7">
<div class="col-sm-4">
wertyufhjk
</div>
<div class="col-sm-6">
ertyioghjd
</div>
<div class="col-sm-2">
ertyioghjd
</div>
</div>
<div class="row" style="display: none" id="changeStatusDiv8">
<div class="col-sm-4">
wertyufhjk
</div>
<div class="col-sm-6">
ertyioghjd
</div>
<div class="col-sm-2">
ertyioghjd
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>合伙人提报信息项目</h5>
<div class="ibox-tools">
</div>
</div>
<div class="ibox-content">
<form class="form-horizontal m" id="form-info-edit" th:object="${partnerProjectInfo}">
<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="continuousRevenue" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{decisionMakerPosition}" 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="statusDescription" th:field="*{status}" 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="statusDescription" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{todoStatusDescription}" class="form-control" type="text">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
$(function(){
});
function changeStatus1(){
}
function changeStatus2(){
$("#changeStatusDiv1").css("display","none");
$("#changeStatusDiv2").css("display","block");
$("#changeStatusDiv4").css("display","none");
$("#changeStatusDiv5").css("display","none");
$("#changeStatusDiv6").css("display","none");
$("#changeStatusDiv7").css("display","none");
$("#changeStatusDiv8").css("display","none");
}
function changeStatusButton2(){
let data = {};
data.id = $("#id2").text();
data.projectId = $("#projectId2").text();
data.feedBack = $("#feedback2").val();
data.repeateType = $('#repeatType option:selected').val();
data.status = $("#projectStatus2").text();
$.operate.post(ctx + "partnerProject/info" + "/updateChangeStatus",data,callback2);
}
function callback2(data){
//data;
debugger;
}
function changeStatus4(){
$("#changeStatusDiv1").css("display","none");
$("#changeStatusDiv2").css("display","none");
$("#changeStatusDiv4").css("display","block");
$("#changeStatusDiv5").css("display","none");
$("#changeStatusDiv6").css("display","none");
$("#changeStatusDiv7").css("display","none");
$("#changeStatusDiv8").css("display","none");
}
function selectType(){
var options = {
title: '选择',
url: prefix + "/selectType",
callBack: doSubmit2
};
$.modal.openOptions(options);
}
function changeStatusButton4(){
let data = {};
data.id = $("#id2").text();
data.projectId = $("#projectId2").text();
data.feedBack = $("#feedback2").val();
data.repeateType = $('#repeatType option:selected').val();
data.status = $("#projectStatus2").text();
data.chanyezhidaoPeojectId = $("#chanyezhidaoPeojectId").val();
$.operate.post(ctx + "partnerProject/info" + "/updateChangeStatus",data,callback4);
}
function callback4(data){
}
</script>
</body>
</html>
<!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>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</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
<!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>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</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
<!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>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</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
<!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
<!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
<!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="projectNumber"/>
</li>
<li>
<label>项目编号:</label>
<input type="text" name="projectId"/>
</li>
<li>
<label>项目名称:</label>
<input type="text" name="projectName"/>
</li>
<li>
<label>投资方企业ID:</label>
<input type="text" name="cid"/>
</li>
<li>
<label>应用领域:</label>
<input type="text" name="applyScope"/>
</li>
<li>
<label>投资动因ID:</label>
<input type="text" name="investReasonId"/>
</li>
<li>
<label>总投资额:</label>
<input type="text" name="investAmount"/>
</li>
<li>
<label>固定资产投资额:</label>
<input type="text" name="fixAssetInvestAmount"/>
</li>
<li>
<label>达产后年产值:</label>
<input type="text" name="futureOutputValue"/>
</li>
<li>
<label>达产后年纳税:</label>
<input type="text" name="futureTax"/>
</li>
<li>
<label>达产后拉动就业人数:</label>
<input type="text" name="futureJobNum"/>
</li>
<li>
<label>当前状态 1-项目线索 2-初期沟通 3-区域匹配/确认 4-政企互访 5-项目谈判 6-项目签约:</label>
<input type="text" name="currentStage"/>
</li>
<li>
<label>创建者:</label>
<input type="text" name="creator"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</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="project:info:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="project:info:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="project:info:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="project: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('project:info:edit')}]];
var removeFlag = [[${@permission.hasPermi('project:info:remove')}]];
var prefix = ctx + "project/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: '主键',
visible: false
},
{
field: 'projectNumber',
title: '项目编号'
},
{
field: 'projectId',
title: '项目编号'
},
{
field: 'projectName',
title: '项目名称'
},
{
field: 'cid',
title: '投资方企业ID'
},
{
field: 'applyScope',
title: '应用领域'
},
{
field: 'investReasonId',
title: '投资动因ID'
},
{
field: 'baseType',
title: '载体类型 1-基地 2-厂房 3-混合'
},
{
field: 'investAmount',
title: '总投资额'
},
{
field: 'fixAssetInvestAmount',
title: '固定资产投资额'
},
{
field: 'futureOutputValue',
title: '达产后年产值'
},
{
field: 'futureTax',
title: '达产后年纳税'
},
{
field: 'futureJobNum',
title: '达产后拉动就业人数'
},
{
field: 'currentStatus',
title: '当前状态 1-待审批 2-进行中 3-中止 4-终止 5-草稿 6-结束'
},
{
field: 'currentStage',
title: '当前状态 1-项目线索 2-初期沟通 3-区域匹配/确认 4-政企互访 5-项目谈判 6-项目签约'
},
{
field: 'creator',
title: '创建者'
},
{
field: 'investContent',
title: '投资内容'
},
{
field: 'endCauseType',
title: '终止原因类型'
},
{
field: 'endCauseDesc',
title: '终止原因描述'
},
{
field: 'projectStatus',
title: '项目状态 1 储备 2 在推'
},
{
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
<!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
<!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
<!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="projectStatusDisplay"/>
</li>
<li>
<label></label>
<input type="text" name="projectId"/>
</li>
<li>
<label>操作人:</label>
<input type="text" name="operaterId"/>
</li>
<li>
<label></label>
<input type="text" name="tenantId"/>
</li>
<li>
<label>描述:</label>
<input type="text" name="description"/>
</li>
<li>
<label>0-项目查重确认 1-确认项目所属 2-确认佣金比例:</label>
<input type="text" name="todoStatusDescription"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</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="statusChange:info:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="statusChange:info:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="statusChange:info:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="statusChange: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('statusChange:info:edit')}]];
var removeFlag = [[${@permission.hasPermi('statusChange:info:remove')}]];
var prefix = ctx + "statusChange/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: '',
visible: false
},
{
field: 'projectStatus',
title: '项目状态code'
},
{
field: 'projectStatusDisplay',
title: '项目状态'
},
{
field: 'projectId',
title: ''
},
{
field: 'operaterId',
title: '操作人'
},
{
field: 'tenantId',
title: ''
},
{
field: 'description',
title: '描述'
},
{
field: 'todoStatus',
title: '0-项目查重确认 1-确认项目所属 2-确认佣金比例'
},
{
field: 'todoStatusDescription',
title: '0-项目查重确认 1-确认项目所属 2-确认佣金比例'
},
{
field: 'currentNodeStatus',
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment