feat: 智聪记账管理,投资管理,新增交易所、股票基础信息、期货标准合约、期货基本合约功能。
This commit is contained in:
@@ -0,0 +1,109 @@
|
|||||||
|
package com.intc.invest.controller;
|
||||||
|
|
||||||
|
import com.intc.common.core.utils.poi.ExcelUtil;
|
||||||
|
import com.intc.common.core.web.controller.BaseController;
|
||||||
|
import com.intc.common.core.web.domain.AjaxResult;
|
||||||
|
import com.intc.common.core.web.page.TableDataInfo;
|
||||||
|
import com.intc.common.log.annotation.Log;
|
||||||
|
import com.intc.common.log.enums.BusinessType;
|
||||||
|
import com.intc.common.security.annotation.RequiresPermissions;
|
||||||
|
import com.intc.invest.domain.FutureBaseInfor;
|
||||||
|
import com.intc.invest.domain.dto.FutureBaseInforDto;
|
||||||
|
import com.intc.invest.domain.vo.FutureBaseInforVo;
|
||||||
|
import com.intc.invest.service.IFutureBaseInforService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 期货基本合约Controller
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-28
|
||||||
|
*/
|
||||||
|
@Api(tags=" 期货基本合约")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/futureBaseInfor")
|
||||||
|
public class FutureBaseInforController extends BaseController
|
||||||
|
{
|
||||||
|
@Resource
|
||||||
|
private IFutureBaseInforService investFutureBaseInforService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询期货基本合约列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="查询期货基本合约列表",response = FutureBaseInforVo.class)
|
||||||
|
@RequiresPermissions("invest:futureBaseInfor:list")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(FutureBaseInforDto futureBaseInforDto)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<FutureBaseInforVo> list = investFutureBaseInforService.selectFutureBaseInforList(futureBaseInforDto);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出期货基本合约列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="导出期货基本合约列表")
|
||||||
|
@RequiresPermissions("invest:futureBaseInfor:export")
|
||||||
|
@Log(title = "期货基本合约", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, FutureBaseInforDto futureBaseInforDto)
|
||||||
|
{
|
||||||
|
List<FutureBaseInforVo> list = investFutureBaseInforService.selectFutureBaseInforList(futureBaseInforDto);
|
||||||
|
ExcelUtil<FutureBaseInforVo> util = new ExcelUtil<FutureBaseInforVo>(FutureBaseInforVo.class);
|
||||||
|
util.exportExcel(response, list, "期货基本合约数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取期货基本合约详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="获取期货基本合约详细信息")
|
||||||
|
@RequiresPermissions("invest:futureBaseInfor:query")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(investFutureBaseInforService.selectFutureBaseInforById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增期货基本合约
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="新增期货基本合约")
|
||||||
|
@RequiresPermissions("invest:futureBaseInfor:add")
|
||||||
|
@Log(title = "期货基本合约", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody FutureBaseInfor futureBaseInfor)
|
||||||
|
{
|
||||||
|
return toAjax(investFutureBaseInforService.insertFutureBaseInfor(futureBaseInfor));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改期货基本合约
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="修改期货基本合约")
|
||||||
|
@RequiresPermissions("invest:futureBaseInfor:edit")
|
||||||
|
@Log(title = "期货基本合约", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody FutureBaseInfor futureBaseInfor)
|
||||||
|
{
|
||||||
|
return toAjax(investFutureBaseInforService.updateFutureBaseInfor(futureBaseInfor));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除期货基本合约
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="删除期货基本合约")
|
||||||
|
@RequiresPermissions("invest:futureBaseInfor:remove")
|
||||||
|
@Log(title = "期货基本合约", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(investFutureBaseInforService.deleteFutureBaseInforByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,109 @@
|
|||||||
|
package com.intc.invest.controller;
|
||||||
|
|
||||||
|
import com.intc.common.core.utils.poi.ExcelUtil;
|
||||||
|
import com.intc.common.core.web.controller.BaseController;
|
||||||
|
import com.intc.common.core.web.domain.AjaxResult;
|
||||||
|
import com.intc.common.core.web.page.TableDataInfo;
|
||||||
|
import com.intc.common.log.annotation.Log;
|
||||||
|
import com.intc.common.log.enums.BusinessType;
|
||||||
|
import com.intc.common.security.annotation.RequiresPermissions;
|
||||||
|
import com.intc.invest.domain.FutureStandardInfor;
|
||||||
|
import com.intc.invest.domain.dto.FutureStandardInforDto;
|
||||||
|
import com.intc.invest.domain.vo.FutureStandardInforVo;
|
||||||
|
import com.intc.invest.service.IFutureStandardInforService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 期货品种标准合约Controller
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
@Api(tags=" 期货品种标准合约")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/futureStandardInfor")
|
||||||
|
public class FutureStandardInforController extends BaseController
|
||||||
|
{
|
||||||
|
@Resource
|
||||||
|
private IFutureStandardInforService futureStandardInforService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询期货品种标准合约列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="查询期货品种标准合约列表",response = FutureStandardInforVo.class)
|
||||||
|
@RequiresPermissions("invest:futureStandardInfor:list")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(FutureStandardInforDto futureStandardInforDto)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<FutureStandardInforVo> list = futureStandardInforService.selectFutureStandardInforList(futureStandardInforDto);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出期货品种标准合约列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="导出期货品种标准合约列表")
|
||||||
|
@RequiresPermissions("invest:futureStandardInfor:export")
|
||||||
|
@Log(title = "期货品种标准合约", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, FutureStandardInforDto futureStandardInforDto)
|
||||||
|
{
|
||||||
|
List<FutureStandardInforVo> list = futureStandardInforService.selectFutureStandardInforList(futureStandardInforDto);
|
||||||
|
ExcelUtil<FutureStandardInforVo> util = new ExcelUtil<FutureStandardInforVo>(FutureStandardInforVo.class);
|
||||||
|
util.exportExcel(response, list, "期货品种标准合约数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取期货品种标准合约详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="获取期货品种标准合约详细信息")
|
||||||
|
@RequiresPermissions("invest:futureStandardInfor:query")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(futureStandardInforService.selectFutureStandardInforById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增期货品种标准合约
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="新增期货品种标准合约")
|
||||||
|
@RequiresPermissions("invest:futureStandardInfor:add")
|
||||||
|
@Log(title = "期货品种标准合约", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody FutureStandardInfor futureStandardInfor)
|
||||||
|
{
|
||||||
|
return toAjax(futureStandardInforService.insertFutureStandardInfor(futureStandardInfor));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改期货品种标准合约
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="修改期货品种标准合约")
|
||||||
|
@RequiresPermissions("invest:futureStandardInfor:edit")
|
||||||
|
@Log(title = "期货品种标准合约", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody FutureStandardInfor futureStandardInfor)
|
||||||
|
{
|
||||||
|
return toAjax(futureStandardInforService.updateFutureStandardInfor(futureStandardInfor));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除期货品种标准合约
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="删除期货品种标准合约")
|
||||||
|
@RequiresPermissions("invest:futureStandardInfor:remove")
|
||||||
|
@Log(title = "期货品种标准合约", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(futureStandardInforService.deleteFutureStandardInforByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,115 @@
|
|||||||
|
package com.intc.invest.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
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.intc.common.log.annotation.Log;
|
||||||
|
import com.intc.common.log.enums.BusinessType;
|
||||||
|
import com.intc.common.security.annotation.RequiresPermissions;
|
||||||
|
import com.intc.invest.domain.InvestExchange;
|
||||||
|
import com.intc.invest.domain.vo.InvestExchangeVo;
|
||||||
|
import com.intc.invest.domain.dto.InvestExchangeDto;
|
||||||
|
import com.intc.invest.service.IInvestExchangeService;
|
||||||
|
import com.intc.common.core.web.controller.BaseController;
|
||||||
|
import com.intc.common.core.web.domain.AjaxResult;
|
||||||
|
import com.intc.common.core.utils.poi.ExcelUtil;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import com.intc.common.core.web.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 交易所基础信息Controller
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
@Api(tags=" 交易所基础信息")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/exchange")
|
||||||
|
public class InvestExchangeController extends BaseController
|
||||||
|
{
|
||||||
|
@Resource
|
||||||
|
private IInvestExchangeService investExchangeService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询交易所基础信息列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="查询交易所基础信息列表",response = InvestExchangeVo.class)
|
||||||
|
@RequiresPermissions("invest:exchange:list")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(InvestExchangeDto investExchangeDto)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<InvestExchangeVo> list = investExchangeService.selectInvestExchangeList(investExchangeDto);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出交易所基础信息列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="导出交易所基础信息列表")
|
||||||
|
@RequiresPermissions("invest:exchange:export")
|
||||||
|
@Log(title = "交易所基础信息", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, InvestExchangeDto investExchangeDto)
|
||||||
|
{
|
||||||
|
List<InvestExchangeVo> list = investExchangeService.selectInvestExchangeList(investExchangeDto);
|
||||||
|
ExcelUtil<InvestExchangeVo> util = new ExcelUtil<InvestExchangeVo>(InvestExchangeVo.class);
|
||||||
|
util.exportExcel(response, list, "交易所基础信息数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取交易所基础信息详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="获取交易所基础信息详细信息")
|
||||||
|
@RequiresPermissions("invest:exchange:query")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(investExchangeService.selectInvestExchangeById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增交易所基础信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="新增交易所基础信息")
|
||||||
|
@RequiresPermissions("invest:exchange:add")
|
||||||
|
@Log(title = "交易所基础信息", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody InvestExchange investExchange)
|
||||||
|
{
|
||||||
|
return toAjax(investExchangeService.insertInvestExchange(investExchange));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改交易所基础信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="修改交易所基础信息")
|
||||||
|
@RequiresPermissions("invest:exchange:edit")
|
||||||
|
@Log(title = "交易所基础信息", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody InvestExchange investExchange)
|
||||||
|
{
|
||||||
|
return toAjax(investExchangeService.updateInvestExchange(investExchange));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除交易所基础信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="删除交易所基础信息")
|
||||||
|
@RequiresPermissions("invest:exchange:remove")
|
||||||
|
@Log(title = "交易所基础信息", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(investExchangeService.deleteInvestExchangeByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
package com.intc.invest.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.io.IOException;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
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.intc.common.log.annotation.Log;
|
||||||
|
import com.intc.common.log.enums.BusinessType;
|
||||||
|
import com.intc.common.security.annotation.RequiresPermissions;
|
||||||
|
import com.intc.invest.domain.StockBaseInfor;
|
||||||
|
import com.intc.invest.domain.vo.StockBaseInforVo;
|
||||||
|
import com.intc.invest.domain.dto.StockBaseInforDto;
|
||||||
|
import com.intc.invest.service.IStockBaseInforService;
|
||||||
|
import com.intc.common.core.web.controller.BaseController;
|
||||||
|
import com.intc.common.core.web.domain.AjaxResult;
|
||||||
|
import com.intc.common.core.utils.poi.ExcelUtil;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import com.intc.common.core.web.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 股票基础信息Controller
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
@Api(tags=" 股票基础信息")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/stockBaseInfor")
|
||||||
|
public class StockBaseInforController extends BaseController
|
||||||
|
{
|
||||||
|
@Resource
|
||||||
|
private IStockBaseInforService stockBaseInforService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询股票基础信息列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="查询股票基础信息列表",response = StockBaseInforVo.class)
|
||||||
|
@RequiresPermissions("invest:stockBaseInfor:list")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(StockBaseInforDto stockBaseInforDto)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<StockBaseInforVo> list = stockBaseInforService.selectStockBaseInforList(stockBaseInforDto);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出股票基础信息列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="导出股票基础信息列表")
|
||||||
|
@RequiresPermissions("invest:stockBaseInfor:export")
|
||||||
|
@Log(title = "股票基础信息", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, StockBaseInforDto stockBaseInforDto)
|
||||||
|
{
|
||||||
|
List<StockBaseInforVo> list = stockBaseInforService.selectStockBaseInforList(stockBaseInforDto);
|
||||||
|
ExcelUtil<StockBaseInforVo> util = new ExcelUtil<StockBaseInforVo>(StockBaseInforVo.class);
|
||||||
|
util.exportExcel(response, list, "股票基础信息数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取股票基础信息详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="获取股票基础信息详细信息")
|
||||||
|
@RequiresPermissions("invest:stockBaseInfor:query")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(stockBaseInforService.selectStockBaseInforById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增股票基础信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="新增股票基础信息")
|
||||||
|
@RequiresPermissions("invest:stockBaseInfor:add")
|
||||||
|
@Log(title = "股票基础信息", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody StockBaseInfor stockBaseInfor)
|
||||||
|
{
|
||||||
|
return toAjax(stockBaseInforService.insertStockBaseInfor(stockBaseInfor));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改股票基础信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="修改股票基础信息")
|
||||||
|
@RequiresPermissions("invest:stockBaseInfor:edit")
|
||||||
|
@Log(title = "股票基础信息", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody StockBaseInfor stockBaseInfor)
|
||||||
|
{
|
||||||
|
return toAjax(stockBaseInforService.updateStockBaseInfor(stockBaseInfor));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除股票基础信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="删除股票基础信息")
|
||||||
|
@RequiresPermissions("invest:stockBaseInfor:remove")
|
||||||
|
@Log(title = "股票基础信息", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(stockBaseInforService.deleteStockBaseInforByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,113 @@
|
|||||||
|
package com.intc.invest.domain;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.intc.common.core.annotation.Excel;
|
||||||
|
import com.intc.common.core.web.domain.BaseEntity;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 期货基本合约对象 invest_future_base_infor
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-28
|
||||||
|
*/
|
||||||
|
@ApiModel("期货基本合约对象")
|
||||||
|
@Data
|
||||||
|
public class FutureBaseInfor extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 名称 */
|
||||||
|
@ApiModelProperty(value="名称")
|
||||||
|
@Excel(name = "名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 代码 */
|
||||||
|
@ApiModelProperty(value="代码")
|
||||||
|
@Excel(name = "代码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/** 标准合约id */
|
||||||
|
@ApiModelProperty(value="标准合约id")
|
||||||
|
@Excel(name = "标准合约id")
|
||||||
|
private Long standardId;
|
||||||
|
|
||||||
|
/** 上市基准价 */
|
||||||
|
@ApiModelProperty(value="上市基准价")
|
||||||
|
@Excel(name = "上市基准价")
|
||||||
|
private Double referencePrice;
|
||||||
|
|
||||||
|
/** 交易乘数 */
|
||||||
|
private Double tradingMultiplier;
|
||||||
|
|
||||||
|
/** 涨跌副限制 */
|
||||||
|
@ApiModelProperty(value="涨跌副限制")
|
||||||
|
@Excel(name = "涨跌副限制")
|
||||||
|
private Double priceLimit;
|
||||||
|
|
||||||
|
/** 交割月份 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM")
|
||||||
|
private String deliveryMonth;
|
||||||
|
|
||||||
|
/** 保证金比例 */
|
||||||
|
@ApiModelProperty(value="保证金比例")
|
||||||
|
@Excel(name = "保证金比例")
|
||||||
|
private Double marginRatio;
|
||||||
|
|
||||||
|
/** 最后交易日 */
|
||||||
|
@ApiModelProperty(value="最后交易日")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "最后交易日", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date lastTradingDay;
|
||||||
|
|
||||||
|
/** 合约上市日 */
|
||||||
|
@ApiModelProperty(value="合约上市日")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "合约上市日", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date listingDate;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/** 最后交割日 */
|
||||||
|
@ApiModelProperty(value="最后交割日")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "最后交割日", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date deliveryDate;
|
||||||
|
|
||||||
|
/** 删除标志(0代表存在 1代表删除) */
|
||||||
|
private String delFlag;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("name", getName())
|
||||||
|
.append("code", getCode())
|
||||||
|
.append("standardId", getStandardId())
|
||||||
|
.append("referencePrice", getReferencePrice())
|
||||||
|
.append("tradingMultiplier", getTradingMultiplier())
|
||||||
|
.append("priceLimit", getPriceLimit())
|
||||||
|
.append("deliveryMonth", getDeliveryMonth())
|
||||||
|
.append("marginRatio", getMarginRatio())
|
||||||
|
.append("lastTradingDay", getLastTradingDay())
|
||||||
|
.append("deliveryDate", getDeliveryDate())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("delFlag", getDelFlag())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.append("listingDate", getListingDate())
|
||||||
|
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,119 @@
|
|||||||
|
package com.intc.invest.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.intc.common.core.annotation.Excel;
|
||||||
|
import com.intc.common.core.web.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
/**
|
||||||
|
* 期货品种标准合约对象 invest_future_base_infor
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
@ApiModel("期货品种标准合约对象")
|
||||||
|
@Data
|
||||||
|
public class FutureStandardInfor extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 交易品种 */
|
||||||
|
@ApiModelProperty(value="交易品种)")
|
||||||
|
@NotNull(message="交易品种不能为空")
|
||||||
|
@Excel(name = "交易品种")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 类型 */
|
||||||
|
@ApiModelProperty(value="类型)")
|
||||||
|
@NotNull(message="类型不能为空")
|
||||||
|
@Excel(name = "类型")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/** 交易代码 */
|
||||||
|
@ApiModelProperty(value="交易代码)")
|
||||||
|
@NotNull(message="交易代码不能为空")
|
||||||
|
@Excel(name = "交易代码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/** 上市交易所 */
|
||||||
|
@ApiModelProperty(value="上市交易所)")
|
||||||
|
@NotNull(message="上市交易所不能为空")
|
||||||
|
@Excel(name = "上市交易所")
|
||||||
|
private Long exchangeId;
|
||||||
|
|
||||||
|
/** 交易单位 */
|
||||||
|
private String tradingUnit;
|
||||||
|
|
||||||
|
/** 最小变动价位 */
|
||||||
|
private String minimumPriceFluctuation;
|
||||||
|
|
||||||
|
/** 交易时间 */
|
||||||
|
@ApiModelProperty(value="交易时间")
|
||||||
|
@Excel(name = "交易时间")
|
||||||
|
private String tradingTime;
|
||||||
|
|
||||||
|
/** 涨跌停板限制 */
|
||||||
|
@ApiModelProperty(value="涨跌停板限制")
|
||||||
|
@Excel(name = "涨跌停板限制")
|
||||||
|
private String priceLimit;
|
||||||
|
|
||||||
|
/** 交割月份 */
|
||||||
|
private String deliveryMonth;
|
||||||
|
|
||||||
|
/** 交割方式 */
|
||||||
|
private String deliveryMethod;
|
||||||
|
|
||||||
|
/** 交割地点 */
|
||||||
|
private String deliveryLocation;
|
||||||
|
|
||||||
|
/** 保证金比例 */
|
||||||
|
@ApiModelProperty(value="保证金比例")
|
||||||
|
@Excel(name = "保证金比例")
|
||||||
|
private String marginRatio;
|
||||||
|
|
||||||
|
/** 报价单位 */
|
||||||
|
private String pricingUnit;
|
||||||
|
|
||||||
|
/** 最后交易日 */
|
||||||
|
private String lastTradingDay;
|
||||||
|
|
||||||
|
/** 交割日期 */
|
||||||
|
private String deliveryDate;
|
||||||
|
|
||||||
|
/** 删除标志(0代表存在 1代表删除) */
|
||||||
|
private String delFlag;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("name", getName())
|
||||||
|
.append("type", getType())
|
||||||
|
.append("code", getCode())
|
||||||
|
.append("exchangeId", getExchangeId())
|
||||||
|
.append("tradingUnit", getTradingUnit())
|
||||||
|
.append("minimumPriceFluctuation", getMinimumPriceFluctuation())
|
||||||
|
.append("tradingTime", getTradingTime())
|
||||||
|
.append("priceLimit", getPriceLimit())
|
||||||
|
.append("deliveryMonth", getDeliveryMonth())
|
||||||
|
.append("deliveryMethod", getDeliveryMethod())
|
||||||
|
.append("deliveryLocation", getDeliveryLocation())
|
||||||
|
.append("marginRatio", getMarginRatio())
|
||||||
|
.append("pricingUnit", getPricingUnit())
|
||||||
|
.append("lastTradingDay", getLastTradingDay())
|
||||||
|
.append("deliveryDate", getDeliveryDate())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("delFlag", getDelFlag())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
package com.intc.invest.domain;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.intc.common.core.annotation.Excel;
|
||||||
|
import com.intc.common.core.web.domain.BaseEntity;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.util.Date;
|
||||||
|
/**
|
||||||
|
* 交易所基础信息对象 invest_exchange
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
@ApiModel("交易所基础信息对象")
|
||||||
|
@Data
|
||||||
|
public class InvestExchange extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 全称 */
|
||||||
|
@ApiModelProperty(value="全称)")
|
||||||
|
@NotNull(message="全称不能为空")
|
||||||
|
@Excel(name = "全称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 类型,1期货,2股票 */
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/** 编号 */
|
||||||
|
@ApiModelProperty(value="编号)")
|
||||||
|
@NotNull(message="编号不能为空")
|
||||||
|
@Excel(name = "编号")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/** 简称 */
|
||||||
|
@ApiModelProperty(value="简称)")
|
||||||
|
@NotNull(message="简称不能为空")
|
||||||
|
@Excel(name = "简称")
|
||||||
|
private String shortName;
|
||||||
|
|
||||||
|
/** 成立时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private Date foundingTime;
|
||||||
|
|
||||||
|
/** 删除标志(0代表存在 1代表删除) */
|
||||||
|
private String delFlag;
|
||||||
|
|
||||||
|
/** 简介 */
|
||||||
|
private String introduce;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("name", getName())
|
||||||
|
.append("type", getType())
|
||||||
|
.append("code", getCode())
|
||||||
|
.append("shortName", getShortName())
|
||||||
|
.append("foundingTime", getFoundingTime())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("delFlag", getDelFlag())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.append("introduce", getIntroduce())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,106 @@
|
|||||||
|
package com.intc.invest.domain;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.intc.common.core.annotation.Excel;
|
||||||
|
import com.intc.common.core.web.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 股票基础信息对象 invest_stock_base_infor
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
@ApiModel("股票基础信息对象")
|
||||||
|
@Data
|
||||||
|
public class StockBaseInfor extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 公司名称 */
|
||||||
|
@ApiModelProperty(value="公司名称)")
|
||||||
|
@NotNull(message="公司名称不能为空")
|
||||||
|
@Excel(name = "公司名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 类型 */
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/** 股票代码 */
|
||||||
|
@ApiModelProperty(value="股票代码)")
|
||||||
|
@NotNull(message="股票代码不能为空")
|
||||||
|
@Excel(name = "股票代码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/** 上市交易所 */
|
||||||
|
@ApiModelProperty(value="上市交易所)")
|
||||||
|
@NotNull(message="上市交易所不能为空")
|
||||||
|
@Excel(name = "上市交易所")
|
||||||
|
private Long exchangeId;
|
||||||
|
|
||||||
|
/** 行业分类 */
|
||||||
|
@ApiModelProperty(value="行业分类")
|
||||||
|
@Excel(name = "行业分类")
|
||||||
|
private String industryClassification;
|
||||||
|
|
||||||
|
/** 主营业务 */
|
||||||
|
@ApiModelProperty(value="主营业务")
|
||||||
|
@Excel(name = "主营业务")
|
||||||
|
private String mainBusiness;
|
||||||
|
|
||||||
|
/** 上市日期 */
|
||||||
|
@ApiModelProperty(value="上市日期)")
|
||||||
|
@NotNull(message="上市日期不能为空")
|
||||||
|
/** 成立时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private Date listingDate;
|
||||||
|
|
||||||
|
/** 删除标志(0代表存在 1代表删除) */
|
||||||
|
private String delFlag;
|
||||||
|
|
||||||
|
/** 公司简介 */
|
||||||
|
private String introduce;
|
||||||
|
|
||||||
|
/** 所属区域 */
|
||||||
|
@ApiModelProperty(value="所属区域")
|
||||||
|
@Excel(name = "所属区域")
|
||||||
|
private String region;
|
||||||
|
|
||||||
|
/** 简称 */
|
||||||
|
@ApiModelProperty(value="简称)")
|
||||||
|
@NotNull(message="简称不能为空")
|
||||||
|
@Excel(name = "简称")
|
||||||
|
private String shortName;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("name", getName())
|
||||||
|
.append("type", getType())
|
||||||
|
.append("code", getCode())
|
||||||
|
.append("exchangeId", getExchangeId())
|
||||||
|
.append("industryClassification", getIndustryClassification())
|
||||||
|
.append("mainBusiness", getMainBusiness())
|
||||||
|
.append("listingDate", getListingDate())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("delFlag", getDelFlag())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.append("introduce", getIntroduce())
|
||||||
|
.append("region", getRegion())
|
||||||
|
.append("shortName", getShortName())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
package com.intc.invest.domain.dto;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
/**
|
||||||
|
* 期货基本合约Dto对象 invest_future_base_infor
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-28
|
||||||
|
*/
|
||||||
|
@ApiModel("期货基本合约Dto对象")
|
||||||
|
@Data
|
||||||
|
public class FutureBaseInforDto implements Serializable
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 名称 */
|
||||||
|
@ApiModelProperty(value="名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 代码 */
|
||||||
|
@ApiModelProperty(value="代码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/** 标准合约id */
|
||||||
|
@ApiModelProperty(value="标准合约id")
|
||||||
|
private Long standardId;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
package com.intc.invest.domain.dto;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
/**
|
||||||
|
* 期货品种标准合约Dto对象 invest_future_base_infor
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
@ApiModel("期货品种标准合约Dto对象")
|
||||||
|
@Data
|
||||||
|
public class FutureStandardInforDto implements Serializable
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 交易品种 */
|
||||||
|
@ApiModelProperty(value="交易品种")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 类型 */
|
||||||
|
@ApiModelProperty(value="类型")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/** 交易代码 */
|
||||||
|
@ApiModelProperty(value="交易代码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/** 上市交易所 */
|
||||||
|
@ApiModelProperty(value="上市交易所")
|
||||||
|
private Long exchangeId;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
package com.intc.invest.domain.dto;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
/**
|
||||||
|
* 交易所基础信息Dto对象 invest_exchange
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
@ApiModel("交易所基础信息Dto对象")
|
||||||
|
@Data
|
||||||
|
public class InvestExchangeDto implements Serializable
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 全称 */
|
||||||
|
@ApiModelProperty(value="全称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 类型,1期货,2股票 */
|
||||||
|
@ApiModelProperty(value="类型,1期货,2股票")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/** 编号 */
|
||||||
|
@ApiModelProperty(value="编号")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/** 简称 */
|
||||||
|
@ApiModelProperty(value="简称")
|
||||||
|
private String shortName;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
package com.intc.invest.domain.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
/**
|
||||||
|
* 股票基础信息Dto对象 invest_stock_base_infor
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
@ApiModel("股票基础信息Dto对象")
|
||||||
|
@Data
|
||||||
|
public class StockBaseInforDto implements Serializable
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 公司名称 */
|
||||||
|
@ApiModelProperty(value="公司名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 类型 */
|
||||||
|
@ApiModelProperty(value="类型")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/** 股票代码 */
|
||||||
|
@ApiModelProperty(value="股票代码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/** 上市交易所 */
|
||||||
|
@ApiModelProperty(value="上市交易所")
|
||||||
|
private Long exchangeId;
|
||||||
|
|
||||||
|
/** 行业分类 */
|
||||||
|
@ApiModelProperty(value="行业分类")
|
||||||
|
private String industryClassification;
|
||||||
|
|
||||||
|
/** 简称 */
|
||||||
|
@ApiModelProperty(value="简称")
|
||||||
|
private String shortName;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
package com.intc.invest.domain.vo;
|
||||||
|
|
||||||
|
import com.intc.invest.domain.FutureBaseInfor;
|
||||||
|
import lombok.Data;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
/**
|
||||||
|
* 期货基本合约Vo对象 invest_future_base_infor
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-28
|
||||||
|
*/
|
||||||
|
@ApiModel("期货基本合约Vo对象")
|
||||||
|
@Data
|
||||||
|
public class FutureBaseInforVo extends FutureBaseInfor
|
||||||
|
{
|
||||||
|
|
||||||
|
private String exchangeName;
|
||||||
|
|
||||||
|
private String tradingTimeName;
|
||||||
|
|
||||||
|
private String standardName;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
package com.intc.invest.domain.vo;
|
||||||
|
|
||||||
|
import com.intc.invest.domain.FutureStandardInfor;
|
||||||
|
import lombok.Data;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
/**
|
||||||
|
* 期货品种标准合约Vo对象 invest_future_base_infor
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
@ApiModel("期货品种标准合约Vo对象")
|
||||||
|
@Data
|
||||||
|
public class FutureStandardInforVo extends FutureStandardInfor
|
||||||
|
{
|
||||||
|
private String exchangeName;
|
||||||
|
|
||||||
|
private String tradingTimeName;
|
||||||
|
|
||||||
|
private String deliveryMonthName;
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package com.intc.invest.domain.vo;
|
||||||
|
|
||||||
|
import com.intc.invest.domain.InvestExchange;
|
||||||
|
import lombok.Data;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
/**
|
||||||
|
* 交易所基础信息Vo对象 invest_exchange
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
@ApiModel("交易所基础信息Vo对象")
|
||||||
|
@Data
|
||||||
|
public class InvestExchangeVo extends InvestExchange
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
package com.intc.invest.domain.vo;
|
||||||
|
|
||||||
|
import com.intc.invest.domain.StockBaseInfor;
|
||||||
|
import lombok.Data;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
/**
|
||||||
|
* 股票基础信息Vo对象 invest_stock_base_infor
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
@ApiModel("股票基础信息Vo对象")
|
||||||
|
@Data
|
||||||
|
public class StockBaseInforVo extends StockBaseInfor
|
||||||
|
{
|
||||||
|
private String exchangeName;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
package com.intc.invest.mapper;
|
||||||
|
|
||||||
|
import com.intc.invest.domain.FutureBaseInfor;
|
||||||
|
import com.intc.invest.domain.dto.FutureBaseInforDto;
|
||||||
|
import com.intc.invest.domain.vo.FutureBaseInforVo;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 期货基本合约Mapper接口
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-28
|
||||||
|
*/
|
||||||
|
public interface FutureBaseInforMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询期货基本合约
|
||||||
|
*
|
||||||
|
* @param id 期货基本合约主键
|
||||||
|
* @return 期货基本合约
|
||||||
|
*/
|
||||||
|
public FutureBaseInforVo selectFutureBaseInforById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询期货基本合约列表
|
||||||
|
*
|
||||||
|
* @param futureBaseInforDto 期货基本合约
|
||||||
|
* @return 期货基本合约集合
|
||||||
|
*/
|
||||||
|
public List<FutureBaseInforVo> selectFutureBaseInforList(FutureBaseInforDto futureBaseInforDto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增期货基本合约
|
||||||
|
*
|
||||||
|
* @param futureBaseInfor 期货基本合约
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertFutureBaseInfor(FutureBaseInfor futureBaseInfor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改期货基本合约
|
||||||
|
*
|
||||||
|
* @param futureBaseInfor 期货基本合约
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateFutureBaseInfor(FutureBaseInfor futureBaseInfor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除期货基本合约
|
||||||
|
*
|
||||||
|
* @param id 期货基本合约主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteFutureBaseInforById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除期货基本合约
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteFutureBaseInforByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 逻辑删除期货基本合约
|
||||||
|
*
|
||||||
|
* @param id 期货基本合约主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int removeFutureBaseInforById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量逻辑删除期货基本合约
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int removeFutureBaseInforByIds(Long[] ids);
|
||||||
|
}
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
package com.intc.invest.mapper;
|
||||||
|
|
||||||
|
import com.intc.invest.domain.FutureStandardInfor;
|
||||||
|
import com.intc.invest.domain.dto.FutureStandardInforDto;
|
||||||
|
import com.intc.invest.domain.vo.FutureStandardInforVo;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 期货品种标准合约Mapper接口
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
public interface FutureStandardInforMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询期货品种标准合约
|
||||||
|
*
|
||||||
|
* @param id 期货品种标准合约主键
|
||||||
|
* @return 期货品种标准合约
|
||||||
|
*/
|
||||||
|
public FutureStandardInforVo selectFutureStandardInforById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询期货品种标准合约列表
|
||||||
|
*
|
||||||
|
* @param futureStandardInforDto 期货品种标准合约
|
||||||
|
* @return 期货品种标准合约集合
|
||||||
|
*/
|
||||||
|
public List<FutureStandardInforVo> selectFutureStandardInforList(FutureStandardInforDto futureStandardInforDto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增期货品种标准合约
|
||||||
|
*
|
||||||
|
* @param futureStandardInfor 期货品种标准合约
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertFutureStandardInfor(FutureStandardInfor futureStandardInfor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改期货品种标准合约
|
||||||
|
*
|
||||||
|
* @param futureStandardInfor 期货品种标准合约
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateFutureStandardInfor(FutureStandardInfor futureStandardInfor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除期货品种标准合约
|
||||||
|
*
|
||||||
|
* @param id 期货品种标准合约主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteFutureStandardInforById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除期货品种标准合约
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteFutureStandardInforByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 逻辑删除期货品种标准合约
|
||||||
|
*
|
||||||
|
* @param id 期货品种标准合约主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int removeFutureStandardInforById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量逻辑删除期货品种标准合约
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int removeFutureStandardInforByIds(Long[] ids);
|
||||||
|
}
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
package com.intc.invest.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.intc.invest.domain.InvestExchange;
|
||||||
|
import com.intc.invest.domain.dto.InvestExchangeDto;
|
||||||
|
import com.intc.invest.domain.vo.InvestExchangeVo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 交易所基础信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
public interface InvestExchangeMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询交易所基础信息
|
||||||
|
*
|
||||||
|
* @param id 交易所基础信息主键
|
||||||
|
* @return 交易所基础信息
|
||||||
|
*/
|
||||||
|
public InvestExchangeVo selectInvestExchangeById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询交易所基础信息列表
|
||||||
|
*
|
||||||
|
* @param investExchangeDto 交易所基础信息
|
||||||
|
* @return 交易所基础信息集合
|
||||||
|
*/
|
||||||
|
public List<InvestExchangeVo> selectInvestExchangeList(InvestExchangeDto investExchangeDto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增交易所基础信息
|
||||||
|
*
|
||||||
|
* @param investExchange 交易所基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertInvestExchange(InvestExchange investExchange);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改交易所基础信息
|
||||||
|
*
|
||||||
|
* @param investExchange 交易所基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateInvestExchange(InvestExchange investExchange);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除交易所基础信息
|
||||||
|
*
|
||||||
|
* @param id 交易所基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteInvestExchangeById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除交易所基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteInvestExchangeByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 逻辑删除交易所基础信息
|
||||||
|
*
|
||||||
|
* @param id 交易所基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int removeInvestExchangeById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量逻辑删除交易所基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int removeInvestExchangeByIds(Long[] ids);
|
||||||
|
}
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
package com.intc.invest.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.intc.invest.domain.StockBaseInfor;
|
||||||
|
import com.intc.invest.domain.dto.StockBaseInforDto;
|
||||||
|
import com.intc.invest.domain.vo.StockBaseInforVo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 股票基础信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
public interface StockBaseInforMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询股票基础信息
|
||||||
|
*
|
||||||
|
* @param id 股票基础信息主键
|
||||||
|
* @return 股票基础信息
|
||||||
|
*/
|
||||||
|
public StockBaseInforVo selectStockBaseInforById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询股票基础信息列表
|
||||||
|
*
|
||||||
|
* @param stockBaseInforDto 股票基础信息
|
||||||
|
* @return 股票基础信息集合
|
||||||
|
*/
|
||||||
|
public List<StockBaseInforVo> selectStockBaseInforList(StockBaseInforDto stockBaseInforDto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增股票基础信息
|
||||||
|
*
|
||||||
|
* @param stockBaseInfor 股票基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertStockBaseInfor(StockBaseInfor stockBaseInfor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改股票基础信息
|
||||||
|
*
|
||||||
|
* @param stockBaseInfor 股票基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateStockBaseInfor(StockBaseInfor stockBaseInfor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除股票基础信息
|
||||||
|
*
|
||||||
|
* @param id 股票基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteStockBaseInforById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除股票基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteStockBaseInforByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 逻辑删除股票基础信息
|
||||||
|
*
|
||||||
|
* @param id 股票基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int removeStockBaseInforById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量逻辑删除股票基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int removeStockBaseInforByIds(Long[] ids);
|
||||||
|
}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
package com.intc.invest.service;
|
||||||
|
|
||||||
|
import com.intc.invest.domain.FutureBaseInfor;
|
||||||
|
import com.intc.invest.domain.dto.FutureBaseInforDto;
|
||||||
|
import com.intc.invest.domain.vo.FutureBaseInforVo;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 期货基本合约Service接口
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-28
|
||||||
|
*/
|
||||||
|
public interface IFutureBaseInforService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询期货基本合约
|
||||||
|
*
|
||||||
|
* @param id 期货基本合约主键
|
||||||
|
* @return 期货基本合约
|
||||||
|
*/
|
||||||
|
public FutureBaseInforVo selectFutureBaseInforById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询期货基本合约列表
|
||||||
|
*
|
||||||
|
* @param futureBaseInforDto 期货基本合约
|
||||||
|
* @return 期货基本合约集合
|
||||||
|
*/
|
||||||
|
public List<FutureBaseInforVo> selectFutureBaseInforList(FutureBaseInforDto futureBaseInforDto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增期货基本合约
|
||||||
|
*
|
||||||
|
* @param futureBaseInfor 期货基本合约
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertFutureBaseInfor(FutureBaseInfor futureBaseInfor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改期货基本合约
|
||||||
|
*
|
||||||
|
* @param futureBaseInfor 期货基本合约
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateFutureBaseInfor(FutureBaseInfor futureBaseInfor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除期货基本合约
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的期货基本合约主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteFutureBaseInforByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除期货基本合约信息
|
||||||
|
*
|
||||||
|
* @param id 期货基本合约主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteFutureBaseInforById(Long id);
|
||||||
|
}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
package com.intc.invest.service;
|
||||||
|
|
||||||
|
import com.intc.invest.domain.FutureStandardInfor;
|
||||||
|
import com.intc.invest.domain.dto.FutureStandardInforDto;
|
||||||
|
import com.intc.invest.domain.vo.FutureStandardInforVo;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 期货品种标准合约Service接口
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
public interface IFutureStandardInforService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询期货品种标准合约
|
||||||
|
*
|
||||||
|
* @param id 期货品种标准合约主键
|
||||||
|
* @return 期货品种标准合约
|
||||||
|
*/
|
||||||
|
public FutureStandardInforVo selectFutureStandardInforById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询期货品种标准合约列表
|
||||||
|
*
|
||||||
|
* @param futureStandardInforDto 期货品种标准合约
|
||||||
|
* @return 期货品种标准合约集合
|
||||||
|
*/
|
||||||
|
public List<FutureStandardInforVo> selectFutureStandardInforList(FutureStandardInforDto futureStandardInforDto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增期货品种标准合约
|
||||||
|
*
|
||||||
|
* @param futureStandardInfor 期货品种标准合约
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertFutureStandardInfor(FutureStandardInfor futureStandardInfor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改期货品种标准合约
|
||||||
|
*
|
||||||
|
* @param futureStandardInfor 期货品种标准合约
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateFutureStandardInfor(FutureStandardInfor futureStandardInfor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除期货品种标准合约
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的期货品种标准合约主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteFutureStandardInforByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除期货品种标准合约信息
|
||||||
|
*
|
||||||
|
* @param id 期货品种标准合约主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteFutureStandardInforById(Long id);
|
||||||
|
}
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
package com.intc.invest.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.intc.invest.domain.InvestExchange;
|
||||||
|
import com.intc.invest.domain.dto.InvestExchangeDto;
|
||||||
|
import com.intc.invest.domain.vo.InvestExchangeVo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 交易所基础信息Service接口
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
public interface IInvestExchangeService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询交易所基础信息
|
||||||
|
*
|
||||||
|
* @param id 交易所基础信息主键
|
||||||
|
* @return 交易所基础信息
|
||||||
|
*/
|
||||||
|
public InvestExchangeVo selectInvestExchangeById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询交易所基础信息列表
|
||||||
|
*
|
||||||
|
* @param investExchangeDto 交易所基础信息
|
||||||
|
* @return 交易所基础信息集合
|
||||||
|
*/
|
||||||
|
public List<InvestExchangeVo> selectInvestExchangeList(InvestExchangeDto investExchangeDto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增交易所基础信息
|
||||||
|
*
|
||||||
|
* @param investExchange 交易所基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertInvestExchange(InvestExchange investExchange);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改交易所基础信息
|
||||||
|
*
|
||||||
|
* @param investExchange 交易所基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateInvestExchange(InvestExchange investExchange);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除交易所基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的交易所基础信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteInvestExchangeByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除交易所基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 交易所基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteInvestExchangeById(Long id);
|
||||||
|
}
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
package com.intc.invest.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.intc.invest.domain.StockBaseInfor;
|
||||||
|
import com.intc.invest.domain.dto.StockBaseInforDto;
|
||||||
|
import com.intc.invest.domain.vo.StockBaseInforVo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 股票基础信息Service接口
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
public interface IStockBaseInforService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询股票基础信息
|
||||||
|
*
|
||||||
|
* @param id 股票基础信息主键
|
||||||
|
* @return 股票基础信息
|
||||||
|
*/
|
||||||
|
public StockBaseInforVo selectStockBaseInforById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询股票基础信息列表
|
||||||
|
*
|
||||||
|
* @param stockBaseInforDto 股票基础信息
|
||||||
|
* @return 股票基础信息集合
|
||||||
|
*/
|
||||||
|
public List<StockBaseInforVo> selectStockBaseInforList(StockBaseInforDto stockBaseInforDto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增股票基础信息
|
||||||
|
*
|
||||||
|
* @param stockBaseInfor 股票基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertStockBaseInfor(StockBaseInfor stockBaseInfor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改股票基础信息
|
||||||
|
*
|
||||||
|
* @param stockBaseInfor 股票基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateStockBaseInfor(StockBaseInfor stockBaseInfor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除股票基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的股票基础信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteStockBaseInforByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除股票基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 股票基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteStockBaseInforById(Long id);
|
||||||
|
}
|
||||||
@@ -0,0 +1,119 @@
|
|||||||
|
package com.intc.invest.service.impl;
|
||||||
|
|
||||||
|
import com.intc.common.core.utils.DateUtils;
|
||||||
|
import com.intc.common.core.utils.IdWorker;
|
||||||
|
import com.intc.common.security.utils.DictUtils;
|
||||||
|
import com.intc.common.security.utils.SecurityUtils;
|
||||||
|
import com.intc.invest.domain.FutureBaseInfor;
|
||||||
|
import com.intc.invest.domain.dto.FutureBaseInforDto;
|
||||||
|
import com.intc.invest.domain.vo.FutureBaseInforVo;
|
||||||
|
import com.intc.invest.mapper.FutureBaseInforMapper;
|
||||||
|
import com.intc.invest.service.IFutureBaseInforService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 期货基本合约Service业务层处理
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-28
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class FutureBaseInforServiceImpl implements IFutureBaseInforService
|
||||||
|
{
|
||||||
|
@Resource
|
||||||
|
private FutureBaseInforMapper futureBaseInforMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询期货基本合约
|
||||||
|
*
|
||||||
|
* @param id 期货基本合约主键
|
||||||
|
* @return 期货基本合约
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public FutureBaseInforVo selectFutureBaseInforById(Long id)
|
||||||
|
{
|
||||||
|
return futureBaseInforMapper.selectFutureBaseInforById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询期货基本合约列表
|
||||||
|
*
|
||||||
|
* @param futureBaseInforDto 期货基本合约
|
||||||
|
* @return 期货基本合约
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<FutureBaseInforVo> selectFutureBaseInforList(FutureBaseInforDto futureBaseInforDto)
|
||||||
|
{
|
||||||
|
List<FutureBaseInforVo> list=futureBaseInforMapper.selectFutureBaseInforList(futureBaseInforDto);
|
||||||
|
//修改名称加卡号
|
||||||
|
for (FutureBaseInforVo base : list) {
|
||||||
|
String[] tradingTimeNames = base.getTradingTimeName().split("@");
|
||||||
|
|
||||||
|
String tradingTimeName = "";
|
||||||
|
for (String itemId : tradingTimeNames) {
|
||||||
|
String label= DictUtils.getDictLabel("trading_time",itemId);
|
||||||
|
tradingTimeName+=label+"、";
|
||||||
|
}
|
||||||
|
base.setTradingTimeName(tradingTimeName.substring(0,tradingTimeName.length()-1));
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增期货基本合约
|
||||||
|
*
|
||||||
|
* @param futureBaseInfor 期货基本合约
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertFutureBaseInfor(FutureBaseInfor futureBaseInfor)
|
||||||
|
{
|
||||||
|
futureBaseInfor.setCreateBy(SecurityUtils.getUsername());
|
||||||
|
futureBaseInfor.setCreateTime(DateUtils.getNowDate());
|
||||||
|
futureBaseInfor.setId(IdWorker.getId());
|
||||||
|
return futureBaseInforMapper.insertFutureBaseInfor(futureBaseInfor);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改期货基本合约
|
||||||
|
*
|
||||||
|
* @param futureBaseInfor 期货基本合约
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateFutureBaseInfor(FutureBaseInfor futureBaseInfor)
|
||||||
|
{
|
||||||
|
futureBaseInfor.setUpdateBy(SecurityUtils.getUsername());
|
||||||
|
futureBaseInfor.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return futureBaseInforMapper.updateFutureBaseInfor(futureBaseInfor);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除期货基本合约
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的期货基本合约主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteFutureBaseInforByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return futureBaseInforMapper.removeFutureBaseInforByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除期货基本合约信息
|
||||||
|
*
|
||||||
|
* @param id 期货基本合约主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteFutureBaseInforById(Long id)
|
||||||
|
{
|
||||||
|
return futureBaseInforMapper.removeFutureBaseInforById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,126 @@
|
|||||||
|
package com.intc.invest.service.impl;
|
||||||
|
|
||||||
|
import com.intc.common.core.utils.DateUtils;
|
||||||
|
import com.intc.common.core.utils.IdWorker;
|
||||||
|
import com.intc.common.security.utils.DictUtils;
|
||||||
|
import com.intc.common.security.utils.SecurityUtils;
|
||||||
|
import com.intc.invest.domain.FutureStandardInfor;
|
||||||
|
import com.intc.invest.domain.dto.FutureStandardInforDto;
|
||||||
|
import com.intc.invest.domain.vo.FutureStandardInforVo;
|
||||||
|
import com.intc.invest.mapper.FutureStandardInforMapper;
|
||||||
|
import com.intc.invest.service.IFutureStandardInforService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 期货品种标准合约Service业务层处理
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class FutureStandardInforServiceImpl implements IFutureStandardInforService
|
||||||
|
{
|
||||||
|
@Resource
|
||||||
|
private FutureStandardInforMapper futureStandardInforMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询期货品种标准合约
|
||||||
|
*
|
||||||
|
* @param id 期货品种标准合约主键
|
||||||
|
* @return 期货品种标准合约
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public FutureStandardInforVo selectFutureStandardInforById(Long id)
|
||||||
|
{
|
||||||
|
return futureStandardInforMapper.selectFutureStandardInforById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询期货品种标准合约列表
|
||||||
|
*
|
||||||
|
* @param futureStandardInforDto 期货品种标准合约
|
||||||
|
* @return 期货品种标准合约
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<FutureStandardInforVo> selectFutureStandardInforList(FutureStandardInforDto futureStandardInforDto)
|
||||||
|
{
|
||||||
|
List<FutureStandardInforVo> list=futureStandardInforMapper.selectFutureStandardInforList(futureStandardInforDto);
|
||||||
|
//修改名称加卡号
|
||||||
|
for (FutureStandardInforVo base : list) {
|
||||||
|
String[] tradingTimeNames = base.getTradingTime().split("@");
|
||||||
|
|
||||||
|
String tradingTimeName = "";
|
||||||
|
for (String itemId : tradingTimeNames) {
|
||||||
|
String label=DictUtils.getDictLabel("trading_time",itemId);
|
||||||
|
tradingTimeName+=label+"、";
|
||||||
|
}
|
||||||
|
base.setTradingTimeName(tradingTimeName.substring(0,tradingTimeName.length()-1));
|
||||||
|
String[] deliveryMonthNames = base.getDeliveryMonth().split("、");
|
||||||
|
|
||||||
|
String deliveryMonthName = "";
|
||||||
|
for (String itemId : deliveryMonthNames) {
|
||||||
|
deliveryMonthName+=itemId+"月、";
|
||||||
|
}
|
||||||
|
base.setDeliveryMonthName(deliveryMonthName.substring(0,deliveryMonthName.length()-1));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增期货品种标准合约
|
||||||
|
*
|
||||||
|
* @param futureStandardInfor 期货品种标准合约
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertFutureStandardInfor(FutureStandardInfor futureStandardInfor)
|
||||||
|
{
|
||||||
|
futureStandardInfor.setCreateBy(SecurityUtils.getUsername());
|
||||||
|
futureStandardInfor.setCreateTime(DateUtils.getNowDate());
|
||||||
|
futureStandardInfor.setId(IdWorker.getId());
|
||||||
|
return futureStandardInforMapper.insertFutureStandardInfor(futureStandardInfor);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改期货品种标准合约
|
||||||
|
*
|
||||||
|
* @param futureStandardInfor 期货品种标准合约
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateFutureStandardInfor(FutureStandardInfor futureStandardInfor)
|
||||||
|
{
|
||||||
|
futureStandardInfor.setUpdateBy(SecurityUtils.getUsername());
|
||||||
|
futureStandardInfor.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return futureStandardInforMapper.updateFutureStandardInfor(futureStandardInfor);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除期货品种标准合约
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的期货品种标准合约主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteFutureStandardInforByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return futureStandardInforMapper.removeFutureStandardInforByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除期货品种标准合约信息
|
||||||
|
*
|
||||||
|
* @param id 期货品种标准合约主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteFutureStandardInforById(Long id)
|
||||||
|
{
|
||||||
|
return futureStandardInforMapper.removeFutureStandardInforById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,104 @@
|
|||||||
|
package com.intc.invest.service.impl;
|
||||||
|
|
||||||
|
import com.intc.common.core.utils.DateUtils;
|
||||||
|
import com.intc.common.core.utils.IdWorker;
|
||||||
|
import com.intc.common.security.utils.SecurityUtils;
|
||||||
|
import com.intc.invest.domain.InvestExchange;
|
||||||
|
import com.intc.invest.domain.dto.InvestExchangeDto;
|
||||||
|
import com.intc.invest.domain.vo.InvestExchangeVo;
|
||||||
|
import com.intc.invest.mapper.InvestExchangeMapper;
|
||||||
|
import com.intc.invest.service.IInvestExchangeService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 交易所基础信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class InvestExchangeServiceImpl implements IInvestExchangeService
|
||||||
|
{
|
||||||
|
@Resource
|
||||||
|
private InvestExchangeMapper investExchangeMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询交易所基础信息
|
||||||
|
*
|
||||||
|
* @param id 交易所基础信息主键
|
||||||
|
* @return 交易所基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public InvestExchangeVo selectInvestExchangeById(Long id)
|
||||||
|
{
|
||||||
|
return investExchangeMapper.selectInvestExchangeById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询交易所基础信息列表
|
||||||
|
*
|
||||||
|
* @param investExchangeDto 交易所基础信息
|
||||||
|
* @return 交易所基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<InvestExchangeVo> selectInvestExchangeList(InvestExchangeDto investExchangeDto)
|
||||||
|
{
|
||||||
|
return investExchangeMapper.selectInvestExchangeList(investExchangeDto);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增交易所基础信息
|
||||||
|
*
|
||||||
|
* @param investExchange 交易所基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertInvestExchange(InvestExchange investExchange)
|
||||||
|
{
|
||||||
|
investExchange.setCreateBy(SecurityUtils.getUsername());
|
||||||
|
investExchange.setCreateTime(DateUtils.getNowDate());
|
||||||
|
investExchange.setId(IdWorker.getId());
|
||||||
|
return investExchangeMapper.insertInvestExchange(investExchange);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改交易所基础信息
|
||||||
|
*
|
||||||
|
* @param investExchange 交易所基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateInvestExchange(InvestExchange investExchange)
|
||||||
|
{
|
||||||
|
investExchange.setUpdateBy(SecurityUtils.getUsername());
|
||||||
|
investExchange.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return investExchangeMapper.updateInvestExchange(investExchange);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除交易所基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的交易所基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteInvestExchangeByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return investExchangeMapper.removeInvestExchangeByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除交易所基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 交易所基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteInvestExchangeById(Long id)
|
||||||
|
{
|
||||||
|
return investExchangeMapper.removeInvestExchangeById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,104 @@
|
|||||||
|
package com.intc.invest.service.impl;
|
||||||
|
|
||||||
|
import com.intc.common.core.utils.DateUtils;
|
||||||
|
import com.intc.common.core.utils.IdWorker;
|
||||||
|
import com.intc.common.security.utils.SecurityUtils;
|
||||||
|
import com.intc.invest.domain.StockBaseInfor;
|
||||||
|
import com.intc.invest.domain.dto.StockBaseInforDto;
|
||||||
|
import com.intc.invest.domain.vo.StockBaseInforVo;
|
||||||
|
import com.intc.invest.mapper.StockBaseInforMapper;
|
||||||
|
import com.intc.invest.service.IStockBaseInforService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 股票基础信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2025-03-27
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class StockBaseInforServiceImpl implements IStockBaseInforService
|
||||||
|
{
|
||||||
|
@Resource
|
||||||
|
private StockBaseInforMapper stockBaseInforMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询股票基础信息
|
||||||
|
*
|
||||||
|
* @param id 股票基础信息主键
|
||||||
|
* @return 股票基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public StockBaseInforVo selectStockBaseInforById(Long id)
|
||||||
|
{
|
||||||
|
return stockBaseInforMapper.selectStockBaseInforById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询股票基础信息列表
|
||||||
|
*
|
||||||
|
* @param stockBaseInforDto 股票基础信息
|
||||||
|
* @return 股票基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<StockBaseInforVo> selectStockBaseInforList(StockBaseInforDto stockBaseInforDto)
|
||||||
|
{
|
||||||
|
return stockBaseInforMapper.selectStockBaseInforList(stockBaseInforDto);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增股票基础信息
|
||||||
|
*
|
||||||
|
* @param stockBaseInfor 股票基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertStockBaseInfor(StockBaseInfor stockBaseInfor)
|
||||||
|
{
|
||||||
|
stockBaseInfor.setCreateBy(SecurityUtils.getUsername());
|
||||||
|
stockBaseInfor.setCreateTime(DateUtils.getNowDate());
|
||||||
|
stockBaseInfor.setId(IdWorker.getId());
|
||||||
|
return stockBaseInforMapper.insertStockBaseInfor(stockBaseInfor);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改股票基础信息
|
||||||
|
*
|
||||||
|
* @param stockBaseInfor 股票基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateStockBaseInfor(StockBaseInfor stockBaseInfor)
|
||||||
|
{
|
||||||
|
stockBaseInfor.setUpdateBy(SecurityUtils.getUsername());
|
||||||
|
stockBaseInfor.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return stockBaseInforMapper.updateStockBaseInfor(stockBaseInfor);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除股票基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的股票基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteStockBaseInforByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return stockBaseInforMapper.removeStockBaseInforByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除股票基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 股票基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteStockBaseInforById(Long id)
|
||||||
|
{
|
||||||
|
return stockBaseInforMapper.removeStockBaseInforById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,165 @@
|
|||||||
|
<?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.intc.invest.mapper.FutureBaseInforMapper">
|
||||||
|
|
||||||
|
<resultMap type="FutureBaseInforVo" id="FutureBaseInforResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="code" column="code" />
|
||||||
|
<result property="standardId" column="standard_id" />
|
||||||
|
<result property="standardName" column="standard_name" />
|
||||||
|
<result property="exchangeName" column="exchange_name" />
|
||||||
|
<result property="tradingTimeName" column="trading_time" />
|
||||||
|
<result property="referencePrice" column="reference_price" />
|
||||||
|
<result property="tradingMultiplier" column="trading_multiplier" />
|
||||||
|
<result property="priceLimit" column="price_limit" />
|
||||||
|
<result property="deliveryMonth" column="delivery_month" />
|
||||||
|
<result property="marginRatio" column="margin_ratio" />
|
||||||
|
<result property="lastTradingDay" column="last_trading_day" />
|
||||||
|
<result property="deliveryDate" column="delivery_date" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="listingDate" column="listing_date" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectFutureBaseInforVo">
|
||||||
|
select
|
||||||
|
a.id,
|
||||||
|
a.name,
|
||||||
|
a.code,
|
||||||
|
a.standard_id,
|
||||||
|
a.reference_price,
|
||||||
|
a.trading_multiplier,
|
||||||
|
a.price_limit,
|
||||||
|
a.delivery_month,
|
||||||
|
a.margin_ratio,
|
||||||
|
a.last_trading_day,
|
||||||
|
a.delivery_date,
|
||||||
|
a.create_by,
|
||||||
|
a.create_time,
|
||||||
|
a.update_by,
|
||||||
|
a.update_time,
|
||||||
|
a.del_flag,
|
||||||
|
a.remark,
|
||||||
|
a.listing_date,
|
||||||
|
ie."name" as exchange_name,
|
||||||
|
ifsi."name" as standard_name,
|
||||||
|
ifsi.trading_time
|
||||||
|
from
|
||||||
|
invest_future_base_infor a
|
||||||
|
left join invest_future_standard_infor ifsi on ifsi.id =a.standard_id
|
||||||
|
left join invest_exchange ie on ie.id =ifsi.exchange_id
|
||||||
|
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectFutureBaseInforList" parameterType="FutureBaseInforDto" resultMap="FutureBaseInforResult">
|
||||||
|
<include refid="selectFutureBaseInforVo"/>
|
||||||
|
<where>
|
||||||
|
a.del_flag='0'
|
||||||
|
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
|
||||||
|
<if test="code != null and code != ''"> and a.code = #{code}</if>
|
||||||
|
<if test="standardId != null "> and a.standard_id = #{standardId}</if>
|
||||||
|
</where>
|
||||||
|
order by a.create_time desc
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectFutureBaseInforById" parameterType="Long" resultMap="FutureBaseInforResult">
|
||||||
|
<include refid="selectFutureBaseInforVo"/>
|
||||||
|
where a.id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertFutureBaseInfor" parameterType="FutureBaseInfor">
|
||||||
|
insert into invest_future_base_infor
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">id,</if>
|
||||||
|
<if test="name != null">name,</if>
|
||||||
|
<if test="code != null">code,</if>
|
||||||
|
<if test="standardId != null">standard_id,</if>
|
||||||
|
<if test="referencePrice != null">reference_price,</if>
|
||||||
|
<if test="tradingMultiplier != null">trading_multiplier,</if>
|
||||||
|
<if test="priceLimit != null">price_limit,</if>
|
||||||
|
<if test="deliveryMonth != null">delivery_month,</if>
|
||||||
|
<if test="marginRatio != null">margin_ratio,</if>
|
||||||
|
<if test="lastTradingDay != null">last_trading_day,</if>
|
||||||
|
<if test="deliveryDate != null">delivery_date,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="delFlag != null">del_flag,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
<if test="listingDate != null">listing_date,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">#{id},</if>
|
||||||
|
<if test="name != null">#{name},</if>
|
||||||
|
<if test="code != null">#{code},</if>
|
||||||
|
<if test="standardId != null">#{standardId},</if>
|
||||||
|
<if test="referencePrice != null">#{referencePrice},</if>
|
||||||
|
<if test="tradingMultiplier != null">#{tradingMultiplier},</if>
|
||||||
|
<if test="priceLimit != null">#{priceLimit},</if>
|
||||||
|
<if test="deliveryMonth != null">#{deliveryMonth},</if>
|
||||||
|
<if test="marginRatio != null">#{marginRatio},</if>
|
||||||
|
<if test="lastTradingDay != null">#{lastTradingDay},</if>
|
||||||
|
<if test="deliveryDate != null">#{deliveryDate},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="delFlag != null">#{delFlag},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
<if test="listingDate != null">#{listingDate},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateFutureBaseInfor" parameterType="FutureBaseInfor">
|
||||||
|
update invest_future_base_infor
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="name != null">name = #{name},</if>
|
||||||
|
<if test="code != null">code = #{code},</if>
|
||||||
|
<if test="standardId != null">standard_id = #{standardId},</if>
|
||||||
|
<if test="referencePrice != null">reference_price = #{referencePrice},</if>
|
||||||
|
<if test="tradingMultiplier != null">trading_multiplier = #{tradingMultiplier},</if>
|
||||||
|
<if test="priceLimit != null">price_limit = #{priceLimit},</if>
|
||||||
|
<if test="deliveryMonth != null">delivery_month = #{deliveryMonth},</if>
|
||||||
|
<if test="marginRatio != null">margin_ratio = #{marginRatio},</if>
|
||||||
|
<if test="lastTradingDay != null">last_trading_day = #{lastTradingDay},</if>
|
||||||
|
<if test="deliveryDate != null">delivery_date = #{deliveryDate},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
<if test="listingDate != null">listing_date = #{listingDate},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteFutureBaseInforById" parameterType="Long">
|
||||||
|
delete from invest_future_base_infor where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteFutureBaseInforByIds" parameterType="String">
|
||||||
|
delete from invest_future_base_infor where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
<update id="removeFutureBaseInforById" parameterType="Long">
|
||||||
|
update invest_future_base_infor set del_flag='1' where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<update id="removeFutureBaseInforByIds" parameterType="String">
|
||||||
|
update invest_future_base_infor set del_flag='1' where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</update>
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,181 @@
|
|||||||
|
<?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.intc.invest.mapper.FutureStandardInforMapper">
|
||||||
|
|
||||||
|
<resultMap type="FutureStandardInforVo" id="FutureStandardInforResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
<result property="code" column="code" />
|
||||||
|
<result property="exchangeId" column="exchange_id" />
|
||||||
|
<result property="exchangeName" column="exchange_name" />
|
||||||
|
<result property="tradingUnit" column="trading_unit" />
|
||||||
|
<result property="minimumPriceFluctuation" column="minimum_price_fluctuation" />
|
||||||
|
<result property="tradingTime" column="trading_time" />
|
||||||
|
<result property="priceLimit" column="price_limit" />
|
||||||
|
<result property="deliveryMonth" column="delivery_month" />
|
||||||
|
<result property="deliveryMethod" column="delivery_method" />
|
||||||
|
<result property="deliveryLocation" column="delivery_location" />
|
||||||
|
<result property="marginRatio" column="margin_ratio" />
|
||||||
|
<result property="pricingUnit" column="pricing_unit" />
|
||||||
|
<result property="lastTradingDay" column="last_trading_day" />
|
||||||
|
<result property="deliveryDate" column="delivery_date" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectFutureStandardInforVo">
|
||||||
|
select
|
||||||
|
a.id,
|
||||||
|
a.name,
|
||||||
|
a.type,
|
||||||
|
a.code,
|
||||||
|
a.exchange_id,
|
||||||
|
a.trading_unit,
|
||||||
|
a.minimum_price_fluctuation,
|
||||||
|
a.trading_time,
|
||||||
|
a.price_limit,
|
||||||
|
a.delivery_month,
|
||||||
|
a.delivery_method,
|
||||||
|
a.delivery_location,
|
||||||
|
a.margin_ratio,
|
||||||
|
a.pricing_unit,
|
||||||
|
a.last_trading_day,
|
||||||
|
a.delivery_date,
|
||||||
|
a.create_by,
|
||||||
|
a.create_time,
|
||||||
|
a.update_by,
|
||||||
|
a.update_time,
|
||||||
|
a.del_flag,
|
||||||
|
a.remark,
|
||||||
|
ie."name" as exchange_name
|
||||||
|
from
|
||||||
|
invest_future_standard_infor a
|
||||||
|
left join invest_exchange ie on ie.id =a.exchange_id
|
||||||
|
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectFutureStandardInforList" parameterType="FutureStandardInforDto" resultMap="FutureStandardInforResult">
|
||||||
|
<include refid="selectFutureStandardInforVo"/>
|
||||||
|
<where>
|
||||||
|
a.del_flag='0'
|
||||||
|
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
|
||||||
|
<if test="type != null and type != ''"> and a.type = #{type}</if>
|
||||||
|
<if test="code != null and code != ''"> and a.code = #{code}</if>
|
||||||
|
<if test="exchangeId != null "> and a.exchange_id = #{exchangeId}</if>
|
||||||
|
</where>
|
||||||
|
order by a.create_time desc
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectFutureStandardInforById" parameterType="Long" resultMap="FutureStandardInforResult">
|
||||||
|
<include refid="selectFutureStandardInforVo"/>
|
||||||
|
where a.id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertFutureStandardInfor" parameterType="FutureStandardInfor">
|
||||||
|
insert into invest_future_standard_infor
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">id,</if>
|
||||||
|
<if test="name != null and name != ''">name,</if>
|
||||||
|
<if test="type != null and type != ''">type,</if>
|
||||||
|
<if test="code != null and code != ''">code,</if>
|
||||||
|
<if test="exchangeId != null">exchange_id,</if>
|
||||||
|
<if test="tradingUnit != null">trading_unit,</if>
|
||||||
|
<if test="minimumPriceFluctuation != null">minimum_price_fluctuation,</if>
|
||||||
|
<if test="tradingTime != null">trading_time,</if>
|
||||||
|
<if test="priceLimit != null">price_limit,</if>
|
||||||
|
<if test="deliveryMonth != null">delivery_month,</if>
|
||||||
|
<if test="deliveryMethod != null">delivery_method,</if>
|
||||||
|
<if test="deliveryLocation != null">delivery_location,</if>
|
||||||
|
<if test="marginRatio != null">margin_ratio,</if>
|
||||||
|
<if test="pricingUnit != null">pricing_unit,</if>
|
||||||
|
<if test="lastTradingDay != null">last_trading_day,</if>
|
||||||
|
<if test="deliveryDate != null">delivery_date,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="delFlag != null">del_flag,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">#{id},</if>
|
||||||
|
<if test="name != null and name != ''">#{name},</if>
|
||||||
|
<if test="type != null and type != ''">#{type},</if>
|
||||||
|
<if test="code != null and code != ''">#{code},</if>
|
||||||
|
<if test="exchangeId != null">#{exchangeId},</if>
|
||||||
|
<if test="tradingUnit != null">#{tradingUnit},</if>
|
||||||
|
<if test="minimumPriceFluctuation != null">#{minimumPriceFluctuation},</if>
|
||||||
|
<if test="tradingTime != null">#{tradingTime},</if>
|
||||||
|
<if test="priceLimit != null">#{priceLimit},</if>
|
||||||
|
<if test="deliveryMonth != null">#{deliveryMonth},</if>
|
||||||
|
<if test="deliveryMethod != null">#{deliveryMethod},</if>
|
||||||
|
<if test="deliveryLocation != null">#{deliveryLocation},</if>
|
||||||
|
<if test="marginRatio != null">#{marginRatio},</if>
|
||||||
|
<if test="pricingUnit != null">#{pricingUnit},</if>
|
||||||
|
<if test="lastTradingDay != null">#{lastTradingDay},</if>
|
||||||
|
<if test="deliveryDate != null">#{deliveryDate},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="delFlag != null">#{delFlag},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateFutureStandardInfor" parameterType="FutureStandardInfor">
|
||||||
|
update invest_future_standard_infor
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="name != null and name != ''">name = #{name},</if>
|
||||||
|
<if test="type != null and type != ''">type = #{type},</if>
|
||||||
|
<if test="code != null and code != ''">code = #{code},</if>
|
||||||
|
<if test="exchangeId != null">exchange_id = #{exchangeId},</if>
|
||||||
|
<if test="tradingUnit != null">trading_unit = #{tradingUnit},</if>
|
||||||
|
<if test="minimumPriceFluctuation != null">minimum_price_fluctuation = #{minimumPriceFluctuation},</if>
|
||||||
|
<if test="tradingTime != null">trading_time = #{tradingTime},</if>
|
||||||
|
<if test="priceLimit != null">price_limit = #{priceLimit},</if>
|
||||||
|
<if test="deliveryMonth != null">delivery_month = #{deliveryMonth},</if>
|
||||||
|
<if test="deliveryMethod != null">delivery_method = #{deliveryMethod},</if>
|
||||||
|
<if test="deliveryLocation != null">delivery_location = #{deliveryLocation},</if>
|
||||||
|
<if test="marginRatio != null">margin_ratio = #{marginRatio},</if>
|
||||||
|
<if test="pricingUnit != null">pricing_unit = #{pricingUnit},</if>
|
||||||
|
<if test="lastTradingDay != null">last_trading_day = #{lastTradingDay},</if>
|
||||||
|
<if test="deliveryDate != null">delivery_date = #{deliveryDate},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteFutureStandardInforById" parameterType="Long">
|
||||||
|
delete from invest_future_standard_infor where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteFutureStandardInforByIds" parameterType="String">
|
||||||
|
delete from invest_future_standard_infor where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
<update id="removeFutureStandardInforById" parameterType="Long">
|
||||||
|
update invest_future_standard_infor set del_flag='1' where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<update id="removeFutureStandardInforByIds" parameterType="String">
|
||||||
|
update invest_future_standard_infor set del_flag='1' where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</update>
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
<?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.intc.invest.mapper.InvestExchangeMapper">
|
||||||
|
|
||||||
|
<resultMap type="InvestExchangeVo" id="InvestExchangeResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
<result property="code" column="code" />
|
||||||
|
<result property="shortName" column="short_name" />
|
||||||
|
<result property="foundingTime" column="founding_time" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="introduce" column="introduce" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectInvestExchangeVo">
|
||||||
|
select a.id, a.name, a.type, a.code, a.short_name, a.founding_time, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.remark, a.introduce from invest_exchange a
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectInvestExchangeList" parameterType="InvestExchangeDto" resultMap="InvestExchangeResult">
|
||||||
|
<include refid="selectInvestExchangeVo"/>
|
||||||
|
<where>
|
||||||
|
a.del_flag='0'
|
||||||
|
<if test="name != null and name != ''"> and (a.name like '%'|| #{name}||'%' or a.short_name like '%'|| #{name}||'%')</if>
|
||||||
|
<if test="type != null and type != ''"> and a.type = #{type}</if>
|
||||||
|
<if test="code != null and code != ''"> and a.code like '%'|| #{code}||'%'</if>
|
||||||
|
</where>
|
||||||
|
order by a.create_time desc
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectInvestExchangeById" parameterType="Long" resultMap="InvestExchangeResult">
|
||||||
|
<include refid="selectInvestExchangeVo"/>
|
||||||
|
where a.id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertInvestExchange" parameterType="InvestExchange">
|
||||||
|
insert into invest_exchange
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">id,</if>
|
||||||
|
<if test="name != null and name != ''">name,</if>
|
||||||
|
<if test="type != null and type != ''">type,</if>
|
||||||
|
<if test="code != null and code != ''">code,</if>
|
||||||
|
<if test="shortName != null and shortName != ''">short_name,</if>
|
||||||
|
<if test="foundingTime != null">founding_time,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="delFlag != null">del_flag,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
<if test="introduce != null">introduce,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">#{id},</if>
|
||||||
|
<if test="name != null and name != ''">#{name},</if>
|
||||||
|
<if test="type != null and type != ''">#{type},</if>
|
||||||
|
<if test="code != null and code != ''">#{code},</if>
|
||||||
|
<if test="shortName != null and shortName != ''">#{shortName},</if>
|
||||||
|
<if test="foundingTime != null">#{foundingTime},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="delFlag != null">#{delFlag},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
<if test="introduce != null">#{introduce},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateInvestExchange" parameterType="InvestExchange">
|
||||||
|
update invest_exchange
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="name != null and name != ''">name = #{name},</if>
|
||||||
|
<if test="type != null and type != ''">type = #{type},</if>
|
||||||
|
<if test="code != null and code != ''">code = #{code},</if>
|
||||||
|
<if test="shortName != null and shortName != ''">short_name = #{shortName},</if>
|
||||||
|
<if test="foundingTime != null">founding_time = #{foundingTime},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
<if test="introduce != null">introduce = #{introduce},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteInvestExchangeById" parameterType="Long">
|
||||||
|
delete from invest_exchange where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteInvestExchangeByIds" parameterType="String">
|
||||||
|
delete from invest_exchange where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
<update id="removeInvestExchangeById" parameterType="Long">
|
||||||
|
update invest_exchange set del_flag='1' where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<update id="removeInvestExchangeByIds" parameterType="String">
|
||||||
|
update invest_exchange set del_flag='1' where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</update>
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,158 @@
|
|||||||
|
<?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.intc.invest.mapper.StockBaseInforMapper">
|
||||||
|
|
||||||
|
<resultMap type="StockBaseInforVo" id="StockBaseInforResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
<result property="code" column="code" />
|
||||||
|
<result property="exchangeId" column="exchange_id" />
|
||||||
|
<result property="industryClassification" column="industry_classification" />
|
||||||
|
<result property="mainBusiness" column="main_business" />
|
||||||
|
<result property="listingDate" column="listing_date" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="introduce" column="introduce" />
|
||||||
|
<result property="region" column="region" />
|
||||||
|
<result property="shortName" column="short_name" />
|
||||||
|
<result property="exchangeName" column="exchange_name" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectStockBaseInforVo">
|
||||||
|
select
|
||||||
|
a.id,
|
||||||
|
a.name,
|
||||||
|
a.type,
|
||||||
|
a.code,
|
||||||
|
a.exchange_id,
|
||||||
|
a.industry_classification,
|
||||||
|
a.main_business,
|
||||||
|
a.listing_date,
|
||||||
|
a.create_by,
|
||||||
|
a.create_time,
|
||||||
|
a.update_by,
|
||||||
|
a.update_time,
|
||||||
|
a.del_flag,
|
||||||
|
a.remark,
|
||||||
|
a.introduce,
|
||||||
|
a.region,
|
||||||
|
a.short_name,
|
||||||
|
ie."name" as exchange_name
|
||||||
|
from
|
||||||
|
invest_stock_base_infor a
|
||||||
|
left join invest_exchange ie on
|
||||||
|
ie.id = a.exchange_id
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectStockBaseInforList" parameterType="StockBaseInforDto" resultMap="StockBaseInforResult">
|
||||||
|
<include refid="selectStockBaseInforVo"/>
|
||||||
|
<where>
|
||||||
|
a.del_flag='0'
|
||||||
|
<if test="name != null and name != ''"> and (a.name like '%'|| #{name}||'%' or a.short_name like '%'|| #{name}||'%')</if>
|
||||||
|
<if test="type != null and type != ''"> and a.type = #{type}</if>
|
||||||
|
<if test="code != null and code != ''"> and a.code like '%'|| #{code}||'%'</if>
|
||||||
|
<if test="exchangeId != null "> and a.exchange_id = #{exchangeId}</if>
|
||||||
|
<if test="industryClassification != null and industryClassification != ''"> and a.industry_classification = #{industryClassification}</if>
|
||||||
|
<if test="shortName != null and shortName != ''"> and a.short_name like '%'|| #{shortName}||'%'</if>
|
||||||
|
</where>
|
||||||
|
order by a.create_time desc
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectStockBaseInforById" parameterType="Long" resultMap="StockBaseInforResult">
|
||||||
|
<include refid="selectStockBaseInforVo"/>
|
||||||
|
where a.id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertStockBaseInfor" parameterType="StockBaseInfor">
|
||||||
|
insert into invest_stock_base_infor
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">id,</if>
|
||||||
|
<if test="name != null and name != ''">name,</if>
|
||||||
|
<if test="type != null">type,</if>
|
||||||
|
<if test="code != null and code != ''">code,</if>
|
||||||
|
<if test="exchangeId != null">exchange_id,</if>
|
||||||
|
<if test="industryClassification != null">industry_classification,</if>
|
||||||
|
<if test="mainBusiness != null">main_business,</if>
|
||||||
|
<if test="listingDate != null ">listing_date,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="delFlag != null">del_flag,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
<if test="introduce != null">introduce,</if>
|
||||||
|
<if test="region != null">region,</if>
|
||||||
|
<if test="shortName != null and shortName != ''">short_name,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">#{id},</if>
|
||||||
|
<if test="name != null and name != ''">#{name},</if>
|
||||||
|
<if test="type != null">#{type},</if>
|
||||||
|
<if test="code != null and code != ''">#{code},</if>
|
||||||
|
<if test="exchangeId != null">#{exchangeId},</if>
|
||||||
|
<if test="industryClassification != null">#{industryClassification},</if>
|
||||||
|
<if test="mainBusiness != null">#{mainBusiness},</if>
|
||||||
|
<if test="listingDate != null ">#{listingDate},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="delFlag != null">#{delFlag},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
<if test="introduce != null">#{introduce},</if>
|
||||||
|
<if test="region != null">#{region},</if>
|
||||||
|
<if test="shortName != null and shortName != ''">#{shortName},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateStockBaseInfor" parameterType="StockBaseInfor">
|
||||||
|
update invest_stock_base_infor
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="name != null and name != ''">name = #{name},</if>
|
||||||
|
<if test="type != null">type = #{type},</if>
|
||||||
|
<if test="code != null and code != ''">code = #{code},</if>
|
||||||
|
<if test="exchangeId != null">exchange_id = #{exchangeId},</if>
|
||||||
|
<if test="industryClassification != null">industry_classification = #{industryClassification},</if>
|
||||||
|
<if test="mainBusiness != null">main_business = #{mainBusiness},</if>
|
||||||
|
<if test="listingDate != null ">listing_date = #{listingDate},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
<if test="introduce != null">introduce = #{introduce},</if>
|
||||||
|
<if test="region != null">region = #{region},</if>
|
||||||
|
<if test="shortName != null and shortName != ''">short_name = #{shortName},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteStockBaseInforById" parameterType="Long">
|
||||||
|
delete from invest_stock_base_infor where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteStockBaseInforByIds" parameterType="String">
|
||||||
|
delete from invest_stock_base_infor where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
<update id="removeStockBaseInforById" parameterType="Long">
|
||||||
|
update invest_stock_base_infor set del_flag='1' where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<update id="removeStockBaseInforByIds" parameterType="String">
|
||||||
|
update invest_stock_base_infor set del_flag='1' where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</update>
|
||||||
|
</mapper>
|
||||||
Reference in New Issue
Block a user