INSERT INTO `custody_data_dictionary_dividend_way_details` VALUES (27, 1, '31', '红利再投资', NULL, NULL, '2022-1-19 16:39:43', '2022-1-19 16:39:43', 0);
INSERT INTO `custody_data_dictionary_dividend_way_details` VALUES (28, 2, '31', '现金红利', NULL, NULL, '2022-1-19 16:39:43', '2022-1-19 16:39:43', 0);
INSERT INTO `custody_data_dictionary_dividend_way_details` VALUES (29, 3, '31', '待红利再投资', NULL, NULL, '2022-1-19 16:39:43', '2022-1-19 16:39:43', 0);

update custody_data_dictionary_product_status_details set origin_value = 55
where trust_no = 35 and dic_id = 4 and  origin_value =25;


SET FOREIGN_KEY_CHECKS=0;
DROP TABLE IF EXISTS `custody_invoke_frequency`;
CREATE TABLE `custody_invoke_frequency` (
  `id` int(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `invoke_date` varchar(8) NOT NULL COMMENT '调用日期',
  `invoke_type` varchar(1000) NOT NULL COMMENT '接口路径',
  `invoke_times` int(5) DEFAULT 0 COMMENT '调用次数',
  `trust_no` varchar(2) NOT NULL COMMENT '数据字典：托管人',
  `admin` varchar(8) NOT NULL COMMENT '租户名',
  `unique_key` varchar(255) NOT NULL COMMENT '唯一索引：用于插入',
  `version` varchar(36) DEFAULT NULL COMMENT '版本',
  `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `unique_key` (`unique_key`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=74 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;



INSERT INTO `custody_data_dictionary_payment_direction_details` VALUES (24, 1, '35', '收款', NULL, NULL, '2022-4-18 10:24:20', '2022-4-18 10:24:23', 0);
INSERT INTO `custody_data_dictionary_payment_direction_details` VALUES (25, 2, '35', '扣款', NULL, NULL, '2022-4-18 10:24:12', '2022-4-18 10:24:15', 0);

UPDATE `custody_data_dictionary_payment_direction` set value = '收款' where id = 1;
UPDATE `custody_data_dictionary_payment_direction` set value = '付款' where id = 2;

INSERT INTO custody_data_dictionary_business_name_details(dic_id,trust_no,origin_value,version,remark,create_time,update_time,is_deleted) VALUES (34, '30', '58', NULL, NULL, '2022-1-19 16:39:43', '2022-1-19 16:39:43', 0);
INSERT INTO custody_data_dictionary_business_name_details(dic_id,trust_no,origin_value,version,remark,create_time,update_time,is_deleted) VALUES (22, '30', '39', NULL, NULL, '2022-1-19 16:39:43', '2022-1-19 16:39:43', 0);
INSERT INTO custody_data_dictionary_business_name_details(dic_id,trust_no,origin_value,version,remark,create_time,update_time,is_deleted) VALUES (146, '30', '75', NULL, NULL, '2022-1-19 16:39:43', '2022-1-19 16:39:43', 0);
INSERT INTO custody_data_dictionary_business_name(key_str,value,version,remark,create_time,update_time,is_deleted) VALUES ('75', '红利再投资', NULL, NULL, '2022-1-19 16:38:02', '2022-1-19 16:38:02', 0);
INSERT INTO `custody_data_dictionary_seller` VALUES ('621', '621', '私募直销', '广发证券', 'GF8', null, null, null, null, '0');

drop index query_key on custody_fund_net_value_info;
create index query_key on custody_fund_net_value_info(admin, fund_code, fund_name,net_value_date);


INSERT INTO custody_data_dictionary_duration_currency_details(dic_id,trust_no,origin_value,version,remark,create_time,update_time,is_deleted) VALUES (1, '30', '人民币', NULL, NULL, '2022-1-19 16:39:43', '2022-1-19 16:39:43', 0);
INSERT INTO custody_data_dictionary_duration_currency_details(dic_id,trust_no,origin_value,version,remark,create_time,update_time,is_deleted) VALUES (2, '30', '法郎', NULL, NULL, '2022-1-19 16:39:43', '2022-1-19 16:39:43', 0);
INSERT INTO custody_data_dictionary_duration_currency_details(dic_id,trust_no,origin_value,version,remark,create_time,update_time,is_deleted) VALUES (3, '30', '马克', NULL, NULL, '2022-1-19 16:39:43', '2022-1-19 16:39:43', 0);
INSERT INTO custody_data_dictionary_duration_currency_details(dic_id,trust_no,origin_value,version,remark,create_time,update_time,is_deleted) VALUES (4, '30', '港币', NULL, NULL, '2022-1-19 16:39:43', '2022-1-19 16:39:43', 0);
INSERT INTO custody_data_dictionary_duration_currency_details(dic_id,trust_no,origin_value,version,remark,create_time,update_time,is_deleted) VALUES (5, '30', '日元', NULL, NULL, '2022-1-19 16:39:43', '2022-1-19 16:39:43', 0);
INSERT INTO custody_data_dictionary_duration_currency_details(dic_id,trust_no,origin_value,version,remark,create_time,update_time,is_deleted) VALUES (6, '30', '英镑', NULL, NULL, '2022-1-19 16:39:43', '2022-1-19 16:39:43', 0);
INSERT INTO custody_data_dictionary_duration_currency_details(dic_id,trust_no,origin_value,version,remark,create_time,update_time,is_deleted) VALUES (7, '30', '美元', NULL, NULL, '2022-1-19 16:39:43', '2022-1-19 16:39:43', 0);
INSERT INTO custody_data_dictionary_duration_currency_details(dic_id,trust_no,origin_value,version,remark,create_time,update_time,is_deleted) VALUES (8, '30', '欧元', NULL, NULL, '2022-1-19 16:39:43', '2022-1-19 16:39:43', 0);
