新增trade模块
This commit is contained in:
parent
9c9c29f7ac
commit
f3896051b3
|
|
@ -0,0 +1,19 @@
|
|||
-- 菜单 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('投资品种', '3', '1', '/mengyu/goods', 'C', '0', 'mengyu:goods:view', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '投资品种菜单');
|
||||
|
||||
-- 按钮父菜单ID
|
||||
SELECT @parentId := LAST_INSERT_ID();
|
||||
|
||||
-- 按钮 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('投资品种查询', @parentId, '1', '#', 'F', '0', 'mengyu:goods:list', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('投资品种新增', @parentId, '2', '#', 'F', '0', 'mengyu:goods:add', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('投资品种修改', @parentId, '3', '#', 'F', '0', 'mengyu:goods:edit', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('投资品种删除', @parentId, '4', '#', 'F', '0', 'mengyu:goods:remove', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
-- 菜单 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('计划模型实例', '3', '1', '/mengyu/goodsTradeModelIns', 'C', '0', 'mengyu:goodsTradeModelIns:view', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '计划模型实例菜单');
|
||||
|
||||
-- 按钮父菜单ID
|
||||
SELECT @parentId := LAST_INSERT_ID();
|
||||
|
||||
-- 按钮 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('计划模型实例查询', @parentId, '1', '#', 'F', '0', 'mengyu:goodsTradeModelIns:list', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('计划模型实例新增', @parentId, '2', '#', 'F', '0', 'mengyu:goodsTradeModelIns:add', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('计划模型实例修改', @parentId, '3', '#', 'F', '0', 'mengyu:goodsTradeModelIns:edit', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('计划模型实例删除', @parentId, '4', '#', 'F', '0', 'mengyu:goodsTradeModelIns:remove', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
-- 菜单 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('交易计划操作', '3', '1', '/mengyu/goodsTradeModelInsNode', 'C', '0', 'mengyu:goodsTradeModelInsNode:view', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '交易计划操作菜单');
|
||||
|
||||
-- 按钮父菜单ID
|
||||
SELECT @parentId := LAST_INSERT_ID();
|
||||
|
||||
-- 按钮 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('交易计划操作查询', @parentId, '1', '#', 'F', '0', 'mengyu:goodsTradeModelInsNode:list', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('交易计划操作新增', @parentId, '2', '#', 'F', '0', 'mengyu:goodsTradeModelInsNode:add', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('交易计划操作修改', @parentId, '3', '#', 'F', '0', 'mengyu:goodsTradeModelInsNode:edit', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('交易计划操作删除', @parentId, '4', '#', 'F', '0', 'mengyu:goodsTradeModelInsNode:remove', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
-- 菜单 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('品种计划模型', '3', '1', '/mengyu/goodsTradeModel', 'C', '0', 'mengyu:goodsTradeModel:view', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '品种计划模型菜单');
|
||||
|
||||
-- 按钮父菜单ID
|
||||
SELECT @parentId := LAST_INSERT_ID();
|
||||
|
||||
-- 按钮 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('品种计划模型查询', @parentId, '1', '#', 'F', '0', 'mengyu:goodsTradeModel:list', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('品种计划模型新增', @parentId, '2', '#', 'F', '0', 'mengyu:goodsTradeModel:add', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('品种计划模型修改', @parentId, '3', '#', 'F', '0', 'mengyu:goodsTradeModel:edit', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('品种计划模型删除', @parentId, '4', '#', 'F', '0', 'mengyu:goodsTradeModel:remove', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,19 @@
|
|||
-- 菜单 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('资金池交明细', '3', '1', '/mengyu/moneyPoolLog', 'C', '0', 'mengyu:moneyPoolLog:view', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '资金池交明细菜单');
|
||||
|
||||
-- 按钮父菜单ID
|
||||
SELECT @parentId := LAST_INSERT_ID();
|
||||
|
||||
-- 按钮 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('资金池交明细查询', @parentId, '1', '#', 'F', '0', 'mengyu:moneyPoolLog:list', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('资金池交明细新增', @parentId, '2', '#', 'F', '0', 'mengyu:moneyPoolLog:add', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('资金池交明细修改', @parentId, '3', '#', 'F', '0', 'mengyu:moneyPoolLog:edit', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('资金池交明细删除', @parentId, '4', '#', 'F', '0', 'mengyu:moneyPoolLog:remove', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
-- 菜单 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('资金池', '3', '1', '/mengyu/moneyPool', 'C', '0', 'mengyu:moneyPool:view', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '资金池菜单');
|
||||
|
||||
-- 按钮父菜单ID
|
||||
SELECT @parentId := LAST_INSERT_ID();
|
||||
|
||||
-- 按钮 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('资金池查询', @parentId, '1', '#', 'F', '0', 'mengyu:moneyPool:list', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('资金池新增', @parentId, '2', '#', 'F', '0', 'mengyu:moneyPool:add', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('资金池修改', @parentId, '3', '#', 'F', '0', 'mengyu:moneyPool:edit', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('资金池删除', @parentId, '4', '#', 'F', '0', 'mengyu:moneyPool:remove', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
-- 菜单 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('年度计划', '3', '1', '/mengyu/yearPlan', 'C', '0', 'mengyu:yearPlan:view', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '年度计划菜单');
|
||||
|
||||
-- 按钮父菜单ID
|
||||
SELECT @parentId := LAST_INSERT_ID();
|
||||
|
||||
-- 按钮 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('年度计划查询', @parentId, '1', '#', 'F', '0', 'mengyu:yearPlan:list', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('年度计划新增', @parentId, '2', '#', 'F', '0', 'mengyu:yearPlan:add', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('年度计划修改', @parentId, '3', '#', 'F', '0', 'mengyu:yearPlan:edit', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url,menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('年度计划删除', @parentId, '4', '#', 'F', '0', 'mengyu:yearPlan:remove', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.cronie;
|
||||
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 启动程序
|
||||
*
|
||||
* @author cronie
|
||||
*/
|
||||
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
|
||||
@MapperScan({"com.ruoyi.*.mapper","com.cronie.*.mapper"})
|
||||
public class MengYuApplication
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
// System.setProperty("spring.devtools.restart.enabled", "false");
|
||||
SpringApplication.run(MengYuApplication.class, args);
|
||||
System.out.println("(♥◠‿◠)ノ゙ mengyu启动成功 ლ(´ڡ`ლ)゙ \n" +
|
||||
" .-------. ____ __ \n" +
|
||||
" | _ _ \\ \\ \\ / / \n" +
|
||||
" | ( ' ) | \\ _. / ' \n" +
|
||||
" |(_ o _) / _( )_ .' \n" +
|
||||
" | (_,_).' __ ___(_ o _)' \n" +
|
||||
" | |\\ \\ | || |(_,_)' \n" +
|
||||
" | | \\ `' /| `-' / \n" +
|
||||
" | | \\ / \\ / \n" +
|
||||
" ''-' `'-' `-..-' ");
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
//package com.cronie;
|
||||
//
|
||||
//import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
//import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||||
//
|
||||
///**
|
||||
// * web容器中进行部署
|
||||
// *
|
||||
// * @author ruoyi
|
||||
// */
|
||||
//public class MengYuServletInitializer extends SpringBootServletInitializer
|
||||
//{
|
||||
// @Override
|
||||
// protected SpringApplicationBuilder configure(SpringApplicationBuilder application)
|
||||
// {
|
||||
// return application.sources(MengYuApplication.class);
|
||||
// }
|
||||
//}
|
||||
|
|
@ -0,0 +1,108 @@
|
|||
package com.cronie.mengyu.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.base.BaseEntity;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 投资品种表 my_goods
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public class Goods extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 品种代码 */
|
||||
private String code;
|
||||
/** 品种名称 */
|
||||
private String name;
|
||||
/** 品种类型 (股标,基金等) */
|
||||
private Integer codeType;
|
||||
/** 行业类型(军工,证券等) */
|
||||
private Integer industryType;
|
||||
/** 板块类型(上证,深证 创业板等) */
|
||||
private Integer plateType;
|
||||
/** 创建人 */
|
||||
private Integer creater;
|
||||
/** 创建时间 */
|
||||
private Date createTime;
|
||||
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setCodeType(Integer codeType)
|
||||
{
|
||||
this.codeType = codeType;
|
||||
}
|
||||
|
||||
public Integer getCodeType()
|
||||
{
|
||||
return codeType;
|
||||
}
|
||||
public void setIndustryType(Integer industryType)
|
||||
{
|
||||
this.industryType = industryType;
|
||||
}
|
||||
|
||||
public Integer getIndustryType()
|
||||
{
|
||||
return industryType;
|
||||
}
|
||||
public void setPlateType(Integer plateType)
|
||||
{
|
||||
this.plateType = plateType;
|
||||
}
|
||||
|
||||
public Integer getPlateType()
|
||||
{
|
||||
return plateType;
|
||||
}
|
||||
public void setCreater(Integer creater)
|
||||
{
|
||||
this.creater = creater;
|
||||
}
|
||||
|
||||
public Integer getCreater()
|
||||
{
|
||||
return creater;
|
||||
}
|
||||
public void setCreateTime(Date createTime)
|
||||
{
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getCreateTime()
|
||||
{
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("code", getCode())
|
||||
.append("name", getName())
|
||||
.append("codeType", getCodeType())
|
||||
.append("industryType", getIndustryType())
|
||||
.append("plateType", getPlateType())
|
||||
.append("creater", getCreater())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,135 @@
|
|||
package com.cronie.mengyu.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import com.ruoyi.common.base.BaseEntity;
|
||||
|
||||
/**
|
||||
* 品种计划模型表 my_goods_trade_model
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public class GoodsTradeModel extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 模型ID */
|
||||
private Integer modelId;
|
||||
/** 品种代码 */
|
||||
private String code;
|
||||
/** 基础成交量 */
|
||||
private BigDecimal basicVolumes;
|
||||
/** 模型状态 (启用,停用) */
|
||||
private Integer modelStatus;
|
||||
/** 建仓价 */
|
||||
private BigDecimal buildingPrice;
|
||||
/** 平仓价 */
|
||||
private BigDecimal exitPrice;
|
||||
/** 止损价 */
|
||||
private BigDecimal stopPrice;
|
||||
/** 创建人 */
|
||||
private Integer creater;
|
||||
/** 创建时间 */
|
||||
private Date createTime;
|
||||
|
||||
public void setModelId(Integer modelId)
|
||||
{
|
||||
this.modelId = modelId;
|
||||
}
|
||||
|
||||
public Integer getModelId()
|
||||
{
|
||||
return modelId;
|
||||
}
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
public void setBasicVolumes(BigDecimal basicVolumes)
|
||||
{
|
||||
this.basicVolumes = basicVolumes;
|
||||
}
|
||||
|
||||
public BigDecimal getBasicVolumes()
|
||||
{
|
||||
return basicVolumes;
|
||||
}
|
||||
public void setModelStatus(Integer modelStatus)
|
||||
{
|
||||
this.modelStatus = modelStatus;
|
||||
}
|
||||
|
||||
public Integer getModelStatus()
|
||||
{
|
||||
return modelStatus;
|
||||
}
|
||||
public void setBuildingPrice(BigDecimal buildingPrice)
|
||||
{
|
||||
this.buildingPrice = buildingPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getBuildingPrice()
|
||||
{
|
||||
return buildingPrice;
|
||||
}
|
||||
public void setExitPrice(BigDecimal exitPrice)
|
||||
{
|
||||
this.exitPrice = exitPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getExitPrice()
|
||||
{
|
||||
return exitPrice;
|
||||
}
|
||||
public void setStopPrice(BigDecimal stopPrice)
|
||||
{
|
||||
this.stopPrice = stopPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getStopPrice()
|
||||
{
|
||||
return stopPrice;
|
||||
}
|
||||
public void setCreater(Integer creater)
|
||||
{
|
||||
this.creater = creater;
|
||||
}
|
||||
|
||||
public Integer getCreater()
|
||||
{
|
||||
return creater;
|
||||
}
|
||||
public void setCreateTime(Date createTime)
|
||||
{
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getCreateTime()
|
||||
{
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("modelId", getModelId())
|
||||
.append("code", getCode())
|
||||
.append("basicVolumes", getBasicVolumes())
|
||||
.append("modelStatus", getModelStatus())
|
||||
.append("buildingPrice", getBuildingPrice())
|
||||
.append("exitPrice", getExitPrice())
|
||||
.append("stopPrice", getStopPrice())
|
||||
.append("creater", getCreater())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
package com.cronie.mengyu.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.base.BaseEntity;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 计划模型实例表 my_goods_trade_model_ins
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public class GoodsTradeModelIns extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 计划实例 ID */
|
||||
private Integer insId;
|
||||
/** 模型ID */
|
||||
private Integer modelId;
|
||||
/** 计划状态 */
|
||||
private Integer insStatus;
|
||||
/** 创建人 */
|
||||
private Integer creater;
|
||||
/** 创建时间 */
|
||||
private Date createTime;
|
||||
|
||||
public void setInsId(Integer insId)
|
||||
{
|
||||
this.insId = insId;
|
||||
}
|
||||
|
||||
public Integer getInsId()
|
||||
{
|
||||
return insId;
|
||||
}
|
||||
public void setModelId(Integer modelId)
|
||||
{
|
||||
this.modelId = modelId;
|
||||
}
|
||||
|
||||
public Integer getModelId()
|
||||
{
|
||||
return modelId;
|
||||
}
|
||||
public void setInsStatus(Integer insStatus)
|
||||
{
|
||||
this.insStatus = insStatus;
|
||||
}
|
||||
|
||||
public Integer getInsStatus()
|
||||
{
|
||||
return insStatus;
|
||||
}
|
||||
public void setCreater(Integer creater)
|
||||
{
|
||||
this.creater = creater;
|
||||
}
|
||||
|
||||
public Integer getCreater()
|
||||
{
|
||||
return creater;
|
||||
}
|
||||
public void setCreateTime(Date createTime)
|
||||
{
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getCreateTime()
|
||||
{
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("insId", getInsId())
|
||||
.append("modelId", getModelId())
|
||||
.append("insStatus", getInsStatus())
|
||||
.append("creater", getCreater())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,135 @@
|
|||
package com.cronie.mengyu.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import com.ruoyi.common.base.BaseEntity;
|
||||
|
||||
/**
|
||||
* 交易计划操作表 my_goods_trade_model_ins_node
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public class GoodsTradeModelInsNode extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 操作流水号 */
|
||||
private Integer nodeId;
|
||||
/** 实例号 */
|
||||
private Integer insId;
|
||||
/** 交易价格 */
|
||||
private BigDecimal price;
|
||||
/** 成交份额 */
|
||||
private BigDecimal volumes;
|
||||
/** 交易时间 */
|
||||
private Date tradeTime;
|
||||
/** 创建人 */
|
||||
private Integer creater;
|
||||
/** 创建时间 */
|
||||
private Date createTime;
|
||||
/** 交易类型(建仓,加仓,减仓,平仓,止损) */
|
||||
private Integer tradeType;
|
||||
/** 交易笔记 */
|
||||
private String tradeNote;
|
||||
|
||||
public void setNodeId(Integer nodeId)
|
||||
{
|
||||
this.nodeId = nodeId;
|
||||
}
|
||||
|
||||
public Integer getNodeId()
|
||||
{
|
||||
return nodeId;
|
||||
}
|
||||
public void setInsId(Integer insId)
|
||||
{
|
||||
this.insId = insId;
|
||||
}
|
||||
|
||||
public Integer getInsId()
|
||||
{
|
||||
return insId;
|
||||
}
|
||||
public void setPrice(BigDecimal price)
|
||||
{
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public BigDecimal getPrice()
|
||||
{
|
||||
return price;
|
||||
}
|
||||
public void setVolumes(BigDecimal volumes)
|
||||
{
|
||||
this.volumes = volumes;
|
||||
}
|
||||
|
||||
public BigDecimal getVolumes()
|
||||
{
|
||||
return volumes;
|
||||
}
|
||||
public void setTradeTime(Date tradeTime)
|
||||
{
|
||||
this.tradeTime = tradeTime;
|
||||
}
|
||||
|
||||
public Date getTradeTime()
|
||||
{
|
||||
return tradeTime;
|
||||
}
|
||||
public void setCreater(Integer creater)
|
||||
{
|
||||
this.creater = creater;
|
||||
}
|
||||
|
||||
public Integer getCreater()
|
||||
{
|
||||
return creater;
|
||||
}
|
||||
public void setCreateTime(Date createTime)
|
||||
{
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getCreateTime()
|
||||
{
|
||||
return createTime;
|
||||
}
|
||||
public void setTradeType(Integer tradeType)
|
||||
{
|
||||
this.tradeType = tradeType;
|
||||
}
|
||||
|
||||
public Integer getTradeType()
|
||||
{
|
||||
return tradeType;
|
||||
}
|
||||
public void setTradeNote(String tradeNote)
|
||||
{
|
||||
this.tradeNote = tradeNote;
|
||||
}
|
||||
|
||||
public String getTradeNote()
|
||||
{
|
||||
return tradeNote;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("nodeId", getNodeId())
|
||||
.append("insId", getInsId())
|
||||
.append("price", getPrice())
|
||||
.append("volumes", getVolumes())
|
||||
.append("tradeTime", getTradeTime())
|
||||
.append("creater", getCreater())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("tradeType", getTradeType())
|
||||
.append("tradeNote", getTradeNote())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,75 @@
|
|||
package com.cronie.mengyu.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import com.ruoyi.common.base.BaseEntity;
|
||||
|
||||
/**
|
||||
* 资金池表 my_money_pool
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public class MoneyPool extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 创建人 */
|
||||
private Integer creater;
|
||||
/** 创建时间 */
|
||||
private Date createTime;
|
||||
/** 资金池金额 单位(元) */
|
||||
private BigDecimal moneyPool;
|
||||
/** 资金池ID=用户ID */
|
||||
private Date moneyPoolId;
|
||||
|
||||
public void setCreater(Integer creater)
|
||||
{
|
||||
this.creater = creater;
|
||||
}
|
||||
|
||||
public Integer getCreater()
|
||||
{
|
||||
return creater;
|
||||
}
|
||||
public void setCreateTime(Date createTime)
|
||||
{
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getCreateTime()
|
||||
{
|
||||
return createTime;
|
||||
}
|
||||
public void setMoneyPool(BigDecimal moneyPool)
|
||||
{
|
||||
this.moneyPool = moneyPool;
|
||||
}
|
||||
|
||||
public BigDecimal getMoneyPool()
|
||||
{
|
||||
return moneyPool;
|
||||
}
|
||||
public void setMoneyPoolId(Date moneyPoolId)
|
||||
{
|
||||
this.moneyPoolId = moneyPoolId;
|
||||
}
|
||||
|
||||
public Date getMoneyPoolId()
|
||||
{
|
||||
return moneyPoolId;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("creater", getCreater())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("moneyPool", getMoneyPool())
|
||||
.append("moneyPoolId", getMoneyPoolId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
package com.cronie.mengyu.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import com.ruoyi.common.base.BaseEntity;
|
||||
|
||||
/**
|
||||
* 资金池交明细表 my_money_pool_log
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public class MoneyPoolLog extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 交易类型 (支出/收入) */
|
||||
private Integer billType;
|
||||
/** 交易后的资金池金额 */
|
||||
private BigDecimal moneyPoolLog;
|
||||
/** 交易金额 */
|
||||
private BigDecimal trademMoney;
|
||||
/** 资金池ID号 */
|
||||
private Integer moneyPoolId;
|
||||
/** 资金池流水号ID=交易ID号 */
|
||||
private Integer nodeId;
|
||||
|
||||
public void setBillType(Integer billType)
|
||||
{
|
||||
this.billType = billType;
|
||||
}
|
||||
|
||||
public Integer getBillType()
|
||||
{
|
||||
return billType;
|
||||
}
|
||||
public void setMoneyPoolLog(BigDecimal moneyPoolLog)
|
||||
{
|
||||
this.moneyPoolLog = moneyPoolLog;
|
||||
}
|
||||
|
||||
public BigDecimal getMoneyPoolLog()
|
||||
{
|
||||
return moneyPoolLog;
|
||||
}
|
||||
public void setTrademMoney(BigDecimal trademMoney)
|
||||
{
|
||||
this.trademMoney = trademMoney;
|
||||
}
|
||||
|
||||
public BigDecimal getTrademMoney()
|
||||
{
|
||||
return trademMoney;
|
||||
}
|
||||
public void setMoneyPoolId(Integer moneyPoolId)
|
||||
{
|
||||
this.moneyPoolId = moneyPoolId;
|
||||
}
|
||||
|
||||
public Integer getMoneyPoolId()
|
||||
{
|
||||
return moneyPoolId;
|
||||
}
|
||||
public void setNodeId(Integer nodeId)
|
||||
{
|
||||
this.nodeId = nodeId;
|
||||
}
|
||||
|
||||
public Integer getNodeId()
|
||||
{
|
||||
return nodeId;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("billType", getBillType())
|
||||
.append("moneyPoolLog", getMoneyPoolLog())
|
||||
.append("trademMoney", getTrademMoney())
|
||||
.append("moneyPoolId", getMoneyPoolId())
|
||||
.append("nodeId", getNodeId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,99 @@
|
|||
package com.cronie.mengyu.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import com.ruoyi.common.base.BaseEntity;
|
||||
|
||||
/**
|
||||
* 年度计划表 my_year_plan
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public class YearPlan extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 年 */
|
||||
private String year;
|
||||
/** 预期盈利 */
|
||||
private BigDecimal profit;
|
||||
/** 计划状态 */
|
||||
private Integer planStatus;
|
||||
/** 任务状态 */
|
||||
private Integer taskStatus;
|
||||
/** 创建时间 */
|
||||
private Date createTime;
|
||||
/** 创建人 */
|
||||
private Integer creater;
|
||||
|
||||
public void setYear(String year)
|
||||
{
|
||||
this.year = year;
|
||||
}
|
||||
|
||||
public String getYear()
|
||||
{
|
||||
return year;
|
||||
}
|
||||
public void setProfit(BigDecimal profit)
|
||||
{
|
||||
this.profit = profit;
|
||||
}
|
||||
|
||||
public BigDecimal getProfit()
|
||||
{
|
||||
return profit;
|
||||
}
|
||||
public void setPlanStatus(Integer planStatus)
|
||||
{
|
||||
this.planStatus = planStatus;
|
||||
}
|
||||
|
||||
public Integer getPlanStatus()
|
||||
{
|
||||
return planStatus;
|
||||
}
|
||||
public void setTaskStatus(Integer taskStatus)
|
||||
{
|
||||
this.taskStatus = taskStatus;
|
||||
}
|
||||
|
||||
public Integer getTaskStatus()
|
||||
{
|
||||
return taskStatus;
|
||||
}
|
||||
public void setCreateTime(Date createTime)
|
||||
{
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getCreateTime()
|
||||
{
|
||||
return createTime;
|
||||
}
|
||||
public void setCreater(Integer creater)
|
||||
{
|
||||
this.creater = creater;
|
||||
}
|
||||
|
||||
public Integer getCreater()
|
||||
{
|
||||
return creater;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("year", getYear())
|
||||
.append("profit", getProfit())
|
||||
.append("planStatus", getPlanStatus())
|
||||
.append("taskStatus", getTaskStatus())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("creater", getCreater())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.cronie.mengyu.mapper;
|
||||
|
||||
import com.cronie.mengyu.domain.Goods;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 投资品种 数据层
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public interface GoodsMapper
|
||||
{
|
||||
/**
|
||||
* 查询投资品种信息
|
||||
*
|
||||
* @param code 投资品种ID
|
||||
* @return 投资品种信息
|
||||
*/
|
||||
public Goods selectGoodsById(String code);
|
||||
|
||||
/**
|
||||
* 查询投资品种列表
|
||||
*
|
||||
* @param goods 投资品种信息
|
||||
* @return 投资品种集合
|
||||
*/
|
||||
public List<Goods> selectGoodsList(Goods goods);
|
||||
|
||||
/**
|
||||
* 新增投资品种
|
||||
*
|
||||
* @param goods 投资品种信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGoods(Goods goods);
|
||||
|
||||
/**
|
||||
* 修改投资品种
|
||||
*
|
||||
* @param goods 投资品种信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGoods(Goods goods);
|
||||
|
||||
/**
|
||||
* 删除投资品种
|
||||
*
|
||||
* @param code 投资品种ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGoodsById(String code);
|
||||
|
||||
/**
|
||||
* 批量删除投资品种
|
||||
*
|
||||
* @param codes 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGoodsByIds(String[] codes);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.cronie.mengyu.mapper;
|
||||
|
||||
import com.cronie.mengyu.domain.GoodsTradeModelIns;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 计划模型实例 数据层
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public interface GoodsTradeModelInsMapper
|
||||
{
|
||||
/**
|
||||
* 查询计划模型实例信息
|
||||
*
|
||||
* @param insId 计划模型实例ID
|
||||
* @return 计划模型实例信息
|
||||
*/
|
||||
public GoodsTradeModelIns selectGoodsTradeModelInsById(Integer insId);
|
||||
|
||||
/**
|
||||
* 查询计划模型实例列表
|
||||
*
|
||||
* @param goodsTradeModelIns 计划模型实例信息
|
||||
* @return 计划模型实例集合
|
||||
*/
|
||||
public List<GoodsTradeModelIns> selectGoodsTradeModelInsList(GoodsTradeModelIns goodsTradeModelIns);
|
||||
|
||||
/**
|
||||
* 新增计划模型实例
|
||||
*
|
||||
* @param goodsTradeModelIns 计划模型实例信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGoodsTradeModelIns(GoodsTradeModelIns goodsTradeModelIns);
|
||||
|
||||
/**
|
||||
* 修改计划模型实例
|
||||
*
|
||||
* @param goodsTradeModelIns 计划模型实例信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGoodsTradeModelIns(GoodsTradeModelIns goodsTradeModelIns);
|
||||
|
||||
/**
|
||||
* 删除计划模型实例
|
||||
*
|
||||
* @param insId 计划模型实例ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGoodsTradeModelInsById(Integer insId);
|
||||
|
||||
/**
|
||||
* 批量删除计划模型实例
|
||||
*
|
||||
* @param insIds 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGoodsTradeModelInsByIds(String[] insIds);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.cronie.mengyu.mapper;
|
||||
|
||||
import com.cronie.mengyu.domain.GoodsTradeModelInsNode;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 交易计划操作 数据层
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public interface GoodsTradeModelInsNodeMapper
|
||||
{
|
||||
/**
|
||||
* 查询交易计划操作信息
|
||||
*
|
||||
* @param nodeId 交易计划操作ID
|
||||
* @return 交易计划操作信息
|
||||
*/
|
||||
public GoodsTradeModelInsNode selectGoodsTradeModelInsNodeById(Integer nodeId);
|
||||
|
||||
/**
|
||||
* 查询交易计划操作列表
|
||||
*
|
||||
* @param goodsTradeModelInsNode 交易计划操作信息
|
||||
* @return 交易计划操作集合
|
||||
*/
|
||||
public List<GoodsTradeModelInsNode> selectGoodsTradeModelInsNodeList(GoodsTradeModelInsNode goodsTradeModelInsNode);
|
||||
|
||||
/**
|
||||
* 新增交易计划操作
|
||||
*
|
||||
* @param goodsTradeModelInsNode 交易计划操作信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGoodsTradeModelInsNode(GoodsTradeModelInsNode goodsTradeModelInsNode);
|
||||
|
||||
/**
|
||||
* 修改交易计划操作
|
||||
*
|
||||
* @param goodsTradeModelInsNode 交易计划操作信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGoodsTradeModelInsNode(GoodsTradeModelInsNode goodsTradeModelInsNode);
|
||||
|
||||
/**
|
||||
* 删除交易计划操作
|
||||
*
|
||||
* @param nodeId 交易计划操作ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGoodsTradeModelInsNodeById(Integer nodeId);
|
||||
|
||||
/**
|
||||
* 批量删除交易计划操作
|
||||
*
|
||||
* @param nodeIds 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGoodsTradeModelInsNodeByIds(String[] nodeIds);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.cronie.mengyu.mapper;
|
||||
|
||||
import com.cronie.mengyu.domain.GoodsTradeModel;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 品种计划模型 数据层
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public interface GoodsTradeModelMapper
|
||||
{
|
||||
/**
|
||||
* 查询品种计划模型信息
|
||||
*
|
||||
* @param modelId 品种计划模型ID
|
||||
* @return 品种计划模型信息
|
||||
*/
|
||||
public GoodsTradeModel selectGoodsTradeModelById(Integer modelId);
|
||||
|
||||
/**
|
||||
* 查询品种计划模型列表
|
||||
*
|
||||
* @param goodsTradeModel 品种计划模型信息
|
||||
* @return 品种计划模型集合
|
||||
*/
|
||||
public List<GoodsTradeModel> selectGoodsTradeModelList(GoodsTradeModel goodsTradeModel);
|
||||
|
||||
/**
|
||||
* 新增品种计划模型
|
||||
*
|
||||
* @param goodsTradeModel 品种计划模型信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGoodsTradeModel(GoodsTradeModel goodsTradeModel);
|
||||
|
||||
/**
|
||||
* 修改品种计划模型
|
||||
*
|
||||
* @param goodsTradeModel 品种计划模型信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGoodsTradeModel(GoodsTradeModel goodsTradeModel);
|
||||
|
||||
/**
|
||||
* 删除品种计划模型
|
||||
*
|
||||
* @param modelId 品种计划模型ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGoodsTradeModelById(Integer modelId);
|
||||
|
||||
/**
|
||||
* 批量删除品种计划模型
|
||||
*
|
||||
* @param modelIds 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGoodsTradeModelByIds(String[] modelIds);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.cronie.mengyu.mapper;
|
||||
|
||||
import com.cronie.mengyu.domain.MoneyPoolLog;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 资金池交明细 数据层
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public interface MoneyPoolLogMapper
|
||||
{
|
||||
/**
|
||||
* 查询资金池交明细信息
|
||||
*
|
||||
* @param billType 资金池交明细ID
|
||||
* @return 资金池交明细信息
|
||||
*/
|
||||
public MoneyPoolLog selectMoneyPoolLogById(Integer billType);
|
||||
|
||||
/**
|
||||
* 查询资金池交明细列表
|
||||
*
|
||||
* @param moneyPoolLog 资金池交明细信息
|
||||
* @return 资金池交明细集合
|
||||
*/
|
||||
public List<MoneyPoolLog> selectMoneyPoolLogList(MoneyPoolLog moneyPoolLog);
|
||||
|
||||
/**
|
||||
* 新增资金池交明细
|
||||
*
|
||||
* @param moneyPoolLog 资金池交明细信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMoneyPoolLog(MoneyPoolLog moneyPoolLog);
|
||||
|
||||
/**
|
||||
* 修改资金池交明细
|
||||
*
|
||||
* @param moneyPoolLog 资金池交明细信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMoneyPoolLog(MoneyPoolLog moneyPoolLog);
|
||||
|
||||
/**
|
||||
* 删除资金池交明细
|
||||
*
|
||||
* @param billType 资金池交明细ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMoneyPoolLogById(Integer billType);
|
||||
|
||||
/**
|
||||
* 批量删除资金池交明细
|
||||
*
|
||||
* @param billTypes 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMoneyPoolLogByIds(String[] billTypes);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.cronie.mengyu.mapper;
|
||||
|
||||
import com.cronie.mengyu.domain.MoneyPool;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 资金池 数据层
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public interface MoneyPoolMapper
|
||||
{
|
||||
/**
|
||||
* 查询资金池信息
|
||||
*
|
||||
* @param creater 资金池ID
|
||||
* @return 资金池信息
|
||||
*/
|
||||
public MoneyPool selectMoneyPoolById(Integer creater);
|
||||
|
||||
/**
|
||||
* 查询资金池列表
|
||||
*
|
||||
* @param moneyPool 资金池信息
|
||||
* @return 资金池集合
|
||||
*/
|
||||
public List<MoneyPool> selectMoneyPoolList(MoneyPool moneyPool);
|
||||
|
||||
/**
|
||||
* 新增资金池
|
||||
*
|
||||
* @param moneyPool 资金池信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMoneyPool(MoneyPool moneyPool);
|
||||
|
||||
/**
|
||||
* 修改资金池
|
||||
*
|
||||
* @param moneyPool 资金池信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMoneyPool(MoneyPool moneyPool);
|
||||
|
||||
/**
|
||||
* 删除资金池
|
||||
*
|
||||
* @param creater 资金池ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMoneyPoolById(Integer creater);
|
||||
|
||||
/**
|
||||
* 批量删除资金池
|
||||
*
|
||||
* @param creaters 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMoneyPoolByIds(String[] creaters);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.cronie.mengyu.mapper;
|
||||
|
||||
import com.cronie.mengyu.domain.YearPlan;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 年度计划 数据层
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public interface YearPlanMapper
|
||||
{
|
||||
/**
|
||||
* 查询年度计划信息
|
||||
*
|
||||
* @param year 年度计划ID
|
||||
* @return 年度计划信息
|
||||
*/
|
||||
public YearPlan selectYearPlanById(String year);
|
||||
|
||||
/**
|
||||
* 查询年度计划列表
|
||||
*
|
||||
* @param yearPlan 年度计划信息
|
||||
* @return 年度计划集合
|
||||
*/
|
||||
public List<YearPlan> selectYearPlanList(YearPlan yearPlan);
|
||||
|
||||
/**
|
||||
* 新增年度计划
|
||||
*
|
||||
* @param yearPlan 年度计划信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYearPlan(YearPlan yearPlan);
|
||||
|
||||
/**
|
||||
* 修改年度计划
|
||||
*
|
||||
* @param yearPlan 年度计划信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYearPlan(YearPlan yearPlan);
|
||||
|
||||
/**
|
||||
* 删除年度计划
|
||||
*
|
||||
* @param year 年度计划ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYearPlanById(String year);
|
||||
|
||||
/**
|
||||
* 批量删除年度计划
|
||||
*
|
||||
* @param years 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYearPlanByIds(String[] years);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
package com.cronie.mengyu.service;
|
||||
|
||||
import com.cronie.mengyu.domain.Goods;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 投资品种 服务层
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public interface IGoodsService
|
||||
{
|
||||
/**
|
||||
* 查询投资品种信息
|
||||
*
|
||||
* @param code 投资品种ID
|
||||
* @return 投资品种信息
|
||||
*/
|
||||
public Goods selectGoodsById(String code);
|
||||
|
||||
/**
|
||||
* 查询投资品种列表
|
||||
*
|
||||
* @param goods 投资品种信息
|
||||
* @return 投资品种集合
|
||||
*/
|
||||
public List<Goods> selectGoodsList(Goods goods);
|
||||
|
||||
/**
|
||||
* 新增投资品种
|
||||
*
|
||||
* @param goods 投资品种信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGoods(Goods goods);
|
||||
|
||||
/**
|
||||
* 修改投资品种
|
||||
*
|
||||
* @param goods 投资品种信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGoods(Goods goods);
|
||||
|
||||
/**
|
||||
* 删除投资品种信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGoodsByIds(String ids);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
package com.cronie.mengyu.service;
|
||||
|
||||
import com.cronie.mengyu.domain.GoodsTradeModelInsNode;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 交易计划操作 服务层
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public interface IGoodsTradeModelInsNodeService
|
||||
{
|
||||
/**
|
||||
* 查询交易计划操作信息
|
||||
*
|
||||
* @param nodeId 交易计划操作ID
|
||||
* @return 交易计划操作信息
|
||||
*/
|
||||
public GoodsTradeModelInsNode selectGoodsTradeModelInsNodeById(Integer nodeId);
|
||||
|
||||
/**
|
||||
* 查询交易计划操作列表
|
||||
*
|
||||
* @param goodsTradeModelInsNode 交易计划操作信息
|
||||
* @return 交易计划操作集合
|
||||
*/
|
||||
public List<GoodsTradeModelInsNode> selectGoodsTradeModelInsNodeList(GoodsTradeModelInsNode goodsTradeModelInsNode);
|
||||
|
||||
/**
|
||||
* 新增交易计划操作
|
||||
*
|
||||
* @param goodsTradeModelInsNode 交易计划操作信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGoodsTradeModelInsNode(GoodsTradeModelInsNode goodsTradeModelInsNode);
|
||||
|
||||
/**
|
||||
* 修改交易计划操作
|
||||
*
|
||||
* @param goodsTradeModelInsNode 交易计划操作信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGoodsTradeModelInsNode(GoodsTradeModelInsNode goodsTradeModelInsNode);
|
||||
|
||||
/**
|
||||
* 删除交易计划操作信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGoodsTradeModelInsNodeByIds(String ids);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
package com.cronie.mengyu.service;
|
||||
|
||||
import com.cronie.mengyu.domain.GoodsTradeModelIns;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 计划模型实例 服务层
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public interface IGoodsTradeModelInsService
|
||||
{
|
||||
/**
|
||||
* 查询计划模型实例信息
|
||||
*
|
||||
* @param insId 计划模型实例ID
|
||||
* @return 计划模型实例信息
|
||||
*/
|
||||
public GoodsTradeModelIns selectGoodsTradeModelInsById(Integer insId);
|
||||
|
||||
/**
|
||||
* 查询计划模型实例列表
|
||||
*
|
||||
* @param goodsTradeModelIns 计划模型实例信息
|
||||
* @return 计划模型实例集合
|
||||
*/
|
||||
public List<GoodsTradeModelIns> selectGoodsTradeModelInsList(GoodsTradeModelIns goodsTradeModelIns);
|
||||
|
||||
/**
|
||||
* 新增计划模型实例
|
||||
*
|
||||
* @param goodsTradeModelIns 计划模型实例信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGoodsTradeModelIns(GoodsTradeModelIns goodsTradeModelIns);
|
||||
|
||||
/**
|
||||
* 修改计划模型实例
|
||||
*
|
||||
* @param goodsTradeModelIns 计划模型实例信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGoodsTradeModelIns(GoodsTradeModelIns goodsTradeModelIns);
|
||||
|
||||
/**
|
||||
* 删除计划模型实例信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGoodsTradeModelInsByIds(String ids);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
package com.cronie.mengyu.service;
|
||||
|
||||
import com.cronie.mengyu.domain.GoodsTradeModel;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 品种计划模型 服务层
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public interface IGoodsTradeModelService
|
||||
{
|
||||
/**
|
||||
* 查询品种计划模型信息
|
||||
*
|
||||
* @param modelId 品种计划模型ID
|
||||
* @return 品种计划模型信息
|
||||
*/
|
||||
public GoodsTradeModel selectGoodsTradeModelById(Integer modelId);
|
||||
|
||||
/**
|
||||
* 查询品种计划模型列表
|
||||
*
|
||||
* @param goodsTradeModel 品种计划模型信息
|
||||
* @return 品种计划模型集合
|
||||
*/
|
||||
public List<GoodsTradeModel> selectGoodsTradeModelList(GoodsTradeModel goodsTradeModel);
|
||||
|
||||
/**
|
||||
* 新增品种计划模型
|
||||
*
|
||||
* @param goodsTradeModel 品种计划模型信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGoodsTradeModel(GoodsTradeModel goodsTradeModel);
|
||||
|
||||
/**
|
||||
* 修改品种计划模型
|
||||
*
|
||||
* @param goodsTradeModel 品种计划模型信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGoodsTradeModel(GoodsTradeModel goodsTradeModel);
|
||||
|
||||
/**
|
||||
* 删除品种计划模型信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGoodsTradeModelByIds(String ids);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
package com.cronie.mengyu.service;
|
||||
|
||||
import com.cronie.mengyu.domain.MoneyPoolLog;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 资金池交明细 服务层
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public interface IMoneyPoolLogService
|
||||
{
|
||||
/**
|
||||
* 查询资金池交明细信息
|
||||
*
|
||||
* @param billType 资金池交明细ID
|
||||
* @return 资金池交明细信息
|
||||
*/
|
||||
public MoneyPoolLog selectMoneyPoolLogById(Integer billType);
|
||||
|
||||
/**
|
||||
* 查询资金池交明细列表
|
||||
*
|
||||
* @param moneyPoolLog 资金池交明细信息
|
||||
* @return 资金池交明细集合
|
||||
*/
|
||||
public List<MoneyPoolLog> selectMoneyPoolLogList(MoneyPoolLog moneyPoolLog);
|
||||
|
||||
/**
|
||||
* 新增资金池交明细
|
||||
*
|
||||
* @param moneyPoolLog 资金池交明细信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMoneyPoolLog(MoneyPoolLog moneyPoolLog);
|
||||
|
||||
/**
|
||||
* 修改资金池交明细
|
||||
*
|
||||
* @param moneyPoolLog 资金池交明细信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMoneyPoolLog(MoneyPoolLog moneyPoolLog);
|
||||
|
||||
/**
|
||||
* 删除资金池交明细信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMoneyPoolLogByIds(String ids);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
package com.cronie.mengyu.service;
|
||||
|
||||
import com.cronie.mengyu.domain.MoneyPool;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 资金池 服务层
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public interface IMoneyPoolService
|
||||
{
|
||||
/**
|
||||
* 查询资金池信息
|
||||
*
|
||||
* @param creater 资金池ID
|
||||
* @return 资金池信息
|
||||
*/
|
||||
public MoneyPool selectMoneyPoolById(Integer creater);
|
||||
|
||||
/**
|
||||
* 查询资金池列表
|
||||
*
|
||||
* @param moneyPool 资金池信息
|
||||
* @return 资金池集合
|
||||
*/
|
||||
public List<MoneyPool> selectMoneyPoolList(MoneyPool moneyPool);
|
||||
|
||||
/**
|
||||
* 新增资金池
|
||||
*
|
||||
* @param moneyPool 资金池信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMoneyPool(MoneyPool moneyPool);
|
||||
|
||||
/**
|
||||
* 修改资金池
|
||||
*
|
||||
* @param moneyPool 资金池信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMoneyPool(MoneyPool moneyPool);
|
||||
|
||||
/**
|
||||
* 删除资金池信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMoneyPoolByIds(String ids);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
package com.cronie.mengyu.service;
|
||||
|
||||
import com.cronie.mengyu.domain.YearPlan;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 年度计划 服务层
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
public interface IYearPlanService
|
||||
{
|
||||
/**
|
||||
* 查询年度计划信息
|
||||
*
|
||||
* @param year 年度计划ID
|
||||
* @return 年度计划信息
|
||||
*/
|
||||
public YearPlan selectYearPlanById(String year);
|
||||
|
||||
/**
|
||||
* 查询年度计划列表
|
||||
*
|
||||
* @param yearPlan 年度计划信息
|
||||
* @return 年度计划集合
|
||||
*/
|
||||
public List<YearPlan> selectYearPlanList(YearPlan yearPlan);
|
||||
|
||||
/**
|
||||
* 新增年度计划
|
||||
*
|
||||
* @param yearPlan 年度计划信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYearPlan(YearPlan yearPlan);
|
||||
|
||||
/**
|
||||
* 修改年度计划
|
||||
*
|
||||
* @param yearPlan 年度计划信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYearPlan(YearPlan yearPlan);
|
||||
|
||||
/**
|
||||
* 删除年度计划信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYearPlanByIds(String ids);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,85 @@
|
|||
package com.cronie.mengyu.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.cronie.mengyu.domain.Goods;
|
||||
import com.cronie.mengyu.mapper.GoodsMapper;
|
||||
import com.cronie.mengyu.service.IGoodsService;
|
||||
import com.ruoyi.common.support.Convert;
|
||||
|
||||
/**
|
||||
* 投资品种 服务层实现
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
@Service
|
||||
public class GoodsServiceImpl implements IGoodsService
|
||||
{
|
||||
@Autowired
|
||||
private GoodsMapper goodsMapper;
|
||||
|
||||
/**
|
||||
* 查询投资品种信息
|
||||
*
|
||||
* @param code 投资品种ID
|
||||
* @return 投资品种信息
|
||||
*/
|
||||
@Override
|
||||
public Goods selectGoodsById(String code)
|
||||
{
|
||||
return goodsMapper.selectGoodsById(code);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询投资品种列表
|
||||
*
|
||||
* @param goods 投资品种信息
|
||||
* @return 投资品种集合
|
||||
*/
|
||||
@Override
|
||||
public List<Goods> selectGoodsList(Goods goods)
|
||||
{
|
||||
return goodsMapper.selectGoodsList(goods);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增投资品种
|
||||
*
|
||||
* @param goods 投资品种信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertGoods(Goods goods)
|
||||
{
|
||||
return goodsMapper.insertGoods(goods);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改投资品种
|
||||
*
|
||||
* @param goods 投资品种信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateGoods(Goods goods)
|
||||
{
|
||||
return goodsMapper.updateGoods(goods);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除投资品种对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteGoodsByIds(String ids)
|
||||
{
|
||||
return goodsMapper.deleteGoodsByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,85 @@
|
|||
package com.cronie.mengyu.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.cronie.mengyu.domain.GoodsTradeModelInsNode;
|
||||
import com.cronie.mengyu.mapper.GoodsTradeModelInsNodeMapper;
|
||||
import com.cronie.mengyu.service.IGoodsTradeModelInsNodeService;
|
||||
import com.ruoyi.common.support.Convert;
|
||||
|
||||
/**
|
||||
* 交易计划操作 服务层实现
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
@Service
|
||||
public class GoodsTradeModelInsNodeServiceImpl implements IGoodsTradeModelInsNodeService
|
||||
{
|
||||
@Autowired
|
||||
private GoodsTradeModelInsNodeMapper goodsTradeModelInsNodeMapper;
|
||||
|
||||
/**
|
||||
* 查询交易计划操作信息
|
||||
*
|
||||
* @param nodeId 交易计划操作ID
|
||||
* @return 交易计划操作信息
|
||||
*/
|
||||
@Override
|
||||
public GoodsTradeModelInsNode selectGoodsTradeModelInsNodeById(Integer nodeId)
|
||||
{
|
||||
return goodsTradeModelInsNodeMapper.selectGoodsTradeModelInsNodeById(nodeId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询交易计划操作列表
|
||||
*
|
||||
* @param goodsTradeModelInsNode 交易计划操作信息
|
||||
* @return 交易计划操作集合
|
||||
*/
|
||||
@Override
|
||||
public List<GoodsTradeModelInsNode> selectGoodsTradeModelInsNodeList(GoodsTradeModelInsNode goodsTradeModelInsNode)
|
||||
{
|
||||
return goodsTradeModelInsNodeMapper.selectGoodsTradeModelInsNodeList(goodsTradeModelInsNode);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增交易计划操作
|
||||
*
|
||||
* @param goodsTradeModelInsNode 交易计划操作信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertGoodsTradeModelInsNode(GoodsTradeModelInsNode goodsTradeModelInsNode)
|
||||
{
|
||||
return goodsTradeModelInsNodeMapper.insertGoodsTradeModelInsNode(goodsTradeModelInsNode);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改交易计划操作
|
||||
*
|
||||
* @param goodsTradeModelInsNode 交易计划操作信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateGoodsTradeModelInsNode(GoodsTradeModelInsNode goodsTradeModelInsNode)
|
||||
{
|
||||
return goodsTradeModelInsNodeMapper.updateGoodsTradeModelInsNode(goodsTradeModelInsNode);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除交易计划操作对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteGoodsTradeModelInsNodeByIds(String ids)
|
||||
{
|
||||
return goodsTradeModelInsNodeMapper.deleteGoodsTradeModelInsNodeByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
package com.cronie.mengyu.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.cronie.mengyu.mapper.GoodsTradeModelInsMapper;
|
||||
import com.cronie.mengyu.domain.GoodsTradeModelIns;
|
||||
import com.cronie.mengyu.service.IGoodsTradeModelInsService;
|
||||
import com.ruoyi.common.support.Convert;
|
||||
|
||||
/**
|
||||
* 计划模型实例 服务层实现
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
@Service
|
||||
public class GoodsTradeModelInsServiceImpl implements IGoodsTradeModelInsService
|
||||
{
|
||||
@Autowired
|
||||
private GoodsTradeModelInsMapper goodsTradeModelInsMapper;
|
||||
|
||||
/**
|
||||
* 查询计划模型实例信息
|
||||
*
|
||||
* @param insId 计划模型实例ID
|
||||
* @return 计划模型实例信息
|
||||
*/
|
||||
@Override
|
||||
public GoodsTradeModelIns selectGoodsTradeModelInsById(Integer insId)
|
||||
{
|
||||
return goodsTradeModelInsMapper.selectGoodsTradeModelInsById(insId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询计划模型实例列表
|
||||
*
|
||||
* @param goodsTradeModelIns 计划模型实例信息
|
||||
* @return 计划模型实例集合
|
||||
*/
|
||||
@Override
|
||||
public List<GoodsTradeModelIns> selectGoodsTradeModelInsList(GoodsTradeModelIns goodsTradeModelIns)
|
||||
{
|
||||
return goodsTradeModelInsMapper.selectGoodsTradeModelInsList(goodsTradeModelIns);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增计划模型实例
|
||||
*
|
||||
* @param goodsTradeModelIns 计划模型实例信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertGoodsTradeModelIns(GoodsTradeModelIns goodsTradeModelIns)
|
||||
{
|
||||
return goodsTradeModelInsMapper.insertGoodsTradeModelIns(goodsTradeModelIns);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改计划模型实例
|
||||
*
|
||||
* @param goodsTradeModelIns 计划模型实例信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateGoodsTradeModelIns(GoodsTradeModelIns goodsTradeModelIns)
|
||||
{
|
||||
return goodsTradeModelInsMapper.updateGoodsTradeModelIns(goodsTradeModelIns);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除计划模型实例对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteGoodsTradeModelInsByIds(String ids)
|
||||
{
|
||||
return goodsTradeModelInsMapper.deleteGoodsTradeModelInsByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
package com.cronie.mengyu.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.cronie.mengyu.mapper.GoodsTradeModelMapper;
|
||||
import com.cronie.mengyu.domain.GoodsTradeModel;
|
||||
import com.cronie.mengyu.service.IGoodsTradeModelService;
|
||||
import com.ruoyi.common.support.Convert;
|
||||
|
||||
/**
|
||||
* 品种计划模型 服务层实现
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
@Service
|
||||
public class GoodsTradeModelServiceImpl implements IGoodsTradeModelService
|
||||
{
|
||||
@Autowired
|
||||
private GoodsTradeModelMapper goodsTradeModelMapper;
|
||||
|
||||
/**
|
||||
* 查询品种计划模型信息
|
||||
*
|
||||
* @param modelId 品种计划模型ID
|
||||
* @return 品种计划模型信息
|
||||
*/
|
||||
@Override
|
||||
public GoodsTradeModel selectGoodsTradeModelById(Integer modelId)
|
||||
{
|
||||
return goodsTradeModelMapper.selectGoodsTradeModelById(modelId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询品种计划模型列表
|
||||
*
|
||||
* @param goodsTradeModel 品种计划模型信息
|
||||
* @return 品种计划模型集合
|
||||
*/
|
||||
@Override
|
||||
public List<GoodsTradeModel> selectGoodsTradeModelList(GoodsTradeModel goodsTradeModel)
|
||||
{
|
||||
return goodsTradeModelMapper.selectGoodsTradeModelList(goodsTradeModel);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增品种计划模型
|
||||
*
|
||||
* @param goodsTradeModel 品种计划模型信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertGoodsTradeModel(GoodsTradeModel goodsTradeModel)
|
||||
{
|
||||
return goodsTradeModelMapper.insertGoodsTradeModel(goodsTradeModel);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改品种计划模型
|
||||
*
|
||||
* @param goodsTradeModel 品种计划模型信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateGoodsTradeModel(GoodsTradeModel goodsTradeModel)
|
||||
{
|
||||
return goodsTradeModelMapper.updateGoodsTradeModel(goodsTradeModel);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除品种计划模型对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteGoodsTradeModelByIds(String ids)
|
||||
{
|
||||
return goodsTradeModelMapper.deleteGoodsTradeModelByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
package com.cronie.mengyu.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.cronie.mengyu.mapper.MoneyPoolLogMapper;
|
||||
import com.cronie.mengyu.domain.MoneyPoolLog;
|
||||
import com.cronie.mengyu.service.IMoneyPoolLogService;
|
||||
import com.ruoyi.common.support.Convert;
|
||||
|
||||
/**
|
||||
* 资金池交明细 服务层实现
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
@Service
|
||||
public class MoneyPoolLogServiceImpl implements IMoneyPoolLogService
|
||||
{
|
||||
@Autowired
|
||||
private MoneyPoolLogMapper moneyPoolLogMapper;
|
||||
|
||||
/**
|
||||
* 查询资金池交明细信息
|
||||
*
|
||||
* @param billType 资金池交明细ID
|
||||
* @return 资金池交明细信息
|
||||
*/
|
||||
@Override
|
||||
public MoneyPoolLog selectMoneyPoolLogById(Integer billType)
|
||||
{
|
||||
return moneyPoolLogMapper.selectMoneyPoolLogById(billType);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询资金池交明细列表
|
||||
*
|
||||
* @param moneyPoolLog 资金池交明细信息
|
||||
* @return 资金池交明细集合
|
||||
*/
|
||||
@Override
|
||||
public List<MoneyPoolLog> selectMoneyPoolLogList(MoneyPoolLog moneyPoolLog)
|
||||
{
|
||||
return moneyPoolLogMapper.selectMoneyPoolLogList(moneyPoolLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增资金池交明细
|
||||
*
|
||||
* @param moneyPoolLog 资金池交明细信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertMoneyPoolLog(MoneyPoolLog moneyPoolLog)
|
||||
{
|
||||
return moneyPoolLogMapper.insertMoneyPoolLog(moneyPoolLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改资金池交明细
|
||||
*
|
||||
* @param moneyPoolLog 资金池交明细信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateMoneyPoolLog(MoneyPoolLog moneyPoolLog)
|
||||
{
|
||||
return moneyPoolLogMapper.updateMoneyPoolLog(moneyPoolLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除资金池交明细对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMoneyPoolLogByIds(String ids)
|
||||
{
|
||||
return moneyPoolLogMapper.deleteMoneyPoolLogByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
package com.cronie.mengyu.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.cronie.mengyu.mapper.MoneyPoolMapper;
|
||||
import com.cronie.mengyu.domain.MoneyPool;
|
||||
import com.cronie.mengyu.service.IMoneyPoolService;
|
||||
import com.ruoyi.common.support.Convert;
|
||||
|
||||
/**
|
||||
* 资金池 服务层实现
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
@Service
|
||||
public class MoneyPoolServiceImpl implements IMoneyPoolService
|
||||
{
|
||||
@Autowired
|
||||
private MoneyPoolMapper moneyPoolMapper;
|
||||
|
||||
/**
|
||||
* 查询资金池信息
|
||||
*
|
||||
* @param creater 资金池ID
|
||||
* @return 资金池信息
|
||||
*/
|
||||
@Override
|
||||
public MoneyPool selectMoneyPoolById(Integer creater)
|
||||
{
|
||||
return moneyPoolMapper.selectMoneyPoolById(creater);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询资金池列表
|
||||
*
|
||||
* @param moneyPool 资金池信息
|
||||
* @return 资金池集合
|
||||
*/
|
||||
@Override
|
||||
public List<MoneyPool> selectMoneyPoolList(MoneyPool moneyPool)
|
||||
{
|
||||
return moneyPoolMapper.selectMoneyPoolList(moneyPool);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增资金池
|
||||
*
|
||||
* @param moneyPool 资金池信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertMoneyPool(MoneyPool moneyPool)
|
||||
{
|
||||
return moneyPoolMapper.insertMoneyPool(moneyPool);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改资金池
|
||||
*
|
||||
* @param moneyPool 资金池信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateMoneyPool(MoneyPool moneyPool)
|
||||
{
|
||||
return moneyPoolMapper.updateMoneyPool(moneyPool);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除资金池对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMoneyPoolByIds(String ids)
|
||||
{
|
||||
return moneyPoolMapper.deleteMoneyPoolByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
package com.cronie.mengyu.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.cronie.mengyu.mapper.YearPlanMapper;
|
||||
import com.cronie.mengyu.domain.YearPlan;
|
||||
import com.cronie.mengyu.service.IYearPlanService;
|
||||
import com.ruoyi.common.support.Convert;
|
||||
|
||||
/**
|
||||
* 年度计划 服务层实现
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
@Service
|
||||
public class YearPlanServiceImpl implements IYearPlanService
|
||||
{
|
||||
@Autowired
|
||||
private YearPlanMapper yearPlanMapper;
|
||||
|
||||
/**
|
||||
* 查询年度计划信息
|
||||
*
|
||||
* @param year 年度计划ID
|
||||
* @return 年度计划信息
|
||||
*/
|
||||
@Override
|
||||
public YearPlan selectYearPlanById(String year)
|
||||
{
|
||||
return yearPlanMapper.selectYearPlanById(year);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询年度计划列表
|
||||
*
|
||||
* @param yearPlan 年度计划信息
|
||||
* @return 年度计划集合
|
||||
*/
|
||||
@Override
|
||||
public List<YearPlan> selectYearPlanList(YearPlan yearPlan)
|
||||
{
|
||||
return yearPlanMapper.selectYearPlanList(yearPlan);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增年度计划
|
||||
*
|
||||
* @param yearPlan 年度计划信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertYearPlan(YearPlan yearPlan)
|
||||
{
|
||||
return yearPlanMapper.insertYearPlan(yearPlan);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改年度计划
|
||||
*
|
||||
* @param yearPlan 年度计划信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateYearPlan(YearPlan yearPlan)
|
||||
{
|
||||
return yearPlanMapper.updateYearPlan(yearPlan);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除年度计划对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYearPlanByIds(String ids)
|
||||
{
|
||||
return yearPlanMapper.deleteYearPlanByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
package com.cronie.mengyu.web.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.cronie.mengyu.domain.Goods;
|
||||
import com.cronie.mengyu.service.IGoodsService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.base.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.framework.web.base.BaseController;
|
||||
import com.ruoyi.framework.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 投资品种 信息操作处理
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/mengyu/goods")
|
||||
public class GoodsController extends BaseController
|
||||
{
|
||||
private String prefix = "mengyu/goods";
|
||||
|
||||
@Autowired
|
||||
private IGoodsService goodsService;
|
||||
|
||||
@RequiresPermissions("mengyu:goods:view")
|
||||
@GetMapping()
|
||||
public String goods()
|
||||
{
|
||||
return prefix + "/goods";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询投资品种列表
|
||||
*/
|
||||
@RequiresPermissions("mengyu:goods:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(Goods goods)
|
||||
{
|
||||
startPage();
|
||||
List<Goods> list = goodsService.selectGoodsList(goods);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增投资品种
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存投资品种
|
||||
*/
|
||||
@RequiresPermissions("mengyu:goods:add")
|
||||
@Log(title = "投资品种", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(Goods goods)
|
||||
{
|
||||
return toAjax(goodsService.insertGoods(goods));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改投资品种
|
||||
*/
|
||||
@GetMapping("/edit/{code}")
|
||||
public String edit(@PathVariable("code") String code, ModelMap mmap)
|
||||
{
|
||||
Goods goods = goodsService.selectGoodsById(code);
|
||||
mmap.put("goods", goods);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存投资品种
|
||||
*/
|
||||
@RequiresPermissions("mengyu:goods:edit")
|
||||
@Log(title = "投资品种", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(Goods goods)
|
||||
{
|
||||
return toAjax(goodsService.updateGoods(goods));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除投资品种
|
||||
*/
|
||||
@RequiresPermissions("mengyu:goods:remove")
|
||||
@Log(title = "投资品种", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(goodsService.deleteGoodsByIds(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
package com.cronie.mengyu.web.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.cronie.mengyu.domain.GoodsTradeModel;
|
||||
import com.cronie.mengyu.service.IGoodsTradeModelService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.base.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.framework.web.base.BaseController;
|
||||
import com.ruoyi.framework.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 品种计划模型 信息操作处理
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/mengyu/goodsTradeModel")
|
||||
public class GoodsTradeModelController extends BaseController
|
||||
{
|
||||
private String prefix = "mengyu/goodsTradeModel";
|
||||
|
||||
@Autowired
|
||||
private IGoodsTradeModelService goodsTradeModelService;
|
||||
|
||||
@RequiresPermissions("mengyu:goodsTradeModel:view")
|
||||
@GetMapping()
|
||||
public String goodsTradeModel()
|
||||
{
|
||||
return prefix + "/goodsTradeModel";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询品种计划模型列表
|
||||
*/
|
||||
@RequiresPermissions("mengyu:goodsTradeModel:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(GoodsTradeModel goodsTradeModel)
|
||||
{
|
||||
startPage();
|
||||
List<GoodsTradeModel> list = goodsTradeModelService.selectGoodsTradeModelList(goodsTradeModel);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增品种计划模型
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存品种计划模型
|
||||
*/
|
||||
@RequiresPermissions("mengyu:goodsTradeModel:add")
|
||||
@Log(title = "品种计划模型", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(GoodsTradeModel goodsTradeModel)
|
||||
{
|
||||
return toAjax(goodsTradeModelService.insertGoodsTradeModel(goodsTradeModel));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改品种计划模型
|
||||
*/
|
||||
@GetMapping("/edit/{modelId}")
|
||||
public String edit(@PathVariable("modelId") Integer modelId, ModelMap mmap)
|
||||
{
|
||||
GoodsTradeModel goodsTradeModel = goodsTradeModelService.selectGoodsTradeModelById(modelId);
|
||||
mmap.put("goodsTradeModel", goodsTradeModel);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存品种计划模型
|
||||
*/
|
||||
@RequiresPermissions("mengyu:goodsTradeModel:edit")
|
||||
@Log(title = "品种计划模型", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(GoodsTradeModel goodsTradeModel)
|
||||
{
|
||||
return toAjax(goodsTradeModelService.updateGoodsTradeModel(goodsTradeModel));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除品种计划模型
|
||||
*/
|
||||
@RequiresPermissions("mengyu:goodsTradeModel:remove")
|
||||
@Log(title = "品种计划模型", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(goodsTradeModelService.deleteGoodsTradeModelByIds(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
package com.cronie.mengyu.web.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.cronie.mengyu.domain.GoodsTradeModelIns;
|
||||
import com.cronie.mengyu.service.IGoodsTradeModelInsService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.base.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.framework.web.base.BaseController;
|
||||
import com.ruoyi.framework.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 计划模型实例 信息操作处理
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/mengyu/goodsTradeModelIns")
|
||||
public class GoodsTradeModelInsController extends BaseController
|
||||
{
|
||||
private String prefix = "mengyu/goodsTradeModelIns";
|
||||
|
||||
@Autowired
|
||||
private IGoodsTradeModelInsService goodsTradeModelInsService;
|
||||
|
||||
@RequiresPermissions("mengyu:goodsTradeModelIns:view")
|
||||
@GetMapping()
|
||||
public String goodsTradeModelIns()
|
||||
{
|
||||
return prefix + "/goodsTradeModelIns";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询计划模型实例列表
|
||||
*/
|
||||
@RequiresPermissions("mengyu:goodsTradeModelIns:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(GoodsTradeModelIns goodsTradeModelIns)
|
||||
{
|
||||
startPage();
|
||||
List<GoodsTradeModelIns> list = goodsTradeModelInsService.selectGoodsTradeModelInsList(goodsTradeModelIns);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增计划模型实例
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存计划模型实例
|
||||
*/
|
||||
@RequiresPermissions("mengyu:goodsTradeModelIns:add")
|
||||
@Log(title = "计划模型实例", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(GoodsTradeModelIns goodsTradeModelIns)
|
||||
{
|
||||
return toAjax(goodsTradeModelInsService.insertGoodsTradeModelIns(goodsTradeModelIns));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改计划模型实例
|
||||
*/
|
||||
@GetMapping("/edit/{insId}")
|
||||
public String edit(@PathVariable("insId") Integer insId, ModelMap mmap)
|
||||
{
|
||||
GoodsTradeModelIns goodsTradeModelIns = goodsTradeModelInsService.selectGoodsTradeModelInsById(insId);
|
||||
mmap.put("goodsTradeModelIns", goodsTradeModelIns);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存计划模型实例
|
||||
*/
|
||||
@RequiresPermissions("mengyu:goodsTradeModelIns:edit")
|
||||
@Log(title = "计划模型实例", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(GoodsTradeModelIns goodsTradeModelIns)
|
||||
{
|
||||
return toAjax(goodsTradeModelInsService.updateGoodsTradeModelIns(goodsTradeModelIns));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除计划模型实例
|
||||
*/
|
||||
@RequiresPermissions("mengyu:goodsTradeModelIns:remove")
|
||||
@Log(title = "计划模型实例", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(goodsTradeModelInsService.deleteGoodsTradeModelInsByIds(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
package com.cronie.mengyu.web.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.cronie.mengyu.domain.GoodsTradeModelInsNode;
|
||||
import com.cronie.mengyu.service.IGoodsTradeModelInsNodeService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.base.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.framework.web.base.BaseController;
|
||||
import com.ruoyi.framework.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 交易计划操作 信息操作处理
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/mengyu/goodsTradeModelInsNode")
|
||||
public class GoodsTradeModelInsNodeController extends BaseController
|
||||
{
|
||||
private String prefix = "mengyu/goodsTradeModelInsNode";
|
||||
|
||||
@Autowired
|
||||
private IGoodsTradeModelInsNodeService goodsTradeModelInsNodeService;
|
||||
|
||||
@RequiresPermissions("mengyu:goodsTradeModelInsNode:view")
|
||||
@GetMapping()
|
||||
public String goodsTradeModelInsNode()
|
||||
{
|
||||
return prefix + "/goodsTradeModelInsNode";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询交易计划操作列表
|
||||
*/
|
||||
@RequiresPermissions("mengyu:goodsTradeModelInsNode:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(GoodsTradeModelInsNode goodsTradeModelInsNode)
|
||||
{
|
||||
startPage();
|
||||
List<GoodsTradeModelInsNode> list = goodsTradeModelInsNodeService.selectGoodsTradeModelInsNodeList(goodsTradeModelInsNode);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增交易计划操作
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存交易计划操作
|
||||
*/
|
||||
@RequiresPermissions("mengyu:goodsTradeModelInsNode:add")
|
||||
@Log(title = "交易计划操作", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(GoodsTradeModelInsNode goodsTradeModelInsNode)
|
||||
{
|
||||
return toAjax(goodsTradeModelInsNodeService.insertGoodsTradeModelInsNode(goodsTradeModelInsNode));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改交易计划操作
|
||||
*/
|
||||
@GetMapping("/edit/{nodeId}")
|
||||
public String edit(@PathVariable("nodeId") Integer nodeId, ModelMap mmap)
|
||||
{
|
||||
GoodsTradeModelInsNode goodsTradeModelInsNode = goodsTradeModelInsNodeService.selectGoodsTradeModelInsNodeById(nodeId);
|
||||
mmap.put("goodsTradeModelInsNode", goodsTradeModelInsNode);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存交易计划操作
|
||||
*/
|
||||
@RequiresPermissions("mengyu:goodsTradeModelInsNode:edit")
|
||||
@Log(title = "交易计划操作", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(GoodsTradeModelInsNode goodsTradeModelInsNode)
|
||||
{
|
||||
return toAjax(goodsTradeModelInsNodeService.updateGoodsTradeModelInsNode(goodsTradeModelInsNode));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除交易计划操作
|
||||
*/
|
||||
@RequiresPermissions("mengyu:goodsTradeModelInsNode:remove")
|
||||
@Log(title = "交易计划操作", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(goodsTradeModelInsNodeService.deleteGoodsTradeModelInsNodeByIds(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
package com.cronie.mengyu.web.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.cronie.mengyu.domain.MoneyPool;
|
||||
import com.cronie.mengyu.service.IMoneyPoolService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.base.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.framework.web.base.BaseController;
|
||||
import com.ruoyi.framework.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 资金池 信息操作处理
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/mengyu/moneyPool")
|
||||
public class MoneyPoolController extends BaseController
|
||||
{
|
||||
private String prefix = "mengyu/moneyPool";
|
||||
|
||||
@Autowired
|
||||
private IMoneyPoolService moneyPoolService;
|
||||
|
||||
@RequiresPermissions("mengyu:moneyPool:view")
|
||||
@GetMapping()
|
||||
public String moneyPool()
|
||||
{
|
||||
return prefix + "/moneyPool";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询资金池列表
|
||||
*/
|
||||
@RequiresPermissions("mengyu:moneyPool:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(MoneyPool moneyPool)
|
||||
{
|
||||
startPage();
|
||||
List<MoneyPool> list = moneyPoolService.selectMoneyPoolList(moneyPool);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增资金池
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存资金池
|
||||
*/
|
||||
@RequiresPermissions("mengyu:moneyPool:add")
|
||||
@Log(title = "资金池", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(MoneyPool moneyPool)
|
||||
{
|
||||
return toAjax(moneyPoolService.insertMoneyPool(moneyPool));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改资金池
|
||||
*/
|
||||
@GetMapping("/edit/{creater}")
|
||||
public String edit(@PathVariable("creater") Integer creater, ModelMap mmap)
|
||||
{
|
||||
MoneyPool moneyPool = moneyPoolService.selectMoneyPoolById(creater);
|
||||
mmap.put("moneyPool", moneyPool);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存资金池
|
||||
*/
|
||||
@RequiresPermissions("mengyu:moneyPool:edit")
|
||||
@Log(title = "资金池", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(MoneyPool moneyPool)
|
||||
{
|
||||
return toAjax(moneyPoolService.updateMoneyPool(moneyPool));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除资金池
|
||||
*/
|
||||
@RequiresPermissions("mengyu:moneyPool:remove")
|
||||
@Log(title = "资金池", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(moneyPoolService.deleteMoneyPoolByIds(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
package com.cronie.mengyu.web.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.cronie.mengyu.domain.MoneyPoolLog;
|
||||
import com.cronie.mengyu.service.IMoneyPoolLogService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.base.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.framework.web.base.BaseController;
|
||||
import com.ruoyi.framework.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 资金池交明细 信息操作处理
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/mengyu/moneyPoolLog")
|
||||
public class MoneyPoolLogController extends BaseController
|
||||
{
|
||||
private String prefix = "mengyu/moneyPoolLog";
|
||||
|
||||
@Autowired
|
||||
private IMoneyPoolLogService moneyPoolLogService;
|
||||
|
||||
@RequiresPermissions("mengyu:moneyPoolLog:view")
|
||||
@GetMapping()
|
||||
public String moneyPoolLog()
|
||||
{
|
||||
return prefix + "/moneyPoolLog";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询资金池交明细列表
|
||||
*/
|
||||
@RequiresPermissions("mengyu:moneyPoolLog:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(MoneyPoolLog moneyPoolLog)
|
||||
{
|
||||
startPage();
|
||||
List<MoneyPoolLog> list = moneyPoolLogService.selectMoneyPoolLogList(moneyPoolLog);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增资金池交明细
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存资金池交明细
|
||||
*/
|
||||
@RequiresPermissions("mengyu:moneyPoolLog:add")
|
||||
@Log(title = "资金池交明细", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(MoneyPoolLog moneyPoolLog)
|
||||
{
|
||||
return toAjax(moneyPoolLogService.insertMoneyPoolLog(moneyPoolLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改资金池交明细
|
||||
*/
|
||||
@GetMapping("/edit/{billType}")
|
||||
public String edit(@PathVariable("billType") Integer billType, ModelMap mmap)
|
||||
{
|
||||
MoneyPoolLog moneyPoolLog = moneyPoolLogService.selectMoneyPoolLogById(billType);
|
||||
mmap.put("moneyPoolLog", moneyPoolLog);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存资金池交明细
|
||||
*/
|
||||
@RequiresPermissions("mengyu:moneyPoolLog:edit")
|
||||
@Log(title = "资金池交明细", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(MoneyPoolLog moneyPoolLog)
|
||||
{
|
||||
return toAjax(moneyPoolLogService.updateMoneyPoolLog(moneyPoolLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除资金池交明细
|
||||
*/
|
||||
@RequiresPermissions("mengyu:moneyPoolLog:remove")
|
||||
@Log(title = "资金池交明细", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(moneyPoolLogService.deleteMoneyPoolLogByIds(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
package com.cronie.mengyu.web.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.cronie.mengyu.domain.YearPlan;
|
||||
import com.cronie.mengyu.service.IYearPlanService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.base.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.framework.web.base.BaseController;
|
||||
import com.ruoyi.framework.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 年度计划 信息操作处理
|
||||
*
|
||||
* @author cronie
|
||||
* @date 2018-11-15
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/mengyu/yearPlan")
|
||||
public class YearPlanController extends BaseController
|
||||
{
|
||||
private String prefix = "mengyu/yearPlan";
|
||||
|
||||
@Autowired
|
||||
private IYearPlanService yearPlanService;
|
||||
|
||||
@RequiresPermissions("mengyu:yearPlan:view")
|
||||
@GetMapping()
|
||||
public String yearPlan()
|
||||
{
|
||||
return prefix + "/yearPlan";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询年度计划列表
|
||||
*/
|
||||
@RequiresPermissions("mengyu:yearPlan:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(YearPlan yearPlan)
|
||||
{
|
||||
startPage();
|
||||
List<YearPlan> list = yearPlanService.selectYearPlanList(yearPlan);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增年度计划
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存年度计划
|
||||
*/
|
||||
@RequiresPermissions("mengyu:yearPlan:add")
|
||||
@Log(title = "年度计划", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(YearPlan yearPlan)
|
||||
{
|
||||
return toAjax(yearPlanService.insertYearPlan(yearPlan));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改年度计划
|
||||
*/
|
||||
@GetMapping("/edit/{year}")
|
||||
public String edit(@PathVariable("year") String year, ModelMap mmap)
|
||||
{
|
||||
YearPlan yearPlan = yearPlanService.selectYearPlanById(year);
|
||||
mmap.put("yearPlan", yearPlan);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存年度计划
|
||||
*/
|
||||
@RequiresPermissions("mengyu:yearPlan:edit")
|
||||
@Log(title = "年度计划", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(YearPlan yearPlan)
|
||||
{
|
||||
return toAjax(yearPlanService.updateYearPlan(yearPlan));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除年度计划
|
||||
*/
|
||||
@RequiresPermissions("mengyu:yearPlan:remove")
|
||||
@Log(title = "年度计划", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(yearPlanService.deleteYearPlanByIds(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
# 数据源配置
|
||||
spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driverClassName: com.mysql.jdbc.Driver
|
||||
druid:
|
||||
# 主库数据源
|
||||
master:
|
||||
url: jdbc:mysql://localhost:3306/mengyu?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true
|
||||
username: root
|
||||
password: longshine
|
||||
# 从库数据源
|
||||
slave:
|
||||
# 从数据源开关/默认关闭
|
||||
enabled: false
|
||||
url:
|
||||
username:
|
||||
password:
|
||||
# 初始连接数
|
||||
initial-size: 10
|
||||
# 最大连接池数量
|
||||
max-active: 100
|
||||
# 最小连接池数量
|
||||
min-idle: 10
|
||||
# 配置获取连接等待超时的时间
|
||||
max-wait: 60000
|
||||
# 打开PSCache,并且指定每个连接上PSCache的大小
|
||||
pool-prepared-statements: true
|
||||
max-pool-prepared-statement-per-connection-size: 20
|
||||
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
||||
timeBetweenEvictionRunsMillis: 60000
|
||||
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
||||
min-evictable-idle-time-millis: 300000
|
||||
validation-query: SELECT 1 FROM DUAL
|
||||
test-while-idle: true
|
||||
test-on-borrow: false
|
||||
test-on-return: false
|
||||
stat-view-servlet:
|
||||
enabled: true
|
||||
url-pattern: /monitor/druid/*
|
||||
filter:
|
||||
stat:
|
||||
log-slow-sql: true
|
||||
slow-sql-millis: 1000
|
||||
merge-sql: false
|
||||
wall:
|
||||
config:
|
||||
multi-statement-allow: true
|
||||
|
|
@ -0,0 +1,134 @@
|
|||
# 项目相关配置
|
||||
ruoyi:
|
||||
# 名称
|
||||
name: cronie
|
||||
# 版本
|
||||
version: 3.0.0
|
||||
# 版权年份
|
||||
copyrightYear: 2018
|
||||
# 文件上传路径
|
||||
profile: D:/profile/
|
||||
# 获取ip地址开关
|
||||
addressEnabled: true
|
||||
|
||||
# 开发环境配置
|
||||
server:
|
||||
# 服务端口
|
||||
port: 80
|
||||
servlet:
|
||||
# 项目contextPath
|
||||
context-path: /
|
||||
tomcat:
|
||||
# tomcat的URI编码
|
||||
uri-encoding: UTF-8
|
||||
# tomcat最大线程数,默认为200
|
||||
max-threads: 800
|
||||
# Tomcat启动初始化的线程数,默认值25
|
||||
min-spare-threads: 30
|
||||
|
||||
# 日志配置
|
||||
logging:
|
||||
level:
|
||||
com.ruoyi: debug
|
||||
org.springframework: WARN
|
||||
org.spring.springboot.dao: debug
|
||||
|
||||
# 用户配置
|
||||
user:
|
||||
password:
|
||||
# 密码错误{maxRetryCount}次锁定10分钟
|
||||
maxRetryCount: 5
|
||||
|
||||
# Spring配置
|
||||
spring:
|
||||
# 模板引擎
|
||||
thymeleaf:
|
||||
mode: HTML
|
||||
encoding: utf-8
|
||||
# 禁用缓存
|
||||
cache: false
|
||||
# 资源信息
|
||||
messages:
|
||||
# 国际化资源文件路径
|
||||
basename: i18n/messages
|
||||
jackson:
|
||||
time-zone: GMT+8
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
profiles:
|
||||
active: druid
|
||||
# 文件上传
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 30MB
|
||||
max-request-size: 30MB
|
||||
# 服务模块
|
||||
devtools:
|
||||
restart:
|
||||
# 热部署开关
|
||||
enabled: true
|
||||
|
||||
# MyBatis
|
||||
mybatis:
|
||||
# 搜索指定包别名
|
||||
typeAliasesPackage: com.ruoyi
|
||||
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
||||
mapperLocations: classpath*:mapper/**/*Mapper.xml
|
||||
# 加载全局的配置文件
|
||||
configLocation: classpath:mapper/mybatis-config.xml
|
||||
|
||||
# PageHelper分页插件
|
||||
pagehelper:
|
||||
helperDialect: mysql
|
||||
reasonable: true
|
||||
supportMethodsArguments: true
|
||||
params: count=countSql
|
||||
|
||||
# Shiro
|
||||
shiro:
|
||||
user:
|
||||
# 登录地址
|
||||
loginUrl: /login
|
||||
# 权限认证失败地址
|
||||
unauthorizedUrl: /unauth
|
||||
# 首页地址
|
||||
indexUrl: /index
|
||||
# 验证码开关
|
||||
captchaEnabled: true
|
||||
# 验证码类型 math 数组计算 char 字符
|
||||
captchaType: math
|
||||
cookie:
|
||||
# 设置Cookie的域名 默认空,即当前访问的域名
|
||||
domain:
|
||||
# 设置cookie的有效访问路径
|
||||
path: /
|
||||
# 设置HttpOnly属性
|
||||
httpOnly: true
|
||||
# 设置Cookie的过期时间,天为单位
|
||||
maxAge: 30
|
||||
session:
|
||||
# Session超时时间(默认30分钟)
|
||||
expireTime: 30
|
||||
# 同步session到数据库的周期(默认1分钟)
|
||||
dbSyncPeriod: 1
|
||||
# 相隔多久检查一次session的有效性,默认就是10分钟
|
||||
validationInterval: 10
|
||||
|
||||
# 防止XSS攻击
|
||||
xss:
|
||||
# 过滤开关
|
||||
enabled: true
|
||||
# 排除链接(多个用逗号分隔)
|
||||
excludes: /system/notice/*
|
||||
# 匹配链接
|
||||
urlPatterns: /system/*,/monitor/*,/tool/*
|
||||
|
||||
# 代码生成
|
||||
gen:
|
||||
# 作者
|
||||
author: cronie
|
||||
# 默认生成包路径 module 需改成自己的模块名称 如 system monitor tool
|
||||
packageName: com.cronie.mengyu
|
||||
# 自动去除表前缀,默认是true
|
||||
autoRemovePre: true
|
||||
# 表前缀(类名不会包含表前缀)
|
||||
tablePrefix: sys_
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
Application Version: ${ruoyi.version}
|
||||
Spring Boot Version: ${spring-boot.version}
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// _ooOoo_ //
|
||||
// o8888888o //
|
||||
// 88" . "88 //
|
||||
// (| ^_^ |) //
|
||||
// O\ = /O //
|
||||
// ____/`---'\____ //
|
||||
// .' \\| |// `. //
|
||||
// / \\||| : |||// \ //
|
||||
// / _||||| -:- |||||- \ //
|
||||
// | | \\\ - /// | | //
|
||||
// | \_| ''\---/'' | | //
|
||||
// \ .-\__ `-` ___/-. / //
|
||||
// ___`. .' /--.--\ `. . ___ //
|
||||
// ."" '< `.___\_<|>_/___.' >'"". //
|
||||
// | | : `- \`.;`\ _ /`;.`/ - ` : | | //
|
||||
// \ \ `-. \_ __\ /__ _/ .-` / / //
|
||||
// ========`-.____`-.___\_____/___.-`____.-'======== //
|
||||
// `=---=' //
|
||||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //
|
||||
// 佛祖保佑 永不宕机 永无BUG //
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
|
||||
<property name="log.path" value="/home/ruoyi/logs" />
|
||||
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
|
||||
|
||||
<!-- 控制台输出 -->
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- 系统日志输出 -->
|
||||
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/sys-info.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 按天回滚 daily -->
|
||||
<fileNamePattern>${log.path}/sys-info.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<level>INFO</level>
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/sys-error.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<fileNamePattern>${log.path}/sys-error.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<level>ERROR</level>
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<!-- 用户访问日志输出 -->
|
||||
<appender name="sys-user" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/sys-user.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 按天回滚 daily -->
|
||||
<fileNamePattern>${log.path}/sys-user.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- 显示形成的sql、使用的参数、结果集 -->
|
||||
<!--
|
||||
<logger name="java.sql" level="debug" />
|
||||
<logger name="org.springframework.jdbc" level="debug" />
|
||||
-->
|
||||
|
||||
<logger name="com.ruoyi" level="info" />
|
||||
|
||||
<root level="info">
|
||||
<appender-ref ref="console" />
|
||||
</root>
|
||||
|
||||
<!--系统操作日志-->
|
||||
<root level="info">
|
||||
<appender-ref ref="file_info" />
|
||||
<appender-ref ref="file_error" />
|
||||
</root>
|
||||
|
||||
<!--系统用户操作日志-->
|
||||
<logger name="sys-user" level="info">
|
||||
<appender-ref ref="sys-user"/>
|
||||
</logger>
|
||||
</configuration>
|
||||
|
|
@ -0,0 +1,85 @@
|
|||
<?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.cronie.mengyu.mapper.GoodsMapper">
|
||||
|
||||
<resultMap type="Goods" id="GoodsResult">
|
||||
<result property="code" column="code" />
|
||||
<result property="name" column="name" />
|
||||
<result property="codeType" column="code_type" />
|
||||
<result property="industryType" column="industry_type" />
|
||||
<result property="plateType" column="plate_type" />
|
||||
<result property="creater" column="creater" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectGoodsVo">
|
||||
select code, name, code_type, industry_type, plate_type, creater, create_time from my_goods
|
||||
</sql>
|
||||
|
||||
<select id="selectGoodsList" parameterType="Goods" resultMap="GoodsResult">
|
||||
<include refid="selectGoodsVo"/>
|
||||
<where>
|
||||
<if test="code != null and code != '' "> and code = #{code}</if>
|
||||
<if test="name != null and name != '' "> and name = #{name}</if>
|
||||
<if test="codeType != null "> and code_type = #{codeType}</if>
|
||||
<if test="industryType != null "> and industry_type = #{industryType}</if>
|
||||
<if test="plateType != null "> and plate_type = #{plateType}</if>
|
||||
<if test="creater != null "> and creater = #{creater}</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectGoodsById" parameterType="String" resultMap="GoodsResult">
|
||||
<include refid="selectGoodsVo"/>
|
||||
where code = #{code}
|
||||
</select>
|
||||
|
||||
<insert id="insertGoods" parameterType="Goods">
|
||||
insert into my_goods
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="code != null and code != '' ">code,</if>
|
||||
<if test="name != null and name != '' ">name,</if>
|
||||
<if test="codeType != null ">code_type,</if>
|
||||
<if test="industryType != null ">industry_type,</if>
|
||||
<if test="plateType != null ">plate_type,</if>
|
||||
<if test="creater != null ">creater,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="code != null and code != '' ">#{code},</if>
|
||||
<if test="name != null and name != '' ">#{name},</if>
|
||||
<if test="codeType != null ">#{codeType},</if>
|
||||
<if test="industryType != null ">#{industryType},</if>
|
||||
<if test="plateType != null ">#{plateType},</if>
|
||||
<if test="creater != null ">#{creater},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateGoods" parameterType="Goods">
|
||||
update my_goods
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null and name != '' ">name = #{name},</if>
|
||||
<if test="codeType != null ">code_type = #{codeType},</if>
|
||||
<if test="industryType != null ">industry_type = #{industryType},</if>
|
||||
<if test="plateType != null ">plate_type = #{plateType},</if>
|
||||
<if test="creater != null ">creater = #{creater},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where code = #{code}
|
||||
</update>
|
||||
|
||||
<delete id="deleteGoodsById" parameterType="String">
|
||||
delete from my_goods where code = #{code}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteGoodsByIds" parameterType="String">
|
||||
delete from my_goods where code in
|
||||
<foreach item="code" collection="array" open="(" separator="," close=")">
|
||||
#{code}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,75 @@
|
|||
<?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.cronie.mengyu.mapper.GoodsTradeModelInsMapper">
|
||||
|
||||
<resultMap type="GoodsTradeModelIns" id="GoodsTradeModelInsResult">
|
||||
<result property="insId" column="ins_id" />
|
||||
<result property="modelId" column="model_id" />
|
||||
<result property="insStatus" column="ins_status" />
|
||||
<result property="creater" column="creater" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectGoodsTradeModelInsVo">
|
||||
select ins_id, model_id, ins_status, creater, create_time from my_goods_trade_model_ins
|
||||
</sql>
|
||||
|
||||
<select id="selectGoodsTradeModelInsList" parameterType="GoodsTradeModelIns" resultMap="GoodsTradeModelInsResult">
|
||||
<include refid="selectGoodsTradeModelInsVo"/>
|
||||
<where>
|
||||
<if test="insId != null "> and ins_id = #{insId}</if>
|
||||
<if test="modelId != null "> and model_id = #{modelId}</if>
|
||||
<if test="insStatus != null "> and ins_status = #{insStatus}</if>
|
||||
<if test="creater != null "> and creater = #{creater}</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectGoodsTradeModelInsById" parameterType="Integer" resultMap="GoodsTradeModelInsResult">
|
||||
<include refid="selectGoodsTradeModelInsVo"/>
|
||||
where ins_id = #{insId}
|
||||
</select>
|
||||
|
||||
<insert id="insertGoodsTradeModelIns" parameterType="GoodsTradeModelIns">
|
||||
insert into my_goods_trade_model_ins
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="insId != null ">ins_id,</if>
|
||||
<if test="modelId != null ">model_id,</if>
|
||||
<if test="insStatus != null ">ins_status,</if>
|
||||
<if test="creater != null ">creater,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="insId != null ">#{insId},</if>
|
||||
<if test="modelId != null ">#{modelId},</if>
|
||||
<if test="insStatus != null ">#{insStatus},</if>
|
||||
<if test="creater != null ">#{creater},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateGoodsTradeModelIns" parameterType="GoodsTradeModelIns">
|
||||
update my_goods_trade_model_ins
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="modelId != null ">model_id = #{modelId},</if>
|
||||
<if test="insStatus != null ">ins_status = #{insStatus},</if>
|
||||
<if test="creater != null ">creater = #{creater},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where ins_id = #{insId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteGoodsTradeModelInsById" parameterType="Integer">
|
||||
delete from my_goods_trade_model_ins where ins_id = #{insId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteGoodsTradeModelInsByIds" parameterType="String">
|
||||
delete from my_goods_trade_model_ins where ins_id in
|
||||
<foreach item="insId" collection="array" open="(" separator="," close=")">
|
||||
#{insId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,95 @@
|
|||
<?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.cronie.mengyu.mapper.GoodsTradeModelInsNodeMapper">
|
||||
|
||||
<resultMap type="GoodsTradeModelInsNode" id="GoodsTradeModelInsNodeResult">
|
||||
<result property="nodeId" column="node_id" />
|
||||
<result property="insId" column="ins_id" />
|
||||
<result property="price" column="price" />
|
||||
<result property="volumes" column="volumes" />
|
||||
<result property="tradeTime" column="trade_time" />
|
||||
<result property="creater" column="creater" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="tradeType" column="trade_type" />
|
||||
<result property="tradeNote" column="trade_note" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectGoodsTradeModelInsNodeVo">
|
||||
select node_id, ins_id, price, volumes, trade_time, creater, create_time, trade_type, trade_note from my_goods_trade_model_ins_node
|
||||
</sql>
|
||||
|
||||
<select id="selectGoodsTradeModelInsNodeList" parameterType="GoodsTradeModelInsNode" resultMap="GoodsTradeModelInsNodeResult">
|
||||
<include refid="selectGoodsTradeModelInsNodeVo"/>
|
||||
<where>
|
||||
<if test="nodeId != null "> and node_id = #{nodeId}</if>
|
||||
<if test="insId != null "> and ins_id = #{insId}</if>
|
||||
<if test="price != null "> and price = #{price}</if>
|
||||
<if test="volumes != null "> and volumes = #{volumes}</if>
|
||||
<if test="tradeTime != null "> and trade_time = #{tradeTime}</if>
|
||||
<if test="creater != null "> and creater = #{creater}</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="tradeType != null "> and trade_type = #{tradeType}</if>
|
||||
<if test="tradeNote != null and tradeNote != '' "> and trade_note = #{tradeNote}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectGoodsTradeModelInsNodeById" parameterType="Integer" resultMap="GoodsTradeModelInsNodeResult">
|
||||
<include refid="selectGoodsTradeModelInsNodeVo"/>
|
||||
where node_id = #{nodeId}
|
||||
</select>
|
||||
|
||||
<insert id="insertGoodsTradeModelInsNode" parameterType="GoodsTradeModelInsNode">
|
||||
insert into my_goods_trade_model_ins_node
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="nodeId != null ">node_id,</if>
|
||||
<if test="insId != null ">ins_id,</if>
|
||||
<if test="price != null ">price,</if>
|
||||
<if test="volumes != null ">volumes,</if>
|
||||
<if test="tradeTime != null ">trade_time,</if>
|
||||
<if test="creater != null ">creater,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
<if test="tradeType != null ">trade_type,</if>
|
||||
<if test="tradeNote != null and tradeNote != '' ">trade_note,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="nodeId != null ">#{nodeId},</if>
|
||||
<if test="insId != null ">#{insId},</if>
|
||||
<if test="price != null ">#{price},</if>
|
||||
<if test="volumes != null ">#{volumes},</if>
|
||||
<if test="tradeTime != null ">#{tradeTime},</if>
|
||||
<if test="creater != null ">#{creater},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
<if test="tradeType != null ">#{tradeType},</if>
|
||||
<if test="tradeNote != null and tradeNote != '' ">#{tradeNote},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateGoodsTradeModelInsNode" parameterType="GoodsTradeModelInsNode">
|
||||
update my_goods_trade_model_ins_node
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="insId != null ">ins_id = #{insId},</if>
|
||||
<if test="price != null ">price = #{price},</if>
|
||||
<if test="volumes != null ">volumes = #{volumes},</if>
|
||||
<if test="tradeTime != null ">trade_time = #{tradeTime},</if>
|
||||
<if test="creater != null ">creater = #{creater},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
<if test="tradeType != null ">trade_type = #{tradeType},</if>
|
||||
<if test="tradeNote != null and tradeNote != '' ">trade_note = #{tradeNote},</if>
|
||||
</trim>
|
||||
where node_id = #{nodeId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteGoodsTradeModelInsNodeById" parameterType="Integer">
|
||||
delete from my_goods_trade_model_ins_node where node_id = #{nodeId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteGoodsTradeModelInsNodeByIds" parameterType="String">
|
||||
delete from my_goods_trade_model_ins_node where node_id in
|
||||
<foreach item="nodeId" collection="array" open="(" separator="," close=")">
|
||||
#{nodeId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,95 @@
|
|||
<?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.cronie.mengyu.mapper.GoodsTradeModelMapper">
|
||||
|
||||
<resultMap type="GoodsTradeModel" id="GoodsTradeModelResult">
|
||||
<result property="modelId" column="model_id" />
|
||||
<result property="code" column="code" />
|
||||
<result property="basicVolumes" column="basic_volumes" />
|
||||
<result property="modelStatus" column="model_status" />
|
||||
<result property="buildingPrice" column="building_price" />
|
||||
<result property="exitPrice" column="exit_price" />
|
||||
<result property="stopPrice" column="stop_price" />
|
||||
<result property="creater" column="creater" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectGoodsTradeModelVo">
|
||||
select model_id, code, basic_volumes, model_status, building_price, exit_price, stop_price, creater, create_time from my_goods_trade_model
|
||||
</sql>
|
||||
|
||||
<select id="selectGoodsTradeModelList" parameterType="GoodsTradeModel" resultMap="GoodsTradeModelResult">
|
||||
<include refid="selectGoodsTradeModelVo"/>
|
||||
<where>
|
||||
<if test="modelId != null "> and model_id = #{modelId}</if>
|
||||
<if test="code != null and code != '' "> and code = #{code}</if>
|
||||
<if test="basicVolumes != null "> and basic_volumes = #{basicVolumes}</if>
|
||||
<if test="modelStatus != null "> and model_status = #{modelStatus}</if>
|
||||
<if test="buildingPrice != null "> and building_price = #{buildingPrice}</if>
|
||||
<if test="exitPrice != null "> and exit_price = #{exitPrice}</if>
|
||||
<if test="stopPrice != null "> and stop_price = #{stopPrice}</if>
|
||||
<if test="creater != null "> and creater = #{creater}</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectGoodsTradeModelById" parameterType="Integer" resultMap="GoodsTradeModelResult">
|
||||
<include refid="selectGoodsTradeModelVo"/>
|
||||
where model_id = #{modelId}
|
||||
</select>
|
||||
|
||||
<insert id="insertGoodsTradeModel" parameterType="GoodsTradeModel">
|
||||
insert into my_goods_trade_model
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="modelId != null ">model_id,</if>
|
||||
<if test="code != null and code != '' ">code,</if>
|
||||
<if test="basicVolumes != null ">basic_volumes,</if>
|
||||
<if test="modelStatus != null ">model_status,</if>
|
||||
<if test="buildingPrice != null ">building_price,</if>
|
||||
<if test="exitPrice != null ">exit_price,</if>
|
||||
<if test="stopPrice != null ">stop_price,</if>
|
||||
<if test="creater != null ">creater,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="modelId != null ">#{modelId},</if>
|
||||
<if test="code != null and code != '' ">#{code},</if>
|
||||
<if test="basicVolumes != null ">#{basicVolumes},</if>
|
||||
<if test="modelStatus != null ">#{modelStatus},</if>
|
||||
<if test="buildingPrice != null ">#{buildingPrice},</if>
|
||||
<if test="exitPrice != null ">#{exitPrice},</if>
|
||||
<if test="stopPrice != null ">#{stopPrice},</if>
|
||||
<if test="creater != null ">#{creater},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateGoodsTradeModel" parameterType="GoodsTradeModel">
|
||||
update my_goods_trade_model
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="code != null and code != '' ">code = #{code},</if>
|
||||
<if test="basicVolumes != null ">basic_volumes = #{basicVolumes},</if>
|
||||
<if test="modelStatus != null ">model_status = #{modelStatus},</if>
|
||||
<if test="buildingPrice != null ">building_price = #{buildingPrice},</if>
|
||||
<if test="exitPrice != null ">exit_price = #{exitPrice},</if>
|
||||
<if test="stopPrice != null ">stop_price = #{stopPrice},</if>
|
||||
<if test="creater != null ">creater = #{creater},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where model_id = #{modelId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteGoodsTradeModelById" parameterType="Integer">
|
||||
delete from my_goods_trade_model where model_id = #{modelId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteGoodsTradeModelByIds" parameterType="String">
|
||||
delete from my_goods_trade_model where model_id in
|
||||
<foreach item="modelId" collection="array" open="(" separator="," close=")">
|
||||
#{modelId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,75 @@
|
|||
<?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.cronie.mengyu.mapper.MoneyPoolLogMapper">
|
||||
|
||||
<resultMap type="MoneyPoolLog" id="MoneyPoolLogResult">
|
||||
<result property="billType" column="bill_type" />
|
||||
<result property="moneyPoolLog" column="money_pool_log" />
|
||||
<result property="trademMoney" column="tradem_money" />
|
||||
<result property="moneyPoolId" column="money_pool_id" />
|
||||
<result property="nodeId" column="node_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMoneyPoolLogVo">
|
||||
select bill_type, money_pool_log, tradem_money, money_pool_id, node_id from my_money_pool_log
|
||||
</sql>
|
||||
|
||||
<select id="selectMoneyPoolLogList" parameterType="MoneyPoolLog" resultMap="MoneyPoolLogResult">
|
||||
<include refid="selectMoneyPoolLogVo"/>
|
||||
<where>
|
||||
<if test="billType != null "> and bill_type = #{billType}</if>
|
||||
<if test="moneyPoolLog != null "> and money_pool_log = #{moneyPoolLog}</if>
|
||||
<if test="trademMoney != null "> and tradem_money = #{trademMoney}</if>
|
||||
<if test="moneyPoolId != null "> and money_pool_id = #{moneyPoolId}</if>
|
||||
<if test="nodeId != null "> and node_id = #{nodeId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectMoneyPoolLogById" parameterType="Integer" resultMap="MoneyPoolLogResult">
|
||||
<include refid="selectMoneyPoolLogVo"/>
|
||||
where bill_type = #{billType}
|
||||
</select>
|
||||
|
||||
<insert id="insertMoneyPoolLog" parameterType="MoneyPoolLog">
|
||||
insert into my_money_pool_log
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="billType != null ">bill_type,</if>
|
||||
<if test="moneyPoolLog != null ">money_pool_log,</if>
|
||||
<if test="trademMoney != null ">tradem_money,</if>
|
||||
<if test="moneyPoolId != null ">money_pool_id,</if>
|
||||
<if test="nodeId != null ">node_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="billType != null ">#{billType},</if>
|
||||
<if test="moneyPoolLog != null ">#{moneyPoolLog},</if>
|
||||
<if test="trademMoney != null ">#{trademMoney},</if>
|
||||
<if test="moneyPoolId != null ">#{moneyPoolId},</if>
|
||||
<if test="nodeId != null ">#{nodeId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMoneyPoolLog" parameterType="MoneyPoolLog">
|
||||
update my_money_pool_log
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="moneyPoolLog != null ">money_pool_log = #{moneyPoolLog},</if>
|
||||
<if test="trademMoney != null ">tradem_money = #{trademMoney},</if>
|
||||
<if test="moneyPoolId != null ">money_pool_id = #{moneyPoolId},</if>
|
||||
<if test="nodeId != null ">node_id = #{nodeId},</if>
|
||||
</trim>
|
||||
where bill_type = #{billType}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMoneyPoolLogById" parameterType="Integer">
|
||||
delete from my_money_pool_log where bill_type = #{billType}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMoneyPoolLogByIds" parameterType="String">
|
||||
delete from my_money_pool_log where bill_type in
|
||||
<foreach item="billType" collection="array" open="(" separator="," close=")">
|
||||
#{billType}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
<?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.cronie.mengyu.mapper.MoneyPoolMapper">
|
||||
|
||||
<resultMap type="MoneyPool" id="MoneyPoolResult">
|
||||
<result property="creater" column="creater" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="moneyPool" column="money_pool" />
|
||||
<result property="moneyPoolId" column="money_pool_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMoneyPoolVo">
|
||||
select creater, create_time, money_pool, money_pool_id from my_money_pool
|
||||
</sql>
|
||||
|
||||
<select id="selectMoneyPoolList" parameterType="MoneyPool" resultMap="MoneyPoolResult">
|
||||
<include refid="selectMoneyPoolVo"/>
|
||||
<where>
|
||||
<if test="creater != null "> and creater = #{creater}</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="moneyPool != null "> and money_pool = #{moneyPool}</if>
|
||||
<if test="moneyPoolId != null "> and money_pool_id = #{moneyPoolId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectMoneyPoolById" parameterType="Integer" resultMap="MoneyPoolResult">
|
||||
<include refid="selectMoneyPoolVo"/>
|
||||
where creater = #{creater}
|
||||
</select>
|
||||
|
||||
<insert id="insertMoneyPool" parameterType="MoneyPool">
|
||||
insert into my_money_pool
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="creater != null ">creater,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
<if test="moneyPool != null ">money_pool,</if>
|
||||
<if test="moneyPoolId != null ">money_pool_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="creater != null ">#{creater},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
<if test="moneyPool != null ">#{moneyPool},</if>
|
||||
<if test="moneyPoolId != null ">#{moneyPoolId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMoneyPool" parameterType="MoneyPool">
|
||||
update my_money_pool
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
<if test="moneyPool != null ">money_pool = #{moneyPool},</if>
|
||||
<if test="moneyPoolId != null ">money_pool_id = #{moneyPoolId},</if>
|
||||
</trim>
|
||||
where creater = #{creater}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMoneyPoolById" parameterType="Integer">
|
||||
delete from my_money_pool where creater = #{creater}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMoneyPoolByIds" parameterType="String">
|
||||
delete from my_money_pool where creater in
|
||||
<foreach item="creater" collection="array" open="(" separator="," close=")">
|
||||
#{creater}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,80 @@
|
|||
<?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.cronie.mengyu.mapper.YearPlanMapper">
|
||||
|
||||
<resultMap type="YearPlan" id="YearPlanResult">
|
||||
<result property="year" column="year" />
|
||||
<result property="profit" column="profit" />
|
||||
<result property="planStatus" column="plan_status" />
|
||||
<result property="taskStatus" column="task_status" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="creater" column="creater" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectYearPlanVo">
|
||||
select year, profit, plan_status, task_status, create_time, creater from my_year_plan
|
||||
</sql>
|
||||
|
||||
<select id="selectYearPlanList" parameterType="YearPlan" resultMap="YearPlanResult">
|
||||
<include refid="selectYearPlanVo"/>
|
||||
<where>
|
||||
<if test="year != null and year != '' "> and year = #{year}</if>
|
||||
<if test="profit != null "> and profit = #{profit}</if>
|
||||
<if test="planStatus != null "> and plan_status = #{planStatus}</if>
|
||||
<if test="taskStatus != null "> and task_status = #{taskStatus}</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="creater != null "> and creater = #{creater}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectYearPlanById" parameterType="String" resultMap="YearPlanResult">
|
||||
<include refid="selectYearPlanVo"/>
|
||||
where year = #{year}
|
||||
</select>
|
||||
|
||||
<insert id="insertYearPlan" parameterType="YearPlan">
|
||||
insert into my_year_plan
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="year != null and year != '' ">year,</if>
|
||||
<if test="profit != null ">profit,</if>
|
||||
<if test="planStatus != null ">plan_status,</if>
|
||||
<if test="taskStatus != null ">task_status,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
<if test="creater != null ">creater,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="year != null and year != '' ">#{year},</if>
|
||||
<if test="profit != null ">#{profit},</if>
|
||||
<if test="planStatus != null ">#{planStatus},</if>
|
||||
<if test="taskStatus != null ">#{taskStatus},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
<if test="creater != null ">#{creater},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateYearPlan" parameterType="YearPlan">
|
||||
update my_year_plan
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="profit != null ">profit = #{profit},</if>
|
||||
<if test="planStatus != null ">plan_status = #{planStatus},</if>
|
||||
<if test="taskStatus != null ">task_status = #{taskStatus},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
<if test="creater != null ">creater = #{creater},</if>
|
||||
</trim>
|
||||
where year = #{year}
|
||||
</update>
|
||||
|
||||
<delete id="deleteYearPlanById" parameterType="String">
|
||||
delete from my_year_plan where year = #{year}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteYearPlanByIds" parameterType="String">
|
||||
delete from my_year_plan where year in
|
||||
<foreach item="year" collection="array" open="(" separator="," close=")">
|
||||
#{year}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue