1/增删改查

pull/320/head
admin 3 years ago
parent 17364e2699
commit 1c6142e090

@ -232,6 +232,7 @@
<module>ruoyi-modules</module> <module>ruoyi-modules</module>
<module>ruoyi-api</module> <module>ruoyi-api</module>
<module>ruoyi-common</module> <module>ruoyi-common</module>
<module>ruoyi-modules/ruoyi-invest</module>
</modules> </modules>
<packaging>pom</packaging> <packaging>pom</packaging>

@ -0,0 +1,108 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>ruoyi</artifactId>
<groupId>com.ruoyi</groupId>
<version>3.6.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ruoyi-invest</artifactId>
<dependencies>
<!-- SpringCloud Alibaba Nacos -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- SpringCloud Alibaba Nacos Config -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!-- SpringCloud Alibaba Sentinel -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<!-- SpringBoot Actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.4.2</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<!-- Swagger UI -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${swagger.fox.version}</version>
</dependency>
<!-- Mysql Connector -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<!-- RuoYi Common DataSource -->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common-datasource</artifactId>
</dependency>
<!-- RuoYi Common DataScope -->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common-datascope</artifactId>
</dependency>
<!-- RuoYi Common Log -->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common-log</artifactId>
</dependency>
<!-- RuoYi Common Swagger -->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common-swagger</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

@ -0,0 +1,34 @@
package com.ruoyi.invest;
import com.ruoyi.common.security.annotation.EnableCustomConfig;
import com.ruoyi.common.security.annotation.EnableRyFeignClients;
import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
*
*
* @author ruoyi
*/
@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients
@SpringBootApplication
public class RuoYiInvestApplication
{
public static void main(String[] args)
{
SpringApplication.run(RuoYiInvestApplication.class, args);
System.out.println("(♥◠‿◠)ノ゙ 投资模块启动成功 ლ(´ڡ`ლ)゙ \n" +
" .-------. ____ __ \n" +
" | _ _ \\ \\ \\ / / \n" +
" | ( ' ) | \\ _. / ' \n" +
" |(_ o _) / _( )_ .' \n" +
" | (_,_).' __ ___(_ o _)' \n" +
" | |\\ \\ | || |(_,_)' \n" +
" | | \\ `' /| `-' / \n" +
" | | \\ / \\ / \n" +
" ''-' `'-' `-..-' ");
}
}

@ -0,0 +1,105 @@
package com.ruoyi.invest.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.invest.service.TbFirmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.invest.domain.TbFirm;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.utils.poi.ExcelUtil;
import com.ruoyi.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-01-13
*/
@RestController
@RequestMapping("/firm")
public class TbFirmController extends BaseController
{
@Autowired
private TbFirmService tbFirmService;
/**
*
*/
// @RequiresPermissions("system:firm:list")
@GetMapping("/list")
public TableDataInfo list(TbFirm tbFirm)
{
startPage();
List<TbFirm> list = tbFirmService.selectTbFirmList(tbFirm);
return getDataTable(list);
}
/**
*
*/
// @RequiresPermissions("system:firm:export")
@Log(title = "企业", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TbFirm tbFirm)
{
List<TbFirm> list = tbFirmService.selectTbFirmList(tbFirm);
ExcelUtil<TbFirm> util = new ExcelUtil<TbFirm>(TbFirm.class);
util.exportExcel(response, list, "企业数据");
}
/**
*
*/
// @RequiresPermissions("system:firm:query")
@GetMapping(value = "/{firmId}")
public AjaxResult getInfo(@PathVariable("firmId") Long firmId)
{
return success(tbFirmService.selectTbFirmByFirmId(firmId));
}
/**
*
*/
// @RequiresPermissions("system:firm:add")
@Log(title = "企业", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TbFirm tbFirm)
{
return toAjax(tbFirmService.insertTbFirm(tbFirm));
}
/**
*
*/
// @RequiresPermissions("system:firm:edit")
@Log(title = "企业", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TbFirm tbFirm)
{
return toAjax(tbFirmService.updateTbFirm(tbFirm));
}
/**
*
*/
// @RequiresPermissions("system:firm:remove")
@Log(title = "企业", businessType = BusinessType.DELETE)
@DeleteMapping("/{firmIds}")
public AjaxResult remove(@PathVariable Long[] firmIds)
{
return toAjax(tbFirmService.deleteTbFirmByFirmIds(firmIds));
}
}

@ -0,0 +1,104 @@
package com.ruoyi.invest.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.invest.domain.TbInvest;
import com.ruoyi.invest.service.TbInvestService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.utils.poi.ExcelUtil;
import com.ruoyi.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-01-13
*/
@RestController
@RequestMapping("/invest")
public class TbInvestController extends BaseController
{
@Autowired
private TbInvestService tbInvestService;
/**
*
*/
// @RequiresPermissions("system:invest:list")
@GetMapping("/list")
public TableDataInfo list(TbInvest tbInvest)
{
startPage();
List<TbInvest> list = tbInvestService.selectTbInvestList(tbInvest);
return getDataTable(list);
}
/**
*
*/
// @RequiresPermissions("system:invest:export")
@Log(title = "投资", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TbInvest tbInvest)
{
List<TbInvest> list = tbInvestService.selectTbInvestList(tbInvest);
ExcelUtil<TbInvest> util = new ExcelUtil<TbInvest>(TbInvest.class);
util.exportExcel(response, list, "投资数据");
}
/**
*
*/
// @RequiresPermissions("system:invest:query")
@GetMapping(value = "/{investId}")
public AjaxResult getInfo(@PathVariable("investId") Long investId)
{
return success(tbInvestService.selectTbInvestByInvestId(investId));
}
/**
*
*/
// @RequiresPermissions("system:invest:add")
@Log(title = "投资", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TbInvest tbInvest)
{
return toAjax(tbInvestService.insertTbInvest(tbInvest));
}
/**
*
*/
// @RequiresPermissions("system:invest:edit")
@Log(title = "投资", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TbInvest tbInvest)
{
return toAjax(tbInvestService.updateTbInvest(tbInvest));
}
/**
*
*/
// @RequiresPermissions("system:invest:remove")
@Log(title = "投资", businessType = BusinessType.DELETE)
@DeleteMapping("/{investIds}")
public AjaxResult remove(@PathVariable Long[] investIds)
{
return toAjax(tbInvestService.deleteTbInvestByInvestIds(investIds));
}
}

@ -0,0 +1,71 @@
package com.ruoyi.invest.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
* @TableName tb_firm
*/
@TableName(value ="tb_firm")
@Data
public class TbFirm implements Serializable {
/**
* id
*/
@TableId(type = IdType.AUTO)
private Integer firmId;
/**
*
*/
private String firmName;
/**
* logo
*/
private String firmPic;
/**
*
*/
private Double firmMarket;
/**
*
*/
private String firmDesc;
/**
* 0:2:
*/
private Integer delFlag;
/**
*
*/
private Date createTime;
/**
*
*/
private String createBy;
/**
*
*/
private Date updateTime;
/**
*
*/
private String updateBy;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,76 @@
package com.ruoyi.invest.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
* @TableName tb_invest
*/
@TableName(value ="tb_invest")
@Data
public class TbInvest implements Serializable {
/**
* id
*/
@TableId(type = IdType.AUTO)
private Integer investId;
/**
* id
*/
private Integer userId;
/**
* id
*/
private Integer firmId;
/**
*
*/
private Double investAmount;
/**
*
*/
private Double investYield;
/**
* 0:1:
*/
private Integer investState;
/**
* 0:2:
*/
private Integer delFlag;
/**
*
*/
private Date createTime;
/**
*
*/
private String createBy;
/**
*
*/
private Date updateTime;
/**
*
*/
private String updateBy;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,65 @@
package com.ruoyi.invest.mapper;
import com.ruoyi.invest.domain.TbFirm;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* @Entity com.ruoyi.invest.domain.TbFirm
*/
@Mapper
public interface TbFirmMapper extends BaseMapper<TbFirm> {
/**
*
*
* @param firmId
* @return
*/
public TbFirm selectTbFirmByFirmId(Long firmId);
/**
*
*
* @param tbFirm
* @return
*/
public List<TbFirm> selectTbFirmList(TbFirm tbFirm);
/**
*
*
* @param tbFirm
* @return
*/
public int insertTbFirm(TbFirm tbFirm);
/**
*
*
* @param tbFirm
* @return
*/
public int updateTbFirm(TbFirm tbFirm);
/**
*
*
* @param firmId
* @return
*/
public int deleteTbFirmByFirmId(Long firmId);
/**
*
*
* @param firmIds
* @return
*/
public int deleteTbFirmByFirmIds(Long[] firmIds);
}

@ -0,0 +1,65 @@
package com.ruoyi.invest.mapper;
import com.ruoyi.invest.domain.TbInvest;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* @Entity com.ruoyi.invest.domain.TbInvest
*/
@Mapper
public interface TbInvestMapper extends BaseMapper<TbInvest> {
/**
*
*
* @param investId
* @return
*/
public TbInvest selectTbInvestByInvestId(Long investId);
/**
*
*
* @param tbInvest
* @return
*/
public List<TbInvest> selectTbInvestList(TbInvest tbInvest);
/**
*
*
* @param tbInvest
* @return
*/
public int insertTbInvest(TbInvest tbInvest);
/**
*
*
* @param tbInvest
* @return
*/
public int updateTbInvest(TbInvest tbInvest);
/**
*
*
* @param investId
* @return
*/
public int deleteTbInvestByInvestId(Long investId);
/**
*
*
* @param investIds
* @return
*/
public int deleteTbInvestByInvestIds(Long[] investIds);
}

@ -0,0 +1,59 @@
package com.ruoyi.invest.service;
import com.ruoyi.invest.domain.TbFirm;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
*
*/
public interface TbFirmService extends IService<TbFirm> {
/**
*
*
* @param firmId
* @return
*/
public TbFirm selectTbFirmByFirmId(Long firmId);
/**
*
*
* @param tbFirm
* @return
*/
public List<TbFirm> selectTbFirmList(TbFirm tbFirm);
/**
*
*
* @param tbFirm
* @return
*/
public int insertTbFirm(TbFirm tbFirm);
/**
*
*
* @param tbFirm
* @return
*/
public int updateTbFirm(TbFirm tbFirm);
/**
*
*
* @param firmIds
* @return
*/
public int deleteTbFirmByFirmIds(Long[] firmIds);
/**
*
*
* @param firmId
* @return
*/
public int deleteTbFirmByFirmId(Long firmId);
}

@ -0,0 +1,59 @@
package com.ruoyi.invest.service;
import com.ruoyi.invest.domain.TbInvest;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
*
*/
public interface TbInvestService extends IService<TbInvest> {
/**
*
*
* @param investId
* @return
*/
public TbInvest selectTbInvestByInvestId(Long investId);
/**
*
*
* @param tbInvest
* @return
*/
public List<TbInvest> selectTbInvestList(TbInvest tbInvest);
/**
*
*
* @param tbInvest
* @return
*/
public int insertTbInvest(TbInvest tbInvest);
/**
*
*
* @param tbInvest
* @return
*/
public int updateTbInvest(TbInvest tbInvest);
/**
*
*
* @param investIds
* @return
*/
public int deleteTbInvestByInvestIds(Long[] investIds);
/**
*
*
* @param investId
* @return
*/
public int deleteTbInvestByInvestId(Long investId);
}

@ -0,0 +1,99 @@
package com.ruoyi.invest.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.invest.domain.TbFirm;
import com.ruoyi.invest.service.TbFirmService;
import com.ruoyi.invest.mapper.TbFirmMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
*
*/
@Service
public class TbFirmServiceImpl extends ServiceImpl<TbFirmMapper, TbFirm>
implements TbFirmService{
@Autowired
private TbFirmMapper tbFirmMapper;
/**
*
*
* @param firmId
* @return
*/
@Override
public TbFirm selectTbFirmByFirmId(Long firmId)
{
return tbFirmMapper.selectTbFirmByFirmId(firmId);
}
/**
*
*
* @param tbFirm
* @return
*/
@Override
public List<TbFirm> selectTbFirmList(TbFirm tbFirm)
{
return tbFirmMapper.selectTbFirmList(tbFirm);
}
/**
*
*
* @param tbFirm
* @return
*/
@Override
public int insertTbFirm(TbFirm tbFirm)
{
tbFirm.setCreateTime(DateUtils.getNowDate());
return tbFirmMapper.insertTbFirm(tbFirm);
}
/**
*
*
* @param tbFirm
* @return
*/
@Override
public int updateTbFirm(TbFirm tbFirm)
{
tbFirm.setUpdateTime(DateUtils.getNowDate());
return tbFirmMapper.updateTbFirm(tbFirm);
}
/**
*
*
* @param firmIds
* @return
*/
@Override
public int deleteTbFirmByFirmIds(Long[] firmIds)
{
return tbFirmMapper.deleteTbFirmByFirmIds(firmIds);
}
/**
*
*
* @param firmId
* @return
*/
@Override
public int deleteTbFirmByFirmId(Long firmId)
{
return tbFirmMapper.deleteTbFirmByFirmId(firmId);
}
}

@ -0,0 +1,99 @@
package com.ruoyi.invest.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.invest.domain.TbInvest;
import com.ruoyi.invest.service.TbInvestService;
import com.ruoyi.invest.mapper.TbInvestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
*
*/
@Service
public class TbInvestServiceImpl extends ServiceImpl<TbInvestMapper, TbInvest>
implements TbInvestService{
@Autowired
private TbInvestMapper tbInvestMapper;
/**
*
*
* @param investId
* @return
*/
@Override
public TbInvest selectTbInvestByInvestId(Long investId)
{
return tbInvestMapper.selectTbInvestByInvestId(investId);
}
/**
*
*
* @param tbInvest
* @return
*/
@Override
public List<TbInvest> selectTbInvestList(TbInvest tbInvest)
{
return tbInvestMapper.selectTbInvestList(tbInvest);
}
/**
*
*
* @param tbInvest
* @return
*/
@Override
public int insertTbInvest(TbInvest tbInvest)
{
tbInvest.setCreateTime(DateUtils.getNowDate());
return tbInvestMapper.insertTbInvest(tbInvest);
}
/**
*
*
* @param tbInvest
* @return
*/
@Override
public int updateTbInvest(TbInvest tbInvest)
{
tbInvest.setUpdateTime(DateUtils.getNowDate());
return tbInvestMapper.updateTbInvest(tbInvest);
}
/**
*
*
* @param investIds
* @return
*/
@Override
public int deleteTbInvestByInvestIds(Long[] investIds)
{
return tbInvestMapper.deleteTbInvestByInvestIds(investIds);
}
/**
*
*
* @param investId
* @return
*/
@Override
public int deleteTbInvestByInvestId(Long investId)
{
return tbInvestMapper.deleteTbInvestByInvestId(investId);
}
}

@ -0,0 +1,25 @@
# Tomcat
server:
port: 9301
# Spring
spring:
application:
# 应用名称
name: ruoyi-invest
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 日志存放路径 -->
<property name="log.path" value="logs/ruoyi-invest" />
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/info.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>INFO</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/error.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>ERROR</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 系统模块日志级别控制 -->
<logger name="com.ruoyi" level="info" />
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn" />
<root level="info">
<appender-ref ref="console" />
</root>
<!--系统操作日志-->
<root level="info">
<appender-ref ref="file_info" />
<appender-ref ref="file_error" />
</root>
</configuration>

@ -0,0 +1,93 @@
<?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.invest.mapper.TbFirmMapper">
<resultMap type="com.ruoyi.invest.domain.TbFirm" id="TbFirmResult">
<result property="firmId" column="firm_id" />
<result property="firmName" column="firm_name" />
<result property="firmPic" column="firm_pic" />
<result property="firmMarket" column="firm_market" />
<result property="firmDesc" column="firm_desc" />
<result property="delFlag" column="del_flag" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
</resultMap>
<sql id="selectTbFirmVo">
select firm_id, firm_name, firm_pic, firm_market, firm_desc, del_flag, create_time, create_by, update_time, update_by from tb_firm
</sql>
<select id="selectTbFirmList" parameterType="com.ruoyi.invest.domain.TbFirm" resultMap="TbFirmResult">
<include refid="selectTbFirmVo"/>
<where>
<if test="firmName != null and firmName != ''"> and firm_name like concat('%', #{firmName}, '%')</if>
<if test="firmPic != null and firmPic != ''"> and firm_pic = #{firmPic}</if>
<if test="firmMarket != null "> and firm_market = #{firmMarket}</if>
<if test="firmDesc != null and firmDesc != ''"> and firm_desc = #{firmDesc}</if>
</where>
</select>
<select id="selectTbFirmByFirmId" parameterType="Long" resultMap="TbFirmResult">
<include refid="selectTbFirmVo"/>
where firm_id = #{firmId}
</select>
<insert id="insertTbFirm" parameterType="com.ruoyi.invest.domain.TbFirm">
insert into tb_firm
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="firmId != null">firm_id,</if>
<if test="firmName != null">firm_name,</if>
<if test="firmPic != null">firm_pic,</if>
<if test="firmMarket != null">firm_market,</if>
<if test="firmDesc != null">firm_desc,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="firmId != null">#{firmId},</if>
<if test="firmName != null">#{firmName},</if>
<if test="firmPic != null">#{firmPic},</if>
<if test="firmMarket != null">#{firmMarket},</if>
<if test="firmDesc != null">#{firmDesc},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
</trim>
</insert>
<update id="updateTbFirm" parameterType="com.ruoyi.invest.domain.TbFirm">
update tb_firm
<trim prefix="SET" suffixOverrides=",">
<if test="firmName != null">firm_name = #{firmName},</if>
<if test="firmPic != null">firm_pic = #{firmPic},</if>
<if test="firmMarket != null">firm_market = #{firmMarket},</if>
<if test="firmDesc != null">firm_desc = #{firmDesc},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
</trim>
where firm_id = #{firmId}
</update>
<delete id="deleteTbFirmByFirmId" parameterType="Long">
delete from tb_firm where firm_id = #{firmId}
</delete>
<delete id="deleteTbFirmByFirmIds" parameterType="String">
delete from tb_firm where firm_id in
<foreach item="firmId" collection="array" open="(" separator="," close=")">
#{firmId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,96 @@
<?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.invest.mapper.TbInvestMapper">
<resultMap type="com.ruoyi.invest.domain.TbInvest" id="TbInvestResult">
<result property="investId" column="invest_id" />
<result property="userId" column="user_id" />
<result property="firmId" column="firm_id" />
<result property="investAmount" column="invest_amount" />
<result property="investYield" column="invest_yield" />
<result property="investState" column="invest_state" />
<result property="delFlag" column="del_flag" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
</resultMap>
<sql id="selectTbInvestVo">
select invest_id, user_id, firm_id, invest_amount, invest_yield, invest_state, del_flag, create_time, create_by, update_time, update_by from tb_invest
</sql>
<select id="selectTbInvestList" parameterType="com.ruoyi.invest.domain.TbInvest" resultMap="TbInvestResult">
<include refid="selectTbInvestVo"/>
<where>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="firmId != null "> and firm_id = #{firmId}</if>
<if test="investAmount != null "> and invest_amount = #{investAmount}</if>
<if test="investYield != null "> and invest_yield = #{investYield}</if>
<if test="investState != null "> and invest_state = #{investState}</if>
</where>
</select>
<select id="selectTbInvestByInvestId" parameterType="Long" resultMap="TbInvestResult">
<include refid="selectTbInvestVo"/>
where invest_id = #{investId}
</select>
<insert id="insertTbInvest" parameterType="com.ruoyi.invest.domain.TbInvest" useGeneratedKeys="true" keyProperty="investId">
insert into tb_invest
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userId != null">user_id,</if>
<if test="firmId != null">firm_id,</if>
<if test="investAmount != null">invest_amount,</if>
<if test="investYield != null">invest_yield,</if>
<if test="investState != null">invest_state,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userId != null">#{userId},</if>
<if test="firmId != null">#{firmId},</if>
<if test="investAmount != null">#{investAmount},</if>
<if test="investYield != null">#{investYield},</if>
<if test="investState != null">#{investState},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
</trim>
</insert>
<update id="updateTbInvest" parameterType="com.ruoyi.invest.domain.TbInvest">
update tb_invest
<trim prefix="SET" suffixOverrides=",">
<if test="userId != null">user_id = #{userId},</if>
<if test="firmId != null">firm_id = #{firmId},</if>
<if test="investAmount != null">invest_amount = #{investAmount},</if>
<if test="investYield != null">invest_yield = #{investYield},</if>
<if test="investState != null">invest_state = #{investState},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
</trim>
where invest_id = #{investId}
</update>
<delete id="deleteTbInvestByInvestId" parameterType="Long">
delete from tb_invest where invest_id = #{investId}
</delete>
<delete id="deleteTbInvestByInvestIds" parameterType="String">
delete from tb_invest where invest_id in
<foreach item="investId" collection="array" open="(" separator="," close=")">
#{investId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询企业列表
export function listFirm(query) {
return request({
url: '/invest/firm/list',
method: 'get',
params: query
})
}
// 查询企业详细
export function getFirm(firmId) {
return request({
url: '/invest/firm/' + firmId,
method: 'get'
})
}
// 新增企业
export function addFirm(data) {
return request({
url: '/invest/firm',
method: 'post',
data: data
})
}
// 修改企业
export function updateFirm(data) {
return request({
url: '/invest/firm',
method: 'put',
data: data
})
}
// 删除企业
export function delFirm(firmId) {
return request({
url: '/invest/firm/' + firmId,
method: 'delete'
})
}

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询投资列表
export function listInvest(query) {
return request({
url: '/invest/invest/list',
method: 'get',
params: query
})
}
// 查询投资详细
export function getInvest(investId) {
return request({
url: '/invest/invest/' + investId,
method: 'get'
})
}
// 新增投资
export function addInvest(data) {
return request({
url: '/invest/invest',
method: 'post',
data: data
})
}
// 修改投资
export function updateInvest(data) {
return request({
url: '/invest/invest',
method: 'put',
data: data
})
}
// 删除投资
export function delInvest(investId) {
return request({
url: '/invest/invest/' + investId,
method: 'delete'
})
}

@ -0,0 +1,287 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="企业名称" prop="firmName">
<el-input
v-model="queryParams.firmName"
placeholder="请输入企业名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="企业市值" prop="firmMarket">
<el-input
v-model="queryParams.firmMarket"
placeholder="请输入企业市值"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="企业描述" prop="firmDesc">
<el-input
v-model="queryParams.firmDesc"
placeholder="请输入企业描述"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['system:firm:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['system:firm:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['system:firm:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['system:firm:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="firmList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="企业id" align="center" prop="firmId" />
<el-table-column label="企业名称" align="center" prop="firmName" />
<el-table-column label="企业logo" align="center" prop="firmPic" />
<el-table-column label="企业市值" align="center" prop="firmMarket" />
<el-table-column label="企业描述" align="center" prop="firmDesc" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['system:firm:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:firm:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改企业对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="企业名称" prop="firmName">
<el-input v-model="form.firmName" placeholder="请输入企业名称" />
</el-form-item>
<el-form-item label="企业logo" prop="firmPic">
<el-input v-model="form.firmPic" type="textarea" placeholder="请输入内容" />
</el-form-item>
<el-form-item label="企业市值" prop="firmMarket">
<el-input v-model="form.firmMarket" placeholder="请输入企业市值" />
</el-form-item>
<el-form-item label="企业描述" prop="firmDesc">
<el-input v-model="form.firmDesc" placeholder="请输入企业描述" />
</el-form-item>
<el-form-item label="删除状态0:存在2:删除" prop="delFlag">
<el-input v-model="form.delFlag" placeholder="请输入删除状态0:存在2:删除" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listFirm, getFirm, delFirm, addFirm, updateFirm } from "@/api/invest/firm";
export default {
name: "Firm",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
firmList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
firmName: null,
firmPic: null,
firmMarket: null,
firmDesc: null,
},
//
form: {},
//
rules: {
}
};
},
created() {
this.getList();
},
methods: {
/** 查询企业列表 */
getList() {
this.loading = true;
listFirm(this.queryParams).then(response => {
this.firmList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
firmId: null,
firmName: null,
firmPic: null,
firmMarket: null,
firmDesc: null,
delFlag: null,
createTime: null,
createBy: null,
updateTime: null,
updateBy: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.firmId)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加企业";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const firmId = row.firmId || this.ids
getFirm(firmId).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改企业";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.firmId != null) {
updateFirm(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addFirm(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const firmIds = row.firmId || this.ids;
this.$modal.confirm('是否确认删除企业编号为"' + firmIds + '"的数据项?').then(function() {
return delFirm(firmIds);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('system/firm/export', {
...this.queryParams
}, `firm_${new Date().getTime()}.xlsx`)
}
}
};
</script>

@ -0,0 +1,309 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="用户id" prop="userId">
<el-input
v-model="queryParams.userId"
placeholder="请输入用户id"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="企业id" prop="firmId">
<el-input
v-model="queryParams.firmId"
placeholder="请输入企业id"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="投资金额" prop="investAmount">
<el-input
v-model="queryParams.investAmount"
placeholder="请输入投资金额"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="投资收益" prop="investYield">
<el-input
v-model="queryParams.investYield"
placeholder="请输入投资收益"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="投资状态0:手动投资1:自动投资" prop="investState">
<el-input
v-model="queryParams.investState"
placeholder="请输入投资状态0:手动投资1:自动投资"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['system:invest:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['system:invest:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['system:invest:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['system:invest:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="investList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="投资id" align="center" prop="investId" />
<el-table-column label="用户id" align="center" prop="userId" />
<el-table-column label="企业id" align="center" prop="firmId" />
<el-table-column label="投资金额" align="center" prop="investAmount" />
<el-table-column label="投资收益" align="center" prop="investYield" />
<el-table-column label="投资状态0:手动投资1:自动投资" align="center" prop="investState" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['system:invest:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:invest:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改投资对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="用户id" prop="userId">
<el-input v-model="form.userId" placeholder="请输入用户id" />
</el-form-item>
<el-form-item label="企业id" prop="firmId">
<el-input v-model="form.firmId" placeholder="请输入企业id" />
</el-form-item>
<el-form-item label="投资金额" prop="investAmount">
<el-input v-model="form.investAmount" placeholder="请输入投资金额" />
</el-form-item>
<el-form-item label="投资收益" prop="investYield">
<el-input v-model="form.investYield" placeholder="请输入投资收益" />
</el-form-item>
<el-form-item label="投资状态0:手动投资1:自动投资" prop="investState">
<el-input v-model="form.investState" placeholder="请输入投资状态0:手动投资1:自动投资" />
</el-form-item>
<el-form-item label="删除状态0:存在2:删除" prop="delFlag">
<el-input v-model="form.delFlag" placeholder="请输入删除状态0:存在2:删除" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listInvest, getInvest, delInvest, addInvest, updateInvest } from "@/api/invest/invest";
export default {
name: "Invest",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
investList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
userId: null,
firmId: null,
investAmount: null,
investYield: null,
investState: null,
},
//
form: {},
//
rules: {
}
};
},
created() {
this.getList();
},
methods: {
/** 查询投资列表 */
getList() {
this.loading = true;
listInvest(this.queryParams).then(response => {
this.investList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
investId: null,
userId: null,
firmId: null,
investAmount: null,
investYield: null,
investState: null,
delFlag: null,
createTime: null,
createBy: null,
updateTime: null,
updateBy: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.investId)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加投资";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const investId = row.investId || this.ids
getInvest(investId).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改投资";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.investId != null) {
updateInvest(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addInvest(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const investIds = row.investId || this.ids;
this.$modal.confirm('是否确认删除投资编号为"' + investIds + '"的数据项?').then(function() {
return delInvest(investIds);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('system/invest/export', {
...this.queryParams
}, `invest_${new Date().getTime()}.xlsx`)
}
}
};
</script>
Loading…
Cancel
Save