/*
 Navicat Premium Data Transfer

 Source Server         : 192.168.18.176
 Source Server Type    : MySQL
 Source Server Version : 50713
 Source Host           : 192.168.18.176:3306
 Source Schema         : scml_sy2.1_org

 Target Server Type    : MySQL
 Target Server Version : 50713
 File Encoding         : 65001

 Date: 19/02/2021 14:27:50
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for dic_page_block_rs
-- ----------------------------
DROP TABLE IF EXISTS `dic_page_block_rs`;
CREATE TABLE `dic_page_block_rs`  (
  `id` int(11) NOT NULL,
  `create_date` datetime(0) NOT NULL COMMENT '创建日期',
  `create_userid` int(11) NOT NULL COMMENT '创建用户',
  `state` int(11) NOT NULL COMMENT '状态1启用0禁用',
  `block_id` int(11) NOT NULL COMMENT '板块编码',
  `page_id` int(11) NOT NULL COMMENT '页面编码',
  `where_clause` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '查询条件',
  `table_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '表名称',
  `dim` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '维度',
  `from_table_dim` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `from_table_org` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `update_date` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
  `priority` int(11) NULL DEFAULT NULL,
  `org` int(11) NULL DEFAULT NULL
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '页面对应模块关系' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of dic_page_block_rs
-- ----------------------------
INSERT INTO `dic_page_block_rs` VALUES (43, '2020-04-26 16:39:05', 1, 1, 1, 15, 'where 1=1 and TIME=#{TIME}', 'VAL_BLOCK_VALUES_4_15_1', 'TIME,HOS_CODE', 'FROM_TABLE_HOS', 'VAL_FROM_TABLE_HOS_ORG', '2020-04-26 16:39:05', 1, 1);
INSERT INTO `dic_page_block_rs` VALUES (44, '2020-04-26 16:39:05', 1, 1, 2, 15, 'where 1=1 and TIME=#{TIME}', 'VAL_BLOCK_VALUES_4_15_2', 'ZBZBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS', 'VAL_FROM_TABLE_HOS_DIS_ORG', '2020-04-26 16:39:05', 1, 3);
INSERT INTO `dic_page_block_rs` VALUES (45, '2020-04-26 16:39:05', 1, 1, 3, 15, 'where 1=1 and TIME=#{TIME}  and KSBM in(select o2.ORG_CODE as DEPT_CODE\r\n          from sys_user_sbj_rs rs2\r\n          join sys_subject o2 on o2.id = rs2.ORG_ID and rs2.STATE = 1\r\n          where o2.STATE = 1\r\n          and rs2.USER_ID = #{USER}\r\n          )', 'VAL_BLOCK_VALUES_4_15_3', 'KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT', 'VAL_FROM_TABLE_DEPT_ORG', '2020-04-26 16:39:05', 1, 2);
INSERT INTO `dic_page_block_rs` VALUES (46, '2020-04-26 16:39:05', 1, 1, 1, 16, 'where 1=1 and KSBM=#{KSBM} and TIME=#{TIME}', 'VAL_BLOCK_VALUES_4_16_1', 'KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT', 'VAL_FROM_TABLE_DEPT_ORG', '2020-04-26 16:39:05', 2, 2);
INSERT INTO `dic_page_block_rs` VALUES (47, '2020-04-26 16:39:05', 1, 1, 2, 16, 'where 1=1 and KSBM=#{KSBM} and TIME=#{TIME}', 'VAL_BLOCK_VALUES_4_16_2', 'ZBZBM,KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS', 'VAL_FROM_TABLE_DEPT_DIS_ORG', '2020-04-26 16:39:05', 2, 4);
INSERT INTO `dic_page_block_rs` VALUES (48, '2020-04-26 16:39:05', 1, 1, 3, 16, 'where 1=1 and KSBM=#{KSBM} and TIME=#{TIME}', 'VAL_BLOCK_VALUES_4_16_3', 'ZBZBM,KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS', 'VAL_FROM_TABLE_DEPT_DIS_ORG', '2020-04-26 16:39:05', 2, 4);
INSERT INTO `dic_page_block_rs` VALUES (50, '2020-05-29 13:16:23', 1, 1, 2, 19, 'where 1=1 and TIME=#{TIME}  and KSBM in(select o2.ORG_CODE as DEPT_CODE\r\n          from sys_user_sbj_rs rs2\r\n          join sys_subject o2 on o2.id = rs2.ORG_ID and rs2.STATE = 1\r\n          where o2.STATE = 1\r\n          and rs2.USER_ID = #{USER}\r\n          )', 'VAL_BLOCK_VALUES_5_19_2', 'KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT', 'VAL_FROM_TABLE_DEPT_ORG', '2020-05-29 13:16:23', 1, 2);
INSERT INTO `dic_page_block_rs` VALUES (49, '2020-05-29 13:13:36', 1, 1, 1, 19, 'where 1=1 and TIME=#{TIME}', 'VAL_BLOCK_VALUES_5_19_1', 'TIME,HOS_CODE', 'FROM_TABLE_HOS', 'VAL_FROM_TABLE_HOS_ORG', '2020-05-29 13:13:36', 1, 1);
INSERT INTO `dic_page_block_rs` VALUES (888, '2020-05-21 11:17:09', 1, 1, 888, 888, NULL, 'VAL_PROJ_VALUE', 'KSBM,TIME,HOS_CODE', 'FROM_TABLE_HOS', 'VAL_PROJ_VALUE_ORG', '2020-05-21 11:17:09', NULL, NULL);
INSERT INTO `dic_page_block_rs` VALUES (31, '2020-03-05 16:07:53', 1, 1, 1, 11, 'where 1=1 and TIME=#{TIME}', 'VAL_BLOCK_VALUES_3_11_1', 'TIME,HOS_CODE', 'FROM_TABLE_HOS', 'VAL_FROM_TABLE_HOS_ORG', '2020-03-05 16:07:53', 1, 1);
INSERT INTO `dic_page_block_rs` VALUES (32, '2020-03-05 16:08:38', 1, 1, 2, 11, 'where 1=1 and TIME=#{TIME}', 'VAL_BLOCK_VALUES_3_11_2', 'ZBZBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS', 'VAL_FROM_TABLE_HOS_DIS_ORG', '2020-03-05 16:08:38', 1, 3);
INSERT INTO `dic_page_block_rs` VALUES (33, '2020-03-05 16:10:14', 1, 1, 3, 11, 'where 1=1 and TIME=#{TIME}  and KSBM in(select o2.ORG_CODE as DEPT_CODE\r\n          from sys_user_sbj_rs rs2\r\n          join sys_subject o2 on o2.id = rs2.ORG_ID and rs2.STATE = 1\r\n          where o2.STATE = 1\r\n          and rs2.USER_ID = #{USER}\r\n          ) AND ZLS>0', 'VAL_BLOCK_VALUES_3_11_3', 'KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT', 'VAL_FROM_TABLE_DEPT_ORG', '2020-03-05 16:10:14', 1, 2);
INSERT INTO `dic_page_block_rs` VALUES (34, '2020-03-05 16:10:31', 1, 1, 1, 12, 'where 1=1 and KSBM=#{KSBM} and TIME=#{TIME}', 'VAL_BLOCK_VALUES_3_12_1', 'KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT', 'VAL_FROM_TABLE_DEPT_ORG', '2020-03-05 16:10:31', 2, 2);
INSERT INTO `dic_page_block_rs` VALUES (35, '2020-03-05 16:11:14', 1, 1, 2, 12, 'where 1=1 and KSBM=#{KSBM} and TIME=#{TIME}', 'VAL_BLOCK_VALUES_3_12_2', 'ZBZBM,KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS', 'VAL_FROM_TABLE_DEPT_DIS_ORG', '2020-03-05 16:11:14', 2, 4);
INSERT INTO `dic_page_block_rs` VALUES (36, '2020-03-05 16:11:31', 1, 0, 3, 12, 'where 1=1 and KSBM=#{KSBM} and TIME=#{TIME}', 'VAL_BLOCK_VALUES_3_12_3', 'YSBM,KSBM,YSLX,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DOC', 'VAL_FROM_TABLE_DEPT_DOC_ORG', '2020-03-05 16:11:31', 2, 9);
INSERT INTO `dic_page_block_rs` VALUES (37, '2020-03-05 16:13:15', 1, 1, 1, 13, 'where 1=1 and TIME=#{TIME} and ZBZBM=#{ZBZBM}', 'VAL_BLOCK_VALUES_3_13_1', 'ZBZBM,TIME,HOS_CODE', 'FROM_TABLE_DIS', 'VAL_FROM_TABLE_DIS_ORG', '2020-03-05 16:13:15', 3, 5);
INSERT INTO `dic_page_block_rs` VALUES (38, '2020-03-05 16:13:56', 1, 1, 2, 13, 'where 1=1 and TIME=#{TIME} and ZBZBM=#{ZBZBM}', 'VAL_BLOCK_VALUES_3_13_2', 'YJBZBM,ZBZBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS_ST', 'VAL_FROM_TABLE_DIS_ST_ORG', '2020-03-05 16:13:56', 3, 6);
INSERT INTO `dic_page_block_rs` VALUES (39, '2020-03-05 16:14:16', 1, 1, 3, 13, 'where 1=1 and TIME=#{TIME} and ZBZBM=#{ZBZBM}', 'VAL_BLOCK_VALUES_3_13_3', 'ZBZBM,KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS', 'VAL_FROM_TABLE_DEPT_DIS_ORG', '2020-03-05 16:14:16', 3, 4);
INSERT INTO `dic_page_block_rs` VALUES (40, '2020-03-05 16:14:43', 1, 1, 1, 14, '  A where 1=1 and  TIME=#{TIME} and ZBZBM=#{ZBZBM} \r\nunion all\r\nselect CREATE_DATE,\r\nCREATE_USERID,\r\nSTATE,\r\nHOS_CODE,\r\nTIME,\r\nZBZBM,\r\nZBZ,\r\nZFY,\r\nZFY_YSZ,\r\nNULL ZFY_SB,\r\nZFY_PLL,\r\nZFY_TBZ,\r\nZFY_TBL,\r\nZLZS,\r\nZLZS_YSZ,\r\nNULL ZLZS_SB,\r\nNULL ZLZS_PLL,\r\nZLZS_TBZ,\r\nZLZS_TBL,\r\nZLS,\r\nZLS_YSZ,\r\nNULL ZLS_SB,\r\nNULL ZLS_PLL,\r\nZLS_TBZ,\r\nZLS_TBL,\r\nNULL LS_TJPW,\r\nLS_TJPW_FZ,\r\nLS_TJPW_FM,\r\nLS_TJZB,\r\nRW,\r\nNULL RW_YSZ,\r\nRW_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,\r\nLJFY_TBZ,\r\nLJFY_TBL,\r\nGZS_YBZS,\r\nZZS_YBZS,\r\nDZS_YBZS,\r\nNULL YBRS_ZB_TBZ,\r\nNULL YBRS_ZB_TBL,\r\nZGZS_LDFY,\r\nDZS_LDFY,\r\nZGZS_CSZFL,\r\nDZS_CSZFL,\r\nDZS_YBFY,\r\nZGZS_YBFY,\r\nYB_ZSDJ_BZZ,\r\nNULL GROUP_TYPE,\r\nYBZS_ZB,\r\nDZS_LDFY_TBL,\r\nZGZS_LDFY_TBL\r\nfrom  VAL_BLOCK_VALUES_3_14_2 where  TIME=#{TIME} and YJBZBM=#{ZBZBM} and KSBM = #{KSBM}  ', 'VAL_BLOCK_VALUES_3_14_1', 'ZBZBM,TIME,HOS_CODE', 'FROM_TABLE_DIS', 'VAL_FROM_TABLE_DIS_ORG', '2020-03-05 16:14:43', 3, 5);
INSERT INTO `dic_page_block_rs` VALUES (41, '2020-03-05 16:15:02', 1, 1, 2, 14, '  A\r\nright join dic_disease B ON A.ZBZBM=B.PARENT_CODE         and A.YJBZBM=B.MDC_CODE\r\nleft join dic_disease_rank c on b.MDC_CODE = c.ZBZBM  and (c.TIME=#{TIME} OR c.TIME IS NULL) \r\nWHERE A.TIME=#{TIME}  AND A.KSBM=#{KSBM} AND a.ZBZBM=#{ZBZBM} and B.level =0 and b.level =#{LEVEL}\r\nunion all\r\nSELECT * FROM VAL_BLOCK_VALUES_3_14_2 A \r\nright JOIN (select * from dic_disease where level = 1 and level = #{LEVEL}) B ON A.YJBZBM=B.MDC_CODE\r\nleft join dic_disease_rank c on b.MDC_CODE = c.ZBZBM and (c.TIME=#{TIME} OR c.TIME IS NULL)\r\nWHERE  A.TIME=#{TIME}    AND A.KSBM=#{KSBM} \r\nunion \r\nSELECT * FROM VAL_BLOCK_VALUES_3_14_2 A \r\nright JOIN (select * from dic_disease where level != 0 and level = #{LEVEL}) B ON A.YJBZBM=B.MDC_CODE\r\nleft join dic_disease_rank c on b.MDC_CODE = c.Z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r\nA.ZGZS_CSZFL,\r\nA.DZS_CSZFL,\r\nA.DZS_YBFY,\r\nA.ZGZS_YBFY,\r\nA.ZGZS_YBZS,\r\nA.ZGZS_YBRS,\r\nA.DZS_YBRS,\r\nA.YB_ZSDJ_BZZ,\r\nA.ZGZS_CSZFL_PLL,\r\nA.DZS_CSZFL_PLL,\r\nA.CSZFL_BZZ,\r\nA.ZFFY_ZB_BZZ,\r\nA.ZFFY_ZB_BZ_PLL,\r\nA.YBFY_TBL,\r\nA.YBFY_TBZ,\r\nA.ZFFY_ZB_PLL,\r\nA.ZFFY_ZB,\r\nA.CSZFL_PLL,\r\nA.ZFFY_ZB_TBL,\r\nA.DZS_LDFY_TBL,\r\nA.ZGZS_LDFY_TBL,\r\nA.YBZS_ZB,\r\nA.YBFY_ZB,\r\nB.LEVEL,\r\nA.RW_TJ_TOP,\r\nA.SZB_JP,\r\nA.LS_TJ,\r\nA.ICD,\r\nb.*,c.* from (select * from VAL_BLOCK_VALUES_3_14_2 where  TIME=#{TIME} AND  KSBM=#{KSBM} AND ZBZBM=#{ZBZBM})  A\r\nright join dic_disease B ON A.ZBZBM=B.PARENT_CODE         and A.YJBZBM=B.MDC_CODE\r\nleft join (SELECT * FROM dic_disease_rank WHERE TIME = #{TIME}) c on b.MDC_CODE = c.ZBZBM\r\nWHERE  B.PARENT_CODE=#{ZBZBM}    and a.TIME is null   and B.level !=1 and b.level =#{LEVEL} ', 'VAL_BLOCK_VALUES_3_14_2', 'YJBZBM,ZBZBM,KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS_ST', 'VAL_FROM_TABLE_DEPT_DIS_ST_ORG', '2020-03-05 16:15:02', 3, 8);
INSERT INTO `dic_page_block_rs` VALUES (42, '2020-03-05 16:15:19', 1, 0, 3, 14, 'where 1=1 and KSBM=#{KSBM} and TIME=#{TIME} ', 'VAL_BLOCK_VALUES_3_14_3', 'YSBM,KSBM,YSLX,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DOC', 'VAL_FROM_TABLE_DEPT_DOC_ORG', '2020-03-05 16:15:19', 3, 9);
INSERT INTO `dic_page_block_rs` VALUES (1, '2019-10-24 14:21:03', 1, 1, 1, 1, 'where 1=1 and TIME=#{TIME}', 'VAL_BLOCK_VALUES_1_1_1', 'TIME,HOS_CODE', 'FROM_TABLE_HOS', 'VAL_FROM_TABLE_HOS_ORG', '2019-10-24 14:21:03', 1, 1);
INSERT INTO `dic_page_block_rs` VALUES (2, '2019-10-24 14:21:03', 1, 1, 2, 1, 'where 1=1 and TIME=#{TIME}', 'VAL_BLOCK_VALUES_1_1_2', 'ZBZBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS', 'VAL_FROM_TABLE_HOS_DIS_ORG', '2019-10-24 14:21:03', 1, 3);
INSERT INTO `dic_page_block_rs` VALUES (3, '2019-10-24 14:21:03', 1, 1, 3, 1, 'where 1=1 and TIME=#{TIME}  and KSBM in(select o2.ORG_CODE as DEPT_CODE\r\n          from sys_user_sbj_rs rs2\r\n          join sys_subject o2 on o2.id = rs2.ORG_ID and rs2.STATE = 1\r\n          where o2.STATE = 1\r\n          and rs2.USER_ID = #{USER}\r\n          ) AND ZLS>0', 'VAL_BLOCK_VALUES_1_1_3', 'KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT', 'VAL_FROM_TABLE_DEPT_ORG', '2019-10-24 14:21:03', 1, 2);
INSERT INTO `dic_page_block_rs` VALUES (4, '2019-10-24 14:21:03', 1, 1, 1, 2, 'where 1=1 and KSBM=#{KSBM} and TIME=#{TIME}', 'VAL_BLOCK_VALUES_1_2_1', 'KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT', 'VAL_FROM_TABLE_DEPT_ORG', '2019-10-24 14:21:03', 2, 2);
INSERT INTO `dic_page_block_rs` VALUES (5, '2019-10-24 14:21:03', 1, 1, 2, 2, 'where 1=1 and KSBM=#{KSBM} and TIME=#{TIME}', 'VAL_BLOCK_VALUES_1_2_2', 'ZBZBM,KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS', 'VAL_FROM_TABLE_DEPT_DIS_ORG', '2019-10-24 14:21:03', 2, 4);
INSERT INTO `dic_page_block_rs` VALUES (6, '2019-10-24 14:21:03', 1, 1, 3, 2, 'where 1=1 and KSBM=#{KSBM} and TIME=#{TIME} AND ZLS>0', 'VAL_BLOCK_VALUES_1_2_3', 'YSBM,KSBM,YSLX,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DOC', 'VAL_FROM_TABLE_DEPT_DOC_ORG', '2019-10-24 14:21:03', 2, 9);
INSERT INTO `dic_page_block_rs` VALUES (7, '2019-10-24 14:21:03', 1, 1, 1, 3, 'where 1=1 and TIME=#{TIME} and ZBZBM=#{ZBZBM}', 'VAL_BLOCK_VALUES_1_3_1', 'ZBZBM,TIME,HOS_CODE', 'FROM_TABLE_DIS', 'VAL_FROM_TABLE_DIS_ORG', '2019-10-24 14:21:03', 3, 5);
INSERT INTO `dic_page_block_rs` VALUES (8, '2019-10-24 14:21:03', 1, 1, 2, 3, 'where 1=1 and TIME=#{TIME} and ZBZBM=#{ZBZBM}', 'VAL_BLOCK_VALUES_1_3_2', 'YJBZBM,ZBZBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS_ST', 'VAL_FROM_TABLE_DIS_ST_ORG', '2019-10-24 14:21:03', 3, 6);
INSERT INTO `dic_page_block_rs` VALUES (9, '2019-10-24 14:21:03', 1, 0, 3, 3, 'where 1=1 and TIME=#{TIME} and ZBZBM=#{ZBZBM}', 'VAL_BLOCK_VALUES_1_3_3', 'ZBZBM,KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS', 'VAL_FROM_TABLE_DEPT_DIS_ORG', '2019-10-24 14:21:03', 3, 4);
INSERT INTO `dic_page_block_rs` VALUES (13, '2019-10-30 17:23:44', 1, 1, 1, 5, '  A where 1=1 and  TIME=#{TIME} and ZBZBM=#{ZBZBM} \r\nunion all\r\nselect CREATE_DATE,\r\nCREATE_USERID,\r\n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_TBL,\r\nHC_ZSDJ_TBL,\r\nZGZS_LDFY,\r\nZGZS_LDFY_TBL,\r\nZGZS_CSZFL,\r\nDZS_CSZFL,\r\nZGLS,\r\nNULL GROUP_TYPE,\r\nNULL ZGBZSS_RW,\r\nNULL ZGBZSS_ZLS_YZB,\r\nNULL ZGBZSS_ZLS_TJZB,\r\nNULL ZGBZSS_RW_TBL,\r\nNULL ZGSSL,\r\nNULL ZGSSL_TBL,\r\nNULL GBZSS_ZLS_ZB\r\nfrom  VAL_BLOCK_VALUES_1_5_2 where  TIME=#{TIME} and YJBZBM=#{ZBZBM} and KSBM = #{KSBM}  \r\n', 'VAL_BLOCK_VALUES_1_5_1', 'ZBZBM,TIME,HOS_CODE', 'FROM_TABLE_DIS', 'VAL_FROM_TABLE_DIS_ORG', '2019-10-30 17:23:44', 3, 5);
INSERT INTO `dic_page_block_rs` VALUES (14, '2019-10-30 17:23:58', 1, 1, 2, 5, ' A\r\nright join dic_disease B ON A.ZBZBM=B.PARENT_CODE         and A.YJBZBM=B.MDC_CODE\r\nleft join dic_disease_rank c on b.MDC_CODE = c.ZBZBM and (c.TIME=#{TIME} OR c.TIME IS NULL)\r\nWHERE A.TIME=#{TIME}  AND A.KSBM=#{KSBM} AND a.ZBZBM=#{ZBZBM} and B.level =0 and b.level =#{LEVEL} \r\nunion all\r\nSELECT * FROM val_block_values_1_5_2 A \r\nright JOIN (select * from dic_disease where level = 1 and level = #{LEVEL}) B ON A.YJBZBM=B.MDC_CODE\r\nleft join dic_disease_rank c on b.MDC_CODE = c.ZBZBM and (c.TIME=#{TIME} OR c.TIME IS NULL)\r\nWHERE  A.TIME=#{TIME}   AND A.KSBM=#{KSBM}  \r\nunion \r\nSELECT * FROM val_block_values_1_5_2 A \r\nright JOIN (select * from dic_disease where level != 0 and level = #{LEVEL}) B ON A.YJBZBM=B.MDC_CODE\r\nleft join dic_disease_rank c on b.MDC_CODE = c.ZBZBM and (c.TIME=#{TIME} OR c.TIME IS NULL)\r\nWH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FL,\r\nB.LEVEL,\r\nA.LJYF,\r\nA.LJHF,\r\nA.LJYF_TBL,\r\nA.LJHF_TBL,\r\nA.ICD,\r\nb.*,c.* from (select * from val_block_values_1_5_2 where  TIME=#{TIME} AND  KSBM=#{KSBM} AND ZBZBM=#{ZBZBM})  A\r\nright join dic_disease B ON A.ZBZBM=B.PARENT_CODE         and A.YJBZBM=B.MDC_CODE\r\nleft join (SELECT * FROM dic_disease_rank WHERE TIME = #{TIME}) c on b.MDC_CODE = c.ZBZBM\r\nWHERE  B.PARENT_CODE=#{ZBZBM}    and a.TIME is null   and B.level !=1 and b.level =#{LEVEL}  ', 'VAL_BLOCK_VALUES_1_5_2', 'YJBZBM,ZBZBM,KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS_ST', 'VAL_FROM_TABLE_DEPT_DIS_ST_ORG', '2019-10-30 17:23:58', 3, 8);
INSERT INTO `dic_page_block_rs` VALUES (15, '2019-10-30 17:24:11', 1, 0, 3, 5, 'where 1=1 and KSBM=#{KSBM} and TIME=#{TIME} ', 'VAL_BLOCK_VALUES_1_5_3', 'YSBM,KSBM,YSLX,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DOC', 'VAL_FROM_TABLE_DEPT_DOC_ORG', '2019-10-30 17:24:11', 3, 9);
INSERT INTO `dic_page_block_rs` VALUES (51, '2020-05-29 13:45:12', 1, 1, 3, 19, 'where 1=1 and TIME=#{TIME}', 'VAL_BLOCK_VALUES_5_19_3', 'KSBM,TIME,HOS_CODE', 'FROM_TABLE_SALARY_YJ', 'VAL_FROM_TABLE_DEPT_YJ_ORG', '2020-05-29 13:45:12', 1, 10);
INSERT INTO `dic_page_block_rs` VALUES (52, '2020-05-29 18:17:14', 1, 1, 1, 20, 'where 1=1 and KSBM=#{KSBM} and TIME=#{TIME}', 'VAL_BLOCK_VALUES_5_20_1', 'KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT', 'VAL_FROM_TABLE_DEPT_ORG', '2020-05-29 18:17:14', 2, 2);
INSERT INTO `dic_page_block_rs` VALUES (53, '2020-05-29 18:18:17', 1, 1, 2, 20, 'where 1=1 and KSBM=#{KSBM} and TIME=#{TIME}', 'VAL_BLOCK_VALUES_5_20_2', 'ZBZBM,KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS', 'VAL_FROM_TABLE_DEPT_DIS_ORG', '2020-05-29 18:18:17', 2, 4);
INSERT INTO `dic_page_block_rs` VALUES (54, '2020-06-03 19:17:14', 1, 1, 1, 18, '  A where 1=1 and  TIME=#{TIME} and ZBZBM=#{ZBZBM} \r\nunion all\r\nselect   CREATE_DATE,\r\nCREATE_USERID,\r\nSTATE,\r\nHOS_CODE,\r\nTIME,\r\nZBZBM,\r\nZBZ,\r\nZLS,\r\nZLS_TBZ,\r\nZLS_TBL,\r\nZLZS,\r\nZLZS_TBZ,\r\nZLZS_TBL,\r\nZFY,\r\nZFY_TBZ,\r\nZFY_TBL,\r\nMZS_CB,\r\nMZS_CB_TBZ,\r\nMZS_CB_TBL,\r\nMZS_CB_YSZ,\r\nNULL MZS_CB_SB,\r\nMZS_CB_PLL,\r\nNULL YZCBQJ_PLL,\r\nYZCBQJ,\r\nZCB,\r\nNULL ZCB_ZY,\r\nNULL ZCB_YZB,\r\nSZB,\r\nNULL ZFY1,\r\nNULL SZB_TBL,\r\nNULL SZB_TBZ,\r\nNULL JZSZB,\r\nYPCB,\r\nNULL YPCB_PLL,\r\nNULL YPCB_YSZ,\r\nNULL YPCB_SB,\r\nYP_YZCBQJ,\r\nNULL YPCB_JP,\r\nNULL YPCB_ZB,\r\nHCCB,\r\nNULL HCCB_PLL,\r\nNULL HCCB_YSZ,\r\nNULL HCCB_SB,\r\nHC_YZCBQJ,\r\nNULL HCCB_JP,\r\nNULL HCCB_ZB,\r\nRYCB,\r\nNULL RYCB_PLL,\r\nNULL RYCB_YSZ,\r\nNULL RYCB_SB,\r\nNULL RY_YZCBQJ,\r\nNULL RYCB_JP,\r\nNULL RYCB_ZB,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,\r\nNULL YPCB_JP,\r\nNULL YPCB_ZB,\r\nHCCB,\r\nNULL HCCB_PLL,\r\nNULL HCCB_YSZ,\r\nNULL HCCB_SB,\r\nHC_YZCBQJ,\r\nNULL HCCB_JP,\r\nNULL HCCB_ZB,\r\nRYCB,\r\nNULL RYCB_PLL,\r\nNULL RYCB_YSZ,\r\nNULL RYCB_SB,\r\nNULL RY_YZCBQJ,\r\nNULL RYCB_JP,\r\nNULL RYCB_ZB,\r\nNULL QTCB,\r\nNULL QTCB_PLL,\r\nNULL QTCB_YSZ,\r\nNULL QTCB_SB,\r\nNULL QT_YZCBQJ,\r\nNULL QTCB_JP,\r\nNULL QTCB_ZB,\r\nNULL RYCG_CBB,\r\nNULL RYCG_CBB_PLL,\r\nNULL RYCG_CBB_TBL,\r\nNULL RYCG_CBB_YSZ,\r\nNULL RYCG_CBB_TBZ,\r\nMZYPCB,\r\nMZHCCB,\r\nZCB_TBL,\r\nLS_TJZB,\r\nRW,\r\nRW_TBL,\r\nRW_PLL,\r\nMZYPCB_TBL,\r\nMZYPCB_JP,\r\nMZHCCB_TBL,\r\nMZHCCB_JP,\r\nCGCB_ZB,\r\nCGCB_ZB_TBL,\r\nZSDJ_PLL,\r\nYP_SJZSDJ_PLL,\r\nHC_SJZSDJ_PLL,\r\nZLZS_TJZB,\r\nMZS_CB_JP,\r\nNULL GROUP_TYPE\r\nfrom  VAL_BLOCK_VALUES_4_18_2 where  TIME=#{TIME} and YJBZBM=#{ZBZBM} and KSBM = #{KSBM} ', 'VAL_BLOCK_VALUES_4_18_1', 'ZBZBM,TIME,HOS_CODE', 'FROM_TABLE_DIS', 'VAL_FROM_TABLE_DIS_ORG', '2020-06-03 19:17:14', 3, 5);
INSERT INTO `dic_page_block_rs` VALUES (55, '2020-06-03 19:19:08', 1, 1, 2, 18, ' A \r\nJOIN dic_disease B ON A.YJBZBM=B.MDC_CODE\r\nWHERE   A.TIME=#{TIME} AND A.KSBM=#{KSBM} AND ZBZBM=#{ZBZBM} and B.LEVEL= #{LEVEL}\r\nunion all\r\nSELECT * FROM VAL_BLOCK_VALUES_4_18_2 A \r\nJOIN dic_disease B ON A.YJBZBM=B.MDC_CODE\r\nWHERE   A.TIME=#{TIME} and B.LEVEL= 1 AND A.KSBM=#{KSBM} AND ZBZBM!=#{ZBZBM} and B.LEVEL= #{LEVEL}', 'VAL_BLOCK_VALUES_4_18_2', 'YJBZBM,ZBZBM,KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS_ST', 'VAL_FROM_TABLE_DEPT_DIS_ST_ORG', '2020-06-03 19:19:08', 3, 8);
INSERT INTO `dic_page_block_rs` VALUES (56, '2020-06-05 16:06:56', 1, 1, 4, 19, 'where 1=1 and TIME=#{TIME}', 'VAL_BLOCK_VALUES_5_19_4', 'ZBZBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS', 'VAL_FROM_TABLE_HOS_DIS_ORG', '2020-06-05 16:06:56', 1, 3);
INSERT INTO `dic_page_block_rs` VALUES (58, '2020-06-29 15:44:31', 1, 1, 2, 21, 'where 1=1 and KSBM=#{KSBM} and TIME=#{TIME} and ZBZBM=#{ZBZBM}', 'VAL_BLOCK_VALUES_5_21_2', 'YJBZBM,ZBZBM,KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS_ST', 'VAL_FROM_TABLE_DEPT_DIS_ST_ORG', '2020-06-29 15:44:31', 3, 8);
INSERT INTO `dic_page_block_rs` VALUES (57, '2020-06-30 13:12:35', 1, 1, 1, 21, '  A where 1=1 and KSBM=#{KSBM} and TIME=#{TIME} and ZBZBM=#{ZBZBM}\r\nunion all\r\nselect  CREATE_DATE,\r\nCREATE_USERID,\r\nSTATE,\r\nHOS_CODE,\r\nTIME,\r\n\'全院\' KSBM,\r\n\'全院\' KSMC,\r\nZBZBM,\r\nZBZ,\r\nZXC,\r\nZDF,\r\nZLZS_DF,\r\nCMI,\r\nCMI_TBZ,\r\nCMI_TBL,\r\nCMI_DF,\r\nYB_DF,\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IS_ST_ORG', '2020-07-01 11:20:36', 3, 6);
INSERT INTO `dic_page_block_rs` VALUES (60, '2020-07-01 16:17:35', 1, 1, 4, 22, 'where 1=1 and TIME=#{TIME} and ZBZBM=#{ZBZBM}', 'VAL_BLOCK_VALUES_5_22_4', 'YJBZBM,ZBZBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT_DIS_ST', 'VAL_FROM_TABLE_DIS_ST_ORG', '2020-07-01 16:17:35', 3, 6);
INSERT INTO `dic_page_block_rs` VALUES (889, '2020-06-19 18:17:38', 1, 1, 889, 889, NULL, 'VAL_PROJ_VALUE', 'KSBM,TIME,HOS_CODE', 'FROM_TABLE_DEPT', 'VAL_PROJ_VALUE_ORG', '2020-06-19 18:17:38', NULL, NULL);
INSERT INTO `dic_page_block_rs` VALUES (61, '2020-07-07 13:51:58', 1, 1, 1, 22, 'where 1=1 and TIME=#{TIME} and ZBZBM=#{ZBZBM}', 'VAL_BLOCK_VALUES_5_22_1', 'ZBZBM,TIME,HOS_CODE', 'FROM_TABLE_DIS', 'VAL_FROM_TABLE_DIS_ORG', '2020-07-09 13:56:16', 3, 5);
INSERT INTO `dic_page_block_rs` VALUES (62, '2020-07-07 17:59:53', 1, 1, 1, 17, 'where 1=1 and TIME=#{TIME} and ZBZBM=#{ZBZBM}', 'VAL_BLOCK_VALUES_4_17_1', 'ZBZBM,TIME,HOS_CODE', 'FROM_TABLE_DIS', 'VAL_FROM_TABLE_DIS_ORG', '2020-07-09 13:56:20', 3, 5);
INSERT INTO `dic_page_block_rs` VALUES (63, '2019-10-24 14:21:03', 1, 1, 1, 23, 'where KSBM=#{KSBM} and TIME=#{TIME}', 'report_dept_director', 'TIME,HOS_CODE', NULL, NULL, '2020-09-02 14:21:03', NULL, NULL);
INSERT INTO `dic_page_block_rs` VALUES (64, '2020-09-02 14:24:11', 1, 1, 1, 24, 'where ZRYS=#{YSBM} AND KSBM=#{KSBM} and TIME=#{TIME}', 'report_dept_doctor', 'TIME,HOS_CODE', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `dic_page_block_rs` VALUES (65, '2021-01-25 17:39:39', 1, 1, 1, 25, 'where 1=1 and TIME=#{TIME} and KSBM=#{KSBM} and ZBZBM=#{ZBZBM}', 'report_medical_record', 'TIME', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `dic_page_block_rs` VALUES (66, '2021-02-03 18:27:47', 1, 1, 1, 26, 'where 1=1 and TIME=#{TIME} and ZBZBM=#{ZBZBM}', 'report_medical_record', NULL, NULL, NULL, NULL, NULL, NULL);

SET FOREIGN_KEY_CHECKS = 1;
