-- ----------------------------- 2022-09-29 add by lijiaxing-----------begin
ALTER TABLE T_CORE_ORG ADD (ORGTYPE VARCHAR2(36) DEFAULT NULL NULL);
COMMENT ON COLUMN T_CORE_ORG.ORGTYPE IS '类型';
CALL INSERTI18N('T_CORE_ORG.ORGTYPE', '类型', '类型', 'zh-CN', '类型');
ALTER TABLE T_CORE_ORG ADD (PRINCIPAL VARCHAR2(60) DEFAULT NULL NULL);
COMMENT ON COLUMN T_CORE_ORG.PRINCIPAL IS '负责人';
CALL INSERTI18N('T_CORE_ORG.PRINCIPAL', '负责人', '负责人', 'zh-CN', '负责人');
ALTER TABLE T_CORE_ORG ADD (PRINCIPALID VARCHAR2(36) DEFAULT NULL NULL);
COMMENT ON COLUMN T_CORE_ORG.PRINCIPALID IS '负责人ID';
CALL INSERTI18N('T_CORE_ORG.PRINCIPALID', '负责人ID', '负责人ID', 'zh-CN', '负责人ID');

INSERT INTO T_CORE_CODE_CATEGORY (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('orgType', '部门类型', 'sys');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202209292201, '一级部门', '1', 1, 'orgType', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202209292202, '二级部门', '2', 2, 'orgType', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202209292203, '三级部门', '3', 3, 'orgType', 0, 'admin', '系统管理员', '0');

ALTER TABLE T_LIMS_TEST  MODIFY (STANDARDQUANTITY NUMBER(16,2));

ALTER TABLE T_LIMS_TEST  ADD (FIRSTEFFECT VARCHAR2(36) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_TEST.FIRSTEFFECT IS '首效';
CALL INSERTI18N('T_LIMS_TEST.FIRSTEFFECT', '首效', '首效', 'zh-CN', '首效');

ALTER TABLE T_LIMS_TASK  ADD (CHARGECAPACITY NUMBER(16,2) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_TASK  ADD (DISCHARGECAPACITY NUMBER(16,2) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_TASK  ADD (EFFICIENCY NUMBER(16,2) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_TASK  ADD (FIRSTEFFECT VARCHAR2(36) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_TASK.CHARGECAPACITY IS '充电比容量';
COMMENT ON COLUMN T_LIMS_TASK.DISCHARGECAPACITY IS '放电比容量';
COMMENT ON COLUMN T_LIMS_TASK.EFFICIENCY IS '效率';
COMMENT ON COLUMN T_LIMS_TASK.FIRSTEFFECT IS '首效';
CALL INSERTI18N('T_LIMS_TASK.CHARGECAPACITY', '充电比容量', '充电比容量', 'zh-CN', '充电比容量');
CALL INSERTI18N('T_LIMS_TASK.DISCHARGECAPACITY', '放电比容量', '放电比容量', 'zh-CN', '放电比容量');
CALL INSERTI18N('T_LIMS_TASK.EFFICIENCY', '效率', '效率', 'zh-CN', '效率');
CALL INSERTI18N('T_LIMS_TASK.FIRSTEFFECT', '首效', '首效', 'zh-CN', '首效');
ALTER TABLE T_LIMS_ORDTASK_RESULT  ADD (TASKID NUMBER DEFAULT NULL NULL);
CALL INSERTI18N('T_LIMS_TASK.STANDARDQUANTITY', '标准送检量', '标准送检量', 'zh-CN', '标准送检量');

ALTER TABLE T_CORE_ORG  ADD (LEADERID VARCHAR2(36) DEFAULT NULL NULL);
ALTER TABLE T_CORE_ORG  ADD (LEADER VARCHAR2(270) DEFAULT NULL NULL);
ALTER TABLE T_CORE_ORG  ADD (ORGSHORTNAME VARCHAR2(270) DEFAULT NULL NULL);
ALTER TABLE T_CORE_USER  ADD (LEADERID VARCHAR2(36) DEFAULT NULL NULL);
ALTER TABLE T_CORE_USER  ADD (LEADERNAME VARCHAR2(270) DEFAULT NULL NULL);
ALTER TABLE T_CORE_USER  ADD (ORGBASE VARCHAR2(270) DEFAULT NULL NULL);


ALTER TABLE T_LIMS_TASK  ADD (REPORTTEMPLATE VARCHAR2(36) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_TEST  ADD (REPORTTEMPLATE VARCHAR2(36) DEFAULT NULL NULL);
CALL INSERTI18N('T_LIMS_TASK.REPORTTEMPLATE', '报告模板', '报告模板', 'zh-CN', '报告模板');
CALL INSERTI18N('T_LIMS_TEST.REPORTTEMPLATE', '报告模板', '报告模板', 'zh-CN', '报告模板');
INSERT INTO T_CORE_CODE_CATEGORY (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('taskReportTemplate', '报告模板', 'sys');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202210192201, 'DCR报告', 'DCR', 1, 'taskReportTemplate', 0, 'admin', '系统管理员', '0');


-- ----------------------------- 2022-10-22 add by miq--------------begTin

alter table T_CORE_EQUIPT_ACQ_CONFIG add EXCELCONFIGID NUMBER(36);
comment on column T_CORE_EQUIPT_ACQ_CONFIG.EXCELCONFIGID is 'excel配置id';
alter table T_CORE_EQUIPT_ACQ_CONFIG add EXCELCONFIGDESC VARCHAR2(66);
comment on column T_CORE_EQUIPT_ACQ_CONFIG.EXCELCONFIGDESC is 'excel配置';

CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.EXCELCONFIGID','excel配置id','excel配置id','zh-CN','excel配置id');
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.EXCELCONFIGDESC','excel配置','excel配置','zh-CN','excel配置');

alter table T_LIMS_EXCEL_READCONFIG add EXCELACQCONFIGID NUMBER(36);
comment on column T_LIMS_EXCEL_READCONFIG.EXCELACQCONFIGID is '脚本id';
alter table T_LIMS_EXCEL_READCONFIG add EXCELACQCONFIGDESC VARCHAR2(66);
comment on column T_LIMS_EXCEL_READCONFIG.EXCELACQCONFIGDESC is '脚本描述';

CALL INSERTI18N('T_LIMS_EXCEL_READCONFIG.EXCELACQCONFIGID','脚本id','脚本id','zh-CN','脚本id');
CALL INSERTI18N('T_LIMS_EXCEL_READCONFIG.EXCELACQCONFIGDESC','脚本描述','脚本描述','zh-CN','脚本描述');


-- 建表语句
CREATE TABLE t_lims_excel_data(
    ID NUMBER NOT NULL,
    EXCELNAME VARCHAR2(120)  NULL,
    SHEETNAME VARCHAR2(120)  NULL,
    EQUIPTID NUMBER NULL,
    DATAJSON CLOB NULL,
    IDX VARCHAR2(120)  NULL,
    TASKID NUMBER NULL,
    CREATEDBYID VARCHAR2(36)  NULL,
    CREATEDBYNAME VARCHAR2(60)  NULL,
    CREATEDTIME DATE NULL,
    CREATEDBYORGID VARCHAR2(36)  NULL,
    CREATEDBYORGNAME VARCHAR2(270)  NULL
 );
COMMENT ON TABLE T_LIMS_EXCEL_DATA IS 'excel采集结果';
COMMENT ON COLUMN T_LIMS_EXCEL_DATA.ID IS '主键';
COMMENT ON COLUMN T_LIMS_EXCEL_DATA.EXCELNAME IS 'excel名称';
COMMENT ON COLUMN T_LIMS_EXCEL_DATA.SHEETNAME IS 'sheet页名称';
COMMENT ON COLUMN T_LIMS_EXCEL_DATA.EQUIPTID IS '设备id';
COMMENT ON COLUMN T_LIMS_EXCEL_DATA.DATAJSON IS '数据（json格式）';
COMMENT ON COLUMN T_LIMS_EXCEL_DATA.IDX IS '序号';
COMMENT ON COLUMN T_LIMS_EXCEL_DATA.TASKID IS '任务id';
COMMENT ON COLUMN T_LIMS_EXCEL_DATA.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_EXCEL_DATA.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_EXCEL_DATA.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_EXCEL_DATA.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_EXCEL_DATA.CREATEDBYORGNAME IS '制单人单位名称';

ALTER TABLE T_LIMS_EXCEL_DATA ADD CONSTRAINT PK_LIMS_EXCEL_DATA PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_EXCEL_DATA.SERVICE_NAME', 'excel采集结果', 'excel采集结果', 'zh-CN', 'excel采集结果');
CALL INSERTI18N('T_LIMS_EXCEL_DATA.ID', 'excel采集结果的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_EXCEL_DATA.EXCELNAME', 'excel采集结果的excel名称', 'excel名称', 'zh-CN', 'excel名称');
CALL INSERTI18N('T_LIMS_EXCEL_DATA.SHEETNAME', 'excel采集结果的sheet页名称', 'sheet页名称', 'zh-CN', 'sheet页名称');
CALL INSERTI18N('T_LIMS_EXCEL_DATA.EQUIPTID', 'excel采集结果的设备id', '设备id', 'zh-CN', '设备id');
CALL INSERTI18N('T_LIMS_EXCEL_DATA.DATAJSON', 'excel采集结果的数据（json格式）', '数据（json格式）', 'zh-CN', '数据（json格式）');
CALL INSERTI18N('T_LIMS_EXCEL_DATA.IDX', 'excel采集结果的序号', '序号', 'zh-CN', '序号');
CALL INSERTI18N('T_LIMS_EXCEL_DATA.TASKID', 'excel采集结果的任务id', '任务id', 'zh-CN', '任务id');
CALL INSERTI18N('T_LIMS_EXCEL_DATA.CREATEDBYID', 'excel采集结果的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_EXCEL_DATA.CREATEDBYNAME', 'excel采集结果的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_LIMS_EXCEL_DATA.CREATEDTIME', 'excel采集结果的制单时间', '制单时间', 'zh-CN', '制单时间');
CALL INSERTI18N('T_LIMS_EXCEL_DATA.CREATEDBYORGID', 'excel采集结果的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_EXCEL_DATA.CREATEDBYORGNAME', 'excel采集结果的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');
CALL INSERTI18N('BASEMODULE.COMMON.EPTSTORAGE.FILE.EXCELREADS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.COMMON.EPTSTORAGE.FILE.EXCELREADS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.COMMON.EPTSTORAGE.FILE.EXCELREADS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.COMMON.EPTSTORAGE.FILE.EXCELREADS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.COMMON.EPTSTORAGE.FILE.EXCELREADS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

INSERT INTO T_CORE_TABLE (ID, AUDITABLE, ATTACHMENT)
VALUES ('T_LIMS_EXCEL_DATA', '0', '0');

COMMIT;

-- ----------------------------- 2022-10-22 add by miq------------end
-- ----------------------------- 2022-10-26 add by lijiaxing------------start
ALTER TABLE T_LIMS_FOLDER  ADD (OAREQUESTID VARCHAR2(120) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_FOLDER  ADD (OALASTAUDITUSERID VARCHAR2(36) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_FOLDER.OAREQUESTID IS 'oa单号';
COMMENT ON COLUMN T_LIMS_FOLDER.OALASTAUDITUSERID IS 'oa最后审核人';

-- ----------------------------- 2022-10-26 add by lijiaxing------------end



-- ----------------------------- 2022-10-25 add by wangyuwei------------begin


ALTER TABLE T_CORE_EQUIPT_ACQ_CONFIG ADD DBFILECATALOGUE varchar2(270);
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.DBFILECATALOGUE', '文件名称', '文件名称', 'zh-CN', '文件名称');
ALTER TABLE T_CORE_EQUIPT_ACQ_CONFIG ADD FILEPATH varchar2(270);
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.FILEPATH', '远程文件地址', '远程文件地址', 'zh-CN', '远程文件地址');
ALTER TABLE T_CORE_EQUIPT_ACQ_CONFIG ADD BASEADDRESS varchar2(270);
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.BASEADDRESS', '本地文件地址', '本地文件地址', 'zh-CN', '本地文件地址');

-- ----------------------------- 2022-10-25 add by wangyuwei------------end
-- ----------------------------- 2022-10-27 add by lijiaxing------------start
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202210192202, '循环扣电报告', 'LANDIAN', 2, 'taskReportTemplate', 0, 'admin', '系统管理员', '0');
-- ----------------------------- 2022-10-27 add by lijiaxing------------end



-- ----------------------------- 2022-10-27 add by miq------------begin
alter table T_CORE_EQUIPT_ACQ_CONFIG add ANALYSISITEM VARCHAR2(18);
comment on column T_CORE_EQUIPT_ACQ_CONFIG.ANALYSISITEM is '是否采集至分析项';

CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.ANALYSISITEM','是否采集至分析项','是否采集至分析项','zh-CN','是否采集至分析项');


-- ----------------------------- 2022-10-27 add by miq------------end

-- ----------------------------- 2022-10-27 add by lijiaxing------------start
ALTER TABLE T_LIMS_TASK  ADD (RESULTINPUTAUDITUSERNAME VARCHAR2(270) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_TASK  ADD (RESULTINPUTAUDITUSERID VARCHAR2(36) DEFAULT NULL NULL);
-- ----------------------------- 2022-10-27 add by lijiaxing------------end


-- ----------------------------- 2022-10-27 add by dingjian------------begin

ALTER TABLE T_LIMS_MATERIAL_STORAGE MODIFY (NEGATIVERATIO VARCHAR2(270));
ALTER TABLE T_LIMS_MATERIAL_STORAGE MODIFY (NEGATIVEACTIVITY VARCHAR2(270));
ALTER TABLE T_LIMS_MATERIAL_STORAGE MODIFY (NEGATIVECONDUCTIVECARBON VARCHAR2(270));
ALTER TABLE T_LIMS_MATERIAL_STORAGE MODIFY (NEGATIVECMC VARCHAR2(270));
ALTER TABLE T_LIMS_MATERIAL_STORAGE MODIFY (NEGATIVESBR VARCHAR2(270));
ALTER TABLE T_LIMS_MATERIAL_STORAGE MODIFY (TESTVOLTAGE VARCHAR2(270));
ALTER TABLE T_LIMS_MATERIAL_STORAGE MODIFY (POSITIVERATIO VARCHAR2(270));
ALTER TABLE T_LIMS_MATERIAL_STORAGE MODIFY (POSITIVEACTIVITY VARCHAR2(270));
ALTER TABLE T_LIMS_MATERIAL_STORAGE MODIFY (POSITIVECONDUCTIVECARBON VARCHAR2(270));
ALTER TABLE T_LIMS_MATERIAL_STORAGE MODIFY (PVDF5130 VARCHAR2(270));

ALTER TABLE T_LIMS_ORDER MODIFY (NAGETIVERATIO VARCHAR2(270));
ALTER TABLE T_LIMS_ORDER MODIFY (POSITIVERATIO VARCHAR2(270));
ALTER TABLE T_LIMS_ORDER MODIFY (TESTVOLTAGE VARCHAR2(270));
ALTER TABLE T_LIMS_ORDER MODIFY (NAGETIVESBR VARCHAR2(270));
ALTER TABLE T_LIMS_ORDER MODIFY (NAGETIVECMC VARCHAR2(270));
ALTER TABLE T_LIMS_ORDER MODIFY (NAGETIVECONDUCTIVECARBON VARCHAR2(270));
ALTER TABLE T_LIMS_ORDER MODIFY (NAGETIVEACTIVITY VARCHAR2(270));
ALTER TABLE T_LIMS_ORDER MODIFY (PVDF VARCHAR2(270));
ALTER TABLE T_LIMS_ORDER MODIFY (POSITIVECONDUCTIVECARBON VARCHAR2(270));
ALTER TABLE T_LIMS_ORDER MODIFY (POSITIVEACTIVITY VARCHAR2(270));

-- ----------------------------- 2022-10-27 add by dingjian------------end

-- ----------------------------- 2022-10-27 add by wangyuwei------------begin

ALTER TABLE T_LIMS_CONSUMABLE ADD MODEL varchar2(270);
ALTER TABLE T_LIMS_CONSUMABLE ADD INDATE DATE;
ALTER TABLE T_LIMS_CONSUMABLE ADD FREQUENCY varchar2(270);
ALTER TABLE T_LIMS_CONSUMABLE ADD UNIT varchar2(36);
ALTER TABLE T_LIMS_CONSUMABLE ADD PRICE NUMBER(16,2);
ALTER TABLE T_LIMS_CONSUMABLE ADD WAREHOUSE varchar2(270);
ALTER TABLE T_LIMS_CONSUMABLE ADD AMOUNT varchar2(36);
ALTER TABLE T_LIMS_CONSUMABLE ADD REMAINDERAMOUNT varchar2(36);
ALTER TABLE T_LIMS_CONSUMABLE ADD USEDAMOUNT varchar2(36);
ALTER TABLE T_LIMS_CONSUMABLE ADD INVENTORYOPERATION varchar2(36);
ALTER TABLE T_LIMS_CONSUMABLE ADD QUANTITYFLOOR varchar2(270);

ALTER TABLE T_LIMS_TRAIN MODIFY EVALUATIONUSER varchar2(3000)

ALTER TABLE T_LIMS_CONSUMABLE_APPLY_DETAIL ADD UNIT varchar2(36);
CALL INSERTI18N('T_LIMS_CONSUMABLE_APPLY_DETAIL.UNIT', '单位', '单位', 'zh-CN', '单位');
ALTER TABLE T_LIMS_CONSUMABLE_APPLY_DETAIL ADD REMAINAMOUNT varchar2(36);
CALL INSERTI18N('T_LIMS_CONSUMABLE_APPLY_DETAIL.REMAINAMOUNT', '剩余数量', '剩余数量', 'zh-CN', '剩余数量');

-- ----------------------------- 2022-10-27 add by wangyuwei------------end


-- ----------------------------- 2022-10-28 add by dingjian------------begin
ALTER TABLE T_LIMS_ORDER RENAME COLUMN NAGETIVERATIO TO NEGATIVERATIO;
ALTER TABLE T_LIMS_ORDER RENAME COLUMN PVDF TO PVDF5130;
ALTER TABLE T_LIMS_ORDER RENAME COLUMN NAGETIVEMATERIAL TO NEGATIVEMATERIAL;
ALTER TABLE T_LIMS_ORDER RENAME COLUMN NAGETIVEACTIVITY TO NEGATIVEACTIVITY;
ALTER TABLE T_LIMS_ORDER RENAME COLUMN NAGETIVECONDUCTIVECARBON TO NEGATIVECONDUCTIVECARBON;
ALTER TABLE T_LIMS_ORDER RENAME COLUMN NAGETIVECMC TO NEGATIVECMC;
ALTER TABLE T_LIMS_ORDER RENAME COLUMN NAGETIVESBR TO NEGATIVESBR;
ALTER TABLE T_LIMS_ORDER RENAME COLUMN NAGETIVEPRESSDENSITY TO NEGATIVEPRESSDENSITY;
ALTER TABLE T_LIMS_ORDER RENAME COLUMN NAGETIVECAPACITY TO NEGATIVECAPACITY;
ALTER TABLE T_LIMS_ORDER RENAME COLUMN NAGETIVEROLLINPRESSDEN TO NEGATIVEROLLINPRESSDEN;
ALTER TABLE T_LIMS_ORDER RENAME COLUMN NAGETIVECOATINGPRESSDEN TO NEGATIVECOATINGPRESSDEN;
ALTER TABLE T_LIMS_ORDER RENAME COLUMN NAGETIVEFOILTHICKNESS TO NEGATIVEFOILTHICKNESS;

CALL INSERTI18N('T_LIMS_ORDER.NEGATIVERATIO', '样品表的负极活性物质比例(%)', '负极活性物质比例(%)', 'zh-CN','负极活性物质比例(%)');
CALL INSERTI18N('T_LIMS_ORDER.PVDF5130', '样品表的PVDF5130', 'PVDF5130', 'zh-CN', 'PVDF5130');
CALL INSERTI18N('T_LIMS_ORDER.NEGATIVEMATERIAL', '样品表的负极材料', '负极材料', 'zh-CN', '负极材料');
CALL INSERTI18N('T_LIMS_ORDER.NEGATIVEACTIVITY', '样品表的负极活性占比', '负极活性占比', 'zh-CN', '负极活性占比');
CALL INSERTI18N('T_LIMS_ORDER.NEGATIVECONDUCTIVECARBON', '样品表的负极导电炭', '负极导电炭', 'zh-CN', '负极导电炭');
CALL INSERTI18N('T_LIMS_ORDER.NEGATIVECMC', '样品表的负极CMC', '负极CMC', 'zh-CN', '负极CMC');
CALL INSERTI18N('T_LIMS_ORDER.NEGATIVESBR', '样品表的负极SBR', '负极SBR', 'zh-CN', '负极SBR');
CALL INSERTI18N('T_LIMS_ORDER.NEGATIVEPRESSDENSITY', '样品表的负极压实密度', '负极压实密度', 'zh-CN', '负极压实密度');
CALL INSERTI18N('T_LIMS_ORDER.NEGATIVECAPACITY', '样品表的负极克容量(mAh/g)', '负极克容量(mAh/g)', 'zh-CN','负极克容量(mAh/g)');
CALL INSERTI18N('T_LIMS_ORDER.NEGATIVEROLLINPRESSDEN', '样品表的负极辊压后单面面密度(mg/cm2)','负极辊压后单面面密度(mg/cm2)', 'zh-CN', '负极辊压后单面面密度(mg/cm2)');
CALL INSERTI18N('T_LIMS_ORDER.NEGATIVECOATINGPRESSDEN', '样品表的负极涂布单面面密度(mg/cm2)','负极涂布单面面密度(mg/cm2)', 'zh-CN', '负极涂布单面面密度(mg/cm2)');
CALL INSERTI18N('T_LIMS_ORDER.NEGATIVEFOILTHICKNESS', '样品表的负极箔材厚度(um)', '负极箔材厚度(um)', 'zh-CN','负极箔材厚度(um)');

-- ----------------------------- 2022-10-28 add by dingjian------------end
-- ----------------------------- 2022-10-28 add by lijiaxing------------start
ALTER TABLE T_LIMS_TASK  ADD (OBTAINTIME DATE DEFAULT NULL NULL);
ALTER TABLE T_LIMS_TASK  ADD (OBTAINUSERID VARCHAR2(36) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_TASK  ADD (OBTAINUSERNAME VARCHAR2(270)  DEFAULT NULL NULL);
-- ----------------------------- 2022-10-28 add by lijiaxing------------end

-- ----------------------------- 2022-10-28 add by wangyuwei------------begin

INSERT INTO t_core_admin_choose_config (ID,NAME,TITLE,CATEGORY,URL,WIDTH) VALUES
    (20221028112401,'培训','培训','trainChoose','/secure/basemodule/trm/staff/train/trains/page/choose-list','80%');
ALTER TABLE T_LIMS_CONSUMABLE ADD REMARK varchar2(36);
-- ----------------------------- 2022-10-28 add by wangyuwei------------end

-- ----------------------------- 2022-10-31 add by wangyuwei------------begin
ALTER TABLE T_LIMS_STAFF_CERTIFICATE ADD FILEID NUMBER;
ALTER TABLE T_LIMS_STAFF_CERTIFICATE ADD FILENAME varchar2(270);
ALTER TABLE T_LIMS_CONSUMABLE_APPLY_DETAIL ADD DETAILID NUMBER

INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME)
VALUES('checkMod','核查方法','sys', NULL, NULL, NULL,NULL,NULL,NULL);
INSERT INTO LIMS_BP_DEV.T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221031001, '方法1', 'checkMod', '6', 6, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'method1');
INSERT INTO LIMS_BP_DEV.T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221031002, '方法2', 'checkMod', '6', 6, 2, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'method2');

INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME)
VALUES('checkFrequency','期间核查频率','sys', NULL, NULL, NULL,NULL,NULL,NULL);
INSERT INTO LIMS_BP_DEV.T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221031003, '12个月', 'checkFrequency', '7', 7, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'year');
INSERT INTO LIMS_BP_DEV.T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221031004, '1个月', 'checkFrequency', '7', 7, 2, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'month');
-- ----------------------------- 2022-10-31 add by wangyuwei------------end

-- ----------------------------- 2022-11-02 add by lijiaxing------------start
ALTER TABLE T_LIMS_REPORT  ADD (REPORTTYPE VARCHAR2(36) DEFAULT NULL NULL);
-- ----------------------------- 2022-11-02 add by lijiaxing------------end
-- ----------------------------- 2022-11-2 add by wangyuwei------------begin

ALTER TABLE T_LIMS_CHECK_FILE ADD ISCLOSE varchar2(36);
CALL INSERTI18N('T_LIMS_CHECK_FILE.ISCLOSE', '是否关闭', '是否关闭', 'zh-CN', '是否关闭');

ALTER TABLE T_LIMS_UNCONFORMANCE ADD SOURCENONCONFORMITIES varchar2(36);
CALL INSERTI18N('T_LIMS_UNCONFORMANCE.SOURCENONCONFORMITIES', '不符合项来源', '不符合项来源', 'zh-CN', '不符合项来源');

INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME)
VALUES('sourceNonconformities','不符合项来源','sys', NULL, NULL, NULL,NULL,NULL,NULL);
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102001, '内部', 'sourceNonconformities', '8', 8, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'in');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102002, '外部', 'sourceNonconformities', '8', 8, 2, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'out');

UPDATE T_CORE_MENU SET menuname = '外审准备' WHERE id = '701201'

CALL INSERTI18N('T_LIMS_SUPERVISION_ITEM.CHECKUSER', '被监督对象', '被监督对象', 'zh-CN', '被监督对象');

INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME)
VALUES('supervisionType','不符合项来源','sys', NULL, NULL, NULL,NULL,NULL,NULL);
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102003, '在培员工监督', 'supervisionType', '9', 9, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'supervisionEmployees');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102004, '在岗员工定期监督', 'supervisionType', '9', 9, 2, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'supervisionOfEmployees');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102005, '环境', 'supervisionType', '9', 9, 3, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'environment');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102006, '记录', 'supervisionType', '9', 9, 4, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'record');

INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME)
VALUES('supervisionMonth','监督月份','sys', NULL, NULL, NULL,NULL,NULL,NULL);
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102007, '1月', 'supervisionMonth', '10', 10, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, ' January');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102008, '2月', 'supervisionMonth', '10', 10, 2, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'February');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102009, '3月', 'supervisionMonth', '10', 10, 3, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'March');
INSERT INTO LIMS_BP_DEV.T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102010, '4月', 'supervisionMonth', '10', 10, 4, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'April');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102011, '5月', 'supervisionMonth', '10', 10, 5, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'May');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102012, '6月', 'supervisionMonth', '10', 10, 6, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'June');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102013, '7月', 'supervisionMonth', '10', 10, 7, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'July');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102014, '8月', 'supervisionMonth', '10', 10, 8, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'August');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102015, '9月', 'supervisionMonth', '10', 10, 9, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'September');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102016, '10月', 'supervisionMonth', '10', 10, 10, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'October');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102017, '11月', 'supervisionMonth', '10', 10, 11, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'November');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102018, '12月', 'supervisionMonth', '10', 10, 12, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'December');

INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME)
VALUES('analystGroup','分析项组','sys', NULL, NULL, NULL,NULL,NULL,NULL);
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102019, '实验结果', 'analystGroup', '11', 11, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'experimentalResult');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221102020, '实验过程', 'analystGroup', '11', 11, 2, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'experimentalProcess');

alter table T_LIMS_TM_ANALYST drop (LOWLIMIT);
alter table T_LIMS_TM_ANALYST drop (HIGHLIMIT);

ALTER TABLE T_LIMS_TM_ANALYST ADD LOWLIMIT varchar2(36);
ALTER TABLE T_LIMS_TM_ANALYST ADD HIGHLIMIT varchar2(36);
-- ----------------------------- 2022-11-2 add by wangyuwei------------end

-- ----------------------------- 2022-11-02 add by lijiaxing------------start
CREATE INDEX IDX_PROCESSSTATUS ON T_LIMS_ORDTASK (PROCESSSTATUS);
-- ----------------------------- 2022-11-02 add by lijiaxing------------end



-- ----------------------------- 2022-11-02 add by miq------------start
alter table T_LIMS_SHEET_READCONFIG add READTYPE VARCHAR2(36);
comment on column T_LIMS_SHEET_READCONFIG.READTYPE is '读取方式';

CALL INSERTI18N('T_LIMS_SHEET_READCONFIG.READTYPE','读取方式','读取方式','zh-CN','读取方式');

-- ----------------------------- 2022-11-02 add by miq------------end


-- ----------------------------- 2022-11-03 add by lijiaxing------------start
ALTER TABLE T_LIMS_ORDER  ADD (POLEPIECESTATUS VARCHAR2(36) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER  ADD (POLEPIECEQUALITY NUMBER(16,2) DEFAULT NULL NULL);

CALL INSERTI18N('T_LIMS_ORDER.POLEPIECESTATUS','极片状态','极片状态','zh-CN','极片状态');
CALL INSERTI18N('T_LIMS_ORDER.POLEPIECEQUALITY','极片质量','极片质量','zh-CN','极片质量');

INSERT INTO T_CORE_CODE_CATEGORY (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('polePieceStatus', '极片状态', 'sys');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202211032201, '保留', '1', 1, 'polePieceStatus', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202211032202, '舍弃', '0', 2, 'polePieceStatus', 0, 'admin', '系统管理员', '0');
-- ----------------------------- 2022-11-03 add by lijiaxing------------end


-- ----------------------------- 2022-11-03 add by lijiaxing------------start
ALTER TABLE T_LIMS_MATERIAL_STORAGE  ADD (WORKSHOPSECTION VARCHAR2(36) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_MATERIAL_METHOD  ADD (LOWLIMIT NUMBER(16,2) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_MATERIAL_METHOD  ADD (HIGHLIMIT NUMBER(16,2) DEFAULT NULL NULL);

CALL INSERTI18N('T_LIMS_MATERIAL_STORAGE.WORKSHOPSECTION','工段','工段','zh-CN','工段');
CALL INSERTI18N('T_LIMS_MATERIAL_METHOD.LOWLIMIT','检出低限','检出低限','zh-CN','检出低限');
CALL INSERTI18N('T_LIMS_MATERIAL_METHOD.HIGHLIMIT','检出高限','检出高限','zh-CN','检出高限');

-- ----------------------------- 2022-11-03 add by lijiaxing------------end


-- ----------------------------- 2022-11-03 add by lijiaxing------------start
ALTER TABLE T_LIMS_FOLDER  ADD (URGENCYTASK VARCHAR2(360) DEFAULT NULL NULL);
CALL INSERTI18N('T_LIMS_FOLDER.URGENCYTASK','加急项目','加急项目','zh-CN','加急项目');
-- ----------------------------- 2022-11-03 add by lijiaxing------------end

-- ----------------------------- 2022-11-3 add by wangyuwei------------begin

DELETE T_CORE_MENU WHERE id = '701602'

ALTER TABLE T_LIMS_EQUIPT DROP COLUMN IDNORMALRANGE;
ALTER TABLE T_LIMS_EQUIPT DROP COLUMN LIMITREANGE;

ALTER TABLE T_LIMS_EQUIPT ADD IDNORMALRANGE varchar2(270);
ALTER TABLE T_LIMS_EQUIPT ADD LIMITREANGE varchar2(270);

ALTER TABLE T_LIMS_IMPROVE ADD IMPROVERESULT varchar2(270);
CALL INSERTI18N('T_LIMS_IMPROVE.IMPROVERESULT', '实际改进结果', '实际改进结果', 'zh-CN', '实际改进结果');

DELETE  T_CORE_MENU WHERE ID = '701706'

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('701706', '改进措施审核', '/secure/basemodule/qms/improves/page/audit-list?bpmn_statusCode=ImprovementAudit', '7017', '701706', NULL, '改进措施审核');
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('701707', '改进措施审批', '/secure/basemodule/qms/improves/page/audit-list?bpmn_statusCode=ImprovementApproval', '7017', '701707', NULL, '改进措施审批');
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('701708', '改进管理查询', '/secure/basemodule/qms/improves/page/search-list', '7017', '701708', NULL, '改进管理查询');
-- ----------------------------- 2022-11-3 add by wangyuwei------------end
-- ----------------------------- 2022-11-4 add by lijiaxing------------start
INSERT INTO T_CORE_TABLE_HIERARCHY (ID, TABLENAME, MASTERTABLENAME, REFERCOLUMN)
VALUES ('202211041101','T_LIMS_ORDTASK_RESULT', 'T_LIMS_ORDTASK', 'ORDTASKID');
INSERT INTO T_CORE_TABLE_HIERARCHY (ID, TABLENAME, MASTERTABLENAME, REFERCOLUMN)
VALUES ('202211041102','T_LIMS_ORDTASK_CONSUMABLE', 'T_LIMS_ORDTASK', 'ORDTASKID');
-- ----------------------------- 2022-11-4 add by lijiaxing------------end

-- ----------------------------- 2022-11-4 add by wangyuwei------------begin

INSERT INTO t_core_admin_choose_config (ID,NAME,TITLE,CATEGORY,URL,WIDTH) VALUES
    (20221104100001,'部门','部门','orgChoose','/secure/basemodule/trm/equipts/page/org-choose-list','80%');

INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20220919012, 'FS2', 'baseOrg', '10', 3, 2, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'FS2');

DELETE T_CORE_CODE WHERE id = '20220919011'

INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20220919013, 'FS3', 'baseOrg', '10', 3, 3, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'FS3');
-- ----------------------------- 2022-11-4 add by wangyuwei------------end

-- ----------------------------- 2022-11-4 add by lijiaxing------------start
ALTER TABLE T_LIMS_ORDTASK_RESULT  MODIFY (RESULT VARCHAR2(270));
-- ----------------------------- 2022-11-4 add by lijiaxing------------end

-- ----------------------------- 2022-11-4 add by wangyuwei------------begin

ALTER TABLE T_LIMS_EQUIPT ADD ACCEPTANCECITERIA varchar2(270);
CALL INSERTI18N('T_LIMS_EQUIPT.ACCEPTANCECITERIA', '允收标准', '允收标准', 'zh-CN', '允收标准');

-- ----------------------------- 2022-11-4 add by wangyuwei------------end


-- ----------------------------- 2022-11-5 add by wangyuwei------------begin

INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME)
VALUES('evaluationModes','分析项组','sys', NULL, NULL, NULL,NULL,NULL,NULL);
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221105001, '质控样测试', 'evaluationModes', '12', 12, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'QualityTest');
INSERT INTO LT_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221105002, '人员比对', 'evaluationModes', '12', 12, 2, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'PersonnelComparison');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221105003, '盲样测试', 'evaluationModes', '12', 12, 3, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'BlindTest');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221105004, '留样再测', 'evaluationModes', '12', 12, 4, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'reservedSamples');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221105005, '其他', 'evaluationModes', '12', 12, 5, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'else');

INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME)
VALUES('submitState','状态','sys', NULL, NULL, NULL,NULL,NULL,NULL);
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221105006, '已完成', 'submitState', '13', 13, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'Completed');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221105007, '未完成', 'submitState', '13', 13, 2, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'Incomplete');

-- ----------------------------- 2022-11-5 add by wangyuwei------------end


-- ----------------------------- 2022-11-5 add by miq------------begin
INSERT INTO T_CORE_CODE(ID, CODE, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME)
    VALUES (SEQ_CORE.NEXTVAL, 'upload_only', '仅文件上传', 'fileAcqAnalyseWay', NULL, 2, 0, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL);

-- ----------------------------- 2022-11-5 add by miq------------end


-- ----------------------------- 2022-11-5 add by wangyuwei------------begin

ALTER TABLE T_LIMS_SUPERVISION_ITEM ADD OTHER varchar2(270);
CALL INSERTI18N('T_LIMS_SUPERVISION_ITEM.OTHER', '被监督对象', '其它考核方法', 'zh-CN', '其它考核方法');

-- ----------------------------- 2022-11-5 add by wangyuwei------------end


-- ----------------------------- 2022-11-7 add by dingjian------------begin
DELETE T_CORE_CODE WHERE id = 202209292201;
DELETE T_CORE_CODE WHERE id = 202209292202;
DELETE T_CORE_CODE WHERE id = 202209292203;

INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (2022110711201, '一级部门', '01', 1, 'orgType', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (2022110711202, '二级部门', '02', 2, 'orgType', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (2022110711203, '三级部门', '03', 3, 'orgType', 0, 'admin', '系统管理员', '0');


ALTER TABLE T_CORE_USER  ADD (DDUSERID VARCHAR2(270) DEFAULT NULL NULL);
ALTER TABLE T_CORE_USER  ADD (DDUNIONID VARCHAR2(270) DEFAULT NULL NULL);
COMMENT ON COLUMN T_CORE_USER.DDUSERID IS '用户钉钉账号';
COMMENT ON COLUMN T_CORE_USER.DDUNIONID IS '用户钉钉unionID';
-- ----------------------------- 2022-11-7 add by dingjian------------end

-- ----------------------------- 2022-11-7 add by wangyuwei------------begin

DELETE T_CORE_MENU tcm WHERE id = '700201';

UPDATE T_CORE_CODE_CATEGORY SET CODECATEGORYNAME = '监督考核方式' WHERE id = 'supervisionType';

CALL INSERTI18N('T_LIMS_REVIEW.PLANTIME', '计划时间', '计划时间', 'zh-CN', '计划时间');

-- ----------------------------- 2022-11-7 add by wangyuwei------------end

-- ----------------------------- 2022-11-7 add by wangyuwei------------begin

-- 一、变更原‘字段名’为‘字段名1’
alter table T_LIMS_REVIEW rename column PLANTIME to PLANTIME1;

-- 二、增加一个与原字段同名的字段，类型更改为自己想要的类型
alter table T_LIMS_REVIEW add PLANTIME VARCHAR2(36);

-- 三、为新字段增加注释
comment on column T_LIMS_REVIEW.PLANTIME is '计划时间';

 -- 四、把原字段数据更新到新增字段
update T_LIMS_REVIEW set T_LIMS_REVIEW.PLANTIME = TRIM(to_char(PLANTIME,'yyyy-mm')) WHERE 1=1;

DELETE T_CORE_MENU WHERE id = '700703'

-- ----------------------------- 2022-11-7 add by wangyuwei------------end
-------------------------- 2022-11-08 add by wangyuwei------------begin

CALL INSERTI18N('T_LIMS_EXTERNAL_AUDIT_PLAN.AUDITDATE', '外审开始时间', '外审开始时间', 'zh-CN', '外审开始时间');
CALL INSERTI18N('T_LIMS_EXTERNAL_AUDIT_PLAN.CHECKDATE', '外审结束时间', '外审结束时间', 'zh-CN', '外审结束时间');
CALL INSERTI18N('CHECKDATE.NOT.LATER.THAN.AUDITDATE', '外审结束时间不能早于外审开始时间', '外审结束时间不能早于外审开始时间', 'zh-CN', '外审结束时间不能早于外审开始时间');
-------------------------- 2022-11-08 add by wangyuwei------------end


-------------------------- 2022-11-08 add by wangyuwei------------begin

DELETE T_CORE_MENU WHERE id = '700806';
DELETE T_CORE_MENU WHERE id = '700807';

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('700806', '结果追踪', '/secure/basemodule/qms/complaints/page/audit-list?bpmn_statusCode=RsultTrack', '7008', '700806', NULL, '结果追踪');
ALTER TABLE T_LIMS_COMPLAINT ADD FEEDBACKRESULTS varchar2(270);
CALL INSERTI18N('T_LIMS_COMPLAINT.FEEDBACKRESULTS', '反馈结果', '反馈结果', 'zh-CN', '反馈结果');
-------------------------- 2022-11-08 add by wangyuwei------------end


-------------------------- 2022-11-08 add by wangyuwei------------begin

DELETE T_CORE_MENU where id ='7010'

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('7010', '文件核查管理', NULL , '70', '7010', '027.svg', '文件核查管理');

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('701001', '文件核查记录', '/secure/basemodule/qms/check-files/page/edit-list', '7010', '1', '027.svg', '文件核查记录');

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('701002', '文件核查记录审核', '/secure/basemodule/qms/check-files/page/audit-list?bpmn_statusCode=Audit', '7010', '2', '027.svg', '文件核查记录审核');

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('701003', '文件核查记录审批', '/secure/basemodule/qms/check-files/page/audit-list?bpmn_statusCode=Apploval', '7010', '3', '027.svg', '文件核查记录审批');

ALTER TABLE T_LIMS_CHECK_FILE ADD COMPLIANCE varchar2(36);
CALL INSERTI18N('T_LIMS_CHECK_FILE.COMPLIANCE', '是否符合', '是否符合', 'zh-CN', '是否符合');

ALTER TABLE T_LIMS_CHECK_FILE ADD PROCESSSTATUS varchar2(36);
CALL INSERTI18N('T_LIMS_CHECK_FILE.PROCESSSTATUS', '流程状态', '流程状态', 'zh-CN', '流程状态');

INSERT INTO T_CORE_MENU_EXT (ID, SERVICENAME, TABLENAME, TYPE, ENABLE)
VALUES ('20221108', ' 文件核查管理','T_LIMS_CHECK_FILE', 'audit_def', '1');

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('701004', '文件核查记录查询', '/secure/basemodule/qms/check-files/page/search-list', '7010', '4', '027.svg', '文件核查记录查询');
-------------------------- 2022-11-08 add by wangyuwei------------end

-------------------------- 2022-11-11 add by wangyuwei------------begin

-- 一、变更原‘字段名’为‘字段名1’
alter table T_LIMS_CONSUMABLE rename column PRICE to PRICE1;

-- 二、增加一个与原字段同名的字段，类型更改为自己想要的类型
alter table T_LIMS_CONSUMABLE add PRICE VARCHAR2(36);

-- 三、为新字段增加注释
comment on column T_LIMS_CONSUMABLE.PRICE is '单价';

 -- 四、把原字段数据更新到新增字段
update T_LIMS_CONSUMABLE set T_LIMS_CONSUMABLE.PRICE = TRIM(PRICE1) WHERE 1=1;

-- 五、删除原字段
alter table T_LIMS_CONSUMABLE drop column PRICE1;


-------------------------- 2022-11-11 add by wangyuwei------------end
-------------------------- 2022-11-14 add by lijiaxing------------start
ALTER TABLE T_LIMS_TASK_CONDITION  MODIFY (CONDITIONVALUE  VARCHAR2(270));

-------------------------- 2022-11-14 add by lijiaxing------------end


-------------------------- 2022-11-15 add by wangyuwei------------begin

ALTER TABLE T_LIMS_TM_ANALYST RENAME COLUMN HIGHLIMIT TO HIGHLIMIT1;

ALTER TABLE T_LIMS_TM_ANALYST ADD HIGHLIMIT NUMBER(16,6);

COMMENT ON COLUMN T_LIMS_TM_ANALYST.HIGHLIMIT IS '检出高限';

UPDATE T_LIMS_TM_ANALYST SET T_LIMS_TM_ANALYST.HIGHLIMIT = TRIM(HIGHLIMIT1) WHERE 1=1;

ALTER TABLE T_LIMS_TM_ANALYST DROP COLUMN HIGHLIMIT1;


ALTER TABLE T_LIMS_TM_ANALYST RENAME COLUMN LOWLIMIT TO LOWLIMIT1;

ALTER TABLE T_LIMS_TM_ANALYST ADD LOWLIMIT NUMBER(16,6);

COMMENT ON COLUMN T_LIMS_TM_ANALYST.LOWLIMIT IS '检出低限';

UPDATE T_LIMS_TM_ANALYST SET T_LIMS_TM_ANALYST.LOWLIMIT = TRIM(LOWLIMIT1) WHERE 1=1;

ALTER TABLE T_LIMS_TM_ANALYST DROP COLUMN LOWLIMIT1;

-------------------------- 2022-11-15 add by wangyuwei------------end

-------------------------- 2022-11-15 add by lijiaxing------------start
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202210192203, '25℃循环', 'RB_25C_X', 3, 'taskReportTemplate', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202210192204, '45℃循环', 'RB_45C_X', 4, 'taskReportTemplate', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202210192205, '25℃循环DCR', 'RB_25C_X_DCR', 5, 'taskReportTemplate', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202210192206, '45℃循环DCR', 'RB_45C_X_DCR', 6, 'taskReportTemplate', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202210192207, 'DCR测试', 'RB_HC_DCR', 7, 'taskReportTemplate', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202210192208, '低温DCR测试', 'RB_LC_DCR', 8, 'taskReportTemplate', 0, 'admin', '系统管理员', '0');
-------------------------- 2022-11-15 add by lijiaxing------------end

<<<<<<< HEAD
------------------ 2022-11-16 add by wangyuwei------------begin

ALTER TABLE T_LIMS_EQUIPT ADD STANDARD varchar2(270);
CALL INSERTI18N('T_LIMS_EQUIPT.STANDARD', '参考标准', '参考标准', 'zh-CN', '参考标准');
ALTER TABLE T_LIMS_EQUIPT ADD CALIBRATIONRESULTS varchar2(36);
CALL INSERTI18N('T_LIMS_EQUIPT.CALIBRATIONRESULTS', '校准结果', '校准结果', 'zh-CN', '校准结果');

INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME)
VALUES('calibrationResults','校准结果','sys', NULL, NULL, NULL,NULL,NULL,NULL);
INSERT INTO LIMS_BP_DEV.T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221116001, '合格', 'calibrationResults', '14', 14, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'qualified');
INSERT INTO LIMS_BP_DEV.T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221116002, '不合格', 'calibrationResults', '14', 14, 2, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'unqualified');
INSERT INTO LIMS_BP_DEV.T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221116003, '限制使用', 'calibrationResults', '14', 14, 3, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'limited');
INSERT INTO LIMS_BP_DEV.T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221116004, '降级使用', 'calibrationResults', '14', 14, 4, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'degraded');

------------------ 2022-11-16 add by wangyuwei------------end

------------------ 2022-11-16 add by wangyuwei------------begin

ALTER TABLE T_LIMS_ITEM_APPLY ADD PROJECTTYPES varchar2(36);
CALL INSERTI18N('T_LIMS_ITEM_APPLY.PROJECTTYPES', '项目类型', '项目类型', 'zh-CN', '项目类型');

INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME)
VALUES('projectTypes','项目类型','sys', NULL, NULL, NULL,NULL,NULL,NULL);
INSERT INTO LIMS_BP_DEV.T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221116005, 'CNAS认可项目', 'projectTypes', '15', 15, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'CnasApproved');
INSERT INTO LIMS_BP_DEV.T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20221116006, '非认可项目', 'projectTypes', '15', 15, 2, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'NonRecognized');

UPDATE T_CORE_MENU SET MENUNAME = 'CNAS项目审核' WHERE id = '700902';

UPDATE T_CORE_MENU SET ORDERNO = '700904' WHERE id = '700903';
UPDATE T_CORE_MENU SET ORDERNO = '700905' WHERE id = '700904';
UPDATE T_CORE_MENU SET ORDERNO = '700906' WHERE id = '700905';
UPDATE T_CORE_MENU SET ORDERNO = '700907' WHERE id = '700906';
UPDATE T_CORE_MENU SET ORDERNO = '700908' WHERE id = '700907';

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('700908', '非CNAS项目审核', '/secure/basemodule/qms/item-applys/page/audit-list?bpmn_statusCode=CnasAudit', '7009', '700903', NULL, '非CNAS项目审核');
------------------ 2022-11-16 add by wangyuwei------------end


-------------------------- 2022-11-16 add by dingjian------------start
ALTER TABLE T_LIMS_LIQUOR_TITRATION ADD UNIT varchar2(36) NULL;
COMMENT ON COLUMN T_LIMS_LIQUOR_TITRATION.UNIT IS '单位';
CALL INSERTI18N('T_LIMS_LIQUOR_TITRATION.UNIT', '标准溶液滴定表的单位', '单位', 'zh-CN', '单位');

ALTER TABLE T_LIMS_LIQUOR_ICP ADD UNIT varchar2(36) NULL;
COMMENT ON COLUMN T_LIMS_LIQUOR_ICP.UNIT IS '单位';
CALL INSERTI18N('T_LIMS_LIQUOR_ICP.UNIT', '标准溶液ICP验证表的单位', '单位', 'zh-CN', '单位');

CALL UPDATEI18N('T_LIMS_LIQUOR_TITRATION.CONFIGCONCENTRATION', 'zh-CN', '配置浓度');

INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES
    ('liquorUnitType','标液配置浓度单位类型','sys',NULL,NULL,NULL,NULL,NULL,NULL);

INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES
    (2022111611021,'mg/L','liquorUnitType',NULL,1,0,'0',NULL,NULL,NULL,'mg/L','admin','系统管理员',NULL);

INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES
    (2022111611022,'g/L','liquorUnitType',NULL,2,0,'0',NULL,NULL,NULL,'g/L','admin','系统管理员',NULL);

INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES
    (2022111611023,'mol/L','liquorUnitType',NULL,3,0,'0',NULL,NULL,NULL,'mol/L','admin','系统管理员',NULL);
-------------------------- 2022-11-16 add by dingjian------------end

------------------ 2022-11-16 add by wangyuwei------------begin

ALTER TABLE T_LIMS_FAIR_PLAN ADD INSPECTIONDATE DATE;
CALL INSERTI18N('T_LIMS_FAIR_PLAN.INSPECTIONDATE', '检查日期', '检查日期', 'zh-CN', '检查日期');
ALTER TABLE T_LIMS_FAIR_PLAN ADD INSPECTIONORG varchar2(36);
CALL INSERTI18N('T_LIMS_FAIR_PLAN.INSPECTIONORG', '检查部门', '检查部门', 'zh-CN', '检查部门');
ALTER TABLE T_LIMS_FAIR_PLAN ADD INSPECTIONORGID varchar2(36);
CALL INSERTI18N('T_LIMS_FAIR_PLAN.INSPECTIONORGID', '检查部门ID', '检查部门ID', 'zh-CN', '检查部门ID');

UPDATE T_CORE_MENU SET MENUINITNAME = '公正性检查记录' WHERE id = '701102';

UPDATE T_CORE_MENU SET MENUINITNAME = '公正性检查记录审核' WHERE id = '701103';

UPDATE T_CORE_MENU SET MENUNAME = '公正性检查记录' WHERE id = '701102';

UPDATE T_CORE_MENU SET MENUNAME = '公正性检查记录审核' WHERE id = '701103';

DELETE FROM T_CORE_MENU WHERE id = '701104';
DELETE FROM T_CORE_MENU WHERE id = '701105';
DELETE FROM T_CORE_MENU WHERE id = '701106';

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('701104', '公正性检查记录批准', '/secure/basemodule/qms/fair-plans/page/audit-list?bpmn_statusCode=checkApproval', '7011', '701104', '027.svg', '公正性检查记录批准');


------------------ 2022-11-16 add by wangyuwei------------end


------------------ 2022-11-16 add by wangyuwei------------begin


DELETE FROM T_CORE_MENU tcm WHERE ID = '700803';

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('700807', '审核意见', '/secure/basemodule/qms/complaints/page/audit-list?bpmn_statusCode=AuditMind', '7008', '700807', '027.svg', '审核意见');


------------------ 2022-11-16 add by wangyuwei------------end

------------------ 2022-11-16 add by wangyuwei------------begin

UPDATE t_core_menu  SET menuname = '人员监督任务分配' WHERE id = '701503';
UPDATE t_core_menu  SET menuname = '人员监督任务执行' WHERE id = '701504';
ALTER TABLE T_LIMS_SUPERVISION_ITEM_RECORD ADD COVERTARGET varchar2(36);
CALL INSERTI18N('T_LIMS_SUPERVISION_ITEM_RECORD.COVERTARGET', '临时被监督对象', '临时被监督对象', 'zh-CN', '临时被监督对象');
ALTER TABLE T_LIMS_SUPERVISION_ITEM_RECORD ADD SUPERVISORS varchar2(36);
CALL INSERTI18N('T_LIMS_SUPERVISION_ITEM_RECORD.SUPERVISORS', '监督员', '监督员', 'zh-CN', '监督员');
------------------ 2022-11-16 add by wangyuwei------------end

------------------ 2022-11-17 add by lijiaxing------------start
ALTER TABLE T_LIMS_ORDER  ADD (POSITIVEPOLEPIECEQUALITY NUMBER(16,2) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER  ADD (FOILQUALITY NUMBER(16,2) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER  ADD (POSITIVEACTIVITYQUALITY NUMBER(16,2) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER  ADD (DISPOSE VARCHAR2(36) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_ORDER.POSITIVEPOLEPIECEQUALITY IS '正极极片质量';
COMMENT ON COLUMN T_LIMS_ORDER.FOILQUALITY IS '箔材质量';
COMMENT ON COLUMN T_LIMS_ORDER.POSITIVEACTIVITYQUALITY IS '效率';
CALL INSERTI18N('T_LIMS_ORDER.POSITIVEPOLEPIECEQUALITY', '正极极片质量', '正极极片质量', 'zh-CN', '正极极片质量');
CALL INSERTI18N('T_LIMS_ORDER.FOILQUALITY', '箔材质量', '箔材质量', 'zh-CN', '箔材质量');
CALL INSERTI18N('T_LIMS_ORDER.POSITIVEACTIVITYQUALITY', '极片质量', '极片质量', 'zh-CN', '极片质量');
CALL INSERTI18N('T_LIMS_ORDTASK.HIGHLIMIT', '上限', '上限', 'zh-CN', '上限');
CALL INSERTI18N('T_LIMS_ORDTASK.LOWLIMIT', '下限', '下限', 'zh-CN', '下限');
------------------ 2022-11-17 add by lijiaxing------------end

------------------ 2022-11-17 add by lijiaxing------------start
CALL INSERTI18N('T_LIMS_TASK.SPECIMENFREQUENCY', '频率', '频率', 'zh-CN', '频率');
------------------ 2022-11-17 add by lijiaxing------------end

------------------ 2022-11-17 add by wangyuwei------------begin

ALTER TABLE T_LIMS_SUPERVISION_ITEM_RECORD ADD SUPERVISORSID varchar2(36);
CALL INSERTI18N('T_LIMS_SUPERVISION_ITEM_RECORD.SUPERVISORSID', '监督员id', '监督员id', 'zh-CN', '监督员id');

------------------ 2022-11-17 add by wangyuwei------------end

------------------ 2022-11-18 add by lijiaxing------------start
ALTER TABLE T_LIMS_TASK  ADD (DISPOSE VARCHAR2(36) DEFAULT NULL NULL);

------------------ 2022-11-18 add by lijiaxing------------end


------------------ 2022-11-22 add by wangyuwei------------begin

CREATE TABLE T_LIMS_FOLDER_TASK_TEST_MIDDLE (
                                                ID NUMBER NOT NULL,
                                                TESTDATE DATE NULL,                            -- 数据反应的日期
                                                TESTTYPE VARCHAR2(36) NULL,                    -- 总数、完成、未完成、及时率、总及时率
                                                CO VARCHAR2(36) NULL,                          -- co
                                                WETPROCESSDV10 VARCHAR2(36) NULL,              -- 湿法粒度-Dv10
                                                SEMDESKTOP VARCHAR2(36) NULL,                  -- SEM-台式
                                                MULTIPLICATIONTEST VARCHAR2(36) NULL,          -- 倍率测试
                                                WETPROCESSWIDEN VARCHAR2(36) NULL,             -- 湿法粒度-宽化系数
                                                PHYSICALITEMS VARCHAR2(36) NULL,               -- 物理项目
                                                FIRSTEFFECT VARCHAR2(36) NULL,                 -- 首效
                                                WETPROCESSDV0 VARCHAR2(36) NULL,               -- 湿法粒度-Dv0
                                                CYCLETEST VARCHAR2(36) NULL,                   -- 循环测试
                                                VOLUMEPARTITION VARCHAR2(36) NULL,             -- 分容
                                                CHEMISTRY VARCHAR2(36) NULL,                   -- 化成
                                                KVALUETEST VARCHAR2(36) NULL,                  -- K值测试
                                                COMPACTIONDENSITY VARCHAR2(36) NULL,           -- 压实密度-1T
                                                LI VARCHAR2(36) NULL,                          -- Li
                                                NI VARCHAR2(36) NULL,                          -- Ni
                                                WETPROCESSDV50 VARCHAR2(36) NULL,              -- 湿法粒度-Dv50
                                                FIRSTEFFECTTEST VARCHAR2(36) NULL,             -- 首效测试
                                                SEARCHTIME DATE NULL                           -- 数据入库时间
);

COMMENT ON TABLE T_LIMS_FOLDER_TASK_TEST_MIDDLE IS '检测项目中间表';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.TESTDATE IS '日期';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.TESTTYPE IS '项目类型';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.CO IS 'CO';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.WETPROCESSDV10 IS '湿法粒度-Dv10';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.SEMDESKTOP IS 'SEM-台式';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.MULTIPLICATIONTEST IS '倍率测试';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.WETPROCESSWIDEN IS '湿法粒度-宽化系数';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.PHYSICALITEMS IS '物理项目';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.FIRSTEFFECT IS '首效';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.WETPROCESSDV0 IS '湿法粒度-Dv0';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.CYCLETEST IS '循环测试';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.VOLUMEPARTITION IS '分容';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.CHEMISTRY IS '化成';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.KVALUETEST IS 'K值测试';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.COMPACTIONDENSITY IS '压实密度-1T';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.LI IS 'LI';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.NI IS 'NI';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.WETPROCESSDV50 IS '湿法粒度-Dv50';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.FIRSTEFFECTTEST IS '首效测试';
COMMENT ON COLUMN T_LIMS_FOLDER_TASK_TEST_MIDDLE.SEARCHTIME IS '数据入库日期';

CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.TESTDATE', '日期', '日期', 'zh-CN', '日期');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.TESTTYPE', '项目类型', '项目类型', 'zh-CN', '项目类型');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.CO', 'CO', 'CO', 'zh-CN', 'CO');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.WETPROCESSDV10', '湿法粒度-Dv10', '湿法粒度-Dv10', 'zh-CN', '湿法粒度-Dv10');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.SEMDESKTOP', 'SEM-台式', 'SEM-台式', 'zh-CN', 'SEM-台式');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.MULTIPLICATIONTEST', '倍率测试', '倍率测试', 'zh-CN', '倍率测试');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.WETPROCESSWIDEN', '湿法粒度-宽化系数', '湿法粒度-宽化系数', 'zh-CN', '湿法粒度-宽化系数');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.PHYSICALITEMS', '物理项目', '物理项目', 'zh-CN', '物理项目');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.FIRSTEFFECT', '首效', '首效', 'zh-CN', '首效');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.WETPROCESSDV0', '湿法粒度-Dv0', '湿法粒度-Dv0', 'zh-CN', '湿法粒度-Dv0');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.CYCLETEST', '循环测试', '循环测试', 'zh-CN', '循环测试');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.VOLUMEPARTITION', '分容', '分容', 'zh-CN', '分容');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.CHEMISTRY', '化成', '化成', 'zh-CN', '化成');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.KVALUETEST', 'K值测试', 'K值测试', 'zh-CN', 'K值测试');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.COMPACTIONDENSITY', '压实密度-1T', '压实密度-1T', 'zh-CN', '压实密度-1T');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.LI', 'LI', 'LI', 'zh-CN', 'LI');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.NI', 'NI', 'NI', 'zh-CN', 'NI');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.WETPROCESSDV50', '湿法粒度-Dv50', '湿法粒度-Dv50', 'zh-CN', '湿法粒度-Dv50');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.FIRSTEFFECTTEST', '首效测试', '首效测试', 'zh-CN', '首效测试');
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.SEARCHTIME', '数据入库日期', '数据入库日期', 'zh-CN', '数据入库日期');

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('998095008342114', '及时率', '/secure/basemodule/business/test/folder-task-test-middles/page/edit-list', '8202', '998096256147555', '027.svg', '及时率');

INSERT INTO T_CORE_SCHEDULE_TASK (ID, TASKNAME, SERVICENAME, METHODNAME, TYPE)
VALUES ('taskMiddle', '检测项目定时插入', 'com.sunwayworld.basemodule.business.test.task.service.LimsFolderTaskTestMiddleService', 'insertTestMiddle', 'service')

------------------ 2022-11-22 add by wangyuwei------------end


------------------ 2022-11-21 ADD BY LIJIAXING------------START
ALTER TABLE T_LIMS_SPECIMEN ADD (STATUS VARCHAR2(36) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_SPECIMEN ADD (BATCHNAME VARCHAR2(270) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_SPECIMEN ADD (WORKSHOPSECTION VARCHAR2(36) DEFAULT NULL NULL);
CALL INSERTI18N('T_LIMS_SPECIMEN.STATUS', '状态', '状态', 'zh-CN', '状态');
CALL INSERTI18N('T_LIMS_SPECIMEN.BATCHNAME', '批次', '批次', 'zh-CN', '批次');
CALL INSERTI18N('T_LIMS_SPECIMEN.WORKSHOPSECTION', '车间工序', '车间工序', 'zh-CN', '车间工序');
COMMENT ON COLUMN T_LIMS_SPECIMEN.STATUS IS '状态';
COMMENT ON COLUMN T_LIMS_SPECIMEN.BATCHNAME IS '批次';
COMMENT ON COLUMN T_LIMS_SPECIMEN.WORKSHOPSECTION IS '车间工序';

INSERT INTO T_CORE_CODE_CATEGORY (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('specimenStatus', '质控样状态', 'sys');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202211212201, '有效', '1', 1, 'specimenStatus', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202211212202, '无效', '0', 2, 'specimenStatus', 0, 'admin', '系统管理员', '0');
------------------ 2022-11-21 ADD BY LIJIAXING------------END

------------------ 2022-11-22 add by wangyuwei------------begin
CALL INSERTI18N('BASEMODULE.ITEM.DIMENSION.BUTTON.SEARCH', '查询', '查询', 'zh-CN', '查询');
------------------ 2022-11-22 add by wangyuwei------------end

------------------ 2022-11-23 add by wangyuwei------------begin
ALTER TABLE t_lims_task ADD INPUTTIME DATE;

ALTER TABLE T_LIMS_FOLDER_TASK_TEST_MIDDLE ADD T01 varchar2(36);
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.T01', 'T01', 'T01', 'zh-CN', 'T01');
ALTER TABLE T_LIMS_FOLDER_TASK_TEST_MIDDLE ADD SOLUBLELI varchar2(36);
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.SOLUBLELI', '可溶Li+', '可溶Li+', 'zh-CN', '可溶Li+');
ALTER TABLE T_LIMS_FOLDER_TASK_TEST_MIDDLE ADD TEMPERATURECYCLE varchar2(36);
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.TEMPERATURECYCLE', '常温循环', '常温循环', 'zh-CN', '常温循环');
ALTER TABLE T_LIMS_FOLDER_TASK_TEST_MIDDLE ADD SOFTPACKAGE varchar2(36);
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.SOFTPACKAGE', '软包项目', '软包项目', 'zh-CN', '软包项目');
ALTER TABLE T_LIMS_FOLDER_TASK_TEST_MIDDLE ADD BURN varchar2(36);
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.BURN', 'S-灼烧', 'S-灼烧', 'zh-CN', 'S-灼烧');
ALTER TABLE T_LIMS_FOLDER_TASK_TEST_MIDDLE ADD DCRTEST varchar2(36);
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.DCRTEST', 'DCR测试', 'DCR测试', 'zh-CN', 'DCR测试');
ALTER TABLE T_LIMS_FOLDER_TASK_TEST_MIDDLE ADD JMS varchar2(36);
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.JMS', 'JMS', 'JMS', 'zh-CN', 'JMS');
ALTER TABLE T_LIMS_FOLDER_TASK_TEST_MIDDLE ADD CYCLEDCR varchar2(36);
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.CYCLEDCR', '循环DCR', '循环DCR', 'zh-CN', '循环DCR');
ALTER TABLE T_LIMS_FOLDER_TASK_TEST_MIDDLE ADD BET varchar2(36);
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.BET', 'BET', 'BET', 'zh-CN', 'BET');
ALTER TABLE T_LIMS_FOLDER_TASK_TEST_MIDDLE ADD COPPERCOLORATION varchar2(36);
CALL INSERTI18N('T_LIMS_FOLDER_TASK_TEST_MIDDLE.COPPERCOLORATION', '铜显色', '铜显色', 'zh-CN', '铜显色');
------------------ 2022-11-23 add by wangyuwei------------end

------------------ 2022-11-23 ADD BY LIJIAXING------------START
ALTER TABLE T_LIMS_ORDER ADD (DISPOSEFLUIDMASS NUMBER(16,4) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER ADD (DISPOSEPROPORTION NUMBER(16,4) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER ADD (DISPOSEACTIVESUBSTANCE NUMBER(16,4) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER ADD (DISPOSECABINETPOINT VARCHAR2(270) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER ADD (DISPOSECHARGINGCAPACITY NUMBER(16,4) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER ADD (DISPOSEDISCHANGECAPACITY NUMBER(16,4) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER ADD (DISPOSEFIRSTEFFECT NUMBER(16,4) DEFAULT NULL NULL);
CALL INSERTI18N('T_LIMS_ORDER.DISPOSEFLUIDMASS', '集流体质量', '集流体质量', 'zh-CN', '集流体质量');
CALL INSERTI18N('T_LIMS_ORDER.DISPOSEPROPORTION', '占比', '占比', 'zh-CN', '占比');
CALL INSERTI18N('T_LIMS_ORDER.DISPOSEACTIVESUBSTANCE', '活性物质', '活性物质', 'zh-CN', '活性物质');
CALL INSERTI18N('T_LIMS_ORDER.DISPOSECABINETPOINT', '电池柜点', '电池柜点', 'zh-CN', '电池柜点');
CALL INSERTI18N('T_LIMS_ORDER.DISPOSECHARGINGCAPACITY', '充电比容量', '充电比容量', 'zh-CN', '充电比容量');
CALL INSERTI18N('T_LIMS_ORDER.DISPOSEDISCHANGECAPACITY', '放电比容量', '放电比容量', 'zh-CN', '放电比容量');
CALL INSERTI18N('T_LIMS_ORDER.DISPOSEFIRSTEFFECT', '首效', '首效', 'zh-CN', '首效');
COMMENT ON COLUMN T_LIMS_ORDER.DISPOSEFLUIDMASS IS '集流体质量';
COMMENT ON COLUMN T_LIMS_ORDER.DISPOSEPROPORTION IS '占比';
COMMENT ON COLUMN T_LIMS_ORDER.DISPOSEACTIVESUBSTANCE IS '活性物质';
COMMENT ON COLUMN T_LIMS_ORDER.DISPOSECABINETPOINT IS '电池柜点';
COMMENT ON COLUMN T_LIMS_ORDER.DISPOSECHARGINGCAPACITY IS '充电比容量';
COMMENT ON COLUMN T_LIMS_ORDER.DISPOSEDISCHANGECAPACITY IS '放电比容量';
COMMENT ON COLUMN T_LIMS_ORDER.DISPOSEFIRSTEFFECT IS '首效';
------------------ 2022-11-23 ADD BY LIJIAXING------------END


------------------ 2022-11-24 add by wangyuwei------------begin
ALTER TABLE t_lims_task ADD RESULTINPUTTIME varchar2(36);
CALL INSERTI18N('T_LIMS_TASK.RESULTINPUTTIME', '结果录入提交时间', '结果录入提交时间', 'zh-CN', '结果录入提交时间');
------------------ 2022-11-24 add by wangyuwei------------end

------------------ 2022-11-24 add by wangyuwei------------begin
ALTER TABLE t_lims_task DROP COLUMN  INPUTTIME;

ALTER TABLE t_lims_task DROP COLUMN  RESULTINPUTTIME;

ALTER TABLE t_lims_task ADD RESULTINPUTTIME DATE;
CALL INSERTI18N('T_LIMS_TASK.RESULTINPUTTIME', '结果录入提交时间', '结果录入提交时间', 'zh-CN', '结果录入提交时间');
------------------ 2022-11-24 add by wangyuwei------------end

------------------ 2022-11-24 ADD BY LIJIAXING------------START
ALTER TABLE T_LIMS_ORDER MODIFY (POLEPIECEQUALITY NUMBER(16, 4));
------------------ 2022-11-24 ADD BY LIJIAXING------------END

-- ----------------------------- 2022-11-27 add by wangyuwei--------------begin
CALL INSERTI18N('BASEMODULE.TRM.TEST.TESTS.BUTTON.NO_FORMULA', '项目库', '未维护', 'zh-CN', '未维护');
CALL INSERTI18N('BASEMODULE.TRM.TEST.TESTS.BUTTON.VIEW_FORMULA', '项目库', '查看', 'zh-CN', '查看');
CALL INSERTI18N('BASEMODULE.TRM.TEST.TESTS.MODAL.FORMULA', '项目库', '计算公式', 'zh-CN', '计算公式');
CALL INSERTI18N('BASEMODAL.TRM.TEST.TESTS.TAB.FORMULA', '项目库', '计算公式', 'zh-CN', '计算公式');
CALL INSERTI18N('BASEMODAL.TRM.TEST.TESTS.TAB.FUNC', '项目库', '函数', 'zh-CN', '函数');
CALL INSERTI18N('BASEMODAL.TRM.TEST.TESTS.TAB.SELECTOR', '项目库', '选择器', 'zh-CN', '选择器');
CALL INSERTI18N('T_LIMS_TM_ANALYST.SELECTOR', '项目库', '选择器', 'zh-CN', '选择器');
CALL INSERTI18N('T_LIMS_TM_ANALYST.ITEM_SELECTOR', '项目库', '分析项选择器', 'zh-CN', '分析项选择器');
CALL INSERTI18N('T_LIMS_TM_ANALYST.TESTITEM_SELECTOR', '项目库', '检测项目选择器', 'zh-CN', '检测项目选择器');
CALL INSERTI18N('BASEMODAL.TRM.TEST.TESTS.TAB.TEST', '项目库', '测试', 'zh-CN', '测试');
CALL INSERTI18N('T_LIMS_TM_ANALYST.ITEM', '项目库', '分析项目', 'zh-CN', '分析项目');
CALL INSERTI18N('T_LIMS_TM_ANALYST.VALUE', '项目库', '值', 'zh-CN', '值');
CALL INSERTI18N('BASEMODAL.TRM.TEST.TESTS.BUTTON.TEST', '项目库', '测试', 'zh-CN', '测试');
CALL INSERTI18N('BASEMODAL.TRM.TEST.TESTS.TAB.TEST_INFO', '项目库', '检测项目', 'zh-CN', '检测项目');
CALL INSERTI18N('BASEMODAL.TRM.TEST.TESTS.TAB.ITEM_INFO', '项目库', '分析项', 'zh-CN', '分析项');
CALL INSERTI18N('T_LIMS_TM_ANALYST.CONCRETE', '项目库', '自定义', 'zh-CN', '自定义');
CALL INSERTI18N('T_LIMS_TM_ANALYST.REPNOCATEGORY', '项目库', '重复次数', 'zh-CN', '重复次数');
CALL INSERTI18N('T_LIMS_TM_ANALYST.EXPRESSION', '项目库', '表达式', 'zh-CN', '表达式');
CALL INSERTI18N('T_LIMS_TM_ANALYST.SAMPLESELECTCATEGORY', '项目库', '样品筛选', 'zh-CN', '样品筛选');
CALL INSERTI18N('BASEMODAL.TRM.TEST.TESTS.TAB.REPEATNO_NOT_NUMBER_TYPE', '项目库', '请输入数字类型', 'zh-CN', '请输入数字类型');
INSERT INTO T_CORE_ADMIN_SELECT_CONFIG(ID, NAME, CATEGORY, URL, VALUEFIELD, TEXTFIELD, CACHEABLE) VALUES (20210208, '检测项目下拉', 'test', '/secure/basemodule/coredata/tests/queries/selectable', 'id', 'testName', NULL);

ALTER TABLE T_LIMS_TM_ANALYST ADD TESTID NUMBER;
COMMENT ON COLUMN T_LIMS_TM_ANALYST.TESTID IS '检测项目ID';
CALL INSERTI18N('T_LIMS_TM_ANALYST.TESTID', '检测项目ID', '检测项目ID', 'zh-CN', '检测项目ID');
-- 处理历史数据
update T_LIMS_TM_ANALYST A set TESTID = (select TESTID from t_lims_test_method where id = A.TESTMETHODID);
-- ----------------------------- 2022-11-27 add by wangyuwei------------end


------------------------------- 2022-11-28 add by dingjian--------------begin
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202211281342, '倍率放电', 'RB_FANGDIAN', 9, 'taskReportTemplate', 0, 'admin', '系统管理员', '0');
------------------------------- 2022-11-28 add by dingjian--------------end


------------------------------- 2022-11-29 add by wangyuwei--------------begin

ALTER TABLE T_LIMS_ORDER ADD BATCHELECTROLYTE varchar2(36);
CALL INSERTI18N('T_LIMS_ORDER.BATCHELECTROLYTE', '实物批电解液', '实物批电解液', 'zh-CN', '实物批电解液');
ALTER TABLE T_LIMS_ORDER ADD LIQUIDVOLUME varchar2(36);
CALL INSERTI18N('T_LIMS_ORDER.LIQUIDVOLUME', '注液量', '注液量', 'zh-CN', '注液量');
ALTER TABLE T_LIMS_ORDER ADD BATCHTESTVOLTAGE varchar2(36);
CALL INSERTI18N('T_LIMS_ORDER.BATCHTESTVOLTAGE', '实物批测试电压', '实物批测试电压', 'zh-CN', '实物批测试电压');

------------------------------- 2022-11-29 add by wangyuwei--------------begin

------------------------------- 2022-11-30 add by wangyuwei--------------begin

UPDATE T_CORE_USER SET ORGID='00013965',ORGNAME='软包组' WHERE ID IN(
    SELECT CREATEDBYID FROM T_LOG_SJW WHERE CREATEDBYORGID='软包组'
);
UPDATE T_CORE_USER SET ORGID='00013964',ORGNAME='扣电组' WHERE ID IN(
    SELECT CREATEDBYID FROM T_LOG_SJW WHERE CREATEDBYORGID='扣电组'
);
UPDATE T_CORE_USER SET ORGID='00013963',ORGNAME='物理组' WHERE ID IN(
    SELECT CREATEDBYID FROM T_LOG_SJW WHERE CREATEDBYORGID='物理组'
);
UPDATE T_CORE_USER SET ORGID='00013962',ORGNAME='化学组' WHERE ID IN(
    SELECT CREATEDBYID FROM T_LOG_SJW WHERE CREATEDBYORGID='化学组'
);


------------------------------- 2022-11-30 add by wangyuwei--------------begin
------------------ 2022-12-01 ADD BY LIJIAXING------------START
ALTER TABLE T_LIMS_ORDER ADD (CBPOSITIVERATIO NUMBER(16,4) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER ADD (CBPOSITIVESLICEAREA NUMBER(16,4) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER ADD (CBNEGATIVESLICEQUALITY NUMBER(16,4) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER ADD (CBVALUE NUMBER(16,4) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER ADD (CBNEGATIVEACTIVITY NUMBER(16,4) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER ADD (CBNEGATIVERATIO NUMBER(16,4) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER ADD (CBNEGATIVEFLUIDMASS NUMBER(16,4) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER ADD (CBNEGATIVESLICEAREA NUMBER(16,4) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER ADD (CBPOSITIVECOATINGPRESSDEN NUMBER(16,4) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER ADD (CBNEGATIVEACTIVITYQUALITY NUMBER(16,4) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER ADD (CBNEGATIVECOATINGPRESSDEN NUMBER(16,4) DEFAULT NULL NULL);
CALL INSERTI18N('T_LIMS_ORDER.CBPOSITIVERATIO', '正极标比mAh/g', '正极标比mAh/g', 'zh-CN', '正极标比mAh/g');
CALL INSERTI18N('T_LIMS_ORDER.CBPOSITIVESLICEAREA', '正极片面积cm²', '正极片面积cm²', 'zh-CN', '正极片面积cm²');
CALL INSERTI18N('T_LIMS_ORDER.CBNEGATIVESLICEQUALITY', '负极片质量mg', '负极片质量mg', 'zh-CN', '负极片质量mg');
CALL INSERTI18N('T_LIMS_ORDER.CBVALUE', 'CB值', 'CB值', 'zh-CN', 'CB值');
CALL INSERTI18N('T_LIMS_ORDER.CBNEGATIVEACTIVITY', '负极活性占比%', '负极活性占比%', 'zh-CN', '负极活性占比%');
CALL INSERTI18N('T_LIMS_ORDER.CBNEGATIVERATIO', '负极标比mAh/g', '负极标比mAh/g', 'zh-CN', '负极标比mAh/g');
CALL INSERTI18N('T_LIMS_ORDER.CBNEGATIVEFLUIDMASS', '负极集流体质量mg', '负极集流体质量mg', 'zh-CN', '负极集流体质量mg');
CALL INSERTI18N('T_LIMS_ORDER.CBNEGATIVESLICEAREA', '负极片面积cm²', '负极片面积cm²', 'zh-CN', '负极片面积cm²');
CALL INSERTI18N('T_LIMS_ORDER.CBPOSITIVECOATINGPRESSDEN', '正极面密度g/cm²', '正极面密度g/cm²', 'zh-CN', '正极面密度g/cm²');
CALL INSERTI18N('T_LIMS_ORDER.CBNEGATIVEACTIVITYQUALITY', '负极活性物质质量mg', '负极活性物质质量mg', 'zh-CN', '负极活性物质质量mg');
CALL INSERTI18N('T_LIMS_ORDER.CBNEGATIVECOATINGPRESSDEN', '负极面密度g/cm²', '负极面密度g/cm²', 'zh-CN', '负极面密度g/cm²');
COMMENT ON COLUMN T_LIMS_ORDER.CBPOSITIVERATIO IS '正极标比mAh/g';
COMMENT ON COLUMN T_LIMS_ORDER.CBPOSITIVESLICEAREA IS '正极片面积cm²';
COMMENT ON COLUMN T_LIMS_ORDER.CBNEGATIVESLICEQUALITY IS '负极片质量mg';
COMMENT ON COLUMN T_LIMS_ORDER.CBVALUE IS 'CB值';
COMMENT ON COLUMN T_LIMS_ORDER.CBNEGATIVEACTIVITY IS '负极活性占比%';
COMMENT ON COLUMN T_LIMS_ORDER.CBNEGATIVERATIO IS '负极标比mAh/g';
COMMENT ON COLUMN T_LIMS_ORDER.CBNEGATIVEFLUIDMASS IS '负极集流体质量mg';
COMMENT ON COLUMN T_LIMS_ORDER.CBNEGATIVESLICEAREA IS '负极片面积cm²';
COMMENT ON COLUMN T_LIMS_ORDER.CBPOSITIVECOATINGPRESSDEN IS '正极面密度g/cm²';
COMMENT ON COLUMN T_LIMS_ORDER.CBNEGATIVEACTIVITYQUALITY IS '负极活性物质质量mg';
COMMENT ON COLUMN T_LIMS_ORDER.CBNEGATIVECOATINGPRESSDEN IS '负极面密度g/cm²';
------------------ 2022-12-01 ADD BY LIJIAXING------------END

------------------ 2022-12-02 ADD BY LIJIAXING------------START
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('100118', '样品预处理工序查询', '/secure/basemodule/business/test/folders/page/search-list?page=sampleDisposeProcessSearch', '1001', '18', '001.svg', '样品预处理工序查询');

------------------ 2022-12-02 ADD BY LIJIAXING------------END


------------------ 2022-12-06 ADD BY LIJIAXING------------START
ALTER TABLE T_LIMS_ORDER ADD (SAMPLECAPACITY NUMBER(16,4) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER ADD (SAMPLECOATINGPRESSDEN NUMBER(16,4) DEFAULT NULL NULL);
CALL INSERTI18N('T_LIMS_ORDER.SAMPLECAPACITY', '克容量', '克容量', 'zh-CN', '克容量');
CALL INSERTI18N('T_LIMS_ORDER.SAMPLECOATINGPRESSDEN', '涂布单面面密度', '涂布单面面密度', 'zh-CN', '涂布单面面密度');
------------------ 2022-12-06 ADD BY LIJIAXING------------END

------------------ 2022-12-07 ADD BY LIJIAXING------------START
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202210192210, '化成', 'RB_HC', 10, 'taskReportTemplate', 0, 'admin', '系统管理员', '0');
------------------ 2022-12-07 ADD BY LIJIAXING------------END


------------------------------- 2022-12-07 add by dingjian--------------begin
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (2022120709511, '1C', 'RB_ONE_C', 10, 'taskReportTemplate', 0, 'admin', '系统管理员', '0');
------------------------------- 2022-12-07 add by dingjian--------------end
------------------ 2022-12-09 ADD BY LIJIAXING------------START
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202209131903, '取消收样', '3', 3, 'sampleObtainStatus', 0, 'admin', '系统管理员', '0');
------------------ 2022-12-09 ADD BY LIJIAXING------------END

------------------------------- 2022-12-13 add by dingjian--------------begin
CALL INSERTI18N('LIMS.BASEMODULE.BUTTON.FILE_DOWNLOAD', '下载', '下载', 'zh-CN', '下载');
CALL INSERTI18N('LIMS.MODULE.REPORTTEMPLATES.BUTTON.DATA_TRANSPORT', '数据操作', '数据操作', 'zh-CN', '数据操作');
------------------------------- 2022-12-13 add by dingjian--------------end
------------------ 2022-12-15 ADD BY LIJIAXING------------START
ALTER TABLE T_LIMS_METHOD MODIFY (METHODNAME varchar2(900));
------------------ 2022-12-15 ADD BY LIJIAXING------------END
-- ----------------------------- 2022-12-22 add by lijiaxing--------------begin

-- 建表语句
CREATE TABLE T_LIMS_EXECUTIVE_RECORD(
                                        ID NUMBER NOT NULL,
                                        CREATEDBYID VARCHAR2(36)  NULL,
                                        CREATEDBYNAME VARCHAR2(60)  NULL,
                                        CREATEDTIME DATE NULL,
                                        CREATEDBYORGID VARCHAR2(36)  NULL,
                                        CREATEDBYORGNAME VARCHAR2(270)  NULL,
                                        REMARKS VARCHAR2(270)  NULL,
                                        ORGID VARCHAR2(36)  NULL,
                                        ORGNAME VARCHAR2(270)  NULL,
                                        CONTENT VARCHAR2(900)  NULL,
                                        TITLE VARCHAR2(270)  NULL,
                                        TABLENAME VARCHAR2(270)  NULL,
                                        TYPENAME VARCHAR2(270)  NULL,
                                        TARGETID NUMBER NULL
);
COMMENT ON TABLE T_LIMS_EXECUTIVE_RECORD IS '执行记录表';
COMMENT ON COLUMN T_LIMS_EXECUTIVE_RECORD.ID IS '主键';
COMMENT ON COLUMN T_LIMS_EXECUTIVE_RECORD.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_EXECUTIVE_RECORD.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_EXECUTIVE_RECORD.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_EXECUTIVE_RECORD.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_EXECUTIVE_RECORD.CREATEDBYORGNAME IS '制单人单位名称';
COMMENT ON COLUMN T_LIMS_EXECUTIVE_RECORD.REMARKS IS '备注';
COMMENT ON COLUMN T_LIMS_EXECUTIVE_RECORD.ORGID IS '组织ID';
COMMENT ON COLUMN T_LIMS_EXECUTIVE_RECORD.ORGNAME IS '组织名称';
COMMENT ON COLUMN T_LIMS_EXECUTIVE_RECORD.CONTENT IS '内容';
COMMENT ON COLUMN T_LIMS_EXECUTIVE_RECORD.TITLE IS '标题';
COMMENT ON COLUMN T_LIMS_EXECUTIVE_RECORD.TABLENAME IS '表名';
COMMENT ON COLUMN T_LIMS_EXECUTIVE_RECORD.TYPENAME IS '类型';
COMMENT ON COLUMN T_LIMS_EXECUTIVE_RECORD.TARGETID IS '主键';

ALTER TABLE T_LIMS_EXECUTIVE_RECORD ADD CONSTRAINT PK_LIMS_EXECUTIVE_RECORD PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_EXECUTIVE_RECORD.SERVICE_NAME', '执行记录表', '执行记录表', 'zh-CN', '执行记录表');
CALL INSERTI18N('T_LIMS_EXECUTIVE_RECORD.ID', '执行记录表的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_EXECUTIVE_RECORD.CREATEDBYID', '执行记录表的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_EXECUTIVE_RECORD.CREATEDBYNAME', '执行记录表的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_LIMS_EXECUTIVE_RECORD.CREATEDTIME', '执行记录表的制单时间', '制单时间', 'zh-CN', '制单时间');
CALL INSERTI18N('T_LIMS_EXECUTIVE_RECORD.CREATEDBYORGID', '执行记录表的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_EXECUTIVE_RECORD.CREATEDBYORGNAME', '执行记录表的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');
CALL INSERTI18N('T_LIMS_EXECUTIVE_RECORD.REMARKS', '执行记录表的备注', '备注', 'zh-CN', '备注');
CALL INSERTI18N('T_LIMS_EXECUTIVE_RECORD.ORGID', '执行记录表的组织ID', '组织ID', 'zh-CN', '组织ID');
CALL INSERTI18N('T_LIMS_EXECUTIVE_RECORD.ORGNAME', '执行记录表的组织名称', '组织名称', 'zh-CN', '组织名称');
CALL INSERTI18N('T_LIMS_EXECUTIVE_RECORD.CONTENT', '执行记录表的内容', '内容', 'zh-CN', '内容');
CALL INSERTI18N('T_LIMS_EXECUTIVE_RECORD.TITLE', '执行记录表的标题', '标题', 'zh-CN', '标题');
CALL INSERTI18N('T_LIMS_EXECUTIVE_RECORD.TABLENAME', '执行记录表的表名', '表名', 'zh-CN', '表名');
CALL INSERTI18N('T_LIMS_EXECUTIVE_RECORD.TYPENAME', '执行记录表的类型', '类型', 'zh-CN', '类型');
CALL INSERTI18N('T_LIMS_EXECUTIVE_RECORD.TARGETID', '执行记录表的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('BASEMODULE.BUSINESS.EXECUTIVERECORDS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BUSINESS.EXECUTIVERECORDS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BUSINESS.EXECUTIVERECORDS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BUSINESS.EXECUTIVERECORDS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BUSINESS.EXECUTIVERECORDS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

CREATE INDEX IDX_TARGETID ON T_LIMS_EXECUTIVE_RECORD (TARGETID);

INSERT INTO T_CORE_TABLE (ID, AUDITABLE, ATTACHMENT)
VALUES ('T_LIMS_EXECUTIVE_RECORD', '0', '0');


COMMIT;

-- ----------------------------- 2022-12-22 add by lijiaxing------------end
-- ----------------------------- 2022-12-22 add by lijiaxing------------start

INSERT INTO T_CORE_SCHEDULE_TASK (ID, TASKNAME, SERVICENAME, METHODNAME, TYPE)
VALUES ('orderObtainStatus', '送检单超过24小时样品未送达', 'com.sunwayworld.basemodule.business.executiverecord.service.LimsExecutiveRecordService', 'orderObtainStatus', 'service');
-- ----------------------------- 2022-12-22 add by lijiaxing------------end
-- ----------------------------- 2022-12-22 add by lijiaxing------------start

INSERT INTO T_CORE_SCHEDULE_TASK (ID, TASKNAME, SERVICENAME, METHODNAME, TYPE)
VALUES ('qualityItem', '质量监督逾期的计划', 'com.sunwayworld.basemodule.business.executiverecord.service.LimsExecutiveRecordService', 'qualityItem', 'service');
-- ----------------------------- 2022-12-22 add by lijiaxing------------end
-- ----------------------------- 2022-12-22 add by lijiaxing------------start
INSERT INTO T_CORE_SCHEDULE_TASK (ID, TASKNAME, SERVICENAME, METHODNAME, TYPE)
VALUES ('equiptCheckPrepare', '设备期间核查计划安排', 'com.sunwayworld.basemodule.business.executiverecord.service.LimsExecutiveRecordService', 'equiptCheckPrepare', 'service');
INSERT INTO T_CORE_SCHEDULE_TASK (ID, TASKNAME, SERVICENAME, METHODNAME, TYPE)
VALUES ('equiptCheckPostpone', '设备期间核查计划逾期', 'com.sunwayworld.basemodule.business.executiverecord.service.LimsExecutiveRecordService', 'equiptCheckPostpone', 'service');
-- ----------------------------- 2022-12-22 add by lijiaxing------------end

-- ----------------------------- 2022-12-23 add by lijiaxing------------start

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('100120', '加急业务量统计', '/secure/basemodule/business/test/folders/page/statisticsUrgencyPage', '1001', '20', '001.svg', '加急业务量统计');
-- ----------------------------- 2022-12-23 add by lijiaxing------------end


-- ----------------------------- 2022-12-24 add by dingjian--------------begin
CALL INSERTI18N('VALIDITYDATE.NOT.LATER.THAN.CURRENTDATE', '无效有效期，有效期请选择今天之前的时间', '无效有效期，有效期请选择今天之后的时间', 'zh-CN', '无效有效期，有效期请选择今天之前的时间');
-- ----------------------------- 2022-12-24 add by dingjian--------------end

-- ----------------------------- 2022-12-26 add by miq--------------begin
alter table T_CORE_EQUIPT_ACQ_CONFIG add SHARENAME VARCHAR2(120);
comment on column T_CORE_EQUIPT_ACQ_CONFIG.SHARENAME is '共享文件夹地址';
alter table T_CORE_EQUIPT_ACQ_CONFIG add USERNAME VARCHAR2(30);
comment on column T_CORE_EQUIPT_ACQ_CONFIG.USERNAME is '用户名';
alter table T_CORE_EQUIPT_ACQ_CONFIG add PWD VARCHAR2(30);
comment on column T_CORE_EQUIPT_ACQ_CONFIG.PWD is '密码';

CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.SHARENAME','共享文件夹地址','共享文件夹地址','zh-CN','共享文件夹地址');
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.USERNAME','用户名','用户名','zh-CN','用户名');
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.PWD','密码','密码','zh-CN','密码');

-- ----------------------------- 2022-12-26 add by miq--------------end
-- ----------------------------- 2022-12-30 add by lijiaxing--------------start
ALTER TABLE T_LIMS_EQUIPT_STANDBY  ADD STANDBYEQUIPTCODE VARCHAR2(270);
COMMENT ON COLUMN T_LIMS_EQUIPT_STANDBY.STANDBYEQUIPTCODE IS '备件编号';
-- ----------------------------- 2022-12-30 add by lijiaxing--------------end

-- ----------------------------- 2023-1-3 add by lijiaxing--------------start
CALL INSERTI18N('VALIDITYDATE.NOT.LATER.THAN.CURRENTDATE', '无效有效期，有效期请选择今天之后的时间', '无效有效期，有效期请选择今天之后的时间', 'zh-CN', '无效有效期，有效期请选择今天之后的时间');
-- ----------------------------- 2023-1-3 add by lijiaxing--------------end
-- ----------------------------- 2023-1-3 add by lijiaxing--------------start
INSERT INTO T_CORE_SEQUENCE
(ID, PATTERN, JSONPARAM)
VALUES('T_LIMS_INTERNAL_AUDIT_FIRSTMEET', '[nnnnnnnnnnnn]', '[{"n":31}]');
INSERT INTO T_CORE_SEQUENCE
(ID, PATTERN, JSONPARAM)
VALUES('T_LIMS_INTERNAL_AUDIT_LASTTMEET', '[nnnnnnnnnnnn]', '[{"n":31}]');
-- ----------------------------- 2023-1-3 add by lijiaxing--------------end
-- ----------------------------- 2023-1-3 add by lijiaxing--------------start
ALTER TABLE T_LIMS_COMPLAINT MODIFY (MEASURE VARCHAR2(1200));
-- ----------------------------- 2023-1-3 add by lijiaxing--------------end
-- ----------------------------- 2023-1-3 add by lijiaxing--------------start
ALTER TABLE T_LIMS_SUPERVISION_ITEM MODIFY (CHECKUSER VARCHAR2(1200));
ALTER TABLE T_LIMS_SUPERVISION_ITEM MODIFY (CHECKUSERID VARCHAR2(3600));
-- ----------------------------- 2023-1-3 add by lijiaxing--------------end
-- ----------------------------- 2023-1-4 add by lijiaxing--------------start
ALTER TABLE T_LIMS_INTERNAL_AUDIT_MONTH MODIFY (REPORTSCOPE VARCHAR2(1200));
ALTER TABLE T_LIMS_INTERNAL_AUDIT_MONTH MODIFY (REPORTSCOPEIDS VARCHAR2(3600));
-- ----------------------------- 2023-1-4 add by lijiaxing--------------end

-- ----------------------------- 2023-01-04 add by lijiaxing--------------begin

-- 建表语句
CREATE TABLE T_LIMS_HUMITURE_LOCATION(
                                         ID NUMBER NOT NULL,
                                         CREATEDBYID VARCHAR2(36)  NULL,
                                         CREATEDBYNAME VARCHAR2(60)  NULL,
                                         CREATEDTIME DATE NULL,
                                         CREATEDBYORGID VARCHAR2(36)  NULL,
                                         CREATEDBYORGNAME VARCHAR2(270)  NULL,
                                         ORGID VARCHAR2(36)  NULL,
                                         ORGNAME VARCHAR2(270)  NULL,
                                         REMARKS VARCHAR2(270)  NULL,
                                         LOCATIONID NUMBER NULL
);
COMMENT ON TABLE T_LIMS_HUMITURE_LOCATION IS '温湿度位置';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION.ID IS '主键';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION.CREATEDBYORGNAME IS '制单人单位名称';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION.ORGID IS '组织ID';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION.ORGNAME IS '组织名称';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION.REMARKS IS '备注';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION.LOCATIONID IS '位置ID';

ALTER TABLE T_LIMS_HUMITURE_LOCATION ADD CONSTRAINT PK_LIMS_HUMITURE_LOCATION PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION.SERVICE_NAME', '温湿度位置', '温湿度位置', 'zh-CN', '温湿度位置');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION.ID', '温湿度位置的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION.CREATEDBYID', '温湿度位置的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION.CREATEDBYNAME', '温湿度位置的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION.CREATEDTIME', '温湿度位置的制单时间', '制单时间', 'zh-CN', '制单时间');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION.CREATEDBYORGID', '温湿度位置的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION.CREATEDBYORGNAME', '温湿度位置的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION.ORGID', '温湿度位置的组织ID', '组织ID', 'zh-CN', '组织ID');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION.ORGNAME', '温湿度位置的组织名称', '组织名称', 'zh-CN', '组织名称');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION.REMARKS', '温湿度位置的备注', '备注', 'zh-CN', '备注');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION.LOCATIONID', '温湿度位置的位置ID', '位置ID', 'zh-CN', '位置ID');
CALL INSERTI18N('BASEMODULE.TRM.HUMITURE.LOCATIONS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.TRM.HUMITURE.LOCATIONS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.TRM.HUMITURE.LOCATIONS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.TRM.HUMITURE.LOCATIONS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.TRM.HUMITURE.LOCATIONS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

-- 创建菜单语句
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('202301041318', '温湿度管理', '/secure/basemodule/trm/humiture/humiture-locations/page/edit-list', '20220928', '202301041318', '001.svg', '温湿度管理');


INSERT INTO T_CORE_TABLE (ID, AUDITABLE, ATTACHMENT)
VALUES ('T_LIMS_HUMITURE_LOCATION', '0', '0');

CREATE INDEX IDX_LOCATIONID ON T_LIMS_HUMITURE_LOCATION (LOCATIONID);


COMMIT;

-- ----------------------------- 2023-01-04 add by lijiaxing------------end
-- ----------------------------- 2023-01-04 add by lijiaxing--------------begin

-- 建表语句
CREATE TABLE T_LIMS_HUMITURE_LOCATION_INFO(
                                              ID NUMBER NOT NULL,
                                              CREATEDBYID VARCHAR2(36)  NULL,
                                              CREATEDBYNAME VARCHAR2(60)  NULL,
                                              CREATEDTIME DATE NULL,
                                              CREATEDBYORGID VARCHAR2(36)  NULL,
                                              CREATEDBYORGNAME VARCHAR2(270)  NULL,
                                              ORGID VARCHAR2(36)  NULL,
                                              ORGNAME VARCHAR2(270)  NULL,
                                              REMARKS VARCHAR2(270)  NULL,
                                              HUMITURELOCATIONID NUMBER NULL,
                                              TEMPERATURE NUMBER(16,4)  NULL,
                                              HUMIDITY NUMBER(16,4)  NULL,
                                              COLLECTTIME DATE NULL
);
COMMENT ON TABLE T_LIMS_HUMITURE_LOCATION_INFO IS '温湿度位置信息表';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION_INFO.ID IS '主键';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION_INFO.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION_INFO.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION_INFO.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION_INFO.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION_INFO.CREATEDBYORGNAME IS '制单人单位名称';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION_INFO.ORGID IS '组织ID';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION_INFO.ORGNAME IS '组织名称';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION_INFO.REMARKS IS '备注';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION_INFO.HUMITURELOCATIONID IS '温湿度位置ID';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION_INFO.TEMPERATURE IS '温度（ °c）';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION_INFO.HUMIDITY IS '湿度（rh%）';
COMMENT ON COLUMN T_LIMS_HUMITURE_LOCATION_INFO.COLLECTTIME IS '采集时间';


ALTER TABLE T_LIMS_HUMITURE_LOCATION_INFO ADD CONSTRAINT PK_LIMS_HUMITURE_L_INFO PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION_INFO.SERVICE_NAME', '温湿度位置信息表', '温湿度位置信息表', 'zh-CN', '温湿度位置信息表');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION_INFO.ID', '温湿度位置信息表的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION_INFO.CREATEDBYID', '温湿度位置信息表的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION_INFO.CREATEDBYNAME', '温湿度位置信息表的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION_INFO.CREATEDTIME', '温湿度位置信息表的制单时间', '制单时间', 'zh-CN', '制单时间');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION_INFO.CREATEDBYORGID', '温湿度位置信息表的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION_INFO.CREATEDBYORGNAME', '温湿度位置信息表的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION_INFO.ORGID', '温湿度位置信息表的组织ID', '组织ID', 'zh-CN', '组织ID');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION_INFO.ORGNAME', '温湿度位置信息表的组织名称', '组织名称', 'zh-CN', '组织名称');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION_INFO.REMARKS', '温湿度位置信息表的备注', '备注', 'zh-CN', '备注');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION_INFO.HUMITURELOCATIONID', '温湿度位置信息表的温湿度位置ID', '温湿度位置ID', 'zh-CN', '温湿度位置ID');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION_INFO.TEMPERATURE', '温湿度位置信息表的温度（ °c）', '温度（ °c）', 'zh-CN', '温度（ °c）');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION_INFO.HUMIDITY', '温湿度位置信息表的湿度（rh%）', '湿度（rh%）', 'zh-CN', '湿度（rh%）');
CALL INSERTI18N('T_LIMS_HUMITURE_LOCATION_INFO.COLLECTTIME', '温湿度位置信息表的采集时间', '采集时间', 'zh-CN', '采集时间');
CALL INSERTI18N('BASEMODULE.TRM.HUMITURE.LOCATIONINFOS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.TRM.HUMITURE.LOCATIONINFOS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.TRM.HUMITURE.LOCATIONINFOS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.TRM.HUMITURE.LOCATIONINFOS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.TRM.HUMITURE.LOCATIONINFOS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

INSERT INTO T_CORE_TABLE (ID, AUDITABLE, ATTACHMENT)
VALUES ('T_LIMS_HUMITURE_LOCATION_INFO', '0', '0');

CREATE INDEX IDX_HUMITURELOCATIONID ON T_LIMS_HUMITURE_LOCATION_INFO (HUMITURELOCATIONID);

INSERT INTO T_CORE_TABLE_HIERARCHY (ID, TABLENAME, MASTERTABLENAME, REFERCOLUMN)
VALUES ('202301041424','T_LIMS_HUMITURE_LOCATION_INFO', 'T_LIMS_HUMITURE_LOCATION', 'HUMITURELOCATIONID');
COMMIT;

-- ----------------------------- 2023-01-04 add by lijiaxing------------end
-- ----------------------------- 2023-01-04 add by lijiaxing--------------begin

-- 建表语句
CREATE TABLE T_LIMS_RISK_REPORT(
                                   ID NUMBER NOT NULL,
                                   CREATEDBYID VARCHAR2(36)  NULL,
                                   CREATEDBYNAME VARCHAR2(60)  NULL,
                                   CREATEDTIME DATE NULL,
                                   CREATEDBYORGID VARCHAR2(36)  NULL,
                                   CREATEDBYORGNAME VARCHAR2(270)  NULL,
                                   ORGID VARCHAR2(36)  NULL,
                                   ORGNAME VARCHAR2(270)  NULL,
                                   REMARKS VARCHAR2(270)  NULL,
                                   APPLYYEAR NUMBER NULL,
                                   PROCESSSTATUS VARCHAR2(36)  NULL
);
COMMENT ON TABLE T_LIMS_RISK_REPORT IS '风险与机遇报告';
COMMENT ON COLUMN T_LIMS_RISK_REPORT.ID IS '主键';
COMMENT ON COLUMN T_LIMS_RISK_REPORT.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_RISK_REPORT.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_RISK_REPORT.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_RISK_REPORT.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_RISK_REPORT.CREATEDBYORGNAME IS '制单人单位名称';
COMMENT ON COLUMN T_LIMS_RISK_REPORT.ORGID IS '组织ID';
COMMENT ON COLUMN T_LIMS_RISK_REPORT.ORGNAME IS '组织名称';
COMMENT ON COLUMN T_LIMS_RISK_REPORT.REMARKS IS '备注';
COMMENT ON COLUMN T_LIMS_RISK_REPORT.APPLYYEAR IS '年份';
COMMENT ON COLUMN T_LIMS_RISK_REPORT.PROCESSSTATUS IS '流程状态';

ALTER TABLE T_LIMS_RISK_REPORT ADD CONSTRAINT PK_LIMS_RISK_REPORT PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_RISK_REPORT.SERVICE_NAME', '风险与机遇报告', '风险与机遇报告', 'zh-CN', '风险与机遇报告');
CALL INSERTI18N('T_LIMS_RISK_REPORT.ID', '风险与机遇报告的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_RISK_REPORT.CREATEDBYID', '风险与机遇报告的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_RISK_REPORT.CREATEDBYNAME', '风险与机遇报告的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_LIMS_RISK_REPORT.CREATEDTIME', '风险与机遇报告的制单时间', '制单时间', 'zh-CN', '制单时间');
CALL INSERTI18N('T_LIMS_RISK_REPORT.CREATEDBYORGID', '风险与机遇报告的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_RISK_REPORT.CREATEDBYORGNAME', '风险与机遇报告的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');
CALL INSERTI18N('T_LIMS_RISK_REPORT.ORGID', '风险与机遇报告的组织ID', '组织ID', 'zh-CN', '组织ID');
CALL INSERTI18N('T_LIMS_RISK_REPORT.ORGNAME', '风险与机遇报告的组织名称', '组织名称', 'zh-CN', '组织名称');
CALL INSERTI18N('T_LIMS_RISK_REPORT.REMARKS', '风险与机遇报告的备注', '备注', 'zh-CN', '备注');
CALL INSERTI18N('T_LIMS_RISK_REPORT.APPLYYEAR', '风险与机遇报告的年份', '年份', 'zh-CN', '年份');
CALL INSERTI18N('T_LIMS_RISK_REPORT.PROCESSSTATUS', '风险与机遇报告的流程状态', '流程状态', 'zh-CN', '流程状态');
CALL INSERTI18N('BASEMODULE.QMS.RISKREPORTS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.QMS.RISKREPORTS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.QMS.RISKREPORTS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.QMS.RISKREPORTS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.QMS.RISKREPORTS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

-- 创建菜单语句
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('700506', '风险与机遇报告', '', '7005', '700506', '001.svg', '风险与机遇报告');
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('70050601', '编制', '/secure/basemodule/qms/risk-reports/page/edit-list', '700506', '1', '001.svg', '编制');
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('70050602', '审核', '/secure/basemodule/qms/risk-reports/page/audit-list', '700506', '2', '001.svg', '审核');
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('70050603', '查询', '/secure/basemodule/qms/risk-reports/page/search-list', '700506', '3', '001.svg', '查询');

INSERT INTO T_CORE_TABLE (ID, AUDITABLE, ATTACHMENT)
VALUES ('T_LIMS_RISK_REPORT', '1', '0');

INSERT INTO T_CORE_MENU_EXT (ID, SERVICENAME, TABLENAME, TYPE, ENABLE)
VALUES ('700506', '风险与机遇报告', 'T_LIMS_RISK_REPORT', 'audit_def', '1');


COMMIT;

-- ----------------------------- 2023-01-04 add by lijiaxing------------end
-- ----------------------------- 2023-01-04 add by lijiaxing------------start
ALTER TABLE T_LIMS_EQUIPT  MODIFY (DISTINGUISHABILITY VARCHAR2(270) );
-- ----------------------------- 2023-01-04 add by lijiaxing------------end

-- ----------------------------- 2023-01-04 add by lijiaxing------------start
ALTER TABLE T_LIMS_RISK  ADD (RISKTYPE VARCHAR2(36) );
CALL INSERTI18N('T_LIMS_RISK.RISKTYPE', '风险类型', '风险类型', 'zh-CN', '风险类型');

-- ----------------------------- 2023-01-04 add by lijiaxing------------end

-- ----------------------------- 2023-01-05 add by lijiaxing------------start
CALL INSERTI18N('T_LIMS_EQUIPT_STANDBY.STANDBYEQUIPTCODE', '备件编号', '备件编号', 'zh-CN', '备件编号');
-- ----------------------------- 2023-01-05 add by lijiaxing------------end
-- ----------------------------- 2023-01-09 add by lijiaxing------------start
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('701005', '文件核查记录修订', '/secure/basemodule/qms/check-files/page/audit-list?bpmn_statusCode=Revise', '7010', '5', '027.svg', '文件核查记录修订');
-- ----------------------------- 2023-01-09 add by lijiaxing------------end

-- ----------------------------- 2023-01-11 add by miq------------start

ALTER TABLE T_LIMS_REVIEW MODIFY REVIEWEATTENDEE VARCHAR2(1200);
ALTER TABLE T_LIMS_REVIEW MODIFY REVIEWEATTENDEEID VARCHAR2(420);

-- ----------------------------- 2023-01-11 add by miq------------end


-- ----------------------------- 2023-01-11 add by miq------------start
INSERT INTO T_CORE_CODE_CATEGORY (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('folderCellType', '委托单电池类型', 'biz');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301112201, '卷绕', '1', 1, 'folderCellType', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301112202, '叠片', '2', 2, 'folderCellType', 0, 'admin', '系统管理员', '0');

-- ----------------------------- 2023-01-11 add by miq------------end

-- ----------------------------- 2023-01-13 add by lijiaxing------------start

ALTER TABLE T_LIMS_REVIEW MODIFY REVIEWEATTENDEE VARCHAR2(1200);
ALTER TABLE T_LIMS_REVIEW MODIFY REVIEWEATTENDEEID VARCHAR2(1800);

-- ----------------------------- 2023-01-13 add by lijiaxing------------end
-- ----------------------------- 2023-01-13 add by lijiaxing------------start

ALTER TABLE T_LIMS_ORDTASK  MODIFY (PROCESSRESULT VARCHAR2(36));
-- ----------------------------- 2023-01-13 add by lijiaxing------------end


-- ----------------------------- 2023-01-16 add by dingjian------------start
ALTER TABLE T_CORE_ORG  ADD (DELFLAG VARCHAR2(18) DEFAULT NULL NULL);
COMMENT ON COLUMN T_CORE_ORG.DELFLAG IS '生效标识；X时为失效';
ALTER TABLE T_CORE_ORG  ADD (EHRUPDATEFLAG VARCHAR2(18) DEFAULT NULL NULL);
COMMENT ON COLUMN T_CORE_ORG.EHRUPDATEFLAG IS 'EHR更新标识：0不更新；1或者空更新';
    -- ----------------------------- 2023-01-16 add by dingjian--------end

-- ----------------------------- 2023-01-16 add by lijiaxing------------start
ALTER TABLE T_LIMS_COMPLAINT MODIFY (TRACE VARCHAR2(1200));
-- ----------------------------- 2023-01-16 add by lijiaxing------------end

-- ----------------------------- 2023-01-17 add by lijiaxing------------start
INSERT INTO T_CORE_CODE_CATEGORY (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('resultUnit', '单位', 'sys');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116201, '%', '%', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116202, 'mg/L', 'mg/L', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116203, 'g/L', 'g/L', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116204, 'mol/L', 'mol/L', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116205, 'mg', 'mg', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116206, 'g', 'g', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116207, 'ug/kg', 'ug/kg', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116208, 'ml', 'ml', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116209, 'L', 'L', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116210, 'NTU', 'NTU', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116211, 's', 's', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116212, 'g/lm', 'g/lm', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116213, 'pcs', 'pcs', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116214, 'um', 'um', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116215, 'm²/g', 'm²/g', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116216, 'ug/g', 'ug/g', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116217, 'g/cm³', 'g/cm³', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116218, 'Ω*cm-1', 'Ω*cm-1', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202301116219, 'mAh/g', 'mAh/g', 0, 'resultUnit', 0, 'admin', '系统管理员', '0');

-- ----------------------------- 2023-01-17 add by lijiaxing------------end


-- ----------------------------- 2023-01-17 add by dingjian------------start
ALTER TABLE T_LIMS_FOLDER ADD (PRODUCTIONDATE DATE DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_FOLDER.PRODUCTIONDATE IS '生产日期';

ALTER TABLE T_LIMS_FOLDER ADD (WORKSHOP VARCHAR2(120) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_FOLDER.WORKSHOP IS '车间';

ALTER TABLE T_LIMS_FOLDER ADD (LINEDISTINCTION VARCHAR2(120) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_FOLDER.LINEDISTINCTION IS '线别';
-- ----------------------------- 2023-01-17 add by dingjian------------end


-- ----------------------------- 2023-01-18 add by lijiaxing------------start
ALTER TABLE T_LIMS_FOLDER ADD (CANCELSTATUS VARCHAR2(36));
CALL INSERTI18N('T_LIMS_FOLDER.CANCELSTATUS', '取消状态', '取消状态', 'zh-CN', '取消状态');
-- ----------------------------- 2023-01-18 add by lijiaxing------------end

-- ----------------------------- 2023-02-01 add by dingjian------------start
ALTER TABLE T_LIMS_MATERIAL_STORAGE MODIFY WORKSHOPSECTION VARCHAR2(60);
-- ----------------------------- 2023-02-01 add by dingjian------------end

CALL INSERTI18N('T_LIMS_ORDER.OBTAINUSERNAME', '收样人名称', '收样人名称', 'zh-CN', '收样人名称');

ALTER TABLE T_LIMS_MATERIAL_STORAGE ADD (INSPECTION  VARCHAR2(120) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_MATERIAL_STORAGE.INSPECTION IS '检验类型';
CALL INSERTI18N('T_LIMS_MATERIAL_STORAGE.INSPECTION', '检验类型', '检验类型', 'zh-CN', '检验类型');

ALTER TABLE T_LIMS_MATERIAL_STORAGE ADD (DEPTTHREEID  VARCHAR2(120) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_MATERIAL_STORAGE.DEPTTHREEID IS '三级部门ID';
CALL INSERTI18N('T_LIMS_MATERIAL_STORAGE.DEPTTHREEID', '三级部门ID', '三级部门ID', 'zh-CN', '三级部门ID');
ALTER TABLE T_LIMS_MATERIAL_STORAGE ADD (DEPTTHREE  VARCHAR2(120) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_MATERIAL_STORAGE.DEPTTHREE IS '三级部门';
CALL INSERTI18N('T_LIMS_MATERIAL_STORAGE.DEPTTHREE', '三级部门', '三级部门', 'zh-CN', '三级部门');

ALTER TABLE T_LIMS_MATERIAL_STORAGE ADD (DEPTTWOID  VARCHAR2(120) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_MATERIAL_STORAGE.DEPTTWOID IS '二级部门ID';
CALL INSERTI18N('T_LIMS_MATERIAL_STORAGE.DEPTTWOID', '二级部门ID', '二级部门ID', 'zh-CN', '二级部门ID');
ALTER TABLE T_LIMS_MATERIAL_STORAGE ADD (DEPTTWO  VARCHAR2(120) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_MATERIAL_STORAGE.DEPTTWO IS '二级部门';
CALL INSERTI18N('T_LIMS_MATERIAL_STORAGE.DEPTTWO', '二级部门', '二级部门', 'zh-CN', '二级部门');

-- ----------------------------- 2023-02-06 add by yusl------------start
ALTER TABLE T_LIMS_TEST ADD ITEMSORTER NUMBER;
COMMENT ON COLUMN T_LIMS_TEST.ITEMSORTER IS '项目排序';
CALL INSERTI18N('T_LIMS_TEST.ITEMSORTER', '项目排序', '项目排序', 'zh-CN', '项目排序');
-- ----------------------------- 2023-02-06 add by yusl------------end


-- ----------------------------- 2023-02-06 add by miq------------start
alter table T_LIMS_TASK add COLLECTSTATUS VARCHAR2(36);
comment on column T_LIMS_TASK.COLLECTSTATUS is '采集状态';

CALL INSERTI18N('T_LIMS_TASK.COLLECTSTATUS','采集状态','采集状态','zh-CN','采集状态');


INSERT INTO T_CORE_CODE_CATEGORY (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('taskCollectStatus', '任务采集状态', 'sys');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202302062201, '待采集', '1', 1, 'taskCollectStatus', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202302062202, '已采集', '2', 2, 'taskCollectStatus', 0, 'admin', '系统管理员', '0');
-- ----------------------------- 2023-02-06 add by miq------------end

-- ----------------------------- 2023-02-07 add by miq--------------begin

-- 建表语句
CREATE TABLE T_LIMS_SCHEDULE(
                                ID NUMBER NOT NULL,
                                NAME VARCHAR2(120)  NULL,
                                BIZID VARCHAR2(66)  NULL,
                                TYPE VARCHAR2(66)  NULL,
                                ENABLEFLAG VARCHAR2(18)  NULL,
                                CREATEDBYID VARCHAR2(36)  NULL,
                                CREATEDBYNAME VARCHAR2(60)  NULL,
                                CREATEDTIME DATE NULL,
                                CREATEDBYORGID VARCHAR2(36)  NULL,
                                CREATEDBYORGNAME VARCHAR2(270)  NULL
);
COMMENT ON TABLE T_LIMS_SCHEDULE IS '业务定时任务';
COMMENT ON COLUMN T_LIMS_SCHEDULE.ID IS '主键';
COMMENT ON COLUMN T_LIMS_SCHEDULE.NAME IS '名称';
COMMENT ON COLUMN T_LIMS_SCHEDULE.BIZID IS '业务id';
COMMENT ON COLUMN T_LIMS_SCHEDULE.TYPE IS '类型';
COMMENT ON COLUMN T_LIMS_SCHEDULE.ENABLEFLAG IS '是否启用';
COMMENT ON COLUMN T_LIMS_SCHEDULE.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_SCHEDULE.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_SCHEDULE.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_SCHEDULE.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_SCHEDULE.CREATEDBYORGNAME IS '制单人单位名称';

ALTER TABLE T_LIMS_SCHEDULE ADD CONSTRAINT PK_LIMS_SCHEDULE PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_SCHEDULE.SERVICE_NAME', '业务定时任务', '业务定时任务', 'zh-CN', '业务定时任务');
CALL INSERTI18N('T_LIMS_SCHEDULE.ID', '业务定时任务的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_SCHEDULE.NAME', '业务定时任务的名称', '名称', 'zh-CN', '名称');
CALL INSERTI18N('T_LIMS_SCHEDULE.BIZID', '业务定时任务的业务id', '业务id', 'zh-CN', '业务id');
CALL INSERTI18N('T_LIMS_SCHEDULE.TYPE', '业务定时任务的类型', '类型', 'zh-CN', '类型');
CALL INSERTI18N('T_LIMS_SCHEDULE.ENABLEFLAG', '业务定时任务的是否启用', '是否启用', 'zh-CN', '是否启用');
CALL INSERTI18N('T_LIMS_SCHEDULE.CREATEDBYID', '业务定时任务的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_SCHEDULE.CREATEDBYNAME', '业务定时任务的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_LIMS_SCHEDULE.CREATEDTIME', '业务定时任务的制单时间', '制单时间', 'zh-CN', '制单时间');
CALL INSERTI18N('T_LIMS_SCHEDULE.CREATEDBYORGID', '业务定时任务的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_SCHEDULE.CREATEDBYORGNAME', '业务定时任务的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');
CALL INSERTI18N('BASEMODULE.COMMON.SCHEDULES.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.COMMON.SCHEDULES.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.COMMON.SCHEDULES.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.COMMON.SCHEDULES.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.COMMON.SCHEDULES.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

INSERT INTO T_CORE_TABLE (ID, AUDITABLE, ATTACHMENT)
VALUES ('T_LIMS_SCHEDULE', '0', '0');

INSERT INTO T_CORE_SCHEDULE_TASK (ID, TASKNAME, SERVICENAME, METHODNAME, TYPE)
VALUES ('ordtaskSchedule', '检测项目定时采集任务', 'com.sunwayworld.basemodule.common.schedule.service.LimsScheduleService', 'ordtaskSchedule', 'service')

COMMIT;

-- ----------------------------- 2023-02-07 add by miq------------end

ALTER TABLE T_LIMS_ORDER  ADD (OBTAINUSERID VARCHAR2(36) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_ORDER  ADD (OBTAINUSERNAME VARCHAR2(270)  DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_ORDER.OBTAINUSERID IS '收样人ID';
COMMENT ON COLUMN T_LIMS_ORDER.OBTAINUSERNAME IS '收样人名称';
CALL INSERTI18N('T_LIMS_ORDER.OBTAINUSERID', '收样人ID', '收样人ID', 'zh-CN', '收样人ID');

ALTER TABLE T_LIMS_FOLDER  ADD (OBTAINUSERID VARCHAR2(36) DEFAULT NULL NULL);
ALTER TABLE T_LIMS_FOLDER  ADD (OBTAINUSERNAME VARCHAR2(270)  DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_FOLDER.OBTAINUSERID IS '收样人ID';
COMMENT ON COLUMN T_LIMS_FOLDER.OBTAINUSERNAME IS '收样人名称';

-- ----------------------------- 2023-02-08 add by miq--------------begin

UPDATE T_CORE_SCHEDULE_TASK SET METHODNAME = 'scheduleTask' WHERE id = 'ordtaskSchedule'


-- ----------------------------- 2023-02-08 add by miq------------end

-- ----------------------------- 2023-02-08 add by yusl------------start
alter table T_LIMS_ORDER add OPERATERID VARCHAR2(36);
comment on column T_LIMS_ORDER.OPERATERID is '操作人ID';
CALL INSERTI18N('T_LIMS_ORDER.OPERATERID','操作人ID','操作人ID','zh-CN','操作人ID');
alter table T_LIMS_ORDER add OPERATER VARCHAR2(60);
comment on column T_LIMS_ORDER.OPERATER is '操作人';
CALL INSERTI18N('T_LIMS_ORDER.OPERATER','操作人','操作人','zh-CN','操作人');
alter table T_LIMS_ORDER add OPERATETIME DATE;
comment on column T_LIMS_ORDER.OPERATETIME is '操作时间';
CALL INSERTI18N('T_LIMS_ORDER.OPERATETIME','操作时间','操作时间','zh-CN','操作时间');
-- ----------------------------- 2023-02-08 add by yusl------------end

-- ----------------------------- 2023-02-08 add by dingjian------------start
ALTER TABLE T_LIMS_MATERIAL_STORAGE  ADD (SAPMATERIALCODE VARCHAR2(120) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_MATERIAL_STORAGE.SAPMATERIALCODE IS 'SAP材料编码';
-- ----------------------------- 2023-02-08 add by dingjian------------end


-- ----------------------------- 2023-02-08 add by dingjian------------start
INSERT INTO T_CORE_CODE_CATEGORY (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('inspectionType', '检验类型', 'sys');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (2023020819151, '研发', 'develop', 1, 'inspectionType', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (2023020819152, '非研发', 'unDevelop', 2, 'inspectionType', 0, 'admin', '系统管理员', '0');
-- ----------------------------- 2023-02-08 add by dingjian------------end


-- ----------------------------- 2023-02-09 add by dingjian------------start
ALTER TABLE T_LIMS_REVIEW MODIFY PARTICIPANT VARCHAR2(1200);
ALTER TABLE T_LIMS_REVIEW MODIFY PARTICIPANTID VARCHAR2(1800);

ALTER TABLE T_LIMS_REVIEW MODIFY REVIEWEATTENDEEID VARCHAR2(1800);
-- ----------------------------- 2023-02-09 add by dingjian------------end

-- ----------------------------- 2023-02-14 add by lijiaxing------------start
CALL INSERTI18N('T_LIMS_ORDER.POSITIVEACTIVITYQUALITY','正极活性物质质量mg','正极活性物质质量mg','zh-CN','正极活性物质质量mg');
-- ----------------------------- 2023-02-14 add by lijiaxing------------end

-- ----------------------------- 2023-02-14 add by lijiaxing------------start
ALTER TABLE T_LIMS_TM_ANALYST MODIFY DEFAULTRESULT VARCHAR2(270);
-- ----------------------------- 2023-02-14 add by lijiaxing------------end

-- ----------------------------- 2023-02-14 add by dingjian------------start
ALTER TABLE T_LIMS_STAFF_CERTIFICATE  ADD (CERTIFICATELEVEL VARCHAR2(60) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_STAFF_CERTIFICATE.CERTIFICATELEVEL IS '证书级别';
CALL INSERTI18N('T_LIMS_STAFF_CERTIFICATE.CERTIFICATELEVEL', '级别', '级别', 'zh-CN', '级别');
-- ----------------------------- 2023-02-14 add by dingjian------------end
-- ----------------------------- 2023-02-14 add by lijiaxing------------start
ALTER TABLE T_LIMS_TASK MODIFY RESULT VARCHAR2(270);
-- ----------------------------- 2023-02-14 add by lijiaxing------------end

-- ----------------------------- 2023-02-14 add by lijiaxing--------------begin

-- 建表语句
CREATE TABLE T_LIMS_TASK_RESULT_RECORD(
                                          ID NUMBER NOT NULL,
                                          CREATEDBYID VARCHAR2(36)  NULL,
                                          CREATEDBYNAME VARCHAR2(60)  NULL,
                                          CREATEDTIME DATE NULL,
                                          CREATEDBYORGID VARCHAR2(36)  NULL,
                                          CREATEDBYORGNAME VARCHAR2(270)  NULL,
                                          TASKID NUMBER NULL,
                                          ORDTASKID NUMBER NULL,
                                          ORDTASKRESULTID NUMBER NULL,
                                          SAMPLECODE VARCHAR2(270)  NULL,
                                          PROCESSNAME VARCHAR2(270)  NULL,
                                          ANALYSTNAME VARCHAR2(270)  NULL,
                                          CHANGEUSER VARCHAR2(270)  NULL,
                                          CHANGETIME DATE NULL,
                                          RESULTBEFORE VARCHAR2(270)  NULL,
                                          RESULTAFTER VARCHAR2(270)  NULL,
                                          CHANGEUSERID VARCHAR2(36)  NULL
);
COMMENT ON TABLE T_LIMS_TASK_RESULT_RECORD IS '结果修改记录表';
COMMENT ON COLUMN T_LIMS_TASK_RESULT_RECORD.ID IS '主键';
COMMENT ON COLUMN T_LIMS_TASK_RESULT_RECORD.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_TASK_RESULT_RECORD.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_TASK_RESULT_RECORD.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_TASK_RESULT_RECORD.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_TASK_RESULT_RECORD.CREATEDBYORGNAME IS '制单人单位名称';
COMMENT ON COLUMN T_LIMS_TASK_RESULT_RECORD.TASKID IS '项目ID';
COMMENT ON COLUMN T_LIMS_TASK_RESULT_RECORD.ORDTASKID IS '项目样品ID';
COMMENT ON COLUMN T_LIMS_TASK_RESULT_RECORD.ORDTASKRESULTID IS '项目样品分析项ID';
COMMENT ON COLUMN T_LIMS_TASK_RESULT_RECORD.SAMPLECODE IS '电池编号';
COMMENT ON COLUMN T_LIMS_TASK_RESULT_RECORD.PROCESSNAME IS '工序名称';
COMMENT ON COLUMN T_LIMS_TASK_RESULT_RECORD.ANALYSTNAME IS '分析项目名称';
COMMENT ON COLUMN T_LIMS_TASK_RESULT_RECORD.CHANGEUSER IS '修改人';
COMMENT ON COLUMN T_LIMS_TASK_RESULT_RECORD.CHANGETIME IS '修改时间';
COMMENT ON COLUMN T_LIMS_TASK_RESULT_RECORD.RESULTBEFORE IS '修改前结果';
COMMENT ON COLUMN T_LIMS_TASK_RESULT_RECORD.RESULTAFTER IS '修改后结果';
COMMENT ON COLUMN T_LIMS_TASK_RESULT_RECORD.CHANGEUSERID IS '修改人ID';

ALTER TABLE T_LIMS_TASK_RESULT_RECORD ADD CONSTRAINT PK_LIMS_TASK_RESULT_RECORD PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.SERVICE_NAME', '结果修改记录表', '结果修改记录表', 'zh-CN', '结果修改记录表');
CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.ID', '结果修改记录表的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.CREATEDBYID', '结果修改记录表的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.CREATEDBYNAME', '结果修改记录表的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.CREATEDTIME', '结果修改记录表的制单时间', '制单时间', 'zh-CN', '制单时间');
CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.CREATEDBYORGID', '结果修改记录表的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.CREATEDBYORGNAME', '结果修改记录表的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');
CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.TASKID', '结果修改记录表的项目ID', '项目ID', 'zh-CN', '项目ID');
CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.ORDTASKID', '结果修改记录表的项目样品ID', '项目样品ID', 'zh-CN', '项目样品ID');
CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.ORDTASKRESULTID', '结果修改记录表的项目样品分析项ID', '项目样品分析项ID', 'zh-CN', '项目样品分析项ID');
CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.SAMPLECODE', '结果修改记录表的电池编号', '电池编号', 'zh-CN', '电池编号');
CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.PROCESSNAME', '结果修改记录表的工序名称', '工序名称', 'zh-CN', '工序名称');
CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.ANALYSTNAME', '结果修改记录表的分析项目名称', '分析项目名称', 'zh-CN', '分析项目名称');
CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.CHANGEUSER', '结果修改记录表的修改人', '修改人', 'zh-CN', '修改人');
CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.CHANGETIME', '结果修改记录表的修改时间', '修改时间', 'zh-CN', '修改时间');
CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.RESULTBEFORE', '结果修改记录表的修改前结果', '修改前结果', 'zh-CN', '修改前结果');
CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.RESULTAFTER', '结果修改记录表的修改后结果', '修改后结果', 'zh-CN', '修改后结果');
CALL INSERTI18N('T_LIMS_TASK_RESULT_RECORD.CHANGEUSERID', '结果修改记录表的修改人ID', '修改人ID', 'zh-CN', '修改人ID');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.TASKRESULTRECORDS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.TASKRESULTRECORDS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.TASKRESULTRECORDS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.TASKRESULTRECORDS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.TASKRESULTRECORDS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

INSERT INTO T_CORE_TABLE (ID, AUDITABLE, ATTACHMENT)
VALUES ('T_LIMS_TASK_RESULT_RECORD', '0', '0');


COMMIT;

-- ----------------------------- 2023-02-14 add by lijiaxing------------end


-- ----------------------------- 2023-02-16 add by dingjian--------------begin
CREATE TABLE T_LIMS_TESTPROCESS_EQUIPT(
                                          ID NUMBER NOT NULL,
                                          TESTDIRECTIONID NUMBER NULL,
                                          TESTPROCESSID NUMBER NULL,
                                          EQUIPID NUMBER NULL,
                                          ORGID VARCHAR2(36)  NULL,
                                          ORGNAME VARCHAR2(36)  NULL,
                                          CREATEDBYID VARCHAR2(36)  NULL,
                                          CREATEDBYNAME VARCHAR2(60)  NULL,
                                          CREATEDTIME DATE NULL,
                                          CREATEDBYORGID VARCHAR2(36)  NULL,
                                          CREATEDBYORGNAME VARCHAR2(270)  NULL
);
COMMENT ON TABLE T_LIMS_TESTPROCESS_EQUIPT IS '工序设备表';
COMMENT ON COLUMN T_LIMS_TESTPROCESS_EQUIPT.ID IS '主键';
COMMENT ON COLUMN T_LIMS_TESTPROCESS_EQUIPT.TESTDIRECTIONID IS '测试方向ID';
COMMENT ON COLUMN T_LIMS_TESTPROCESS_EQUIPT.TESTPROCESSID IS '测试工序ID';
COMMENT ON COLUMN T_LIMS_TESTPROCESS_EQUIPT.EQUIPID IS '设备ID';
COMMENT ON COLUMN T_LIMS_TESTPROCESS_EQUIPT.ORGID IS '部门ID';
COMMENT ON COLUMN T_LIMS_TESTPROCESS_EQUIPT.ORGNAME IS '部门名称';
COMMENT ON COLUMN T_LIMS_TESTPROCESS_EQUIPT.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_TESTPROCESS_EQUIPT.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_TESTPROCESS_EQUIPT.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_TESTPROCESS_EQUIPT.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_TESTPROCESS_EQUIPT.CREATEDBYORGNAME IS '制单人单位名称';

ALTER TABLE T_LIMS_TESTPROCESS_EQUIPT ADD CONSTRAINT PK_LIMS_TESTPROCESS_EQUIPT PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_TESTPROCESS_EQUIPT.SERVICE_NAME', '工序设备表', '工序设备表', 'zh-CN', '工序设备表');
CALL INSERTI18N('T_LIMS_TESTPROCESS_EQUIPT.ID', '工序设备表的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_TESTPROCESS_EQUIPT.TESTDIRECTIONID', '工序设备表的测试方向ID', '测试方向ID', 'zh-CN', '测试方向ID');
CALL INSERTI18N('T_LIMS_TESTPROCESS_EQUIPT.TESTPROCESSID', '工序设备表的测试工序ID', '测试工序ID', 'zh-CN', '测试工序ID');
CALL INSERTI18N('T_LIMS_TESTPROCESS_EQUIPT.EQUIPID', '工序设备表的设备ID', '设备ID', 'zh-CN', '设备ID');
CALL INSERTI18N('T_LIMS_TESTPROCESS_EQUIPT.ORGID', '工序设备表的部门ID', '部门ID', 'zh-CN', '部门ID');
CALL INSERTI18N('T_LIMS_TESTPROCESS_EQUIPT.ORGNAME', '工序设备表的部门名称', '部门名称', 'zh-CN', '部门名称');
CALL INSERTI18N('T_LIMS_TESTPROCESS_EQUIPT.CREATEDBYID', '工序设备表的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_TESTPROCESS_EQUIPT.CREATEDBYNAME', '工序设备表的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_LIMS_TESTPROCESS_EQUIPT.CREATEDTIME', '工序设备表的制单时间', '制单时间', 'zh-CN', '制单时间');
CALL INSERTI18N('T_LIMS_TESTPROCESS_EQUIPT.CREATEDBYORGID', '工序设备表的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_TESTPROCESS_EQUIPT.CREATEDBYORGNAME', '工序设备表的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');
CALL INSERTI18N('BASEMODULE.TRM.PRETREATMENT.PROCESSEQUIPTS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.TRM.PRETREATMENT.PROCESSEQUIPTS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.TRM.PRETREATMENT.PROCESSEQUIPTS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.TRM.PRETREATMENT.PROCESSEQUIPTS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.TRM.PRETREATMENT.PROCESSEQUIPTS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

INSERT INTO T_CORE_TABLE (ID, AUDITABLE, ATTACHMENT)
VALUES ('T_LIMS_TESTPROCESS_EQUIPT', '0', '0');

-- 创建工序设备选择页
INSERT INTO t_core_admin_choose_config (ID,NAME,TITLE,CATEGORY,URL,WIDTH) VALUES
    (2023022011021,'工序设备','工序设备','processEquiptChoose','/secure/basemodule/trm/pretreatment/testprocess-equipts/page/choose-list','80%');

COMMIT;

-- ----------------------------- 2023-02-16 add by dingjian------------end
-- ----------------------------- 2023-02-21 add by lijiaxing------------start
ALTER TABLE T_LIMS_FOLDER  ADD (PROCESSSCHEDULE VARCHAR2(270) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_FOLDER.PROCESSSCHEDULE IS '委托单进度';
CALL INSERTI18N('T_LIMS_FOLDER.PROCESSSCHEDULE', '委托单进度', '委托单进度', 'zh-CN', '委托单进度');


INSERT INTO T_CORE_CODE_CATEGORY (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('processSchedule', '委托单进度', 'sys');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202302211421, '已取消', 'Cancel', 0, 'processSchedule', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202302211422, '已检验已审核', 'Done', 0, 'processSchedule', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202302211423, '已检验未审核', 'ResultReview', 0, 'processSchedule', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202302211424, '已收样', 'Obtain', 0, 'processSchedule', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202302211425, '检测部门确认', 'DetectionAudit', 0, 'processSchedule', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202302211426, '送检部门确认加急', 'Urgent', 0, 'processSchedule', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (202302211427, '草稿', 'Draft', 0, 'processSchedule', 0, 'admin', '系统管理员', '0');
-- ----------------------------- 2023-02-21 add by lijiaxing------------end


-- ----------------------------- 2023-02-21 add by dingjian--------------begin
ALTER TABLE T_LIMS_TM_EQUIPT  ADD (ANALYSTID NUMBER DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_TM_EQUIPT.ANALYSTID IS '分析项ID';
CALL INSERTI18N('T_LIMS_TM_EQUIPT.ANALYSTID', '分析项ID', '分析项ID', 'zh-CN', '分析项ID');

-- 创建分析项选择页
INSERT INTO t_core_admin_choose_config (ID,NAME,TITLE,CATEGORY,URL,WIDTH) VALUES
    (2023022111231,'分析项','分析项','tmAnalystChoose','/secure/basemodule/coredata/tm-analysts/page/choose-list','80%');

-- 创建分析项设备选择页
INSERT INTO t_core_admin_choose_config (ID,NAME,TITLE,CATEGORY,URL,WIDTH) VALUES
    (2023022116121,'关联设备','关联设备','tmAnalystEquiptChoose','/secure/basemodule/coredata/tm-equipts/page/choose-list','80%');

-- 创建分析项设备选择页
INSERT INTO t_core_admin_choose_config (ID,NAME,TITLE,CATEGORY,URL,WIDTH) VALUES
    (2023022314051,'工序关联设备','工序关联设备','tmAnalystEquiptLHChoose','/secure/basemodule/coredata/tm-equipts/page/lh-choose-list','80%');
-- ----------------------------- 2023-02-21 add by dingjian------------end

-- ----------------------------- 2023-02-23 add by liujie------------begin
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (2023020819154, '软包', 'lithium', 3, 'inspectionType', 0, 'admin', '系统管理员', '0');
-- ----------------------------- 2023-02-23 add by liujie------------end


-- ----------------------------- 2023-02-25 add by dingjian--------------begin
ALTER TABLE T_LIMS_TESTPROCESS_EQUIPT  ADD (TESTPROCESSNAME VARCHAR2(270) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_TESTPROCESS_EQUIPT.TESTPROCESSNAME IS '测试工序名称';
CALL INSERTI18N('T_LIMS_TESTPROCESS_EQUIPT.TESTPROCESSNAME', '测试工序名称', '测试工序名称', 'zh-CN', '测试工序名称');
-- ----------------------------- 2023-02-25 add by dingjian--------------end

-- ----------------------------- 2023-03-01 add by liujie------------begin
INSERT INTO T_CORE_SCHEDULE_TASK (ID,TASKNAME,SERVICENAME,METHODNAME,REMARK,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME,"TYPE",IFEXECUTABLESERVICENAME,IFEXECUTABLEMETHODNAME) VALUES ('ordtaskSchedule','检测项目定时采集任务','com.sunwayworld.basemodule.common.schedule.service.LimsScheduleService','scheduleTask',NULL,NULL,NULL,NULL,NULL,NULL,'service',NULL,NULL);

INSERT INTO T_CORE_SCHEDULE_TASK_CONFIG (ID,CONFIGNAME,TASKID,PARAM,CRON,TIMES,REMARK,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME,ACTIVATEDFLAG,ACTIVATEDBYID,ACTIVATEDBYNAME,ACTIVATEDTIME,UID,STARTTIME,ENDTIME) VALUES ('20230200001',NULL,'ordtaskSchedule',NULL,'5/5 * * * * ?',1172,NULL,NULL,'admin','系统管理员',TIMESTAMP '2023-02-07 17:38:06.000000','00013965','物理组','0',NULL,NULL,NULL,'20230200001',TIMESTAMP '2023-02-07 17:38:30.000000',TIMESTAMP '2023-02-16 17:38:33.000000');
-- ----------------------------- 2023-03-01 add by liujie------------end
-- ----------------------------- 2023-03-07 add by liujie------------begin

CALL INSERTI18N('T_LIMS_ORDER.STARTTIME', '开始测试时间', '开始测试时间', 'zh-CN', '开始测试时间');
CALL INSERTI18N('T_LIMS_ORDER.STARTTIME', '开始测试时间', '开始测试时间', 'en-US', 'start Time');

ALTER TABLE T_LIMS_ORDER ADD STARTTIME DATE;
COMMENT ON COLUMN T_LIMS_ORDER.STARTTIME IS '开始时间';

-- ----------------------------- 2023-03-07 add by liujie------------end
-- ----------------------------- 2023-03-08 add by liujie------------begin
INSERT INTO T_CORE_WK_PANEL (ID,TITLE,URL,VERSION,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,AUTHORITYCONTROL,TITLEDISPLAY,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME,DATACENTERURL,PANELTYPE,CODE,REFRESHFLAG) VALUES
('proportionOfOrgtask','部门下检测项占比','/module/index/workspaces/proportionOfOrgtask',NULL,'0',NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
-- ----------------------------- 2023-03-08 add by liujie------------end


-- ----------------------------- 2023-02-28 add by dingjian--------------begin
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (2023022818571, '中间品检验', 'intermediate', 7, 'folderCheckType', 0, 'admin', '系统管理员', '0');
-- ----------------------------- 2023-02-28 add by dingjian--------------end

-- ----------------------------- 2022-12-010 add by tangjun------------end
CALL INSERTI18N('T_LIMS_MATERIAL_STORAGE.RELATED_MATERIAL', '关联材料', '关联材料', 'zh-CN', '关联材料');
-- ----------------------------- 2022-12-010 add by tangjun------------end


-- ----------------------------- 2023-03-13 add by tangjun------------end

CREATE TABLE T_LIMS_ORDER_LOAD(
                                  ID NUMBER NOT NULL,
                                  CREATEDBYID VARCHAR2(36)  NULL,
                                  CREATEDBYNAME VARCHAR2(60)  NULL,
                                  CREATEDTIME DATE NULL,
                                  CREATEDBYORGID VARCHAR2(36)  NULL,
                                  CREATEDBYORGNAME VARCHAR2(270)  NULL,
                                  MODIFYBYID VARCHAR2(36)  NULL,
                                  MODIFYBYNAME VARCHAR2(60)  NULL,
                                  MODIFYTIME DATE NULL,
                                  MODIFYBYORGID VARCHAR2(36)  NULL,
                                  MODIFYBYORGNAME VARCHAR2(270)  NULL,
                                  TASKID NUMBER NULL,
                                  ORDERID NUMBER NULL,
                                  SAMPLECODE VARCHAR2(270)  NULL,
                                  SAMPLENAME VARCHAR2(270)  NULL,
                                  TESTID NUMBER NULL,
                                  TESTCODE VARCHAR2(36)  NULL,
                                  TESTNAME VARCHAR2(120)  NULL,
                                  METHODID NUMBER NULL,
                                  METHODCODE VARCHAR2(36)  NULL,
                                  METHODNAME VARCHAR2(120)  NULL,
                                  TESTCART VARCHAR2(120)  NULL,
                                  TESTCARTFLOOR VARCHAR2(36)  NULL,
                                  STATUS VARCHAR2(36)  NULL
);
COMMENT ON TABLE T_LIMS_ORDER_LOAD IS '样品装载';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.ID IS '主键';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.CREATEDBYORGNAME IS '制单人单位名称';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.MODIFYBYID IS '修改人编码';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.MODIFYBYNAME IS '修改人名称';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.MODIFYTIME IS '修改时间';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.MODIFYBYORGID IS '修改人单位编码';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.MODIFYBYORGNAME IS '修改人单位名称';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.TASKID IS '任务id';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.ORDERID IS '样品id';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.SAMPLECODE IS '样品编号';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.SAMPLENAME IS '样品名称';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.TESTID IS '检测项目id';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.TESTCODE IS '检测项目编码';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.TESTNAME IS '检测项目名称';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.METHODID IS '检测方法id';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.METHODCODE IS '检测方法编码';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.METHODNAME IS '检测方法名称';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.TESTCART IS '试验推车';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.TESTCARTFLOOR IS '试验推车层数';
COMMENT ON COLUMN T_LIMS_ORDER_LOAD.STATUS IS '状态';

ALTER TABLE T_LIMS_ORDER_LOAD ADD CONSTRAINT PK_LIMS_ORDER_LOAD PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_ORDER_LOAD.SERVICE_NAME', '样品装载', '样品装载', 'zh-CN', '样品装载');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.ID', '样品装载的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.CREATEDBYID', '样品装载的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.CREATEDBYNAME', '样品装载的初次操作人', '初次操作人', 'zh-CN', '初次操作人');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.CREATEDTIME', '样品装载的初次操作时间', '初次操作时间', 'zh-CN', '初次操作时间');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.CREATEDBYORGID', '样品装载的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.CREATEDBYORGNAME', '样品装载的初次操作时间', '制单人单位名称', 'zh-CN', '制单人单位名称');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.MODIFYBYID', '样品装载的修改人编码', '修改人编码', 'zh-CN', '修改人编码');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.MODIFYBYNAME', '样品装载的最后操作人', '最后操作人', 'zh-CN', '最后操作人');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.MODIFYTIME', '样品装载的最后操作时间', '最后操作时间', 'zh-CN', '最后操作时间');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.MODIFYBYORGID', '样品装载的修改人单位编码', '修改人单位编码', 'zh-CN', '修改人单位编码');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.MODIFYBYORGNAME', '样品装载的修改人单位名称', '修改人单位名称', 'zh-CN', '修改人单位名称');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.TASKID', '样品装载的任务id', '任务id', 'zh-CN', '任务id');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.ORDERID', '样品装载的样品id', '样品id', 'zh-CN', '样品id');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.SAMPLECODE', '样品装载的样品编号', '样品编号', 'zh-CN', '样品编号');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.SAMPLENAME', '样品装载的样品名称', '样品名称', 'zh-CN', '样品名称');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.TESTID', '样品装载的检测项目id', '检测项目id', 'zh-CN', '检测项目id');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.TESTCODE', '样品装载的检测项目编码', '检测项目编码', 'zh-CN', '检测项目编码');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.TESTNAME', '样品装载的检测项目名称', '检测项目名称', 'zh-CN', '检测项目名称');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.METHODID', '样品装载的检测方法id', '检测方法id', 'zh-CN', '检测方法id');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.METHODCODE', '样品装载的检测方法编码', '检测方法编码', 'zh-CN', '检测方法编码');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.METHODNAME', '样品装载的检测方法名称', '检测方法名称', 'zh-CN', '检测方法名称');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.TESTCART', '样品装载的试验推车', '试验推车', 'zh-CN', '试验推车');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.TESTCARTFLOOR', '样品装载的试验推车层数', '试验推车层数', 'zh-CN', '试验推车层数');
CALL INSERTI18N('T_LIMS_ORDER_LOAD.STATUS', '样品装载的状态', '状态', 'zh-CN', '状态');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.ORDERLOADS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.ORDERLOADS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.ORDERLOADS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.ORDERLOADS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.ORDERLOADS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');


INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES
('testCart','试验推车','biz',NULL,1,NULL,NULL,NULL,NULL);
INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,I18NCODE) VALUES (1085341774252192,'FS1-002','testCart',NULL,NULL,NULL,'admin','系统管理员',TIMESTAMP '2023-03-13 18:13:29.000000','0',NULL,NULL,NULL,'FS1-002',NULL);
INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,I18NCODE) VALUES (1085341640894624,'FS1-001','testCart',NULL,NULL,NULL,'admin','系统管理员',TIMESTAMP '2023-03-13 18:13:13.000000','0',NULL,NULL,NULL,'FS1-001',NULL);


INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES
('testCartFloor','试验推车层数','biz',NULL,1,NULL,NULL,NULL,NULL);
INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,I18NCODE) VALUES (1085354808658080,'1','testCartFloor',NULL,NULL,NULL,'admin','系统管理员',TIMESTAMP '2023-03-13 18:40:00.000000','0',NULL,NULL,NULL,'1',NULL);
INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,I18NCODE) VALUES (1085355695925408,'4','testCartFloor',NULL,NULL,NULL,'admin','系统管理员',TIMESTAMP '2023-03-13 18:41:48.000000','0',NULL,NULL,NULL,'4',NULL);
INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,I18NCODE) VALUES (1085355462076576,'2','testCartFloor',NULL,NULL,NULL,'admin','系统管理员',TIMESTAMP '2023-03-13 18:41:20.000000','0',NULL,NULL,NULL,'2',NULL);
INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,I18NCODE) VALUES (1085355587668128,'3','testCartFloor',NULL,NULL,NULL,'admin','系统管理员',TIMESTAMP '2023-03-13 18:41:35.000000','0',NULL,NULL,NULL,'3',NULL);


INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES
('orderLoadStatus','样品装载状态','biz',NULL,1,NULL,NULL,NULL,NULL);
INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,I18NCODE) VALUES (1086087240988448,'已卸载','orderLoadStatus',NULL,NULL,NULL,'admin','系统管理员',TIMESTAMP '2023-03-14 19:30:08.000000','0',NULL,NULL,NULL,'0',NULL);
INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,I18NCODE) VALUES (1086087724480288,'装载中','orderLoadStatus',NULL,NULL,NULL,'admin','系统管理员',TIMESTAMP '2023-03-14 19:31:07.000000','0',NULL,NULL,NULL,'1',NULL);
INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,I18NCODE) VALUES (1086093615675168,'未装载','orderLoadStatus',NULL,NULL,NULL,'admin','系统管理员',TIMESTAMP '2023-03-14 19:43:07.000000','0',NULL,NULL,NULL,'2',NULL);


-- ----------------------------- 2023-03-13 add by tangjun------------end
-- ----------------------------- 2023-03-13 add by liujie------------begin
INSERT INTO T_CORE_MENU (ID,MENUNAME,HREF,PARENTID,ORDERNO,MENUINITNAME,LASTUPDATEDBYID,LASTUPDATEDBYNAME,LASTUPDATEDTIME,ICON,TODOICON,I18NCODE)
VALUES
('20230310001','检测项目统计','/secure/basemodule/coredata/test-methods/page/statisticsDataPage','8202',998096256147666,'检测项目统计',NULL,NULL,NULL,'001.svg',NULL,NULL);
-- ----------------------------- 2023-03-13 add by liujie------------end


-- ----------------------------- 2023-03-15 add by tangjun------------begin

ALTER TABLE LIMS_BP_TEST.T_LIMS_ORDER ADD CANCELREASON VARCHAR2(270);
CALL INSERTI18N('T_LIMS_ORDER.CANCELREASON', '取消原因', '取消原因', 'zh-CN', '取消原因');

-- ----------------------------- 2023-03-15 add by tangjun------------end

-- ----------------------------- 2023-03-16 add by liujie------------begin
CALL INSERTI18N('T_LIMS_ORDTASK.SCHEDULESTATUS','采集时间','采集时间','zh-CN','采集时间');
CALL INSERTI18N('T_LIMS_ORDTASK.SCHEDULESTATUS','采集时间','采集时间','en-US','schedule time');
-- ----------------------------- 2023-03-16 add by liujie------------end


-- ----------------------------- 2023-03-20 add by liujie--------------begin

-- 建表语句
CREATE TABLE T_LIMS_ORDER_RECORD(
    ID NUMBER NOT NULL,
    TASKID NUMBER NULL,
    ORDERID NUMBER NULL,
    CREATOR VARCHAR2(36)  NULL,
    CREATORID VARCHAR2(36)  NULL,
    CREATETIME DATE NULL
 );
COMMENT ON TABLE T_LIMS_ORDER_RECORD IS '样品生成记录';
COMMENT ON COLUMN T_LIMS_ORDER_RECORD.ID IS '主键';
COMMENT ON COLUMN T_LIMS_ORDER_RECORD.TASKID IS '检测项ID';
COMMENT ON COLUMN T_LIMS_ORDER_RECORD.ORDERID IS '主样品ID';
COMMENT ON COLUMN T_LIMS_ORDER_RECORD.CREATOR IS '创建人';
COMMENT ON COLUMN T_LIMS_ORDER_RECORD.CREATORID IS '创建人ID';
COMMENT ON COLUMN T_LIMS_ORDER_RECORD.CREATETIME IS '创建时间';

ALTER TABLE T_LIMS_ORDER_RECORD ADD CONSTRAINT PK_LIMS_ORDER_RECORD PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_ORDER_RECORD.SERVICE_NAME', '样品生成记录', '样品生成记录', 'zh-CN', '样品生成记录');
CALL INSERTI18N('T_LIMS_ORDER_RECORD.ID', '样品生成记录的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_ORDER_RECORD.TASKID', '样品生成记录的检测项ID', '检测项ID', 'zh-CN', '检测项ID');
CALL INSERTI18N('T_LIMS_ORDER_RECORD.ORDERID', '样品生成记录的主样品ID', '主样品ID', 'zh-CN', '主样品ID');
CALL INSERTI18N('T_LIMS_ORDER_RECORD.CREATOR', '样品生成记录的创建人', '创建人', 'zh-CN', '创建人');
CALL INSERTI18N('T_LIMS_ORDER_RECORD.CREATORID', '样品生成记录的创建人ID', '创建人ID', 'zh-CN', '创建人ID');
CALL INSERTI18N('T_LIMS_ORDER_RECORD.CREATETIME', '样品生成记录的创建时间', '创建时间', 'zh-CN', '创建时间');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.ORDERRECORDS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.ORDERRECORDS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.ORDERRECORDS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.ORDERRECORDS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.ORDERRECORDS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');


-- ----------------------------- 2023-03-20 add by liujie--------------end

-- ----------------------------- 2023-03-21 add by liujie--------------begin
CALL INSERTI18N('T_LIMS_ORDER_RECORD.CREATOR', '样品生成记录的操作人', '操作人', 'zh-CN', '操作人');
CALL INSERTI18N('T_LIMS_ORDER_RECORD.CREATORID', '样品生成记录的操作人工号', '操作人工号', 'zh-CN', '操作人工号');
CALL INSERTI18N('T_LIMS_ORDER_RECORD.CREATETIME', '样品生成记录的操作时间', '操作时间', 'zh-CN', '操作时间');

CALL INSERTI18N('T_LIMS_FOLDER.TASK', '项目列表', '项目列表', 'zh-CN', '项目列表');
-- ----------------------------- 2023-03-21 add by liujie--------------end
-- ----------------------------- 2023-03-23 add by liujie--------------begin
CREATE INDEX T_LIMS_FOLDER_CREATEDTIME_IDX ON T_LIMS_FOLDER (CREATEDTIME DESC);
-- ----------------------------- 2023-03-23 add by liujie--------------end
-- ----------------------------- 2023-03-24 add by liujie--------------begin
INSERT INTO T_CORE_MENU (ID,MENUNAME,HREF,PARENTID,ORDERNO,MENUINITNAME,LASTUPDATEDBYID,LASTUPDATEDBYNAME,LASTUPDATEDTIME,ICON,TODOICON,I18NCODE) VALUES
('20230324001','样品查询','/secure/basemodule/business/test/folders/page/search-list?page=search','1001',14,'样品查询',NULL,NULL,NULL,'002.svg',NULL,NULL);
CREATE INDEX idx_t_lims_ordtask_1 ON t_lims_ordtask (taskid, orderid);
CREATE INDEX idx_t_core_file_1 ON t_core_file(targetid);
CREATE INDEX idx_t_lims_task_1 ON t_lims_task(folderid)
CREATE INDEX T_LIMS_FOLDER_ID_IDX ON T_LIMS_FOLDER (ID DESC);
-- ----------------------------- 2023-03-24 add by liujie--------------end
-- ----------------------------- 2023-03-29 add by liujie--------------begin
INSERT INTO t_core_code (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES
(20230329001,'完成','pretreatProcessType',NULL,35,0,'0',NULL,NULL,NULL,'finish','admin','系统管理员',NULL);
-- ----------------------------- 2023-03-29 add by liujie--------------end
-- ----------------------------- 2023-03-30 add by liujie--------------begin
UPDATE T_CORE_MENU SET MENUNAME ='三级部门负责人审核' WHERE ID =100102

DELETE FROM T_CORE_MENU WHERE ID IN (100103,100104)
-- ----------------------------- 2023-03-30 add by liujie--------------end


-- ----------------------------- 2023-04-03 add by liujie--------------begin
CREATE TABLE T_LIMS_TESTENGINEER(
    ID NUMBER NOT NULL,
    TESTMETHODID NUMBER NULL,
    ENGINEERID VARCHAR2(120)  NULL,
    ENGINEER VARCHAR2(120)  NULL,
    BASE VARCHAR2(120) NULL
 );
COMMENT ON TABLE T_LIMS_TESTENGINEER IS '测试工程师';
COMMENT ON COLUMN T_LIMS_TESTENGINEER.ID IS '主键';
COMMENT ON COLUMN T_LIMS_TESTENGINEER.TESTMETHODID IS '检测方法ID';
COMMENT ON COLUMN T_LIMS_TESTENGINEER.ENGINEERID IS '测试工程师ID';
COMMENT ON COLUMN T_LIMS_TESTENGINEER.ENGINEER IS '测试工程师';
COMMENT ON COLUMN T_LIMS_TESTENGINEER.BASE IS '检测基地';

ALTER TABLE T_LIMS_TESTENGINEER ADD CONSTRAINT PK_LIMS_TESTENGINEER PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_TESTENGINEER.SERVICE_NAME', '测试工程师', '测试工程师', 'zh-CN', '测试工程师');
CALL INSERTI18N('T_LIMS_TESTENGINEER.ID', '测试工程师的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_TESTENGINEER.TESTMETHODID', '测试工程师的检测方法ID', '检测方法ID', 'zh-CN', '检测方法ID');
CALL INSERTI18N('T_LIMS_TESTENGINEER.ENGINEERID', '测试工程师的测试工程师ID', '测试工程师ID', 'zh-CN', '测试工程师ID');
CALL INSERTI18N('T_LIMS_TESTENGINEER.ENGINEER', '测试工程师的测试工程师', '测试工程师', 'zh-CN', '测试工程师');
CALL INSERTI18N('T_LIMS_TESTENGINEER.BASE', '检测基地', '检测基地', 'zh-CN', '检测基地');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.TESTENGINEERS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.TESTENGINEERS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.TESTENGINEERS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.TESTENGINEERS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.TESTENGINEERS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');
-- ----------------------------- 2023-04-03 add by liujie--------------end


-- ----------------------------- 2023-04-11 add by liujie--------------begin
 UPDATE T_CORE_MENU SET MENUNAME ='委托部门领导审核' WHERE ID = 100102 ;

INSERT INTO T_CORE_CONSTANT(ID, CONSTANTVALUE, CONSTANTDESC, CLASSFICATION, SHOW, LASTUPDATEDTIME, CREATEDTIME, CREATEDBYID, CREATEDBYNAME, LASTUPDATEDBYID, LASTUPDATEDBYNAME, VERSION)
VALUES('OPERATION_LIMIT', '200', '单次最多操作数量', '系统', '1', NULL, NULL, NULL, NULL, NULL, NULL, 0);

UPDATE T_CORE_CODE SET CODENAME = '委托部门确认' WHERE ID =202302211425;

-- ----------------------------- 2023-04-11 add by liujie--------------end

-- ----------------------------- 2023-04-11 add by dingjian--------------end
ALTER TABLE T_LIMS_TASK ADD (QMSCHANGEREASON VARCHAR2(270) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_TASK.QMSCHANGEREASON IS 'QMS改判原因';
ALTER TABLE T_LIMS_TASK ADD (QMSCHANGEUSER VARCHAR2(60) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_TASK.QMSCHANGEUSER IS 'QMS改判人ID';
ALTER TABLE T_LIMS_TASK ADD (QMSCHANGETIME DATE DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_TASK.QMSCHANGETIME IS 'QMS改判时间';
ALTER TABLE T_LIMS_TASK ADD (QMSFREQUENCY NUMBER DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_TASK.QMSFREQUENCY IS 'QMS改判次数';
-- ----------------------------- 2023-04-11 add by dingjian--------------end

-- ----------------------------- 2023-04-12 add by liujie--------------begin
UPDATE T_CORE_MENU SET ORDERNO ='1020' WHERE ID = 100202

UPDATE T_CORE_MENU SET ORDERNO ='1030' WHERE ID = 100203

INSERT INTO T_CORE_MENU (ID,MENUNAME,HREF,PARENTID,ORDERNO,MENUINITNAME,LASTUPDATEDBYID,LASTUPDATEDBYNAME,LASTUPDATEDTIME,ICON,TODOICON,I18NCODE) VALUES ('100204','报告生成','/secure/basemodule/business/report/report-applys/page/audit-list?bpmn_statusCode=Create','1002',1015,'报告生成',NULL,NULL,NULL,'002.svg',NULL,NULL);

INSERT INTO T_CORE_MENU (ID,MENUNAME,HREF,PARENTID,ORDERNO,MENUINITNAME,LASTUPDATEDBYID,LASTUPDATEDBYNAME,LASTUPDATEDTIME,ICON,TODOICON,I18NCODE) VALUES ('100205','报告批准','/secure/basemodule/business/report/report-applys/page/audit-list?bpmn_statusCode=Create','1002',1025,'报告批准',NULL,NULL,NULL,'003.svg',NULL,NULL);

UPDATE T_CORE_CODE SET CODENAME = '检测部门确认' WHERE ID =202302211425


-- ----------------------------- 2023-04-12 add by liujie--------------end

-- ----------------------------- 2023-04-12 add by caoq--------------begin

UPDATE T_CORE_MENU SET HREF = '/secure/basemodule/business/report/report-applys/page/audit-list?bpmn_statusCode=Approve' WHERE ID = '100205';

INSERT INTO T_CORE_MENU
(ID, MENUNAME, HREF, PARENTID, ORDERNO, MENUINITNAME, LASTUPDATEDBYID, LASTUPDATEDBYNAME, LASTUPDATEDTIME, ICON, TODOICON, I18NCODE)
VALUES('20230412001', '报告变更生成', '/secure/basemodule/business/report/report-changes/page/audit-list?bpmn_statusCode=Create', '1003', 100302, '报告变更生成', NULL, NULL, NULL, '002.svg', NULL, NULL);

INSERT INTO T_CORE_MENU
(ID, MENUNAME, HREF, PARENTID, ORDERNO, MENUINITNAME, LASTUPDATEDBYID, LASTUPDATEDBYNAME, LASTUPDATEDTIME, ICON, TODOICON, I18NCODE)
VALUES('20230412002', '报告变更批准', '/secure/basemodule/business/report/report-changes/page/audit-list?bpmn_statusCode=Approve', '1003', 100304, '报告变更批准', NULL, NULL, NULL, '003.svg', NULL, NULL);

INSERT INTO T_CORE_ROLE
(ID, ROLENAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDTIME, USEDBYORGID, USEDBYORGNAME, CREATEDBYID, LASTSUSPENDEDBYID, CREATEDBYNAME, VERSION, LASTSUSPENDEDBYNAME, ROLEDESC, ORDERNO, PASSWORDPOLICYID)
VALUES(1106494910742656, '报告管理员', TIMESTAMP '2023-04-12 15:29:39.000000', '0', NULL, NULL, NULL, 'admin', NULL, '系统管理员', NULL, NULL, NULL, 1106494910767232, NULL);

-- ----------------------------- 2023-04-12 add by caoq--------------end


-- ----------------------------- 2023-04-13 add by liujie--------------begin
CREATE TABLE T_LIMS_CONSUMABLEDESCRIBE(
    ID NUMBER NOT NULL,
    CONSUMABLECODE VARCHAR2(120)  NULL,
    CONSUMABLETYPE VARCHAR2(120)  NULL,
    CONSUMABLENAME VARCHAR2(120)  NULL,
    LOWLIMIT VARCHAR2(120)  NULL,
    SCALE VARCHAR2(120)  NULL,
    UNIT VARCHAR2(120)  NULL,
    PRICE VARCHAR2(120)  NULL
 );
COMMENT ON TABLE T_LIMS_CONSUMABLEDESCRIBE IS '耗材描述';
COMMENT ON COLUMN T_LIMS_CONSUMABLEDESCRIBE.ID IS '主键';
COMMENT ON COLUMN T_LIMS_CONSUMABLEDESCRIBE.CONSUMABLECODE IS '耗材编码';
COMMENT ON COLUMN T_LIMS_CONSUMABLEDESCRIBE.CONSUMABLETYPE IS '耗材类型';
COMMENT ON COLUMN T_LIMS_CONSUMABLEDESCRIBE.CONSUMABLENAME IS '耗材名称';
COMMENT ON COLUMN T_LIMS_CONSUMABLEDESCRIBE.LOWLIMIT IS '数量低限';
COMMENT ON COLUMN T_LIMS_CONSUMABLEDESCRIBE.SCALE IS '规格';
COMMENT ON COLUMN T_LIMS_CONSUMABLEDESCRIBE.UNIT IS '单位';
COMMENT ON COLUMN T_LIMS_CONSUMABLEDESCRIBE.PRICE IS '单价';

ALTER TABLE T_LIMS_CONSUMABLEDESCRIBE ADD CONSTRAINT PK_LIMS_CONSUMABLEDESCRIBE PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_CONSUMABLEDESCRIBE.SERVICE_NAME', '耗材描述', '耗材描述', 'zh-CN', '耗材描述');
CALL INSERTI18N('T_LIMS_CONSUMABLEDESCRIBE.ID', '耗材描述的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_CONSUMABLEDESCRIBE.CONSUMABLECODE', '耗材描述的耗材编码', '耗材编码', 'zh-CN', '耗材编码');
CALL INSERTI18N('T_LIMS_CONSUMABLEDESCRIBE.CONSUMABLETYPE', '耗材描述的耗材类型', '耗材类型', 'zh-CN', '耗材类型');
CALL INSERTI18N('T_LIMS_CONSUMABLEDESCRIBE.CONSUMABLENAME', '耗材描述的耗材名称', '耗材名称', 'zh-CN', '耗材名称');
materialCALL INSERTI18N('T_LIMS_CONSUMABLEDESCRIBE.SCALE', '耗材描述的规格', '规格', 'zh-CN', '规格');
CALL INSERTI18N('T_LIMS_CONSUMABLEDESCRIBE.UNIT', '耗材描述的单位', '单位', 'zh-CN', '单位');
CALL INSERTI18N('T_LIMS_CONSUMABLEDESCRIBE.PRICE', '耗材描述的单价', '单价', 'zh-CN', '单价');
CALL INSERTI18N('BASEMODULE.TRM.CONSUMABLEDESCRIBES.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.TRM.CONSUMABLEDESCRIBES.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.TRM.CONSUMABLEDESCRIBES.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.TRM.CONSUMABLEDESCRIBES.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.TRM.CONSUMABLEDESCRIBES.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

-- 创建菜单语句
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('20230113001', '耗材描述', '/secure/basemodule/trm/consumabledescribes/page/edit-list', 910106, 5, '001.svg', '耗材描述');


ALTER TABLE T_LIMS_CONSUMABLE ADD LOCATION VARCHAR2(120);
COMMENT ON COLUMN T_LIMS_CONSUMABLE.LOCATION IS '耗材位置';

CALL INSERTI18N('T_LIMS_CONSUMABLE.LOCATION', '耗材位置', '耗材位置', 'zh-CN', '耗材位置');

CALL INSERTI18N('BASEMODULE.TRM.CONSUMABLES.UPLOAD', '附件', '附件', 'zh-CN', '附件');

CALL INSERTI18N('T_LIMS_CONSUMABLE_RECORD.REMARK', '备注', '备注', 'zh-CN', '备注');
ALTER TABLE T_LIMS_CONSUMABLE_RECORD ADD REMARK VARCHAR2(360);
COMMENT ON COLUMN T_LIMS_CONSUMABLE_RECORD.REMARK IS '备注';




-- ----------------------------- 2023-04-13 add by liujie--------------end

-- ----------------------------- 2023-04-13 add by caoq--------------begin

ALTER TABLE T_LIMS_TASK ADD RESULTREVIEWUSERID VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_TASK.RESULTREVIEWUSERID IS '结果复核人账号';
ALTER TABLE T_LIMS_TASK ADD RESULTREVIEWUSERNAME VARCHAR2(270);
COMMENT ON COLUMN T_LIMS_TASK.RESULTREVIEWUSERNAME IS '结果复核人姓名';
ALTER TABLE T_LIMS_TASK ADD RESULTREVIEWTIME DATE;
COMMENT ON COLUMN T_LIMS_TASK.RESULTREVIEWTIME IS '结果复核时间';

INSERT INTO T_CORE_MENU
(ID, MENUNAME, HREF, PARENTID, ORDERNO, MENUINITNAME, LASTUPDATEDBYID, LASTUPDATEDBYNAME, LASTUPDATEDTIME, ICON, TODOICON, I18NCODE)
VALUES('20230413001', '结果复核及时率', '/secure/basemodule/business/test/folder-task-test-middles/page/review-rate', '8202', 998096256147556, '结果复核及时率', NULL, NULL, NULL, '027.svg', NULL, NULL);


-- ----------------------------- 2023-04-13 add by caoq--------------end

-- ----------------------------- 2023-04-17 add by caoq--------------begin

UPDATE T_CORE_MENU
SET HREF='/secure/basemodule/business/report/report-applys/page/audit-list?bpmn_statusCode=Audit&&pageType=Audit' WHERE ID='100202';
UPDATE T_CORE_MENU
SET HREF='/secure/basemodule/business/report/report-applys/page/audit-list?bpmn_statusCode=Create&&pageType=Create' WHERE ID='100204';
UPDATE T_CORE_MENU
SET HREF='/secure/basemodule/business/report/report-applys/page/audit-list?bpmn_statusCode=Approve&&pageType=Approve' WHERE ID='100205';

UPDATE T_CORE_MENU
SET HREF='/secure/basemodule/business/report/report-changes/page/audit-list?bpmn_statusCode=Audit&&pageType=Audit' WHERE ID='100302';
UPDATE T_CORE_MENU
SET HREF='/secure/basemodule/business/report/report-changes/page/audit-list?bpmn_statusCode=Approve&&pageType=Approve' WHERE ID='20230412002';
UPDATE T_CORE_MENU
SET HREF='/secure/basemodule/business/report/report-changes/page/audit-list?bpmn_statusCode=Create&&pageType=Create' WHERE ID='20230412001';


-- ----------------------------- 2023-04-17 add by caoq--------------end

-- ----------------------------- 2023-04-18 add by liujie--------------begin

ALTER TABLE T_LIMS_ORDER ADD DISCHARGINGCAPACITY VARCHAR2(120);
COMMENT ON COLUMN T_LIMS_ORDER.DISCHARGINGCAPACITY IS '0.33C放电克容量';

ALTER TABLE T_LIMS_ORDER ADD COMPACTEDDENSITY VARCHAR2(120);
COMMENT ON COLUMN T_LIMS_ORDER.COMPACTEDDENSITY IS '压实密度';

CALL INSERTI18N('T_LIMS_ORDER.SAMPLECAPACITY', '0.1C充电克容量(mAh/g)', '0.1C充电克容量(mAh/g)', 'zh-CN', '0.1C充电克容量(mAh/g)');

CALL INSERTI18N('T_LIMS_ORDER.DISCHARGINGCAPACITY', '0.33C放电克容量', '0.33C放电克容量', 'zh-CN', '0.33C放电克容量');

CALL INSERTI18N('T_LIMS_ORDER.COMPACTEDDENSITY', '压实密度(g/cm³)', '压实密度(g/cm³)', 'zh-CN', '压实密度(g/cm³)');
-- ----------------------------- 2023-04-18 add by liujie--------------end


-- ----------------------------- 2023-04-19 add by liujie--------------begin
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (20230419001, '0.33C倍率放电', 'RB_BEILVFANGDIAN', 12, 'taskReportTemplate', 0, 'admin', '系统管理员', '0');

ALTER TABLE T_LIMS_LIQUOR_TITRATION ADD FINALCONCENTRATION VARCHAR2(120);
COMMENT ON COLUMN T_LIMS_LIQUOR_TITRATION.FINALCONCENTRATION IS '最终浓度';
ALTER TABLE T_LIMS_LIQUOR_TITRATION ADD CONSTANTVOLUMESOLUTION VARCHAR2(120);
COMMENT ON COLUMN T_LIMS_LIQUOR_TITRATION.CONSTANTVOLUMESOLUTION IS '定容溶液';

CALL INSERTI18N('T_LIMS_LIQUOR_TITRATION.FINALCONCENTRATION', '标液最终浓度', '标液最终浓度', 'zh-CN', '标液最终浓度');

CALL INSERTI18N('T_LIMS_LIQUOR_TITRATION.CONSTANTVOLUMESOLUTION', '定容溶液', '定容溶液', 'zh-CN', '定容溶液');

-- ----------------------------- 2023-04-19 add by liujie--------------end


-- ----------------------------- 2023-04-19 add by miqiao--------------begin
ALTER TABLE T_CORE_FILE MODIFY FILEEXT VARCHAR2(18);
-- ----------------------------- 2023-04-19 add by miqiao--------------end

-- ----------------------------- 2023-04-21 add by liujie--------------begin
ALTER TABLE T_LIMS_LIQUOR_TITRATION ADD TYPE VARCHAR2(120);
COMMENT ON COLUMN T_LIMS_LIQUOR_TITRATION.TYPE IS '滴定类型（0：盐酸，1：通用）';
CALL INSERTI18N('T_LIMS_LIQUOR_TITRATION.TYPE', '滴定类型', '滴定类型', 'zh-CN', '滴定类型');

CREATE TABLE
T_LIMS_LIQUOR_UNIVERSAL_TITRATION(
    ID NUMBER NOT NULL,
    NAME VARCHAR2(120)  NULL,
    CONCENTRATION VARCHAR2(36)  NULL,
    CONCENTRATIONUNIT VARCHAR2(36)  NULL,
    ADDEDAMOUNT VARCHAR2(36)  NULL,
    ADDEDAMOUNTUNIT VARCHAR2(36)  NULL,
    TESTRESULT VARCHAR2(36)  NULL,
    LIQUORTITRATIONID NUMBER NOT NULL,
    RELATIVERANGE VARCHAR2(36)  NULL,
    FINALCONCENTRATION VARCHAR2(36)  NULL
 );

COMMENT ON TABLE T_LIMS_LIQUOR_UNIVERSAL_TITRATION IS '通用滴定';
COMMENT ON COLUMN T_LIMS_LIQUOR_UNIVERSAL_TITRATION.ID IS '主键';
COMMENT ON COLUMN T_LIMS_LIQUOR_UNIVERSAL_TITRATION.NAME IS '标定用基准物质名称';
COMMENT ON COLUMN T_LIMS_LIQUOR_UNIVERSAL_TITRATION.CONCENTRATION IS '标定用基准物质浓度';
COMMENT ON COLUMN T_LIMS_LIQUOR_UNIVERSAL_TITRATION.CONCENTRATIONUNIT IS '标定用基准物质浓度单位';
COMMENT ON COLUMN T_LIMS_LIQUOR_UNIVERSAL_TITRATION.ADDEDAMOUNT IS '标定用基准物质加入量';
COMMENT ON COLUMN T_LIMS_LIQUOR_UNIVERSAL_TITRATION.ADDEDAMOUNTUNIT IS '标定用基准物质加入量单位';
COMMENT ON COLUMN T_LIMS_LIQUOR_UNIVERSAL_TITRATION.TESTRESULT IS '标定测试结果';
COMMENT ON COLUMN T_LIMS_LIQUOR_UNIVERSAL_TITRATION.RELATIVERANGE IS '相对极差标定';
COMMENT ON COLUMN T_LIMS_LIQUOR_UNIVERSAL_TITRATION.FINALCONCENTRATION IS '标液最终浓度';

ALTER TABLE T_LIMS_LIQUOR_UNIVERSAL_TITRATION ADD CONSTRAINT PK_LIMS_LIQUOR_UNIVERSAL_TITRATION PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_LIQUOR_UNIVERSAL_TITRATION.SERVICE_NAME', '通用滴定', '通用滴定', 'zh-CN', '通用滴定');
CALL INSERTI18N('T_LIMS_LIQUOR_UNIVERSAL_TITRATION.ID', '通用滴定的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_LIQUOR_UNIVERSAL_TITRATION.NAME', '通用滴定的标定用基准物质名称', '标定用基准物质名称', 'zh-CN', '标定用基准物质名称');
CALL INSERTI18N('T_LIMS_LIQUOR_UNIVERSAL_TITRATION.CONCENTRATION', '通用滴定的标定用基准物质浓度', '标定用基准物质浓度', 'zh-CN', '标定用基准物质浓度');
CALL INSERTI18N('T_LIMS_LIQUOR_UNIVERSAL_TITRATION.CONCENTRATIONUNIT', '通用滴定的标定用基准物质浓度单位', '标定用基准物质浓度单位', 'zh-CN', '标定用基准物质浓度单位');
CALL INSERTI18N('T_LIMS_LIQUOR_UNIVERSAL_TITRATION.ADDEDAMOUNT', '通用滴定的标定用基准物质加入量', '标定用基准物质加入量', 'zh-CN', '标定用基准物质加入量');
CALL INSERTI18N('T_LIMS_LIQUOR_UNIVERSAL_TITRATION.ADDEDAMOUNTUNIT', '通用滴定的标定用基准物质加入量单位', '标定用基准物质加入量单位', 'zh-CN', '标定用基准物质加入量单位');
CALL INSERTI18N('T_LIMS_LIQUOR_UNIVERSAL_TITRATION.TESTRESULT', '通用滴定的标定测试结果', '标定测试结果', 'zh-CN', '标定测试结果');
CALL INSERTI18N('T_LIMS_LIQUOR_UNIVERSAL_TITRATION.RELATIVERANGE', '通用滴定的相对极差标定', '相对极差标定', 'zh-CN', '相对极差标定');
CALL INSERTI18N('T_LIMS_LIQUOR_UNIVERSAL_TITRATION.FINALCONCENTRATION', '通用滴定的标液最终浓度', '标液最终浓度', 'zh-CN', '标液最终浓度');
CALL INSERTI18N('BASEMODULE.TRM.STANDARDLIQUOR.UNIVERSALTITRATIONS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.TRM.STANDARDLIQUOR.UNIVERSALTITRATIONS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.TRM.STANDARDLIQUOR.UNIVERSALTITRATIONS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.TRM.STANDARDLIQUOR.UNIVERSALTITRATIONS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.TRM.STANDARDLIQUOR.UNIVERSALTITRATIONS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');
-- ----------------------------- 2023-04-21 add by liujie--------------end
-- ----------------------------- 2023-04-24 add by liujie--------------begin
CREATE TABLE
T_LIMS_QUALITY_SYSTEM_TEMPLATE(
    ID NUMBER NOT NULL,
    TEMPLATECODE VARCHAR2(120)  NULL,
    TEMPLATENAME VARCHAR2(360)  NULL,
    TEMPLATEFILEID NUMBER NULL,
    REMARK VARCHAR2(120)  NULL
 );
COMMENT ON TABLE T_LIMS_QUALITY_SYSTEM_TEMPLATE IS '质量体系模板管理';
COMMENT ON COLUMN T_LIMS_QUALITY_SYSTEM_TEMPLATE.ID IS '主键';
COMMENT ON COLUMN T_LIMS_QUALITY_SYSTEM_TEMPLATE.TEMPLATECODE IS '模板编码';
COMMENT ON COLUMN T_LIMS_QUALITY_SYSTEM_TEMPLATE.TEMPLATENAME IS '模板名称';
COMMENT ON COLUMN T_LIMS_QUALITY_SYSTEM_TEMPLATE.TEMPLATEFILEID IS '模板文件ID';
COMMENT ON COLUMN T_LIMS_QUALITY_SYSTEM_TEMPLATE.REMARK IS '备注';



ALTER TABLE T_LIMS_QUALITY_SYSTEM_TEMPLATE ADD CONSTRAINT PK_LIMS_QUALITY_SYSTEM_TEMPLATE PRIMARY KEY (ID);


CALL INSERTI18N('T_LIMS_QUALITY_SYSTEM_TEMPLATE.SERVICE_NAME', '质量体系模板管理', '质量体系模板管理', 'zh-CN', '质量体系模板管理');
CALL INSERTI18N('T_LIMS_QUALITY_SYSTEM_TEMPLATE.ID', '质量体系模板管理的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_QUALITY_SYSTEM_TEMPLATE.TEMPLATECODE', '质量体系模板管理的模板编码', '模板编码', 'zh-CN', '模板编码');
CALL INSERTI18N('T_LIMS_QUALITY_SYSTEM_TEMPLATE.TEMPLATENAME', '质量体系模板管理的模板名称', '模板名称', 'zh-CN', '模板名称');
CALL INSERTI18N('T_LIMS_QUALITY_SYSTEM_TEMPLATE.TEMPLATEFILEID', '质量体系模板管理的模板文件ID', '模板文件ID', 'zh-CN', '模板文件ID');
CALL INSERTI18N('T_LIMS_QUALITY_SYSTEM_TEMPLATE.REMARK', '质量体系模板管理的备注', '备注', 'zh-CN', '备注');
CALL INSERTI18N('BASEMODULE.TRM.QUALITYSYSTEMTEMPLATES.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.TRM.QUALITYSYSTEMTEMPLATES.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.TRM.QUALITYSYSTEMTEMPLATES.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.TRM.QUALITYSYSTEMTEMPLATES.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.TRM.QUALITYSYSTEMTEMPLATES.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('20230424001', '质量体系模板管理', '/secure/basemodule/trm/quality-system-templates/page/edit-list', '91', '100', '077.svg', '质量体系模板管理');
-- ----------------------------- 2023-04-24 add by liujie--------------end

-- ----------------------------- 2023-04-24 add by dingjian--------------begin
ALTER TABLE T_LIMS_TASK ADD (RESERVEFIRSTWEEKFLAG VARCHAR2(12) DEFAULT NULL NULL);
COMMENT ON COLUMN T_LIMS_TASK.RESERVEFIRSTWEEKFLAG IS '保留扣电循环第一周数据标识：0，不保存；1，保存';
CALL INSERTI18N('T_LIMS_TASK.RESERVEFIRSTWEEKFLAG','是否保留首周','是否保留首周','zh-CN','是否保留首周');

INSERT INTO T_CORE_CODE_CATEGORY (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('reserveKdWeekDataFlag', '扣电报告保留首周数据标识', 'sys');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (20230424172201, '保留', '1', 0, 'reserveKdWeekDataFlag', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (20230424172202, '不保留', '0', 1, 'reserveKdWeekDataFlag', 0, 'admin', '系统管理员', '0');
-- ----------------------------- 2023-04-24 add by dingjian--------------end

-- ----------------------------- 2023-04-25 add by liujie--------------begin
ALTER TABLE T_LIMS_TASK ADD REJECTSTATUS VARCHAR2(10);

ALTER TABLE T_LIMS_SPECIMEN ADD SPECIMENTYPE VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_SPECIMEN.SPECIMENTYPE IS '质控样类别';

CALL INSERTI18N('T_LIMS_SPECIMEN.SPECIMENTYPE', '质控样类别', '质控样类别', 'zh-CN', '质控样类别');

INSERT INTO T_CORE_CODE_CATEGORY  (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('specimenType', '质控样类别', 'sys');

INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230426100, '短期质控', 'specimenType', 10, '0', 'ADMIN', '系统管理员', '0', 'short');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME,  LASTSUSPENDEDFLAG, CODE)
VALUES (20230426101, '长期质控', 'specimenType', 20, '0', 'ADMIN', '系统管理员',  '0', 'long');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME,LASTSUSPENDEDFLAG, CODE)
VALUES (20230426102, '标样测试', 'specimenType', 30, '0', 'ADMIN', '系统管理员', '0', 'standard');


ALTER TABLE T_LIMS_TASK ADD HANDLETIME DATE;
COMMENT ON COLUMN T_LIMS_TASK.HANDLETIME IS '流程开始时间';

-- ----------------------------- 2023-04-25 add by liujie--------------end

-- ----------------------------- 2023-05-05 add by miq--------------begin
CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.TASK.VALID.ROLLBACKVALID', '回退检测项目需要检测组负责人进行', '回退检测项目需要检测组负责人进行', 'zh-CN', '回退检测项目需要检测组负责人进行');

-- ----------------------------- 2023-05-05 add by miq--------------end
-- ----------------------------- 2023-05-05 add by miq--------------begin

-- 建表语句
CREATE TABLE t_lims_task_return_record(
                                          ID NUMBER NOT NULL,
                                          BIZTYPE VARCHAR2(36)  NULL,
                                          BIZID NUMBER NULL,
                                          FOLDERID NUMBER NULL,
                                          ORDERID NUMBER NULL,
                                          TESTID NUMBER NULL,
                                          TESTMETHODID NUMBER NULL,
                                          RETURNBYNAME VARCHAR2(66)  NULL,
                                          RETURNBYID VARCHAR2(36)  NULL,
                                          RETURNTIME DATE NULL,
                                          TESTGROUP VARCHAR2(36)  NULL,
                                          CREATEDBYID VARCHAR2(36)  NULL,
                                          CREATEDBYNAME VARCHAR2(60)  NULL,
                                          CREATEDTIME DATE NULL,
                                          CREATEDBYORGID VARCHAR2(36)  NULL,
                                          CREATEDBYORGNAME VARCHAR2(270)  NULL
);
COMMENT ON TABLE T_LIMS_TASK_RETURN_RECORD IS '任务退回记录';
COMMENT ON COLUMN T_LIMS_TASK_RETURN_RECORD.ID IS '主键';
COMMENT ON COLUMN T_LIMS_TASK_RETURN_RECORD.BIZTYPE IS '业务类型';
COMMENT ON COLUMN T_LIMS_TASK_RETURN_RECORD.BIZID IS '业务id';
COMMENT ON COLUMN T_LIMS_TASK_RETURN_RECORD.FOLDERID IS '委托单id';
COMMENT ON COLUMN T_LIMS_TASK_RETURN_RECORD.ORDERID IS '样品id';
COMMENT ON COLUMN T_LIMS_TASK_RETURN_RECORD.TESTID IS '项目ID';
COMMENT ON COLUMN T_LIMS_TASK_RETURN_RECORD.TESTMETHODID IS '项目方法ID';
COMMENT ON COLUMN T_LIMS_TASK_RETURN_RECORD.RETURNBYNAME IS '操作人';
COMMENT ON COLUMN T_LIMS_TASK_RETURN_RECORD.RETURNBYID IS '操作人Id';
COMMENT ON COLUMN T_LIMS_TASK_RETURN_RECORD.RETURNTIME IS '操作时间';
COMMENT ON COLUMN T_LIMS_TASK_RETURN_RECORD.TESTGROUP IS '检测组id';
COMMENT ON COLUMN T_LIMS_TASK_RETURN_RECORD.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_TASK_RETURN_RECORD.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_TASK_RETURN_RECORD.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_TASK_RETURN_RECORD.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_TASK_RETURN_RECORD.CREATEDBYORGNAME IS '制单人单位名称';

ALTER TABLE T_LIMS_TASK_RETURN_RECORD ADD CONSTRAINT PK_LIMS_TASK_RETURN_RECORD PRIMARY KEY (ID);

-- 旧版审计跟踪，跟踪配置变更语句

INSERT INTO T_CORE_AT_CONFIG_LINE (ID,CONFIGID,COLUMNID,AUDITTRAIL,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','ID','1','miqiao','米乔', CURRENT_TIMESTAMP,'L005','五行业');
INSERT INTO T_CORE_AT_CONFIG_LINE (ID,CONFIGID,COLUMNID,AUDITTRAIL,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','BIZTYPE','1','miqiao','米乔', CURRENT_TIMESTAMP,'L005','五行业');
INSERT INTO T_CORE_AT_CONFIG_LINE (ID,CONFIGID,COLUMNID,AUDITTRAIL,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','BIZID','1','miqiao','米乔', CURRENT_TIMESTAMP,'L005','五行业');
INSERT INTO T_CORE_AT_CONFIG_LINE (ID,CONFIGID,COLUMNID,AUDITTRAIL,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','FOLDERID','1','miqiao','米乔', CURRENT_TIMESTAMP,'L005','五行业');
INSERT INTO T_CORE_AT_CONFIG_LINE (ID,CONFIGID,COLUMNID,AUDITTRAIL,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','ORDERID','1','miqiao','米乔', CURRENT_TIMESTAMP,'L005','五行业');
INSERT INTO T_CORE_AT_CONFIG_LINE (ID,CONFIGID,COLUMNID,AUDITTRAIL,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','TESTID','1','miqiao','米乔', CURRENT_TIMESTAMP,'L005','五行业');
INSERT INTO T_CORE_AT_CONFIG_LINE (ID,CONFIGID,COLUMNID,AUDITTRAIL,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','TESTMETHODID','1','miqiao','米乔', CURRENT_TIMESTAMP,'L005','五行业');
INSERT INTO T_CORE_AT_CONFIG_LINE (ID,CONFIGID,COLUMNID,AUDITTRAIL,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','RETURNBYNAME','1','miqiao','米乔', CURRENT_TIMESTAMP,'L005','五行业');
INSERT INTO T_CORE_AT_CONFIG_LINE (ID,CONFIGID,COLUMNID,AUDITTRAIL,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','RETURNBYID','1','miqiao','米乔', CURRENT_TIMESTAMP,'L005','五行业');
INSERT INTO T_CORE_AT_CONFIG_LINE (ID,CONFIGID,COLUMNID,AUDITTRAIL,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','RETURNTIME','1','miqiao','米乔', CURRENT_TIMESTAMP,'L005','五行业');
INSERT INTO T_CORE_AT_CONFIG_LINE (ID,CONFIGID,COLUMNID,AUDITTRAIL,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','TESTGROUP','1','miqiao','米乔', CURRENT_TIMESTAMP,'L005','五行业');
INSERT INTO T_CORE_AT_CONFIG_LINE (ID,CONFIGID,COLUMNID,AUDITTRAIL,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','CREATEDBYID','1','miqiao','米乔', CURRENT_TIMESTAMP,'L005','五行业');
INSERT INTO T_CORE_AT_CONFIG_LINE (ID,CONFIGID,COLUMNID,AUDITTRAIL,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','CREATEDBYNAME','1','miqiao','米乔', CURRENT_TIMESTAMP,'L005','五行业');
INSERT INTO T_CORE_AT_CONFIG_LINE (ID,CONFIGID,COLUMNID,AUDITTRAIL,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','CREATEDTIME','1','miqiao','米乔', CURRENT_TIMESTAMP,'L005','五行业');
INSERT INTO T_CORE_AT_CONFIG_LINE (ID,CONFIGID,COLUMNID,AUDITTRAIL,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','CREATEDBYORGID','1','miqiao','米乔', CURRENT_TIMESTAMP,'L005','五行业');
INSERT INTO T_CORE_AT_CONFIG_LINE (ID,CONFIGID,COLUMNID,AUDITTRAIL,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,CREATEDBYORGID,CREATEDBYORGNAME) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','CREATEDBYORGNAME','1','miqiao','米乔', CURRENT_TIMESTAMP,'L005','五行业');
COMMIT;

-- 审计跟踪V2，跟踪配置变更语句

INSERT INTO T_CORE_AUDIT_CONFIG_COLUMN (ID,CONFIGID,"COLUMN",AUDITABLE) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','ID','1');
INSERT INTO T_CORE_AUDIT_CONFIG_COLUMN (ID,CONFIGID,"COLUMN",AUDITABLE) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','BIZTYPE','1');
INSERT INTO T_CORE_AUDIT_CONFIG_COLUMN (ID,CONFIGID,"COLUMN",AUDITABLE) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','BIZID','1');
INSERT INTO T_CORE_AUDIT_CONFIG_COLUMN (ID,CONFIGID,"COLUMN",AUDITABLE) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','FOLDERID','1');
INSERT INTO T_CORE_AUDIT_CONFIG_COLUMN (ID,CONFIGID,"COLUMN",AUDITABLE) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','ORDERID','1');
INSERT INTO T_CORE_AUDIT_CONFIG_COLUMN (ID,CONFIGID,"COLUMN",AUDITABLE) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','TESTID','1');
INSERT INTO T_CORE_AUDIT_CONFIG_COLUMN (ID,CONFIGID,"COLUMN",AUDITABLE) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','TESTMETHODID','1');
INSERT INTO T_CORE_AUDIT_CONFIG_COLUMN (ID,CONFIGID,"COLUMN",AUDITABLE) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','RETURNBYNAME','1');
INSERT INTO T_CORE_AUDIT_CONFIG_COLUMN (ID,CONFIGID,"COLUMN",AUDITABLE) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','RETURNBYID','1');
INSERT INTO T_CORE_AUDIT_CONFIG_COLUMN (ID,CONFIGID,"COLUMN",AUDITABLE) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','RETURNTIME','1');
INSERT INTO T_CORE_AUDIT_CONFIG_COLUMN (ID,CONFIGID,"COLUMN",AUDITABLE) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','TESTGROUP','1');
INSERT INTO T_CORE_AUDIT_CONFIG_COLUMN (ID,CONFIGID,"COLUMN",AUDITABLE) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','CREATEDBYID','1');
INSERT INTO T_CORE_AUDIT_CONFIG_COLUMN (ID,CONFIGID,"COLUMN",AUDITABLE) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','CREATEDBYNAME','1');
INSERT INTO T_CORE_AUDIT_CONFIG_COLUMN (ID,CONFIGID,"COLUMN",AUDITABLE) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','CREATEDTIME','1');
INSERT INTO T_CORE_AUDIT_CONFIG_COLUMN (ID,CONFIGID,"COLUMN",AUDITABLE) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','CREATEDBYORGID','1');
INSERT INTO T_CORE_AUDIT_CONFIG_COLUMN (ID,CONFIGID,"COLUMN",AUDITABLE) VALUES (SEQ_CORE.NEXTVAL,'T_LIMS_TASK_RETURN_RECORD','CREATEDBYORGNAME','1');
COMMIT;
CALL INSERTI18N('T_LIMS_TASK_RETURN_RECORD.SERVICE_NAME', '任务退回记录', '任务退回记录', 'zh-CN', '任务退回记录');
CALL INSERTI18N('T_LIMS_TASK_RETURN_RECORD.ID', '任务退回记录的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_TASK_RETURN_RECORD.BIZTYPE', '任务退回记录的业务类型', '业务类型', 'zh-CN', '业务类型');
CALL INSERTI18N('T_LIMS_TASK_RETURN_RECORD.BIZID', '任务退回记录的业务id', '业务id', 'zh-CN', '业务id');
CALL INSERTI18N('T_LIMS_TASK_RETURN_RECORD.FOLDERID', '任务退回记录的委托单id', '委托单id', 'zh-CN', '委托单id');
CALL INSERTI18N('T_LIMS_TASK_RETURN_RECORD.ORDERID', '任务退回记录的样品id', '样品id', 'zh-CN', '样品id');
CALL INSERTI18N('T_LIMS_TASK_RETURN_RECORD.TESTID', '任务退回记录的项目ID', '项目ID', 'zh-CN', '项目ID');
CALL INSERTI18N('T_LIMS_TASK_RETURN_RECORD.TESTMETHODID', '任务退回记录的项目方法ID', '项目方法ID', 'zh-CN', '项目方法ID');
CALL INSERTI18N('T_LIMS_TASK_RETURN_RECORD.RETURNBYNAME', '任务退回记录的操作人', '操作人', 'zh-CN', '操作人');
CALL INSERTI18N('T_LIMS_TASK_RETURN_RECORD.RETURNBYID', '任务退回记录的操作人Id', '操作人Id', 'zh-CN', '操作人Id');
CALL INSERTI18N('T_LIMS_TASK_RETURN_RECORD.RETURNTIME', '任务退回记录的操作时间', '操作时间', 'zh-CN', '操作时间');
CALL INSERTI18N('T_LIMS_TASK_RETURN_RECORD.TESTGROUP', '任务退回记录的检测组id', '检测组id', 'zh-CN', '检测组id');
CALL INSERTI18N('T_LIMS_TASK_RETURN_RECORD.CREATEDBYID', '任务退回记录的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_TASK_RETURN_RECORD.CREATEDBYNAME', '任务退回记录的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_LIMS_TASK_RETURN_RECORD.CREATEDTIME', '任务退回记录的制单时间', '制单时间', 'zh-CN', '制单时间');
CALL INSERTI18N('T_LIMS_TASK_RETURN_RECORD.CREATEDBYORGID', '任务退回记录的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_TASK_RETURN_RECORD.CREATEDBYORGNAME', '任务退回记录的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');
CALL INSERTI18N('BASEMODULE.BUSINESS.RECORDS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BUSINESS.RECORDS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BUSINESS.RECORDS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BUSINESS.RECORDS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BUSINESS.RECORDS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

INSERT INTO T_CORE_TABLE (ID, AUDITABLE, ATTACHMENT)
VALUES ('T_LIMS_TASK_RETURN_RECORD', '0', '0');

INSERT INTO T_CORE_MENU
(ID, MENUNAME, HREF, PARENTID, ORDERNO, MENUINITNAME, LASTUPDATEDBYID, LASTUPDATEDBYNAME, LASTUPDATEDTIME, ICON, TODOICON, I18NCODE)
VALUES('20230505001', '结果复核回退次数统计', '/secure/basemodule/business/task-return-records/page/statistics-list', '8202', 998096256147668, '新建节点', NULL, NULL, NULL, '001.svg', NULL, NULL);


COMMIT;

-- ----------------------------- 2023-05-05 add by miq------------end

-- ----------------------------- 2023-05-08 add by miq--------------begin
alter table T_LIMS_SPECIMEN_ITEM add SHORUPPER VARCHAR2(36);
comment on column T_LIMS_SPECIMEN_ITEM.SHORUPPER is '短期上限值';
alter table T_LIMS_SPECIMEN_ITEM add SHORLOWER VARCHAR2(36);
comment on column T_LIMS_SPECIMEN_ITEM.SHORLOWER is '短期下限值';
alter table T_LIMS_SPECIMEN_ITEM add MEANVALUE VARCHAR2(36);
comment on column T_LIMS_SPECIMEN_ITEM.MEANVALUE is 'mean值';
alter table T_LIMS_SPECIMEN_ITEM add PVALUE VARCHAR2(36);
comment on column T_LIMS_SPECIMEN_ITEM.PVALUE is 'σ值';

CALL INSERTI18N('T_LIMS_SPECIMEN_ITEM.SHORUPPER','短期上限值','短期上限值','zh-CN','短期上限值');
CALL INSERTI18N('T_LIMS_SPECIMEN_ITEM.SHORLOWER','短期下限值','短期下限值','zh-CN','短期下限值');
CALL INSERTI18N('T_LIMS_SPECIMEN_ITEM.MEANVALUE','mean值','mean值','zh-CN','mean值');
CALL INSERTI18N('T_LIMS_SPECIMEN_ITEM.PVALUE','σ值','σ值','zh-CN','σ值');

ALTER TABLE T_LIMS_SPECIMEN_ITEM MODIFY SHORUPPER NUMBER(16,0);
ALTER TABLE T_LIMS_SPECIMEN_ITEM MODIFY SHORLOWER NUMBER(16,0);


COMMIT;

-- ----------------------------- 2023-05-08 add by miq------------end


-- ----------------------------- 2023-05-08 add by miq--------------begin
alter table T_LIMS_TEST add SHORTQCSLVALUE VARCHAR2(36);
comment on column T_LIMS_TEST.SHORTQCSLVALUE is '短期质控规格线值';
alter table T_LIMS_TEST add KBLOWLIMIT VARCHAR2(36);
comment on column T_LIMS_TEST.KBLOWLIMIT is '保留电池低限';
alter table T_LIMS_TEST add CTESTNAME VARCHAR2(36);
comment on column T_LIMS_TEST.CTESTNAME is 'C检测项目';
alter table T_LIMS_TEST add CINDICATOR VARCHAR2(36);
comment on column T_LIMS_TEST.CINDICATOR is 'C检测指标';
alter table T_LIMS_TEST add CUNIT VARCHAR2(36);
comment on column T_LIMS_TEST.CUNIT is 'C单位';

CALL INSERTI18N('T_LIMS_TEST.SHORTQCSLVALUE','短期质控规格线值','短期质控规格线值','zh-CN','短期质控规格线值');
CALL INSERTI18N('T_LIMS_TEST.KBLOWLIMIT','保留电池低限','保留电池低限','zh-CN','保留电池低限');
CALL INSERTI18N('T_LIMS_TEST.CTESTNAME','C检测项目','C检测项目','zh-CN','C检测项目');
CALL INSERTI18N('T_LIMS_TEST.CINDICATOR','C检测指标','C检测指标','zh-CN','C检测指标');
CALL INSERTI18N('T_LIMS_TEST.CUNIT','C单位','C单位','zh-CN','C单位');

COMMIT;

-- ----------------------------- 2023-05-08 add by miq------------end

-- ----------------------------- 2023-05-09 add by liujie------------begin
ALTER TABLE T_LIMS_ORDER ADD FDISPOSECHARGINGCAPACITY NUMBER(16,4);
COMMENT ON COLUMN T_LIMS_ORDER.FDISPOSECHARGINGCAPACITY IS '舍弃充电比容量';
ALTER TABLE T_LIMS_ORDER ADD FDISPOSEDISCHANGECAPACITY NUMBER(16,4);
COMMENT ON COLUMN T_LIMS_ORDER.FDISPOSEDISCHANGECAPACITY IS '舍弃放电比容量';
ALTER TABLE T_LIMS_ORDER ADD FDISPOSEFIRSTEFFECT NUMBER(16,4);
COMMENT ON COLUMN T_LIMS_ORDER.FDISPOSEFIRSTEFFECT IS '舍弃首效';
-- ----------------------------- 2023-05-09 add by liujie------------end


-- ----------------------------- 2023-05-10 add by miq------------begin
alter table T_CORE_EQUIPT_ACQ_CONFIG add AUTOCOLLECT VARCHAR2(18);
comment on column T_CORE_EQUIPT_ACQ_CONFIG.AUTOCOLLECT is '开启自动采集';

CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.AUTOCOLLECT','开启自动采集','开启自动采集','zh-CN','开启自动采集');

INSERT INTO T_CORE_SCHEDULE_TASK (ID, TASKNAME, SERVICENAME, METHODNAME, TYPE)
VALUES ('fileAutoCollect', '共享文件夹自动采集', 'com.sunwayworld.basemodule.common.eptstorage.file.excelread.schedule.FileAutoCollectSchedule', 'fileAutoCollect', 'service')

INSERT INTO T_CORE_SCHEDULE_TASK_CONFIG
(ID, CONFIGNAME, TASKID, PARAM, CRON, TIMES, REMARK, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, CREATEDBYORGID, CREATEDBYORGNAME, ACTIVATEDFLAG, ACTIVATEDBYID, ACTIVATEDBYNAME, ACTIVATEDTIME, UID, STARTTIME, ENDTIME)
VALUES('20230500001', NULL, 'fileAutoCollect', NULL, '* 0/15 * * * ?', 392, NULL, NULL, 'admin', '系统管理员', TIMESTAMP '2023-05-10 11:37:48.000000', '00013962', '化学组', '0', NULL, NULL, NULL, '20230500001', TIMESTAMP '2023-05-10 11:38:10.000000', TIMESTAMP '2024-05-08 11:38:12.000000');

-- ----------------------------- 2023-05-10 add by miq------------end


-- ----------------------------- 2023-05-10 add by liujie------------begin
COMMENT ON TABLE T_LIMS_TESTGROUP IS '检测组';
COMMENT ON COLUMN T_LIMS_TESTGROUP.ID IS '主键';
COMMENT ON COLUMN T_LIMS_TESTGROUP.BASE IS '基地';
COMMENT ON COLUMN T_LIMS_TESTGROUP.GROUPNAME IS '组名';
COMMENT ON COLUMN T_LIMS_TESTGROUP.GROUPCODE IS '组编码';
COMMENT ON COLUMN T_LIMS_TESTGROUP.CREATEDBYID IS '创建者id';
COMMENT ON COLUMN T_LIMS_TESTGROUP.CREATEDBYNAME IS '创建者姓名';
COMMENT ON COLUMN T_LIMS_TESTGROUP.CREATEDTIME IS '创建时间';
COMMENT ON COLUMN T_LIMS_TESTGROUP.CREATEDBYORGID IS '创建组织ID';
COMMENT ON COLUMN T_LIMS_TESTGROUP.CREATEDBYORGNAME IS '创建组织名称';
COMMENT ON COLUMN T_LIMS_TESTGROUP.REMARK IS '备注';


CALL INSERTI18N('T_LIMS_TESTGROUP.SERVICE_NAME', '检测组', '检测组', 'zh-CN', '检测组');
CALL INSERTI18N('T_LIMS_TESTGROUP.ID', '检测组的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_TESTGROUP.BASE', '检测组的基地', '基地', 'zh-CN', '基地');
CALL INSERTI18N('T_LIMS_TESTGROUP.GROUPNAME', '检测组的组名', '组名', 'zh-CN', '组名');
CALL INSERTI18N('T_LIMS_TESTGROUP.GROUPCODE', '检测组的组编码', '组编码', 'zh-CN', '组编码');
CALL INSERTI18N('T_LIMS_TESTGROUP.CREATEDBYID', '检测组的创建者id', '创建者id', 'zh-CN', '创建者id');
CALL INSERTI18N('T_LIMS_TESTGROUP.CREATEDBYNAME', '检测组的创建者姓名', '创建者姓名', 'zh-CN', '创建者姓名');
CALL INSERTI18N('T_LIMS_TESTGROUP.CREATEDTIME', '检测组的创建时间', '创建时间', 'zh-CN', '创建时间');
CALL INSERTI18N('T_LIMS_TESTGROUP.CREATEDBYORGID', '检测组的创建组织ID', '创建组织ID', 'zh-CN', '创建组织ID');
CALL INSERTI18N('T_LIMS_TESTGROUP.CREATEDBYORGNAME', '检测组的创建组织名称', '创建组织名称', 'zh-CN', '创建组织名称');
CALL INSERTI18N('T_LIMS_TESTGROUP.REMARK', '检测组的备注', '备注', 'zh-CN', '备注');
CALL INSERTI18N('BASEMODULE.BASEDATA.TESTGROUPS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BASEDATA.TESTGROUPS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BASEDATA.TESTGROUPS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BASEDATA.TESTGROUPS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BASEDATA.TESTGROUPS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('20230510001', '检测组维护', '/secure/basemodule/basedata/testgroups/page/edit-list', '91', '20230510', '017.svg', '检测组维护');

-- ----------------------------- 2023-05-10 add by liujie------------end

-- ----------------------------- 2023-05-11 add by liujie------------begin
CREATE TABLE T_LIMS_OPERATION_RECORD(
    ID NUMBER NOT NULL,
    FILENAME VARCHAR2(120)  NULL,
    OPERATETYPE VARCHAR2(36)  NULL,
    OPERATENAME VARCHAR2(120)  NULL,
    OPERATEID VARCHAR2(120)  NULL,
    OPERATETIME DATE NULL,
    FILEID VARCHAR2(120)  NULL
 );
COMMENT ON TABLE T_LIMS_OPERATION_RECORD IS '文件操作记录';
COMMENT ON COLUMN T_LIMS_OPERATION_RECORD.ID IS '主键';
COMMENT ON COLUMN T_LIMS_OPERATION_RECORD.FILENAME IS '文件名称';
COMMENT ON COLUMN T_LIMS_OPERATION_RECORD.OPERATETYPE IS '操作类型';
COMMENT ON COLUMN T_LIMS_OPERATION_RECORD.OPERATENAME IS '操作人姓名';
COMMENT ON COLUMN T_LIMS_OPERATION_RECORD.OPERATEID IS '操作人ID';
COMMENT ON COLUMN T_LIMS_OPERATION_RECORD.OPERATETIME IS '操作时间';
COMMENT ON COLUMN T_LIMS_OPERATION_RECORD.FILEID IS '文件ID';

ALTER TABLE T_LIMS_OPERATION_RECORD ADD CONSTRAINT PK_LIMS_OPERATION_RECORD PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_OPERATION_RECORD.SERVICE_NAME', '文件操作记录', '文件操作记录', 'zh-CN', '文件操作记录');
CALL INSERTI18N('T_LIMS_OPERATION_RECORD.ID', '文件操作记录的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_OPERATION_RECORD.FILENAME', '文件操作记录的文件名称', '文件名称', 'zh-CN', '文件名称');
CALL INSERTI18N('T_LIMS_OPERATION_RECORD.OPERATETYPE', '文件操作记录的操作类型', '操作类型', 'zh-CN', '操作类型');
CALL INSERTI18N('T_LIMS_OPERATION_RECORD.OPERATENAME', '文件操作记录的操作人姓名', '操作人姓名', 'zh-CN', '操作人姓名');
CALL INSERTI18N('T_LIMS_OPERATION_RECORD.OPERATEID', '文件操作记录的操作人ID', '操作人ID', 'zh-CN', '操作人ID');
CALL INSERTI18N('T_LIMS_OPERATION_RECORD.OPERATETIME', '文件操作记录的操作时间', '操作时间', 'zh-CN', '操作时间');
CALL INSERTI18N('T_LIMS_OPERATION_RECORD.FILEID', '文件操作记录的文件ID', '文件ID', 'zh-CN', '文件ID');
CALL INSERTI18N('BASEMODULE.BASEDATA.OPERATIONRECORDS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BASEDATA.OPERATIONRECORDS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BASEDATA.OPERATIONRECORDS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BASEDATA.OPERATIONRECORDS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BASEDATA.OPERATIONRECORDS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

ALTER TABLE T_LIMS_OPERATION_RECORD ADD TASKID NUMBER;
COMMENT ON COLUMN T_LIMS_OPERATION_RECORD.TASKID IS 'task Id';

ALTER TABLE T_LIMS_OPERATION_RECORD ADD TARGETID VARCHAR2(100);
COMMENT ON COLUMN T_LIMS_OPERATION_RECORD.TARGETID IS '目标ID';



-- ----------------------------- 2023-05-11 add by liujie------------end

-- ----------------------------- 2023-05-16 add by liujie------------begin

ALTER TABLE T_LIMS_OPERATION_RECORD MODIFY FILENAME VARCHAR2(360);

-- ----------------------------- 2023-05-16 add by liujie------------end
-- ----------------------------- 2023-05-17 add by liujie------------begin
ALTER TABLE T_LIMS_TEST RENAME COLUMN KBLOWLIMIT TO KBSHORTLOWLIMIT;

ALTER TABLE T_LIMS_TEST ADD KBLONGLOWLIMIT VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_TEST.KBLONGLOWLIMIT IS '保留电池低限：长期质控';
ALTER TABLE T_LIMS_TEST ADD KBSTANDARDLOWLIMIT VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_TEST.KBSTANDARDLOWLIMIT IS '保留电池低限：标样质控';

COMMENT ON COLUMN T_LIMS_TEST.KBSHORTLOWLIMIT IS '保留电池低限：短期质控';

CALL INSERTI18N('T_LIMS_TEST.KBSHORTLOWLIMIT','保留电池低限','保留电池低限','zh-CN','保留电池低限:短期');

CALL INSERTI18N('T_LIMS_TEST.KBLONGLOWLIMIT','保留电池低限','保留电池低限','zh-CN','保留电池低限:长期');

CALL INSERTI18N('T_LIMS_TEST.KBSTANDARDLOWLIMIT','保留电池低限','保留电池低限','zh-CN','保留电池低限:标样');

INSERT INTO T_CORE_MENU (ID,MENUNAME,HREF,PARENTID,ORDERNO,MENUINITNAME,LASTUPDATEDBYID,LASTUPDATEDBYNAME,LASTUPDATEDTIME,ICON,TODOICON,I18NCODE) VALUES ('100130','扣电上柜数据查询','/secure/basemodule/business/test/folders/page/KDstatisticPage','1001',30,'扣电上柜数据查询',NULL,NULL,NULL,'002.svg',NULL,NULL);

-- ----------------------------- 2023-05-17 add by liujie------------end


-- ----------------------------- 2023-05-18 add by liujie------------begin
-- 建表语句
CREATE TABLE T_LIMS_WORKSHOP(
    ID NUMBER NOT NULL,
    USERID VARCHAR2(36)  NULL,
    WORKSHOP VARCHAR2(120)  NULL,
    CREATOR VARCHAR2(36)  NULL,
    CREATORID VARCHAR2(36)  NULL,
    CREATEDTIME DATE NULL
 );
COMMENT ON TABLE T_LIMS_WORKSHOP IS '生产车间';
COMMENT ON COLUMN T_LIMS_WORKSHOP.ID IS '主键';
COMMENT ON COLUMN T_LIMS_WORKSHOP.USERID IS '用户ID';
COMMENT ON COLUMN T_LIMS_WORKSHOP.WORKSHOP IS '生产车间名';
COMMENT ON COLUMN T_LIMS_WORKSHOP.CREATOR IS '创建人';
COMMENT ON COLUMN T_LIMS_WORKSHOP.CREATORID IS '创建人ID';
COMMENT ON COLUMN T_LIMS_WORKSHOP.CREATEDTIME IS '创建时间';

ALTER TABLE T_LIMS_WORKSHOP ADD CONSTRAINT PK_LIMS_WORKSHOP PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_WORKSHOP.SERVICE_NAME', '生产车间', '生产车间', 'zh-CN', '生产车间');
CALL INSERTI18N('T_LIMS_WORKSHOP.ID', '生产车间的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_WORKSHOP.USERID', '生产车间的用户ID', '用户ID', 'zh-CN', '用户ID');
CALL INSERTI18N('T_LIMS_WORKSHOP.WORKSHOP', '生产车间的生产车间名', '生产车间名', 'zh-CN', '生产车间名');
CALL INSERTI18N('T_LIMS_WORKSHOP.CREATOR', '生产车间的创建人', '创建人', 'zh-CN', '创建人');
CALL INSERTI18N('T_LIMS_WORKSHOP.CREATORID', '生产车间的创建人ID', '创建人ID', 'zh-CN', '创建人ID');
CALL INSERTI18N('T_LIMS_WORKSHOP.CREATEDTIME', '生产车间的创建时间', '创建时间', 'zh-CN', '创建时间');
CALL INSERTI18N('BASEMODULE.BASEDATA.WORKSHOPS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BASEDATA.WORKSHOPS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BASEDATA.WORKSHOPS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BASEDATA.WORKSHOPS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BASEDATA.WORKSHOPS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

-- ----------------------------- 2023-05-18 add by liujie------------end

-- ----------------------------- 2023-05-18 add by liujie1111@sunwayworld.com--------------begin

-- 建表语句
CREATE TABLE T_LIMS_BASE(
    ID NUMBER NOT NULL,
    BASETYPE VARCHAR2(12)  NULL,
    BASE VARCHAR2(12)  NULL,
    EQUIPMENTSATURATIONRATE VARCHAR2(36)  NULL,
    PERSONNELTURNOVERRATE VARCHAR2(36)  NULL,
    TIMELYTARGETRATE VARCHAR2(36)  NULL
 );
COMMENT ON TABLE T_LIMS_BASE IS '基地';
COMMENT ON COLUMN T_LIMS_BASE.ID IS '主键';
COMMENT ON COLUMN T_LIMS_BASE.BASETYPE IS '基地类型';
COMMENT ON COLUMN T_LIMS_BASE.BASE IS '基地';
COMMENT ON COLUMN T_LIMS_BASE.EQUIPMENTSATURATIONRATE IS '设备饱和率';
COMMENT ON COLUMN T_LIMS_BASE.PERSONNELTURNOVERRATE IS '人员离职率';
COMMENT ON COLUMN T_LIMS_BASE.TIMELYTARGETRATE IS '及时率目标';

ALTER TABLE T_LIMS_BASE ADD CONSTRAINT PK_LIMS_BASE PRIMARY KEY (ID);




CALL INSERTI18N('T_LIMS_BASE.SERVICE_NAME', '基地', '基地', 'zh-CN', '基地');
CALL INSERTI18N('T_LIMS_BASE.ID', '基地的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_BASE.BASETYPE', '基地的基地类型', '基地类型', 'zh-CN', '基地类型');
CALL INSERTI18N('T_LIMS_BASE.BASE', '基地的基地', '基地', 'zh-CN', '基地');
CALL INSERTI18N('T_LIMS_BASE.EQUIPMENTSATURATIONRATE', '基地的设备饱和率', '设备饱和率', 'zh-CN', '设备饱和率');
CALL INSERTI18N('T_LIMS_BASE.PERSONNELTURNOVERRATE', '基地的人员离职率', '人员离职率', 'zh-CN', '人员离职率');
CALL INSERTI18N('T_LIMS_BASE.TIMELYTARGETRATE', '基地的及时率目标', '及时率目标', 'zh-CN', '及时率目标');
CALL INSERTI18N('BASEMODULE.BASEDATA.BASES.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BASEDATA.BASES.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BASEDATA.BASES.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BASEDATA.BASES.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BASEDATA.BASES.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');


-- 创建菜单语句
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('20230510002', '基地管理', '/secure/basemodule/basedata/bases/page/edit-list', 20230510,'93', '057.svg', '基地管理');


-- ----------------------------- 2023-05-18 add by liujie1111@sunwayworld.com------------end

-- ----------------------------- 2023-05-18 add by liujie1111@sunwayworld.com--------------begin

-- 建表语句
CREATE TABLE
T_LIMS_DISCRIMINATORY_CRITERIA(
    ID NUMBER NOT NULL,
    THENUMBER VARCHAR2(36)  NULL,
    ILLUSTRATE VARCHAR2(120)  NULL,
    REASON VARCHAR2(120)  NULL,
    ABBREVIATION VARCHAR2(120)  NULL,
    LEGEND VARCHAR2(120)  NULL
 );
COMMENT ON TABLE T_LIMS_DISCRIMINATORY_CRITERIA IS '判异准则表';
COMMENT ON COLUMN T_LIMS_DISCRIMINATORY_CRITERIA.ID IS '主键';
COMMENT ON COLUMN T_LIMS_DISCRIMINATORY_CRITERIA.THENUMBER IS '编号';
COMMENT ON COLUMN T_LIMS_DISCRIMINATORY_CRITERIA.ILLUSTRATE IS '准则说明';
COMMENT ON COLUMN T_LIMS_DISCRIMINATORY_CRITERIA.REASON IS '异常原因';
COMMENT ON COLUMN T_LIMS_DISCRIMINATORY_CRITERIA.ABBREVIATION IS '简称';
COMMENT ON COLUMN T_LIMS_DISCRIMINATORY_CRITERIA.LEGEND IS '图例';



ALTER TABLE T_LIMS_DISCRIMINATORY_CRITERIA ADD CONSTRAINT PK_LIMS_DISCRIMINATORY_CRITERIA PRIMARY KEY (ID);



CALL INSERTI18N('T_LIMS_DISCRIMINATORY_CRITERIA.SERVICE_NAME', '判异准则表', '判异准则表', 'zh-CN', '判异准则表');
CALL INSERTI18N('T_LIMS_DISCRIMINATORY_CRITERIA.ID', '判异准则表的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_DISCRIMINATORY_CRITERIA.THENUMBER', '判异准则表的编号', '编号', 'zh-CN', '编号');
CALL INSERTI18N('T_LIMS_DISCRIMINATORY_CRITERIA.ILLUSTRATE', '判异准则表的准则说明', '准则说明', 'zh-CN', '准则说明');
CALL INSERTI18N('T_LIMS_DISCRIMINATORY_CRITERIA.REASON', '判异准则表的异常原因', '异常原因', 'zh-CN', '异常原因');
CALL INSERTI18N('T_LIMS_DISCRIMINATORY_CRITERIA.ABBREVIATION', '判异准则表的简称', '简称', 'zh-CN', '简称');
CALL INSERTI18N('T_LIMS_DISCRIMINATORY_CRITERIA.LEGEND', '判异准则表的图例', '图例', 'zh-CN', '图例');
CALL INSERTI18N('BASEMODULE.BASEDATA.DISCRIMINATORYCRITERIAS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BASEDATA.DISCRIMINATORYCRITERIAS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BASEDATA.DISCRIMINATORYCRITERIAS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BASEDATA.DISCRIMINATORYCRITERIAS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BASEDATA.DISCRIMINATORYCRITERIAS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

-- 创建菜单语句

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('20230518001', '判异准则管理', '/secure/basemodule/basedata/discriminatory-criterias/page/edit-list', 20230510, '95', '042.svg', '判异准则管理');
-- ----------------------------- 2023-05-18 add by liujie1111@sunwayworld.com------------end


-- ----------------------------- 2023-05-18 add by liujie1111@sunwayworld.com--------------begin

-- 建表语句
CREATE TABLE
T_LIMS_PROJECT_DIFFERENTIATION(
    ID NUMBER NOT NULL,
    TESTCODE VARCHAR2(120)  NULL,
    TESTNAME VARCHAR2(120)  NULL,
    THENUMBER VARCHAR2(120)  NULL,
    ABBREVIATION VARCHAR2(120)  NULL
 );
COMMENT ON TABLE T_LIMS_PROJECT_DIFFERENTIATION IS '项目判异';
COMMENT ON COLUMN T_LIMS_PROJECT_DIFFERENTIATION.ID IS '主键';
COMMENT ON COLUMN T_LIMS_PROJECT_DIFFERENTIATION.TESTCODE IS '项目编号';
COMMENT ON COLUMN T_LIMS_PROJECT_DIFFERENTIATION.TESTNAME IS '项目名称';
COMMENT ON COLUMN T_LIMS_PROJECT_DIFFERENTIATION.THENUMBER IS '判异编号';
COMMENT ON COLUMN T_LIMS_PROJECT_DIFFERENTIATION.ABBREVIATION IS '判异简称';


ALTER TABLE T_LIMS_PROJECT_DIFFERENTIATION ADD CONSTRAINT PK_LIMS_PROJECT_DIFFERENTIATION PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_PROJECT_DIFFERENTIATION.SERVICE_NAME', '项目判异', '项目判异', 'zh-CN', '项目判异');
CALL INSERTI18N('T_LIMS_PROJECT_DIFFERENTIATION.ID', '项目判异的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_PROJECT_DIFFERENTIATION.TESTCODE', '项目判异的项目编号', '项目编号', 'zh-CN', '项目编号');
CALL INSERTI18N('T_LIMS_PROJECT_DIFFERENTIATION.TESTNAME', '项目判异的项目名称', '项目名称', 'zh-CN', '项目名称');
CALL INSERTI18N('T_LIMS_PROJECT_DIFFERENTIATION.THENUMBER', '项目判异的判异编号', '判异编号', 'zh-CN', '判异编号');
CALL INSERTI18N('T_LIMS_PROJECT_DIFFERENTIATION.ABBREVIATION', '项目判异的判异简称', '判异简称', 'zh-CN', '判异简称');
CALL INSERTI18N('BASEMODULE.BASEDATA.PROJECTDIFFERENTIATIONS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BASEDATA.PROJECTDIFFERENTIATIONS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BASEDATA.PROJECTDIFFERENTIATIONS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BASEDATA.PROJECTDIFFERENTIATIONS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BASEDATA.PROJECTDIFFERENTIATIONS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

-- 创建菜单语句
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('20230518002', '项目判异', '/secure/basemodule/basedata/project-differentiations/page/edit-list',20230510, '97', '043.svg', '项目判异');

-- 建表语句
CREATE TABLE T_LIMS_STAFF_WORKLICENSE(
    ID NUMBER NOT NULL,
    WORKLICENSETYPE VARCHAR2(60)  NULL,
    LEVELS VARCHAR2(60)  NULL,
    TARGETDATE DATE  NULL
 );
COMMENT ON TABLE T_LIMS_STAFF_WORKLICENSE IS '人员上岗证目标';
COMMENT ON COLUMN T_LIMS_STAFF_WORKLICENSE.ID IS '主键';
COMMENT ON COLUMN T_LIMS_STAFF_WORKLICENSE.WORKLICENSETYPE IS '上岗证类别';
COMMENT ON COLUMN T_LIMS_STAFF_WORKLICENSE.LEVELS IS '目标等级';
COMMENT ON COLUMN T_LIMS_STAFF_WORKLICENSE.TARGETDATE IS '目标日期';

ALTER TABLE T_LIMS_STAFF_WORKLICENSE ADD CONSTRAINT PK_LIMS_STAFF_WORKLICENSE PRIMARY KEY (ID);


CALL INSERTI18N('T_LIMS_STAFF_WORKLICENSE.SERVICE_NAME', '人员上岗证目标', '人员上岗证目标', 'zh-CN', '人员上岗证目标');
CALL INSERTI18N('T_LIMS_STAFF_WORKLICENSE.ID', '人员上岗证目标的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_STAFF_WORKLICENSE.WORKLICENSETYPE', '人员上岗证目标的上岗证类别', '上岗证类别', 'zh-CN', '上岗证类别');
CALL INSERTI18N('T_LIMS_STAFF_WORKLICENSE.LEVELS', '人员上岗证目标的目标等级', '目标等级', 'zh-CN', '目标等级');
CALL INSERTI18N('T_LIMS_STAFF_WORKLICENSE.TARGETDATE', '人员上岗证目标的目标日期', '目标日期', 'zh-CN', '目标日期');
CALL INSERTI18N('BASEMODULE.BASEDATA.STAFF.WORKLICENSES.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BASEDATA.STAFF.WORKLICENSES.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BASEDATA.STAFF.WORKLICENSES.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BASEDATA.STAFF.WORKLICENSES.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BASEDATA.STAFF.WORKLICENSES.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');



-- ----------------------------- 2023-05-18 add by liujie1111@sunwayworld.com------------end
-------------------------------2023-05-18 add by liuwei---------------------------begin---------------
CALL INSERTI18N('BASEMODULE.BASEDATA.EQUIPT.ASSOCIATED.VIRTUAL','关联虚拟设备','关联虚拟设备','zh-CN','关联虚拟设备');

CREATE TABLE T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL(
    ID NUMBER NOT NULL,
    VIRTUALEQUIPTCODE VARCHAR2(36)  NULL,
    VIRTUALEQUIPTNAME VARCHAR2(270)  NULL,
    EQUIPTID NUMBER NULL,
    TESTMETHODID NUMBER NULL,
    ANALYSTID NUMBER NULL,
    REMARKS VARCHAR2(360)  NULL,
    SPECIFICATION VARCHAR2(270)  NULL,
    ORGID VARCHAR2(36)  NULL,
    ORGNAME VARCHAR2(270)  NULL,
    CREATEDBYID VARCHAR2(36)  NULL,
    CREATEDBYNAME VARCHAR2(60)  NULL,
    CREATEDTIME DATE NULL,
    CREATEDBYORGID VARCHAR2(36)  NULL,
    CREATEDBYORGNAME VARCHAR2(270)  NULL
 );
COMMENT ON TABLE T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL IS '关联虚拟设备';
COMMENT ON COLUMN T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.ID IS '主键';
COMMENT ON COLUMN T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.VIRTUALEQUIPTCODE IS '虚拟设备编码';
COMMENT ON COLUMN T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.VIRTUALEQUIPTNAME IS '虚拟设备名称';
COMMENT ON COLUMN T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.EQUIPTID IS '设备ID';
COMMENT ON COLUMN T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.TESTMETHODID IS '检测项目方法关联ID';
COMMENT ON COLUMN T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.ANALYSTID IS '分析项ID';
COMMENT ON COLUMN T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.REMARKS IS '备注';
COMMENT ON COLUMN T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.SPECIFICATION IS '规格';
COMMENT ON COLUMN T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.ORGID IS '组织ID';
COMMENT ON COLUMN T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.ORGNAME IS '组织名称';
COMMENT ON COLUMN T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.CREATEDBYORGNAME IS '制单人单位名称';

ALTER TABLE T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL ADD CONSTRAINT PK_LIMS_EQUIPT_ASSOCIATEDVIRTUAL PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.SERVICE_NAME', '关联虚拟设备', '关联虚拟设备', 'zh-CN', '关联虚拟设备');
CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.ID', '关联虚拟设备的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.VIRTUALEQUIPTCODE', '关联虚拟设备的虚拟设备编码', '虚拟设备编码', 'zh-CN', '虚拟设备编码');
CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.VIRTUALEQUIPTNAME', '关联虚拟设备的虚拟设备名称', '虚拟设备名称', 'zh-CN', '虚拟设备名称');
CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.EQUIPTID', '关联虚拟设备的设备ID', '设备ID', 'zh-CN', '设备ID');
CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.REMARKS', '关联虚拟设备的备注', '备注', 'zh-CN', '备注');
CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.TESTMETHODID', '关联虚拟设备的检测项目方法关联ID', '检测项目方法关联ID', 'zh-CN', '检测项目方法关联ID');
CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.ANALYSTID', '关联虚拟设备的分析项ID', '分析项ID', 'zh-CN', '分析项ID');
CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.SPECIFICATION', '关联虚拟设备的规格', '规格', 'zh-CN', '规格');
CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.ORGID', '关联虚拟设备的组织ID', '组织ID', 'zh-CN', '组织ID');
CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.ORGNAME', '关联虚拟设备的组织名称', '组织名称', 'zh-CN', '组织名称');
CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.CREATEDBYID', '关联虚拟设备的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.CREATEDBYNAME', '关联虚拟设备的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.CREATEDTIME', '关联虚拟设备的制单时间', '制单时间', 'zh-CN', '制单时间');
CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.CREATEDBYORGID', '关联虚拟设备的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.CREATEDBYORGNAME', '关联虚拟设备的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');

ALTER TABLE T_CORE_EQUIPT_ACQ_CONFIG ADD TESTID NUMBER;
COMMENT ON COLUMN T_CORE_EQUIPT_ACQ_CONFIG.TESTID IS '实验项目ID';
ALTER TABLE T_CORE_EQUIPT_ACQ_CONFIG ADD TESTNAME VARCHAR2(120);
COMMENT ON COLUMN T_CORE_EQUIPT_ACQ_CONFIG.TESTNAME IS '设备关联项目';

CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.TESTID', '实验项目ID', '实验项目ID', 'zh-CN', '实验项目ID');
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.TESTNAME', '设备关联项目', '设备关联项目', 'zh-CN', '设备关联项目');
COMMIT;
------------------------------2023-05-18 add by liuwei end----------------------------------------------

-- ----------------------------- 2023-05-19 add by liujie1111@sunwayworld.com------------begin

ALTER TABLE T_LIMS_TASK ADD SHORTQCSLVALUE VARCHAR2(120);
COMMENT ON COLUMN T_LIMS_TASK.SHORTQCSLVALUE IS '短期质控规格线值';

CALL INSERTI18N('T_LIMS_TASK.SHORTQCSLVALUE','短期质控规格线值','短期质控规格线值','zh-CN','短期质控规格线值');

ALTER TABLE T_LIMS_STAFF ADD STAFFTYPE VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_STAFF.STAFFTYPE IS '人员类型';
ALTER TABLE T_LIMS_STAFF ADD JOINEDDATE DATE;
COMMENT ON COLUMN T_LIMS_STAFF.JOINEDDATE IS '入职日期';
ALTER TABLE T_LIMS_STAFF ADD FORMALDATE DATE;
COMMENT ON COLUMN T_LIMS_STAFF.FORMALDATE IS '转正日期';
ALTER TABLE T_LIMS_STAFF ADD DEPARTDATE DATE;
COMMENT ON COLUMN T_LIMS_STAFF.DEPARTDATE IS '离职日期';
ALTER TABLE T_LIMS_STAFF ADD DUTY VARCHAR2(120)
COMMENT ON COLUMN T_LIMS_STAFF.DUTY IS '职务';
CALL INSERTI18N('T_LIMS_STAFF.STAFFTYPE','人员类型','人员类型','zh-CN','人员类型');
CALL INSERTI18N('T_LIMS_STAFF.JOINEDDATE','入职日期','入职日期','zh-CN','入职日期');
CALL INSERTI18N('T_LIMS_STAFF.FORMALDATE','转正日期','转正日期','zh-CN','转正日期');
CALL INSERTI18N('T_LIMS_STAFF.DEPARTDATE','离职日期','离职日期','zh-CN','离职日期');
CALL INSERTI18N('T_LIMS_STAFF.DUTY','人员职务','人员职务','zh-CN','人员职务');

INSERT INTO T_CORE_CODE_CATEGORY (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('staffType', '人员类型', 'sys');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (20230519001, '测试人员-已转正', '0', 1, 'staffType', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (20230519002, '储备人员-未转正', '1', 2, 'staffType', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (20230519003, '已离职', '2', 3, 'staffType', 0, 'admin', '系统管理员', '0');

CALL INSERTI18N('T_LIMS_TASK.HIGHLIMIT','短期质控上限','短期质控上限','zh-CN','短期质控上限');
CALL INSERTI18N('T_LIMS_TASK.LOWLIMIT','短期质控下限','短期质控下限','zh-CN','短期质控下限');

-- ----------------------------- 2023-05-19 add by liujie1111@sunwayworld.com--------------begin

-- 建表语句
CREATE TABLE T_LIMS_EQUIPT_CALIBRATION(
    ID NUMBER NOT NULL,
    EQUIPTID NUMBER NULL,
    LASTTIME DATE NULL,
    NEXTTIME DATE NULL,
    STATUS VARCHAR2(36)  NULL
 );
COMMENT ON TABLE T_LIMS_EQUIPT_CALIBRATION IS '设备校准';
COMMENT ON COLUMN T_LIMS_EQUIPT_CALIBRATION.ID IS '主键';
COMMENT ON COLUMN T_LIMS_EQUIPT_CALIBRATION.EQUIPTID IS '设备ID';
COMMENT ON COLUMN T_LIMS_EQUIPT_CALIBRATION.LASTTIME IS '上次校准时间';
COMMENT ON COLUMN T_LIMS_EQUIPT_CALIBRATION.NEXTTIME IS '下次校准时间';
COMMENT ON COLUMN T_LIMS_EQUIPT_CALIBRATION.STATUS IS '校准状态';

ALTER TABLE T_LIMS_EQUIPT_CALIBRATION ADD CONSTRAINT PK_LIMS_EQUIPT_CALIBRATION PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_EQUIPT_CALIBRATION.SERVICE_NAME', '设备校准', '设备校准', 'zh-CN', '设备校准');
CALL INSERTI18N('T_LIMS_EQUIPT_CALIBRATION.ID', '设备校准的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_EQUIPT_CALIBRATION.EQUIPTID', '设备校准的设备ID', '设备ID', 'zh-CN', '设备ID');
CALL INSERTI18N('T_LIMS_EQUIPT_CALIBRATION.LASTTIME', '设备校准的上次校准时间', '上次校准时间', 'zh-CN', '上次校准时间');
CALL INSERTI18N('T_LIMS_EQUIPT_CALIBRATION.NEXTTIME', '设备校准的下次校准时间', '下次校准时间', 'zh-CN', '下次校准时间');
CALL INSERTI18N('T_LIMS_EQUIPT_CALIBRATION.STATUS', '设备校准的校准状态', '校准状态', 'zh-CN', '校准状态');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.CALIBRATIONS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.CALIBRATIONS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.CALIBRATIONS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.CALIBRATIONS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.CALIBRATIONS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

-- 建表语句
CREATE TABLE T_LIMS_EQUIPT_MAINTENANCE(
    ID NUMBER NOT NULL,
    EQUIPTID NUMBER NULL,
    LASTTIME DATE NULL,
    NEXTTIME DATE NULL,
    STATUS VARCHAR2(36)  NULL
 );
COMMENT ON TABLE T_LIMS_EQUIPT_MAINTENANCE IS '设备维护';
COMMENT ON COLUMN T_LIMS_EQUIPT_MAINTENANCE.ID IS '主键';
COMMENT ON COLUMN T_LIMS_EQUIPT_MAINTENANCE.EQUIPTID IS '设备ID';
COMMENT ON COLUMN T_LIMS_EQUIPT_MAINTENANCE.LASTTIME IS '上次维护时间';
COMMENT ON COLUMN T_LIMS_EQUIPT_MAINTENANCE.NEXTTIME IS '下次维护时间';
COMMENT ON COLUMN T_LIMS_EQUIPT_MAINTENANCE.STATUS IS '维护状态';

ALTER TABLE T_LIMS_EQUIPT_MAINTENANCE ADD CONSTRAINT PK_LIMS_EQUIPT_MAINTENANCE PRIMARY KEY (ID);


CALL INSERTI18N('T_LIMS_EQUIPT_MAINTENANCE.SERVICE_NAME', '设备维护', '设备维护', 'zh-CN', '设备维护');
CALL INSERTI18N('T_LIMS_EQUIPT_MAINTENANCE.ID', '设备维护的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_EQUIPT_MAINTENANCE.EQUIPTID', '设备维护的设备ID', '设备ID', 'zh-CN', '设备ID');
CALL INSERTI18N('T_LIMS_EQUIPT_MAINTENANCE.LASTTIME', '设备维护的上次维护时间', '上次维护时间', 'zh-CN', '上次维护时间');
CALL INSERTI18N('T_LIMS_EQUIPT_MAINTENANCE.NEXTTIME', '设备维护的下次维护时间', '下次维护时间', 'zh-CN', '下次维护时间');
CALL INSERTI18N('T_LIMS_EQUIPT_MAINTENANCE.STATUS', '设备维护的维护状态', '维护状态', 'zh-CN', '维护状态');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.MAINTENANCES.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.MAINTENANCES.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.MAINTENANCES.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.MAINTENANCES.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.MAINTENANCES.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

ALTER TABLE T_LIMS_EQUIPT_PERIOD_PLAN ADD STATUS VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_EQUIPT_PERIOD_PLAN.STATUS IS '核查状态';
ALTER TABLE T_LIMS_EQUIPT_PERIOD_PLAN ADD LASTTIME DATE;
COMMENT ON COLUMN T_LIMS_EQUIPT_PERIOD_PLAN.LASTTIME IS '上次核查时间';
ALTER TABLE T_LIMS_EQUIPT_PERIOD_PLAN ADD NEXTTIME DATE;
COMMENT ON COLUMN T_LIMS_EQUIPT_PERIOD_PLAN.NEXTTIME IS '下次核查时间';


-- ----------------------------- 2023-05-19 add by liujie1111@sunwayworld.com------------end
---------------------------2023-05-19 add by liuwei begin---------------------------------------------------------------

ALTER TABLE T_CORE_EQUIPT_ACQ_CONFIG ADD UPLOADFLAG VARCHAR2(3);
COMMENT ON COLUMN T_CORE_EQUIPT_ACQ_CONFIG.UPLOADFLAG IS '是否上传附件';

CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.UPLOADFLAG', '是否上传附件', '是否上传附件', 'zh-CN', '是否上传附件');
commit;
------------------2023-05-22 add by liuwei begin------------------------------------------------------------
CALL INSERTI18N('T_LIMS_QUALITY_ITEM.MONITORUSER_NEW','被监督对象','被监督对象','zh-CN','被监督对象');
CALL INSERTI18N('T_LIMS_QUALITY_ITEM.EXECUTOR_NEW','监督员','监督员','zh-CN','监督员');
CALL INSERTI18N('BASEMODULE.QMS.QUALITYCONTROLS.TAB.ITEM_NEW','质量监控计划项目表','质量监控计划项目表','zh-CN','质量监控计划项目表');

ALTER TABLE T_LIMS_QUALITY_ITEM MODIFY MONITORUSERID VARCHAR2(270);
ALTER TABLE T_LIMS_QUALITY_ITEM MODIFY MONITORUSER VARCHAR2(399);
ALTER TABLE T_LIMS_QUALITY_ITEM MODIFY EXECUTORID VARCHAR2(270);
ALTER TABLE T_LIMS_QUALITY_ITEM MODIFY EXECUTOR VARCHAR2(399);

INSERT INTO T_CORE_ADMIN_CHOOSE_CONFIG VALUES(SEQ_CORE.NEXTVAL,'用户','用户','lims-mult-user','/secure/basemodule/trm/coreuser/page/choose/mult-user-list','80%');

ALTER TABLE T_LIMS_QUALITY_ITEM ADD AUDITFLAG VARCHAR2(3);
COMMENT ON COLUMN T_LIMS_QUALITY_ITEM.AUDITFLAG IS '审核状态标识 1 审核完成';

insert into T_CORE_MENU_EXT values(SEQ_CORE.nextval,'质量监控报告','T_LIMS_QUALITY_ITEM','audit_def','1',null);
------------------2023-05-22 add by liuwei end-----------------------------------------------------------

-- ----------------------------- 2023-05-23 add by liujie1111@sunwayworld.com------------begin
 INSERT INTO T_CORE_CODE_CATEGORY  (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('ctestName', 'c检测项目', 'sys');

INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522100, '激光粒度', 'ctestName', 10, '0', 'ADMIN', '系统管理员', '0', '激光粒度');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME,  LASTSUSPENDEDFLAG, CODE)
VALUES (20230522101, '比表面积', 'ctestName', 20, '0', 'ADMIN', '系统管理员',  '0', '比表面积');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME,LASTSUSPENDEDFLAG, CODE)
VALUES (20230522102, '振实密度', 'ctestName', 30, '0', 'ADMIN', '系统管理员', '0', '振实密度');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME,LASTSUSPENDEDFLAG, CODE)
VALUES (20230522103, '扣电克容量', 'ctestName', 40, '0', 'ADMIN', '系统管理员', '0', '扣电克容量');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME,LASTSUSPENDEDFLAG, CODE)
VALUES (20230522104, '固体水含量', 'ctestName', 50, '0', 'ADMIN', '系统管理员', '0', '固体水含量');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME,LASTSUSPENDEDFLAG, CODE)
VALUES (20230522105, '游离锂', 'ctestName', 60, '0', 'ADMIN', '系统管理员', '0', '游离锂');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME,LASTSUSPENDEDFLAG, CODE)
VALUES (20230522106, 'pH酸碱度', 'ctestName', 70, '0', 'ADMIN', '系统管理员', '0', 'pH酸碱度');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME,LASTSUSPENDEDFLAG, CODE)
VALUES (20230522107, 'XRD', 'ctestName', 80, '0', 'ADMIN', '系统管理员', '0', 'XRD');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME,LASTSUSPENDEDFLAG, CODE)
VALUES (20230522108, '粉末电阻率', 'ctestName', 90, '0', 'ADMIN', '系统管理员', '0', '粉末电阻率');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME,LASTSUSPENDEDFLAG, CODE)
VALUES (20230522109, '微观形貌', 'ctestName', 100, '0', 'ADMIN', '系统管理员', '0', '微观形貌');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME,LASTSUSPENDEDFLAG, CODE)
VALUES (20230522110, '大颗粒', 'ctestName', 110, '0', 'ADMIN', '系统管理员', '0', '大颗粒');

 INSERT INTO T_CORE_CODE_CATEGORY  (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('ctestQuota', 'c检测指标', 'sys');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522120, 'Dv2', 'ctestQuota', 1, '0', 'ADMIN', '系统管理员', '0', 'Dv2');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522111, 'Dv3', 'ctestQuota', 2, '0', 'ADMIN', '系统管理员', '0', 'Dv3');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522112, 'Dv10', 'ctestQuota', 3, '0', 'ADMIN', '系统管理员', '0', 'Dv10');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522113, 'Dv50', 'ctestQuota', 4, '0', 'ADMIN', '系统管理员', '0', 'Dv50');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522114, 'Dv90', 'ctestQuota', 5, '0', 'ADMIN', '系统管理员', '0', 'Dv90');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522115, 'Dv99', 'ctestQuota', 6, '0', 'ADMIN', '系统管理员', '0', 'Dv99');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522116, 'Dn10', 'ctestQuota', 7, '0', 'ADMIN', '系统管理员', '0', 'Dn10');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522117, '比表面积', 'ctestQuota', 8, '0', 'ADMIN', '系统管理员', '0', '比表面积');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522118, '振实密度', 'ctestQuota', 9, '0', 'ADMIN', '系统管理员', '0', '振实密度');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522119, '首次充电容量', 'ctestQuota', 10, '0', 'ADMIN', '系统管理员', '0', '首次充电容量');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522130, '首次放电容量', 'ctestQuota', 11, '0', 'ADMIN', '系统管理员', '0', '首次放电容量');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522121, '首次放电效率', 'ctestQuota', 12, '0', 'ADMIN', '系统管理员', '0', '首次放电效率');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522122, '固体水含量', 'ctestQuota', 13, '0', 'ADMIN', '系统管理员', '0', '固体水含量');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522123, 'pH酸碱度', 'ctestQuota', 14, '0', 'ADMIN', '系统管理员', '0', 'pH酸碱度');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522124, 'Li2CO3含量', 'ctestQuota', 15, '0', 'ADMIN', '系统管理员', '0', 'Li2CO3含量');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522125, 'LiOH含量', 'ctestQuota', 16, '0', 'ADMIN', '系统管理员', '0', 'LiOH含量');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522126, 'Li+含量', 'ctestQuota', 17, '0', 'ADMIN', '系统管理员', '0', 'Li+含量');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522127, 'XRD峰强比I(003)/I(104)', 'ctestQuota', 18, '0', 'ADMIN', '系统管理员', '0', 'XRD峰强比I(003)/I(104)');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522128, '粉末电阻率', 'ctestQuota', 19, '0', 'ADMIN', '系统管理员', '0', '粉末电阻率');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522129, '微观形貌', 'ctestQuota', 20, '0', 'ADMIN', '系统管理员', '0', '微观形貌');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522140, '大颗粒', 'ctestQuota', 21, '0', 'ADMIN', '系统管理员', '0', '大颗粒');

 INSERT INTO T_CORE_CODE_CATEGORY  (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('ctestUnit', 'c单位', 'sys');

INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522141, 'μm', 'ctestUnit', 10, '0', 'ADMIN', '系统管理员', '0', 'μm');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522142, 'm2/g', 'ctestUnit', 20, '0', 'ADMIN', '系统管理员', '0', 'm2/g');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522143, 'g/cm3', 'ctestUnit', 30, '0', 'ADMIN', '系统管理员', '0', 'g/cm3');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522144, 'mAh/g', 'ctestUnit', 40, '0', 'ADMIN', '系统管理员', '0', 'mAh/g');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522145, '%', 'ctestUnit', 50, '0', 'ADMIN', '系统管理员', '0', '%');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522146, 'μg/g', 'ctestUnit', 60, '0', 'ADMIN', '系统管理员', '0', 'μg/g');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (20230522147, 'Ω*cm', 'ctestUnit', 70, '0', 'ADMIN', '系统管理员', '0', 'Ω*cm');

INSERT INTO T_CORE_MENU (ID,MENUNAME,HREF,PARENTID,ORDERNO,MENUINITNAME,LASTUPDATEDBYID,LASTUPDATEDBYNAME,LASTUPDATEDTIME,ICON,TODOICON,I18NCODE) VALUES ('100140','短期质控','/secure/basemodule/business/test/taskSpcs/page/shortQualityControl','1001',40,'短期质控',NULL,NULL,NULL,'003.svg',NULL,NULL);

-- ----------------------------- 2023-05-23 add by liujie1111@sunwayworld.com------------end

------------------------------- 2023-05-23 add by liuwei -----------begin------------------------------
CALL INSERTI18N('T_LIMS_QUALITY_ITEM.ATTACHMENT.TITLE', '质量监控报告', '质量监控报告', 'zh-CN', '质量监控报告');
CALL INSERTI18N('T_LIMS_QUALITY_ITEM.DETAIL.TITLE', '质量监控计划项目', '质量监控计划项目', 'zh-CN', '质量监控计划项目');
CALL INSERTI18N('T_LIMS_QUALITY_ITEM.ATTACHMENT.DOWNLOAD', '模板下载', '模板下载', 'zh-CN', '模板下载');
------------------------------ 2023-05-23 add by liuwei ------------------end

----------------------------2023-05-24 add by liuwei --------------begin---------------------------
INSERT INTO t_core_schedule_task (ID, TASKNAME, TYPE, SERVICENAME, METHODNAME, REMARK, CREATEDBYID, CREATEDBYNAME,
                                  CREATEDTIME, CREATEDBYORGID, CREATEDBYORGNAME, IFEXECUTABLESERVICENAME,
                                  IFEXECUTABLEMETHODNAME)
VALUES ('fileClearScheduleService', '服务器文件定时清理任务', 'service', 'com.sunwayworld.basemodule.common.filedelete.FileDeleteSchedule',
        'startFileDeleteJob', null, null, null, null, null, null, null, null);

ALTER TABLE T_LIMS_ORDTASK_EXCEPTION ADD FILEID NUMBER;
COMMENT ON COLUMN T_LIMS_ORDTASK_EXCEPTION.FILEID IS '文件ID';
ALTER TABLE T_LIMS_ORDTASK_EXCEPTION ADD FILENAME VARCHAR2(120);
COMMENT ON COLUMN T_LIMS_ORDTASK_EXCEPTION.FILENAME IS '文件名称';
commit;
--------------------------2023-05-24 add by liuwei -----------------------------end---------------------
-----------------------2023-05-25 add by liuwei-----------------------------------------begin---------------------------
ALTER TABLE T_LIMS_INTERNAL_AUDIT_DETAIL ADD AUDITLEADERID NUMBER;
COMMENT ON COLUMN T_LIMS_INTERNAL_AUDIT_DETAIL.AUDITLEADERID IS '内审负责人ID';
ALTER TABLE T_LIMS_INTERNAL_AUDIT_DETAIL ADD AUDITLEADER VARCHAR2(120);
COMMENT ON COLUMN T_LIMS_INTERNAL_AUDIT_DETAIL.AUDITLEADER IS '内审负责人';

CALL INSERTI18N('T_LIMS_INTERNAL_AUDIT_DETAIL.AUDITLEADER', '内审负责人', '内审负责人', 'zh-CN', '内审负责人');
commit;


-- ----------------------------- 2023-05-25 add by dingjian------------begin

ALTER TABLE T_LIMS_TEST ADD FACTORY varchar2(36) NULL;
COMMENT ON COLUMN T_LIMS_TEST.FACTORY IS '工厂';
CALL INSERTI18N('T_LIMS_TEST.FACTORY', '工厂', '工厂', 'zh-CN', '工厂');

ALTER TABLE T_LIMS_MATERIAL_STORAGE ADD FACTORY varchar2(36) NULL;
COMMENT ON COLUMN T_LIMS_MATERIAL_STORAGE.FACTORY IS '工厂';
CALL INSERTI18N('T_LIMS_MATERIAL_STORAGE.FACTORY', '工厂', '工厂', 'zh-CN', '工厂');

UPDATE T_LIMS_TEST SET T_LIMS_TEST.FACTORY = '1000';
UPDATE T_LIMS_MATERIAL_STORAGE SET T_LIMS_MATERIAL_STORAGE.FACTORY = '1000';
-- ----------------------------- 2023-05-25 add by dingjian------------end
------------------------------------2023-05-25 add by liuwei-----------------------------------------------------------
CALL INSERTI18N('T_LIMS_INTERNAL_AUDIT_TEAM.LEADERFLAG', '是否审核小组长', '是否审核小组长', 'zh-CN', '是否审核小组长');

ALTER TABLE T_LIMS_INTERNAL_AUDIT_TEAM ADD AUDITTEAM VARCHAR2(33);
COMMENT ON COLUMN T_LIMS_INTERNAL_AUDIT_TEAM.AUDITTEAM IS '内审小组';

CALL INSERTI18N('T_LIMS_INTERNAL_AUDIT_DETAIL.AUDITTEAM', '内审小组', '内审小组', 'zh-CN', '内审小组');

ALTER TABLE T_LIMS_INTERNAL_AUDIT_PROCESS ADD PROCESSAUDITEE VARCHAR2(99);
COMMENT ON COLUMN T_LIMS_INTERNAL_AUDIT_PROCESS.PROCESSAUDITEE IS '被审对象';
ALTER TABLE T_LIMS_INTERNAL_AUDIT_PROCESS ADD STANDARDTERMS VARCHAR2(99);
COMMENT ON COLUMN T_LIMS_INTERNAL_AUDIT_PROCESS.STANDARDTERMS IS '涉及的标准条款';
ALTER TABLE T_LIMS_INTERNAL_AUDIT_PROCESS ADD AUDITFOCUS VARCHAR2(99);
COMMENT ON COLUMN T_LIMS_INTERNAL_AUDIT_PROCESS.AUDITFOCUS IS '审核侧重点';
ALTER TABLE T_LIMS_INTERNAL_AUDIT_PROCESS ADD REMARK VARCHAR2(198);
COMMENT ON COLUMN T_LIMS_INTERNAL_AUDIT_PROCESS.REMARK IS '备注';

CALL INSERTI18N('T_LIMS_INTERNAL_AUDIT_PROCESS.PROCESSAUDITEE', '被审对象', '被审对象', 'zh-CN', '被审对象');
CALL INSERTI18N('T_LIMS_INTERNAL_AUDIT_PROCESS.STANDARDTERMS', '涉及的标准条款', '涉及的标准条款', 'zh-CN', '涉及的标准条款');
CALL INSERTI18N('T_LIMS_INTERNAL_AUDIT_PROCESS.AUDITFOCUS', '审核侧重点', '审核侧重点', 'zh-CN', '审核侧重点');
CALL INSERTI18N('T_LIMS_INTERNAL_AUDIT_PROCESS.REMARK', '备注', '备注', 'zh-CN', '备注');
CALL INSERTI18N('T_LIMS_INTERNAL_AUDIT_PROCESS.PROCESSDATE', '审核时间', '审核时间', 'zh-CN', '审核时间');

CALL INSERTI18N('T_LIMS_INTERNAL_AUDIT_MONTH.PARTICIPANTS', '受审对象', '受审对象', 'zh-CN', '受审对象');
insert into T_CORE_MENU
values(SEQ_CORE.nextval,'内审报告审批','/secure/basemodule/qms/internalaudits/page/month/report-audit-list?bpmn_statusCode=ReportAudit','7002','12','内审报告审批',null,null,null,'006.svg',null,null);
-------------------------2023-05-25 add by liuwei end------------------------------------------------------
------------------------2023-05-26 add by liuwei begin----------------------------------------------------------
ALTER TABLE T_LIMS_COMPARISON_ITEM ADD AUDITFLAG VARCHAR2(3);
COMMENT ON COLUMN T_LIMS_COMPARISON_ITEM.AUDITFLAG IS '审核状态标识 1 审核完成';

insert into T_CORE_MENU_EXT values(SEQ_CORE.nextval,'比对验证报告','T_LIMS_COMPARISON_ITEM','audit_def','1',null);

ALTER TABLE T_LIMS_SECRECY_CONTENT ADD JDVISOR VARCHAR2(198);
COMMENT ON COLUMN T_LIMS_SECRECY_CONTENT.JDVISOR IS '监督员';
ALTER TABLE T_LIMS_SECRECY_CONTENT ADD JDVISORID VARCHAR2(99);
COMMENT ON COLUMN T_LIMS_SECRECY_CONTENT.JDVISORID IS '监督员ID';
ALTER TABLE T_LIMS_SECRECY_CONTENT ADD SECRECYOBJ VARCHAR2(99);
COMMENT ON COLUMN T_LIMS_SECRECY_CONTENT.SECRECYOBJ IS '保密性检测对象';

CALL INSERTI18N('T_LIMS_SECRECY_CONTENT.JDVISOR', '监督员', '监督员', 'zh-CN', '监督员');
CALL INSERTI18N('T_LIMS_SECRECY_CONTENT.SECRECYOBJ', '保密性检测对象', '保密性检测对象', 'zh-CN', '保密性检测对象');

ALTER TABLE T_LIMS_FAIR_RECORD ADD CHECKOBJ VARCHAR2(99);
COMMENT ON COLUMN T_LIMS_FAIR_RECORD.CHECKOBJ IS '检查对象';
CALL INSERTI18N('T_LIMS_FAIR_RECORD.CHECKOBJ', '检查对象', '检查对象', 'zh-CN', '检查对象');
commit;
------------------------2023-05-26 add by liuwei end------------------------------------------------------------

-- ----------------------------- 2023-05-26 add by liujie1111@sunwayworld.com------------begin
INSERT INTO T_CORE_MENU (ID,MENUNAME,HREF,PARENTID,ORDERNO,MENUINITNAME,LASTUPDATEDBYID,LASTUPDATEDBYNAME,LASTUPDATEDTIME,ICON,TODOICON,I18NCODE) VALUES ('100140','短期质控','/secure/basemodule/business/test/taskSpcs/page/shortQualityControl','1001',40,'短期质控',NULL,NULL,NULL,'003.svg',NULL,NULL);

CALL INSERTI18N('BASEMODULE.BUSINESS.TEST.TASK.VALID.SAMPLERECIVE', '该样品仍在加急/软包审核流程中，无法接收样品', '该样品仍在加急/软包审核流程中，无法接收样品', 'zh-CN', '该样品仍在加急/软包审核流程中，无法接收样品');

-- ----------------------------- 2023-05-26 add by liujie1111@sunwayworld.com------------end
--------------------------------2023-05-29 add by liuwei-----------------begin-----------------------------------------
update T_CORE_CODE set code='管理风险' where CODECATEGORYID='riskType' and codename='管理风险';
update T_LIMS_RISK set riskType='管理风险' where RISKTYPE <> '管理风险';
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (SEQ_CORE.nextval, '检验前', 'riskType', 2, '0', 'admin', '系统管理员', '0', '检验前');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (SEQ_CORE.nextval, '检验中', 'riskType', 3, '0', 'admin', '系统管理员', '0', '检验中');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (SEQ_CORE.nextval, '检验后', 'riskType', 4, '0', 'admin', '系统管理员', '0', '检验后');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (SEQ_CORE.nextval, '管理体系', 'riskType', 5, '0', 'admin', '系统管理员', '0', '管理体系');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (SEQ_CORE.nextval, '公正性&保密性', 'riskType', 6, '0', 'admin', '系统管理员', '0', '公正性&保密性');

CALL INSERTI18N('T_LIMS_REVIEW.REVIEWGOAL', '评审范围', '评审范围', 'zh-CN', '评审范围');
CALL INSERTI18N('T_LIMS_REVIEW.TABTITLE.FILE', '管理评审材料汇报表', '管理评审材料汇报表', 'zh-CN', '管理评审材料汇报表');


ALTER TABLE T_LIMS_UNCONFORMANCE ADD INCONFORMITYRULE VARCHAR2(99);
COMMENT ON COLUMN T_LIMS_UNCONFORMANCE.INCONFORMITYRULE IS '不符合规定';
CALL INSERTI18N('T_LIMS_UNCONFORMANCE.INCONFORMITYRULE', '不符合规定', '不符合规定', 'zh-CN', '不符合规定');

ALTER TABLE T_LIMS_UNCONFORMANCE ADD DISPOSEOTHER VARCHAR2(99);
COMMENT ON COLUMN T_LIMS_UNCONFORMANCE.DISPOSEOTHER IS '其他';
CALL INSERTI18N('T_LIMS_UNCONFORMANCE.DISPOSEOTHER', '其他', '其他', 'zh-CN', '其他');

INSERT INTO T_CORE_CODE_CATEGORY  (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('conclusion', '结论', 'sys');

INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (SEQ_CORE.nextval, '不符合项', 'conclusion', 1, '0', 'admin', '系统管理员', '0', '不符合项');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (SEQ_CORE.nextval, '观察项', 'conclusion', 2, '0', 'admin', '系统管理员', '0', '观察项');
INSERT INTO T_CORE_CODE(ID, CODENAME, CODECATEGORYID, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG, CODE)
VALUES (SEQ_CORE.nextval, '观察到的情况应引起被评审方注意', 'conclusion', 3, '0', 'admin', '系统管理员', '0', '观察到的情况应引起被评审方注意');

CALL INSERTI18N('T_LIMS_UNCONFORMANCE.FINISHRECTITYPLANTIME', '计划完成时间', '计划完成时间', 'zh-CN', '计划完成时间');
CALL INSERTI18N('T_LIMS_UNCONFORMANCE.TRACKPRINCIPAL', '整改负责人', '整改负责人', 'zh-CN', '整改负责人');
CALL INSERTI18N('T_LIMS_UNCONFORMANCE.TRACKPRINCIPALID', '整改负责人ID', '整改负责人ID', 'zh-CN', '整改负责人ID');

ALTER TABLE T_LIMS_COMPLAINT ADD QUALITYPRINCIPALJUDGE VARCHAR2(198);
COMMENT ON COLUMN T_LIMS_COMPLAINT.QUALITYPRINCIPALJUDGE IS '质量负责人判定';
CALL INSERTI18N('T_LIMS_COMPLAINT.QUALITYPRINCIPALJUDGE', '质量负责人判定', '质量负责人判定', 'zh-CN', '质量负责人判定');

CREATE TABLE T_LIMS_BORROW_FILE(
   ID NUMBER NOT NULL,
   DOCNAME VARCHAR2(30)  NULL,
   DOCCODE VARCHAR2(30)  NULL,
   OTHERS VARCHAR2(99)  NULL,
   NUM VARCHAR2(30)  NULL,
   REASON VARCHAR2(99)  NULL,
   CREATEDBYID VARCHAR2(36)  NULL,
   CREATEDBYNAME VARCHAR2(60)  NULL,
   CREATEDTIME DATE NULL,
   CREATEDBYORGID VARCHAR2(36)  NULL,
   CREATEDBYORGNAME VARCHAR2(120)  NULL,
   ORGID VARCHAR2(36)  NULL,
   ORGNAME VARCHAR2(120)  NULL
);
COMMENT ON TABLE T_LIMS_BORROW_FILE IS '文件借阅管理';
COMMENT ON COLUMN T_LIMS_BORROW_FILE.ID IS '主键';
COMMENT ON COLUMN T_LIMS_BORROW_FILE.DOCNAME IS '文件名称';
COMMENT ON COLUMN T_LIMS_BORROW_FILE.DOCCODE IS '文件编号';
COMMENT ON COLUMN T_LIMS_BORROW_FILE.OTHERS IS '文件其他信息';
COMMENT ON COLUMN T_LIMS_BORROW_FILE.NUM IS '数量';
COMMENT ON COLUMN T_LIMS_BORROW_FILE.REASON IS '借阅原因';
COMMENT ON COLUMN T_LIMS_BORROW_FILE.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_BORROW_FILE.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_BORROW_FILE.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_BORROW_FILE.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_BORROW_FILE.CREATEDBYORGNAME IS '制单人单位名称';
COMMENT ON COLUMN T_LIMS_BORROW_FILE.ORGID IS '组织ID';
COMMENT ON COLUMN T_LIMS_BORROW_FILE.ORGNAME IS '组织名称';

ALTER TABLE T_LIMS_BORROW_FILE ADD CONSTRAINT PK_LIMS_BORROW_FILE PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_BORROW_FILE.SERVICE_NAME', '文件借阅管理', '文件借阅管理', 'zh-CN', '文件借阅管理');
CALL INSERTI18N('T_LIMS_BORROW_FILE.DOCNAME', '文件借阅管理的文件名称', '文件名称', 'zh-CN', '文件名称');
CALL INSERTI18N('T_LIMS_BORROW_FILE.DOCCODE', '文件借阅管理的文件编号', '文件编号', 'zh-CN', '文件编号');
CALL INSERTI18N('T_LIMS_BORROW_FILE.OTHERS', '文件借阅管理的文件其他信息', '文件其他信息', 'zh-CN', '文件其他信息');
CALL INSERTI18N('T_LIMS_BORROW_FILE.NUM', '文件借阅管理的数量', '数量', 'zh-CN', '数量');
CALL INSERTI18N('T_LIMS_BORROW_FILE.REASON', '文件借阅管理的借阅原因', '借阅原因', 'zh-CN', '借阅原因');
CALL INSERTI18N('T_LIMS_BORROW_FILE.CREATEDBYID', '文件借阅管理的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_BORROW_FILE.CREATEDBYNAME', '文件借阅管理的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_LIMS_BORROW_FILE.CREATEDTIME', '文件借阅管理的制单时间', '制单时间', 'zh-CN', '制单时间');
CALL INSERTI18N('T_LIMS_BORROW_FILE.CREATEDBYORGID', '文件借阅管理的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_BORROW_FILE.CREATEDBYORGNAME', '文件借阅管理的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');
CALL INSERTI18N('T_LIMS_BORROW_FILE.TABTITLE.FILE', '被借阅文件', '被借阅文件', 'zh-CN', '被借阅文件');
---菜单
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('20230529001', '文件借阅管理', null, '70', '7023', '013.svg', null);
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('20230529002', '文件借阅记录', '/secure/basemodule/qms/borrow-files/page/edit-list', '20230529001', '1', '018.svg', '文件借阅记录');
--------------------------------2023-05-29 add by liuwei-----------------end-------------------------------------------

-- ----------------------------- 2023-05-27 add by liujie1111@sunwayworld.com------------begin
ALTER TABLE T_LIMS_PROJECT_DIFFERENTIATION ADD TESTID NUMBER;
COMMENT ON COLUMN T_LIMS_PROJECT_DIFFERENTIATION.TESTID IS '检测项目ID';

ALTER TABLE T_LIMS_PROJECT_DIFFERENTIATION ADD CRITERIAID NUMBER;
COMMENT ON COLUMN T_LIMS_PROJECT_DIFFERENTIATION.CRITERIAID IS '判异准则ID';

INSERT INTO T_CORE_MENU (ID,MENUNAME,HREF,PARENTID,ORDERNO,MENUINITNAME,LASTUPDATEDBYID,LASTUPDATEDBYNAME,LASTUPDATEDTIME,ICON,TODOICON,I18NCODE) VALUES ('100150','长期质控','/secure/basemodule/business/test/taskSpcs/page/longQualityControl','1001',50,'长期质控',NULL,NULL,NULL,'004.svg',NULL,NULL);


-- ----------------------------- 2023-05-27 add by liujie1111@sunwayworld.com------------begin

-------------------------------- 2023-05-30 add by liuwei begin-----------------------------------
alter table T_LIMS_ITEM_APPLY MODIFY ITEMBUDGET varchar2(30);

ALTER TABLE T_LIMS_ITEM_APPLY ADD ITEMTEAM VARCHAR2(99);
COMMENT ON COLUMN T_LIMS_ITEM_APPLY.ITEMTEAM IS '项目成员';
CALL INSERTI18N('T_LIMS_ITEM_APPLY.ITEMTEAM', '项目成员', '项目成员', 'zh-CN', '项目成员');

ALTER TABLE T_LIMS_ITEM_APPLY ADD ITEMCONCLUSION VARCHAR2(398);
COMMENT ON COLUMN T_LIMS_ITEM_APPLY.ITEMCONCLUSION IS '项目结论';
CALL INSERTI18N('T_LIMS_ITEM_APPLY.ITEMCONCLUSION', '项目结论', '项目结论', 'zh-CN', '项目结论');

CREATE TABLE T_LIMS_ITEM_RESOURCECONFIG(
    ID NUMBER NOT NULL,
    ITEMAPPLYID NUMBER NULL,
    USERID VARCHAR2(99)  NULL,
    USERNAME VARCHAR2(198)  NULL,
    EQUIP VARCHAR2(99)  NULL,
    REAGENT VARCHAR2(99)  NULL,
    ENVIRONMENT VARCHAR2(99)  NULL,
    CONCLUSION VARCHAR2(99)  NULL,
    ORGID VARCHAR2(60)  NULL,
    ORGNAME VARCHAR2(90)  NULL,
    CREATEDBYID VARCHAR2(36)  NULL,
    CREATEDBYNAME VARCHAR2(60)  NULL,
    CREATEDTIME DATE NULL,
    CREATEDBYORGID VARCHAR2(36)  NULL,
    CREATEDBYORGNAME VARCHAR2(270)  NULL
 );
COMMENT ON TABLE T_LIMS_ITEM_RESOURCECONFIG IS '项目资源配置';
COMMENT ON COLUMN T_LIMS_ITEM_RESOURCECONFIG.ID IS '主键';
COMMENT ON COLUMN T_LIMS_ITEM_RESOURCECONFIG.ITEMAPPLYID IS '申请ID';
COMMENT ON COLUMN T_LIMS_ITEM_RESOURCECONFIG.USERID IS '人员ID';
COMMENT ON COLUMN T_LIMS_ITEM_RESOURCECONFIG.USERNAME IS '人员';
COMMENT ON COLUMN T_LIMS_ITEM_RESOURCECONFIG.EQUIP IS '设备';
COMMENT ON COLUMN T_LIMS_ITEM_RESOURCECONFIG.REAGENT IS '试剂';
COMMENT ON COLUMN T_LIMS_ITEM_RESOURCECONFIG.ENVIRONMENT IS '环境';
COMMENT ON COLUMN T_LIMS_ITEM_RESOURCECONFIG.CONCLUSION IS '结论';
COMMENT ON COLUMN T_LIMS_ITEM_RESOURCECONFIG.ORGID IS '组织ID';
COMMENT ON COLUMN T_LIMS_ITEM_RESOURCECONFIG.ORGNAME IS '组织名称';
COMMENT ON COLUMN T_LIMS_ITEM_RESOURCECONFIG.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_ITEM_RESOURCECONFIG.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_ITEM_RESOURCECONFIG.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_ITEM_RESOURCECONFIG.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_ITEM_RESOURCECONFIG.CREATEDBYORGNAME IS '制单人单位名称';

ALTER TABLE T_LIMS_ITEM_RESOURCECONFIG ADD CONSTRAINT PK_LIMS_ITEM_RESOURCECONFIG PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_ITEM_RESOURCECONFIG.SERVICE_NAME', '资源配置情况', '资源配置情况', 'zh-CN', '资源配置情况');
CALL INSERTI18N('T_LIMS_ITEM_RESOURCECONFIG.USERNAME', '项目资源配置的人员', '人员', 'zh-CN', '人员');
CALL INSERTI18N('T_LIMS_ITEM_RESOURCECONFIG.EQUIP', '项目资源配置的设备', '设备', 'zh-CN', '设备');
CALL INSERTI18N('T_LIMS_ITEM_RESOURCECONFIG.REAGENT', '项目资源配置的试剂', '试剂', 'zh-CN', '试剂');
CALL INSERTI18N('T_LIMS_ITEM_RESOURCECONFIG.ENVIRONMENT', '项目资源配置的环境', '环境', 'zh-CN', '环境');
CALL INSERTI18N('T_LIMS_ITEM_RESOURCECONFIG.CONCLUSION', '项目资源配置的结论', '结论', 'zh-CN', '结论');

CREATE TABLE T_LIMS_REVIEWRESULT(
    ID NUMBER NOT NULL,
    ITEMAPPLYID NUMBER NULL,
    ADVISE VARCHAR2(99)  NULL,
    CONCLUSION VARCHAR2(99)  NULL,
    REVIEWERID VARCHAR2(99)  NULL,
    REVIEWER VARCHAR2(198)  NULL,
    REVIEWTIME DATE NULL,
    ORGID VARCHAR2(60)  NULL,
    ORGNAME VARCHAR2(90)  NULL,
    CREATEDBYID VARCHAR2(36)  NULL,
    CREATEDBYNAME VARCHAR2(60)  NULL,
    CREATEDTIME DATE NULL,
    CREATEDBYORGID VARCHAR2(36)  NULL,
    CREATEDBYORGNAME VARCHAR2(270)  NULL
 );
COMMENT ON TABLE T_LIMS_REVIEWRESULT IS '项目评审结果';
COMMENT ON COLUMN T_LIMS_REVIEWRESULT.ID IS '主键';
COMMENT ON COLUMN T_LIMS_REVIEWRESULT.ITEMAPPLYID IS '申请ID';
COMMENT ON COLUMN T_LIMS_REVIEWRESULT.ADVISE IS '建议';
COMMENT ON COLUMN T_LIMS_REVIEWRESULT.CONCLUSION IS '结论';
COMMENT ON COLUMN T_LIMS_REVIEWRESULT.REVIEWERID IS '评审人ID';
COMMENT ON COLUMN T_LIMS_REVIEWRESULT.REVIEWER IS '评审人';
COMMENT ON COLUMN T_LIMS_REVIEWRESULT.REVIEWTIME IS '评审日期';
COMMENT ON COLUMN T_LIMS_REVIEWRESULT.ORGID IS '组织ID';
COMMENT ON COLUMN T_LIMS_REVIEWRESULT.ORGNAME IS '组织名称';
COMMENT ON COLUMN T_LIMS_REVIEWRESULT.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_REVIEWRESULT.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_REVIEWRESULT.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_REVIEWRESULT.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_REVIEWRESULT.CREATEDBYORGNAME IS '制单人单位名称';

ALTER TABLE T_LIMS_REVIEWRESULT ADD CONSTRAINT PK_LIMS_REVIEWRESULT PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_REVIEWRESULT.SERVICE_NAME', '评审结果', '评审结果', 'zh-CN', '评审结果');
CALL INSERTI18N('T_LIMS_REVIEWRESULT.ADVISE', '项目评审结果的建议', '建议', 'zh-CN', '建议');
CALL INSERTI18N('T_LIMS_REVIEWRESULT.CONCLUSION', '项目评审结果的结论', '结论', 'zh-CN', '结论');
CALL INSERTI18N('T_LIMS_REVIEWRESULT.REVIEWER', '项目评审结果的评审人', '评审人', 'zh-CN', '评审人');
CALL INSERTI18N('T_LIMS_REVIEWRESULT.REVIEWTIME', '项目评审结果的评审日期', '评审日期', 'zh-CN', '评审日期');
-------------------------------- 2023-05-30 add by liuwei end-------------------------------------


-- ----------------------------- 2023-05-31 add by liujie1111@sunwayworld.com------------begin

INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,I18NCODE) VALUES (2022111017084,'excel采集','fileAcqAnalyseWay',NULL,6,0,'admin','系统管理员',NULL,'0',NULL,NULL,NULL,'excel',NULL);
-- ----------------------------- 2023-05-31 add by liujie1111@sunwayworld.com------------end


-- ----------------------------- 2023-06-01 add by liujie1111@sunwayworld.com--------------begin

-- 建表语句
CREATE TABLE T_LIMS_PDFTEST(
    ID NUMBER NOT NULL,
    TESTID NUMBER NULL,
    TESTNAME VARCHAR2(120)  NULL
 );
COMMENT ON TABLE T_LIMS_PDFTEST IS 'pdf解析项目';
COMMENT ON COLUMN T_LIMS_PDFTEST.ID IS '主键';
COMMENT ON COLUMN T_LIMS_PDFTEST.TESTID IS '检测项目ID';
COMMENT ON COLUMN T_LIMS_PDFTEST.TESTNAME IS '检测项目名称';

ALTER TABLE T_LIMS_PDFTEST ADD CONSTRAINT PK_LIMS_PDFTEST PRIMARY KEY (ID);



CALL INSERTI18N('T_LIMS_PDFTEST.SERVICE_NAME', 'pdf解析项目', 'pdf解析项目', 'zh-CN', 'pdf解析项目');
CALL INSERTI18N('T_LIMS_PDFTEST.ID', 'pdf解析项目的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_PDFTEST.TESTID', 'pdf解析项目的检测项目ID', '检测项目ID', 'zh-CN', '检测项目ID');
CALL INSERTI18N('T_LIMS_PDFTEST.TESTNAME', 'pdf解析项目的检测项目名称', '检测项目名称', 'zh-CN', '检测项目名称');
CALL INSERTI18N('BASEMODULE.BASEDATA.PDFTESTS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BASEDATA.PDFTESTS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BASEDATA.PDFTESTS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BASEDATA.PDFTESTS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BASEDATA.PDFTESTS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

-- 创建菜单语句
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('20230601001', 'pdf解析项目', '/secure/basemodule/basedata/pdftests/page/edit-list', '20220902008', '3', '010.svg', 'pdf解析项目');



ALTER TABLE T_LIMS_LOCATION ADD WAREHOUSE VARCHAR2(120);
COMMENT ON COLUMN T_LIMS_LOCATION.WAREHOUSE IS '仓库';

CALL INSERTI18N('T_LIMS_LOCATION.WAREHOUSE', '仓库', '仓库', 'zh-CN', '仓库');

CALL INSERTI18N('T_LIMS_CONSUMABLE.BASE', '实验室', '实验室', 'zh-CN', '实验室');

ALTER TABLE T_LIMS_CONSUMABLE ADD BASE VARCHAR2(120);
COMMENT ON COLUMN T_LIMS_CONSUMABLE.BASE IS '实验室';

ALTER TABLE T_LIMS_CONSUMABLE_APPLY_DETAIL ADD BASE VARCHAR2(120);
COMMENT ON COLUMN T_LIMS_CONSUMABLE_APPLY_DETAIL.BASE IS '实验室';
ALTER TABLE _LIMS_CONSUMABLE_APPLY_DETAIL ADD LOCATION VARCHAR2(120);
COMMENT ON COLUMN T_LIMS_CONSUMABLE_APPLY_DETAIL.LOCATION IS '位置';


-- ----------------------------- 2023-06-01 add by liujie1111@sunwayworld.com------------end

-----------------------2023-06-01 add by liuwei begin-------------------------------------------------------------------
INSERT INTO T_CORE_MENU_EXT (ID, SERVICENAME, TABLENAME, TYPE, ENABLE)
VALUES (SEQ_CORE.NEXTVAL, ' 文件借阅管理','T_LIMS_BORROW_FILE', 'audit_def', '1');

ALTER TABLE T_LIMS_BORROW_FILE ADD PROCESSSTATUS VARCHAR2(18);
COMMENT ON COLUMN T_LIMS_BORROW_FILE.PROCESSSTATUS IS '状态';

CALL INSERTI18N('T_LIMS_INTERNAL_AUDIT_PLAN.INNER.ATTACHMENT', '内审审核表', '内审审核表', 'zh-CN', '内审审核表');

insert into T_CORE_CODE(ID,CODENAME,CODECATEGORYID,ORDERNO,VERSION,LASTSUSPENDEDFLAG,CODE)
values(SEQ_CORE.nextval,'word采集','fileAcqAnalyseWay','5','0','0','word');
commit;
----------------------2023-06-01 add by liuwei end----------------------------------------------------------------------


-- ----------------------------- 2023-06-05 add by liujie1111--------------begin
CALL INSERTI18N('T_LIMS_TASK.HIGHLIMIT','短期质控上限','短期质控上限','zh-CN','短期质控上限');

ALTER TABLE T_LIMS_TASK ADD CLIENTUSERID VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_TASK.CLIENTUSERID IS '委托申请人';

-- ----------------------------- 2023-06-05 add by liujie1111--------------end
---------------2023-06-05 add by liuwei begin---------------------------------------------------------------------------
ALTER TABLE T_CORE_EQUIPT_ACQ_CONFIG ADD APPOINTFILENAME VARCHAR2(12);
COMMENT ON COLUMN T_CORE_EQUIPT_ACQ_CONFIG.APPOINTFILENAME IS '是否匹配文件名称';
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.APPOINTFILENAME', '是否匹配文件名称', '是否匹配文件名称', 'zh-CN', '是否匹配文件名称');

ALTER TABLE T_LIMS_SUPERVISION_ITEM ADD AUDITFLAG VARCHAR2(12);
COMMENT ON COLUMN T_LIMS_SUPERVISION_ITEM.AUDITFLAG IS '审核标识';
-----------------2023-06-05 add by liuwei end------------------------------------


-- ----------------------------- 2023-06-07 add by liujie1111--------------begin

INSERT INTO T_CORE_SCHEDULE_TASK (ID, TASKNAME, SERVICENAME, METHODNAME, TYPE)
VALUES ('cancelOverTimeFolder', '定时取消超期收样委托单', 'com.sunwayworld.basemodule.business.test.folder.service.impl.LimsFolderServiceImpl', 'cancelOverTimeFolder', 'service')

COMMENT ON COLUMN T_LIMS_TM_ANALYST.UNIT IS '固体单位';
ALTER TABLE T_LIMS_TM_ANALYST ADD GASUNIT VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_TM_ANALYST.GASUNIT IS '气体单位';
ALTER TABLE T_LIMS_TM_ANALYST ADD LIQUIDUNIT VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_TM_ANALYST.LIQUIDUNIT IS '液体单位';

CALL INSERTI18N('T_LIMS_TM_ANALYST.GASUNIT', '分析项配置的单位', '气体单位', 'zh-CN', '气体单位');

CALL INSERTI18N('T_LIMS_TM_ANALYST.LIQUIDUNIT', '分析项配置的单位', '液体单位', 'zh-CN', '液体单位');
-- ----------------------------- 2023-06-07 add by liujie1111--------------end

-- ----------------------------- 2023-06-08 add by liujie1111--------------begin

INSERT INTO T_CORE_MENU (ID,MENUNAME,HREF,PARENTID,ORDERNO,MENUINITNAME,LASTUPDATEDBYID,LASTUPDATEDBYNAME,LASTUPDATEDTIME,ICON,TODOICON,I18NCODE) VALUES ('100142','标样质控','/secure/basemodule/business/test/taskSpcs/page/standardQualityControl','1001',50,'标样质控',NULL,NULL,NULL,'004.svg',NULL,NULL);

UPDATE T_CORE_SCHEDULE_TASK  SET SERVICENAME = 'com.sunwayworld.basemodule.business.test.folder.service.LimsFolderService' WHERE ID = 'cancelOverTimeFolder'

INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,I18NCODE) VALUES (2022111017085,'pdf采集','fileAcqAnalyseWay',NULL,4,0,'admin','系统管理员',NULL,'0',NULL,NULL,NULL,'pdf',NULL);

-- ----------------------------- 2023-06-08 add by liujie1111--------------end

-- ----------------------------- 2023-06-02 add by liujie1111--------------begin
ALTER TABLE T_LIMS_TASK ADD IFDISCRIMINATE VARCHAR2(12);
COMMENT ON COLUMN T_LIMS_TASK.IFDISCRIMINATE IS '是否判异，默认0否，是为1';
-- ----------------------------- 2023-06-02 add by liujie1111--------------end

-- ----------------------------- 2023-06-13 add by liujie1111--------------begin
 INSERT INTO T_CORE_CODE_CATEGORY (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('equiptType', '设备类型类型', 'sys');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (20230613001, '环境试验箱 EVN', '环境试验箱 EVN', 1, 'equiptType', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (20230613002, '机械试验设备 MEC', '机械试验设备 MEC', 2, 'equiptType', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (20230613003, '材料分析试验设备 MAT', '材料分析试验设备 MAT', 3, 'equiptType', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (20230613004, '电磁/电气试验设备 EVN', '电磁/电气试验设备 EVN', 4, 'equiptType', 0, 'admin', '系统管理员', '0');
-- ----------------------------- 2023-06-13 add by liujie1111--------------end

-- ----------------------------- 2023-06-14 add by liujie1111--------------begin
INSERT INTO T_CORE_SCHEDULE_TASK (ID, TASKNAME, SERVICENAME, METHODNAME, TYPE)
VALUES ('scheduleClose', '定时关闭文件采集流', 'com.sunwayworld.basemodule.common.eptstorage.acqconfig.utils.DataAcpManualUtils', 'scheduleClose', 'service')
-- ----------------------------- 2023-06-14 add by liujie1111--------------begin
-- ----------------------------- 2023-06-19 add by liujie1111--------------begin
ALTER TABLE T_LIMS_CONSUMABLEDESCRIBE MODIFY "SCALE" VARCHAR2(240);
-- ----------------------------- 2023-06-19 add by liujie1111--------------end

-- ----------------------------- 2023-06-20 add by liujie1111--------------begin
ALTER TABLE T_LIMS_TASK ADD DISCRIMINATEDESC VARCHAR2(120);
COMMENT ON COLUMN T_LIMS_TASK.DISCRIMINATEDESC IS '判异简述';
-- ----------------------------- 2023-06-20 add by liujie1111--------------end
-- ----------------------------- 2023-06-21 add by liujie1111--------------begin
INSERT INTO T_CORE_CONSTANT(ID, CONSTANTVALUE, CONSTANTDESC, CLASSFICATION, SHOW, LASTUPDATEDTIME, CREATEDTIME, CREATEDBYID, CREATEDBYNAME, LASTUPDATEDBYID, LASTUPDATEDBYNAME, VERSION)
VALUES('message', '"-"表示取消测试；蓝色背景表示未审核的数据；无背景的表示审核通过的数据', '提示消息', '系统', '1', NULL, NULL, NULL, NULL, NULL, NULL, 0);
-- ----------------------------- 2023-06-21 add by liujie1111--------------end

-- ----------------------------- 2023-06-27 add by liujie1111--------------begin
ALTER TABLE T_LIMS_TASK ADD IFOVERLIMIT VARCHAR2(12);
COMMENT ON COLUMN T_LIMS_TASK.IFOVERLIMIT IS '是否超限，默认0否，是为1';
-- ----------------------------- 2023-06-27 add by liujie1111--------------end
INSERT INTO LIMS_BP_TEST.T_CORE_MENU
(ID, MENUNAME, HREF, PARENTID, ORDERNO, MENUINITNAME, LASTUPDATEDBYID, LASTUPDATEDBYNAME, LASTUPDATEDTIME, ICON, TODOICON, I18NCODE)
VALUES('20230629001', '内审报告审核', '/secure/basemodule/qms/internalaudits/page/month/report-audit-list?bpmn_statusCode=ReportApprove', '7002', 12, '新建节点', NULL, NULL, NULL, '022.svg', '026.png', NULL);
-- ----------------------------- 2023-06-29 add by jiangjl--------------end

-- ----------------------------- 2023-06-30 add by liujie1111@sunwayworld.com--------------begin

-- 建表语句
CREATE TABLE T_LIMS_CTEST(
    ID NUMBER NOT NULL,
    CTESTNAME VARCHAR2(120)  NULL,
    CTESTQUOTA VARCHAR2(120)  NULL
 );
COMMENT ON TABLE T_LIMS_CTEST IS 'C项目';
COMMENT ON COLUMN T_LIMS_CTEST.ID IS '主键';
COMMENT ON COLUMN T_LIMS_CTEST.CTESTNAME IS 'c项目名称';
COMMENT ON COLUMN T_LIMS_CTEST.CTESTQUOTA IS 'c项目指标';

ALTER TABLE T_LIMS_CTEST ADD CONSTRAINT PK_LIMS_CTEST PRIMARY KEY (ID);


INSERT INTO T_CORE_AUDIT_CONFIG (ID, NAME, CATEGORY, AUDITABLE)
VALUES ('T_LIMS_CTEST', 'C项目', 'service', '1');
CALL INSERTI18N('T_LIMS_CTEST.SERVICE_NAME', 'C项目', 'C项目', 'zh-CN', 'C项目');
CALL INSERTI18N('T_LIMS_CTEST.ID', 'C项目的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_CTEST.CTESTNAME', 'C项目的c项目名称', 'c项目名称', 'zh-CN', 'c项目名称');
CALL INSERTI18N('T_LIMS_CTEST.CTESTQUOTA', 'C项目的c项目指标', 'c项目指标', 'zh-CN', 'c项目指标');
CALL INSERTI18N('BASEMODULE.BASEDATA.CTESTS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BASEDATA.CTESTS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BASEDATA.CTESTS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BASEDATA.CTESTS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BASEDATA.CTESTS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('20230630001', 'c项目维护', '/secure/basemodule/basedata/ctests/page/edit-list', '20230510', '99', '044.svg', 'c项目维护');

-- ----------------------------- 2023-06-30 add by liujie1111@sunwayworld.com--------------end


-- ----------------------------- 2023-07-05 add by liujie1111@sunwayworld.com--------------begin
INSERT INTO T_CORE_CODE_CATEGORY (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('workLicense', '上岗证名称', 'sys');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (20230705001, '克容量', '克容量', 1, 'workLicense', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (20230705002, 'ICP项目', 'ICP项目', 2, 'workLicense', 0, 'admin', '系统管理员', '0');

 INSERT INTO T_CORE_CODE_CATEGORY (ID, CODECATEGORYNAME, CODECLASSID)
VALUES ('workLicense', '上岗证名称', 'sys');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (20230705001, '克容量', '克容量', 1, 'workLicense', 0, 'admin', '系统管理员', '0');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, ORDERNO, CODECATEGORYID, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
VALUES  (20230705002, 'ICP项目', 'ICP项目', 2, 'workLicense', 0, 'admin', '系统管理员', '0');


-- 建表语句
CREATE TABLE T_LIMS_WORKLICENSE_TEST(
    ID NUMBER NOT NULL,
    LICENSENAME VARCHAR2(120)  NULL,
    TESTNAME VARCHAR2(120)  NULL,
    TESTID NUMBER NULL
 );
COMMENT ON TABLE T_LIMS_WORKLICENSE_TEST IS '上岗证项目表';
COMMENT ON COLUMN T_LIMS_WORKLICENSE_TEST.ID IS '主键';
COMMENT ON COLUMN T_LIMS_WORKLICENSE_TEST.LICENSENAME IS '上岗证名称';
COMMENT ON COLUMN T_LIMS_WORKLICENSE_TEST.TESTNAME IS '检测项目名称';
COMMENT ON COLUMN T_LIMS_WORKLICENSE_TEST.TESTID IS '检测项目ID';

ALTER TABLE T_LIMS_WORKLICENSE_TEST ADD CONSTRAINT PK_LIMS_WORKLICENSE_TEST PRIMARY KEY (ID);





CALL INSERTI18N('T_LIMS_WORKLICENSE_TEST.SERVICE_NAME', '上岗证项目表', '上岗证项目表', 'zh-CN', '上岗证项目表');
CALL INSERTI18N('T_LIMS_WORKLICENSE_TEST.ID', '上岗证项目表的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_WORKLICENSE_TEST.LICENSENAME', '上岗证项目表的上岗证名称', '上岗证名称', 'zh-CN', '上岗证名称');
CALL INSERTI18N('T_LIMS_WORKLICENSE_TEST.TESTNAME', '上岗证项目表的检测项目名称', '检测项目名称', 'zh-CN', '检测项目名称');
CALL INSERTI18N('T_LIMS_WORKLICENSE_TEST.TESTID', '上岗证项目表的检测项目ID', '检测项目ID', 'zh-CN', '检测项目ID');
CALL INSERTI18N('BASEMODULE.BASEDATA. WORKLICENSETESTS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BASEDATA. WORKLICENSETESTS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BASEDATA. WORKLICENSETESTS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BASEDATA. WORKLICENSETESTS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BASEDATA. WORKLICENSETESTS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

INSERT INTO T_CORE_MENU (ID,MENUNAME,HREF,PARENTID,ORDERNO,MENUINITNAME) VALUES ('230705001','人员培训考核',NULL,'91',230705001,'人员培训考核');
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('230705002', '上岗证项目表', '/secure/basemodule/basedata/worklicense-tests/page/edit-list', '230705001', '10', '001.svg', '上岗证项目表');

-- 建表语句
CREATE TABLE T_LIMS_STAFF_TRAIN(
    ID NUMBER NOT NULL,
    APPLYNAME VARCHAR2(36)  NULL,
    APPLYID VARCHAR2(36)  NULL,
    APPLYNO VARCHAR2(36)  NULL,
    APPLYTIME DATE NULL,
    TRAINTYPE VARCHAR2(36)  NULL,
    WORKLICENSE VARCHAR2(36)  NULL,
    WORKLICENSELEVEL VARCHAR2(36)  NULL,
    PLANENDTIME DATE NULL,
    REALENDTIME DATE NULL,
    HEAD VARCHAR2(36)  NULL,
    RESULT VARCHAR2(36)  NULL,
    PROCESSSTATUS VARCHAR2(36)  NULL
 );
COMMENT ON TABLE T_LIMS_STAFF_TRAIN IS '培训考核表';
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.ID IS '主键';
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.APPLYNAME IS '申请人';
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.APPLYID IS '申请人Id';
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.APPLYNO IS '申请单号';
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.APPLYTIME IS '申请时间';
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.TRAINTYPE IS '考核方式';
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.WORKLICENSE IS '上岗证';
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.WORKLICENSELEVEL IS '上岗证级别';
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.PLANENDTIME IS '计划结束时间';
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.REALENDTIME IS '实际结束时间';
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.HEAD IS '负责人';
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.RESULT IS '培训结果';
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.PROCESSSTATUS IS '流程字段';

ALTER TABLE T_LIMS_STAFF_TRAIN ADD CONSTRAINT PK_LIMS_STAFF_TRAIN PRIMARY KEY (ID);


CALL INSERTI18N('T_LIMS_STAFF_TRAIN.SERVICE_NAME', '培训考核表', '培训考核表', 'zh-CN', '培训考核表');
CALL INSERTI18N('T_LIMS_STAFF_TRAIN.ID', '培训考核表的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_STAFF_TRAIN.APPLYNAME', '培训考核表的申请人', '申请人', 'zh-CN', '申请人');
CALL INSERTI18N('T_LIMS_STAFF_TRAIN.APPLYID', '培训考核表的申请人Id', '申请人Id', 'zh-CN', '申请人Id');
CALL INSERTI18N('T_LIMS_STAFF_TRAIN.APPLYNO', '培训考核表的申请单号', '申请单号', 'zh-CN', '申请单号');
CALL INSERTI18N('T_LIMS_STAFF_TRAIN.APPLYTIME', '培训考核表的申请时间', '申请时间', 'zh-CN', '申请时间');
CALL INSERTI18N('T_LIMS_STAFF_TRAIN.TRAINTYPE', '培训考核表的考核方式', '考核方式', 'zh-CN', '考核方式');
CALL INSERTI18N('T_LIMS_STAFF_TRAIN.WORKLICENSE', '培训考核表的上岗证', '上岗证', 'zh-CN', '上岗证');
CALL INSERTI18N('T_LIMS_STAFF_TRAIN.WORKLICENSELEVEL', '培训考核表的上岗证级别', '上岗证级别', 'zh-CN', '上岗证级别');
CALL INSERTI18N('T_LIMS_STAFF_TRAIN.PLANENDTIME', '培训考核表的计划结束时间', '计划结束时间', 'zh-CN', '计划结束时间');
CALL INSERTI18N('T_LIMS_STAFF_TRAIN.REALENDTIME', '培训考核表的实际结束时间', '实际结束时间', 'zh-CN', '实际结束时间');
CALL INSERTI18N('T_LIMS_STAFF_TRAIN.HEAD', '培训考核表的负责人', '负责人', 'zh-CN', '负责人');
CALL INSERTI18N('T_LIMS_STAFF_TRAIN.RESULT', '培训考核表的培训结果', '培训结果', 'zh-CN', '培训结果');
CALL INSERTI18N('T_LIMS_STAFF_TRAIN.PROCESSSTATUS', '培训考核表的流程字段', '流程字段', 'zh-CN', '流程字段');
CALL INSERTI18N('BASEMODULE.BASEDATA.TRAINS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BASEDATA.TRAINS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BASEDATA.TRAINS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BASEDATA.TRAINS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BASEDATA.TRAINS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('230705003', '培训考核编制', '/secure/basemodule/basedata/staff-trains/page/edit-list', '230705001', '20', '002.svg', '培训考核编制');

INSERT INTO T_CORE_AUDIT_CONFIG (ID, NAME, CATEGORY, AUDITABLE)
VALUES ('T_LIMS_STAFF_TRAIN', '培训考核表', 'service', '1');

INSERT INTO T_CORE_MENU_EXT (ID, SERVICENAME, TABLENAME, TYPE, ENABLE)
VALUES ('202307051', '培训考核', 'T_LIMS_STAFF_TRAIN', 'audit_def', '1');

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('230705004', '工程师审核', '/secure/basemodule/basedata/staff-trains/page/audit-list?bpmn_statusCode=Audit', '230705001', '30', '003.svg', '工程师审核');

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('230705005', '主管批准', '/secure/basemodule/basedata/staff-trains/page/audit-list?bpmn_statusCode=Approve', '230705001', '40', '004.svg', '主管批准');

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('230705006', '培训负责人审核', '/secure/basemodule/basedata/staff-trains/page/audit-list?bpmn_statusCode=Pass', '230705001', '50', '005.svg', '主管批准');



-- ----------------------------- 2023-07-05 add by liujie1111@sunwayworld.com--------------end

-- ----------------------------- 2023-07-06 add by liujie1111@sunwayworld.com--------------begin
CREATE TABLE T_LIMS_TRAIN_RECORD(
    ID NUMBER NOT NULL,
    TRAINID NUMBER NULL,
    TRAINTIME DATE NULL,
    TRAINRESULT VARCHAR2(36)  NULL
 );
COMMENT ON TABLE T_LIMS_TRAIN_RECORD IS '培训结果记录';
COMMENT ON COLUMN T_LIMS_TRAIN_RECORD.ID IS '主键';
COMMENT ON COLUMN T_LIMS_TRAIN_RECORD.TRAINID IS '培训ID';
COMMENT ON COLUMN T_LIMS_TRAIN_RECORD.TRAINTIME IS '培训时间';
COMMENT ON COLUMN T_LIMS_TRAIN_RECORD.TRAINRESULT IS '培训结果';

ALTER TABLE T_LIMS_TRAIN_RECORD ADD CONSTRAINT PK_LIMS_TRAIN_RECORD PRIMARY KEY (ID);



CALL INSERTI18N('T_LIMS_TRAIN_RECORD.SERVICE_NAME', '培训结果记录', '培训结果记录', 'zh-CN', '培训结果记录');
CALL INSERTI18N('T_LIMS_TRAIN_RECORD.ID', '培训结果记录的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_TRAIN_RECORD.TRAINID', '培训结果记录的培训ID', '培训ID', 'zh-CN', '培训ID');
CALL INSERTI18N('T_LIMS_TRAIN_RECORD.TRAINTIME', '培训结果记录的培训时间', '培训时间', 'zh-CN', '培训时间');
CALL INSERTI18N('T_LIMS_TRAIN_RECORD.TRAINRESULT', '培训结果记录的培训结果', '培训结果', 'zh-CN', '培训结果');
CALL INSERTI18N('BASEMODULE.BASEDATA.TRAINRECORDS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BASEDATA.TRAINRECORDS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BASEDATA.TRAINRECORDS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BASEDATA.TRAINRECORDS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BASEDATA.TRAINRECORDS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

INSERT INTO T_CORE_MENU (ID,MENUNAME,HREF,PARENTID,ORDERNO,MENUINITNAME,LASTUPDATEDBYID,LASTUPDATEDBYNAME,LASTUPDATEDTIME,ICON,TODOICON,I18NCODE)
VALUES ('230705007','人员技能','/secure/basemodule/basedata/staff-trains/page/staffSkills','230705001',60,'人员技能',NULL,NULL,NULL,'006.svg',NULL,NULL);

-- ----------------------------- 2023-07-06 add by liujie1111@sunwayworld.com--------------end


-- ----------------------------- 2023-07-07 add by liujie1111@sunwayworld.com--------------begin
ALTER TABLE T_LIMS_STAFF_TRAIN ADD BASE VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.BASE IS '实验室';
ALTER TABLE T_LIMS_STAFF_TRAIN ADD GROUPCPDE VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.GROUPCPDE IS '组织ID';
ALTER TABLE T_LIMS_STAFF_TRAIN ADD TESTGROUP VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.TESTGROUP IS '组别';
ALTER TABLE T_LIMS_STAFF_TRAIN ADD STAFFTYPE VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.STAFFTYPE IS '人员类别';
ALTER TABLE T_LIMS_STAFF ADD STAFFKIND VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_STAFF.STAFFKIND IS '人员类别';
CALL INSERTI18N('T_LIMS_STAFF.STAFFKIND', '人员类别', '人员类别', 'zh-CN', '人员类别');
ALTER TABLE T_LIMS_STAFF ADD JOBLEVEL VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_STAFF.JOBLEVEL IS '职级';

ALTER TABLE T_LIMS_STAFF_TRAIN ADD JOBLEVEL VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.JOBLEVEL IS '职业等级';
ALTER TABLE T_LIMS_STAFF_TRAIN ADD JOBLIFE VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_STAFF_TRAIN.JOBLIFE IS '工作年限';


CALL INSERTI18N('T_LIMS_STAFF.JOBLEVEL', '职级', '职级', 'zh-CN', '职级');

ALTER TABLE T_LIMS_STAFF_WORKLICENSE ADD STAFFID VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_STAFF_WORKLICENSE.STAFFID IS '人员ID';

-- ----------------------------- 2023-07-07 add by liujie1111@sunwayworld.com--------------end

-- ----------------------------- 2023-07-10 add by liujie1111@sunwayworld.com--------------begin
ALTER TABLE T_LIMS_SPECIMEN_EQUIPMENT ADD ISDEFAULT VARCHAR2(12);
COMMENT ON COLUMN T_LIMS_SPECIMEN_EQUIPMENT.ISDEFAULT IS '0为否1为是';
CALL INSERTI18N('T_LIMS_SPECIMEN_EQUIPMENT.ISDEFAULT', '是否默认设备', '是否默认设备', 'zh-CN', '是否默认设备');
-- ----------------------------- 2023-07-10 add by liujie1111@sunwayworld.com--------------end


-- ----------------------------- 2023-07-11 add by liujie1111@sunwayworld.com--------------begin

-- 建表语句
CREATE TABLE T_LIMS_ORDER_CHANGERECORD(
    ID NUMBER NOT NULL,
    PREORDERID NUMBER NOT NULL,
    ORDERCODE VARCHAR2(36)  NULL,
    CHANGEFIELD VARCHAR2(36)  NULL,
    CHANGEBEFORE VARCHAR2(36)  NULL,
    CHANGEAFTER VARCHAR2(36)  NULL,
    CHANGETIME DATE NULL
 );
COMMENT ON TABLE T_LIMS_ORDER_CHANGERECORD IS '样品修改记录';
COMMENT ON COLUMN T_LIMS_ORDER_CHANGERECORD.ID IS '主键';
COMMENT ON COLUMN T_LIMS_ORDER_CHANGERECORD.PREORDERID IS '原始样品ID';
COMMENT ON COLUMN T_LIMS_ORDER_CHANGERECORD.ORDERCODE IS '样品编号';
COMMENT ON COLUMN T_LIMS_ORDER_CHANGERECORD.CHANGEFIELD IS '修改值';
COMMENT ON COLUMN T_LIMS_ORDER_CHANGERECORD.CHANGEBEFORE IS '修改前的值';
COMMENT ON COLUMN T_LIMS_ORDER_CHANGERECORD.CHANGEAFTER IS '修改后的值';
COMMENT ON COLUMN T_LIMS_ORDER_CHANGERECORD.CHANGETIME IS '修改的时间';

ALTER TABLE T_LIMS_ORDER_CHANGERECORD ADD CONSTRAINT PK_LIMS_ORDER_CHANGERECORD PRIMARY KEY (ID);



CALL INSERTI18N('T_LIMS_ORDER_CHANGERECORD.SERVICE_NAME', '样品修改记录', '样品修改记录', 'zh-CN', '样品修改记录');
CALL INSERTI18N('T_LIMS_ORDER_CHANGERECORD.ID', '样品修改记录的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_ORDER_CHANGERECORD.PREORDERID', '样品修改记录的原始样品ID', '原始样品ID', 'zh-CN', '原始样品ID');
CALL INSERTI18N('T_LIMS_ORDER_CHANGERECORD.ORDERCODE', '样品修改记录的样品编号', '样品编号', 'zh-CN', '样品编号');
CALL INSERTI18N('T_LIMS_ORDER_CHANGERECORD.CHANGEFIELD', '样品修改记录的修改值', '修改值', 'zh-CN', '修改值');
CALL INSERTI18N('T_LIMS_ORDER_CHANGERECORD.CHANGEBEFORE', '样品修改记录的修改前的值', '修改前的值', 'zh-CN', '修改前的值');
CALL INSERTI18N('T_LIMS_ORDER_CHANGERECORD.CHANGEAFTER', '样品修改记录的修改后的值', '修改后的值', 'zh-CN', '修改后的值');
CALL INSERTI18N('T_LIMS_ORDER_CHANGERECORD.CHANGETIME', '样品修改记录的修改的时间', '修改的时间', 'zh-CN', '修改的时间');
CALL INSERTI18N('BASEMODULE.BASEDATA.ORDERCHANGERECORDS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BASEDATA.ORDERCHANGERECORDS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BASEDATA.ORDERCHANGERECORDS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BASEDATA.ORDERCHANGERECORDS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BASEDATA.ORDERCHANGERECORDS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');





-- ----------------------------- 2023-07-11 add by liujie1111@sunwayworld.com------------end

-- ----------------------------- 2023-07-11 add by liujie1111@sunwayworld.com--------------begin

-- 建表语句
CREATE TABLE T_LIMS_WORKLICENSE(
    ID NUMBER NOT NULL,
    STAFFID VARCHAR2(36)  NULL,
    WORKLICENSENAME VARCHAR2(36)  NULL,
    WORKLICENSELEVEL VARCHAR2(36)  NULL
 );
COMMENT ON TABLE T_LIMS_WORKLICENSE IS '上岗证';
COMMENT ON COLUMN T_LIMS_WORKLICENSE.ID IS '主键';
COMMENT ON COLUMN T_LIMS_WORKLICENSE.STAFFID IS '人员ID';
COMMENT ON COLUMN T_LIMS_WORKLICENSE.WORKLICENSENAME IS '上岗证名称';
COMMENT ON COLUMN T_LIMS_WORKLICENSE.WORKLICENSELEVEL IS '等级';

ALTER TABLE T_LIMS_WORKLICENSE ADD CONSTRAINT PK_LIMS_WORKLICENSE PRIMARY KEY (ID);


CALL INSERTI18N('T_LIMS_WORKLICENSE.SERVICE_NAME', '上岗证', '上岗证', 'zh-CN', '上岗证');
CALL INSERTI18N('T_LIMS_WORKLICENSE.ID', '上岗证的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_WORKLICENSE.STAFFID', '上岗证的人员ID', '人员ID', 'zh-CN', '人员ID');
CALL INSERTI18N('T_LIMS_WORKLICENSE.WORKLICENSENAME', '上岗证的上岗证名称', '上岗证名称', 'zh-CN', '上岗证名称');
CALL INSERTI18N('T_LIMS_WORKLICENSE.WORKLICENSELEVEL', '上岗证的等级', '等级', 'zh-CN', '等级');
CALL INSERTI18N('BASEMODULE.BASEDATA.STAFF.WORKLICENSES.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BASEDATA.STAFF.WORKLICENSES.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BASEDATA.STAFF.WORKLICENSES.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BASEDATA.STAFF.WORKLICENSES.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BASEDATA.STAFF.WORKLICENSES.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');



-- ----------------------------- 2023-07-11 add by liujie1111@sunwayworld.com------------end

-- ----------------------------- 2023-07-12 add by liujie1111@sunwayworld.com------------begin
INSERT INTO T_CORE_MENU (ID,MENUNAME,HREF,PARENTID,ORDERNO,MENUINITNAME,LASTUPDATEDBYID,LASTUPDATEDBYNAME,LASTUPDATEDTIME,ICON,TODOICON,I18NCODE) VALUES ('230712001','人员流失率','/secure/basemodule/basedata/staff/staffs/page/turnoverRate','91',230712001,'人员流失率',NULL,NULL,NULL,'003.svg',NULL,NULL);
ALTER TABLE T_LIMS_FOLDER ADD WORKSHOP VARCHAR2(100);
COMMENT ON COLUMN T_LIMS_FOLDER.WORKSHOP IS '车间';

-- ----------------------------- 2023-07-12 add by liujie1111@sunwayworld.com------------end

-- ----------------------------- 2023-07-12 add by zengs@sunwayworld.com--------------begin
ALTER TABLE T_LIMS_EQUIPT_CALIBRATION ADD correctFrequency VARCHAR2(12);
COMMENT ON COLUMN T_LIMS_EQUIPT_CALIBRATION.CORRECTFREQUENCY IS '校准频次';
CALL INSERTI18N('T_LIMS_EQUIPT_CALIBRATION.CORRECTFREQUENCY', '校准频次', '校准频次', 'zh-CN', '校准频次');

ALTER TABLE T_LIMS_EQUIPT_CALIBRATION ADD type VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_EQUIPT_CALIBRATION.TYPE IS '校准方式';
CALL INSERTI18N('T_LIMS_EQUIPT_CALIBRATION.TYPE', '校准方式', '校准方式', 'zh-CN', '校准方式');

ALTER TABLE T_LIMS_EQUIPT_CALIBRATION ADD outcome VARCHAR2(300);
COMMENT ON COLUMN T_LIMS_EQUIPT_CALIBRATION.OUTCOME IS '校准结果';
CALL INSERTI18N('T_LIMS_EQUIPT_CALIBRATION.OUTCOME', '校准结果', '校准结果', 'zh-CN', '校准结果');

ALTER TABLE T_LIMS_EQUIPT_CALIBRATION ADD CREATEDBYID VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_EQUIPT_CALIBRATION.CREATEDBYID IS '制单人编码';
CALL INSERTI18N('T_LIMS_EQUIPT_CALIBRATION.CREATEDBYID', '制单人编码', '制单人编码', 'zh-CN', '制单人编码');

ALTER TABLE T_LIMS_EQUIPT_CALIBRATION ADD CREATEDBYNAME VARCHAR2(60);
COMMENT ON COLUMN T_LIMS_EQUIPT_CALIBRATION.CREATEDBYNAME IS '操作人';
CALL INSERTI18N('T_LIMS_EQUIPT_CALIBRATION.CREATEDBYNAME', '操作人', '操作人', 'zh-CN', '操作人');

ALTER TABLE T_LIMS_EQUIPT_CALIBRATION ADD CREATEDTIME DATE;
COMMENT ON COLUMN T_LIMS_EQUIPT_CALIBRATION.CREATEDTIME IS '制单时间';
CALL INSERTI18N('T_LIMS_EQUIPT_CALIBRATION.CREATEDTIME', '制单时间', '制单时间', 'zh-CN', '制单时间');

ALTER TABLE T_LIMS_EQUIPT_CALIBRATION ADD CREATEDBYORGID VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_EQUIPT_CALIBRATION.CREATEDBYORGID IS '制单人单位编码';
CALL INSERTI18N('T_LIMS_EQUIPT_CALIBRATION.CREATEDBYORGID', '制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');

ALTER TABLE T_LIMS_EQUIPT_CALIBRATION ADD CREATEDBYORGNAME VARCHAR2(270) ;
COMMENT ON COLUMN T_LIMS_EQUIPT_CALIBRATION.CREATEDBYORGNAME IS '制单人单位名称';
CALL INSERTI18N('T_LIMS_EQUIPT_CALIBRATION.CREATEDBYORGNAME', '制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');


INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME)
VALUES('calibrationType','设备校准方式','sys', NULL, NULL, NULL,NULL,NULL,NULL);
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230712001, '内校', 'calibrationType', '8', 1, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'in');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230712002, '外校', 'calibrationType', '8', 2, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, 'out');






INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME)
VALUES('calibrationCorrectFrequency','校准频次','sys', NULL, NULL, NULL,NULL,NULL,NULL);
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230712003, '1次/天', 'calibrationCorrectFrequency', '9', 1, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '1');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230712004, '1次/月', 'calibrationCorrectFrequency', '9', 2, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '30');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230712005, '1次/季度', 'calibrationCorrectFrequency', '9', 3, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '90');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230712006, '1次/半年', 'calibrationCorrectFrequency', '9', 4, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '180');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230712007, '1次/年', 'calibrationCorrectFrequency', '9', 5, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '365');




-- ----------------------------- 2023-07-12 add by zengs@sunwayworld.com--------------end
-- ----------------------------- 2023-07-12 add by zengs--------------begin

-- 建表语句
CREATE TABLE T_LIMS_EQUIPT_UPKEEP(
    ID NUMBER NOT NULL,
    EQUIPTID NUMBER NULL,
    type VARCHAR2(36)  NULL,
    FREQUENCY VARCHAR2(6)  NULL,
    LASTTIME DATE NULL,
    NEXTTIME DATE NULL,
    REMARK VARCHAR2(300)  NULL,
    CREATEDBYID VARCHAR2(36)  NULL,
    CREATEDBYNAME VARCHAR2(60)  NULL,
    CREATEDTIME DATE NULL,
    CREATEDBYORGID VARCHAR2(36)  NULL,
    CREATEDBYORGNAME VARCHAR2(270)  NULL
 );
COMMENT ON TABLE T_LIMS_EQUIPT_UPKEEP IS '设备保养';
COMMENT ON COLUMN T_LIMS_EQUIPT_UPKEEP.ID IS '主键';
COMMENT ON COLUMN T_LIMS_EQUIPT_UPKEEP.EQUIPTID IS '设备ID';
COMMENT ON COLUMN T_LIMS_EQUIPT_UPKEEP.TYPE IS '保养方式';
COMMENT ON COLUMN T_LIMS_EQUIPT_UPKEEP.FREQUENCY IS '保养频次';
COMMENT ON COLUMN T_LIMS_EQUIPT_UPKEEP.LASTTIME IS '保养日期';
COMMENT ON COLUMN T_LIMS_EQUIPT_UPKEEP.NEXTTIME IS '下次保养日期';
COMMENT ON COLUMN T_LIMS_EQUIPT_UPKEEP.REMARK IS '保养说明';
COMMENT ON COLUMN T_LIMS_EQUIPT_UPKEEP.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_EQUIPT_UPKEEP.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_EQUIPT_UPKEEP.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_EQUIPT_UPKEEP.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_EQUIPT_UPKEEP.CREATEDBYORGNAME IS '制单人单位名称';

ALTER TABLE T_LIMS_EQUIPT_UPKEEP ADD CONSTRAINT PK_LIMS_EQUIPT_UPKEEP PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_EQUIPT_UPKEEP.SERVICE_NAME', '设备保养', '设备保养', 'zh-CN', '设备保养');
CALL INSERTI18N('T_LIMS_EQUIPT_UPKEEP.ID', '设备保养的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_EQUIPT_UPKEEP.EQUIPTID', '设备保养的设备ID', '设备ID', 'zh-CN', '设备ID');
CALL INSERTI18N('T_LIMS_EQUIPT_UPKEEP.TYPE', '设备保养的保养方式', '保养方式', 'zh-CN', '保养方式');
CALL INSERTI18N('T_LIMS_EQUIPT_UPKEEP.FREQUENCY', '设备保养的保养频次', '保养频次', 'zh-CN', '保养频次');
CALL INSERTI18N('T_LIMS_EQUIPT_UPKEEP.LASTTIME', '设备保养的保养日期', '保养日期', 'zh-CN', '保养日期');
CALL INSERTI18N('T_LIMS_EQUIPT_UPKEEP.NEXTTIME', '设备保养的下次保养日期', '下次保养日期', 'zh-CN', '下次保养日期');
CALL INSERTI18N('T_LIMS_EQUIPT_UPKEEP.REMARK', '设备保养的保养说明', '保养说明', 'zh-CN', '保养说明');
CALL INSERTI18N('T_LIMS_EQUIPT_UPKEEP.CREATEDBYID', '设备保养的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_EQUIPT_UPKEEP.CREATEDBYNAME', '设备保养的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_LIMS_EQUIPT_UPKEEP.CREATEDTIME', '设备保养的制单时间', '制单时间', 'zh-CN', '制单时间');
CALL INSERTI18N('T_LIMS_EQUIPT_UPKEEP.CREATEDBYORGID', '设备保养的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_EQUIPT_UPKEEP.CREATEDBYORGNAME', '设备保养的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.UPKEEPS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.UPKEEPS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.UPKEEPS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.UPKEEPS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.UPKEEPS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');



INSERT INTO T_CORE_TABLE (ID, AUDITABLE, ATTACHMENT)
VALUES ('T_LIMS_EQUIPT_UPKEEP', '0', '0');


COMMIT;

-- ----------------------------- 2023-07-12 add by zengs------------end
-- ----------------------------- 2023-07-13 add by zengs--------------begin

-- 建表语句
CREATE TABLE T_LIMS_EQUIPT_ACCEPT(
    ID NUMBER NOT NULL,
    EQUIPTID NUMBER NULL,
    EQUIPNAME VARCHAR2(120)  NULL,
    EQUIPTCODE VARCHAR2(120)  NULL,
    PASSTIME DATE NULL,
    PROCESSSTATUS VARCHAR2(36)  NULL,
    CREATEDBYID VARCHAR2(36)  NULL,
    CREATEDBYNAME VARCHAR2(60)  NULL,
    CREATEDTIME DATE NULL,
    CREATEDBYORGID VARCHAR2(36)  NULL,
    CREATEDBYORGNAME VARCHAR2(270)  NULL
 );
COMMENT ON TABLE T_LIMS_EQUIPT_ACCEPT IS '设备验收';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACCEPT.ID IS '主键';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACCEPT.EQUIPTID IS '设备id';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACCEPT.EQUIPNAME IS '设备名称';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACCEPT.EQUIPTCODE IS '设备编号';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACCEPT.PASSTIME IS '通过时间';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACCEPT.PROCESSSTATUS IS '审核状态';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACCEPT.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACCEPT.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACCEPT.CREATEDTIME IS '申请时间';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACCEPT.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACCEPT.CREATEDBYORGNAME IS '制单人单位名称';

ALTER TABLE T_LIMS_EQUIPT_ACCEPT ADD CONSTRAINT PK_LIMS_EQUIPT_ACCEPT PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_EQUIPT_ACCEPT.SERVICE_NAME', '设备验收', '设备验收', 'zh-CN', '设备验收');
CALL INSERTI18N('T_LIMS_EQUIPT_ACCEPT.ID', '设备验收的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_EQUIPT_ACCEPT.EQUIPTID', '设备验收的设备id', '设备id', 'zh-CN', '设备id');
CALL INSERTI18N('T_LIMS_EQUIPT_ACCEPT.EQUIPNAME', '设备验收的设备名称', '设备名称', 'zh-CN', '设备名称');
CALL INSERTI18N('T_LIMS_EQUIPT_ACCEPT.EQUIPTCODE', '设备验收的设备编号', '设备编号', 'zh-CN', '设备编号');
CALL INSERTI18N('T_LIMS_EQUIPT_ACCEPT.PASSTIME', '设备验收的通过时间', '通过时间', 'zh-CN', '通过时间');
CALL INSERTI18N('T_LIMS_EQUIPT_ACCEPT.PROCESSSTATUS', '设备验收的审核状态', '审核状态', 'zh-CN', '审核状态');
CALL INSERTI18N('T_LIMS_EQUIPT_ACCEPT.CREATEDBYID', '设备验收的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_EQUIPT_ACCEPT.CREATEDBYNAME', '设备验收的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_LIMS_EQUIPT_ACCEPT.CREATEDTIME', '设备验收的申请时间', '申请时间', 'zh-CN', '申请时间');
CALL INSERTI18N('T_LIMS_EQUIPT_ACCEPT.CREATEDBYORGID', '设备验收的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_EQUIPT_ACCEPT.CREATEDBYORGNAME', '设备验收的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.ACCEPTS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.ACCEPTS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.ACCEPTS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.ACCEPTS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.ACCEPTS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

-- 创建菜单语句
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('2023071301', '设备验收管理', NULL , '20220902013', '7', '008.svg', '设备验收管理');

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('2023071302', '设备验收', '/secure/basemodule/trm/equipt/equipt-accepts/page/edit-list', '2023071301', '1', '008.svg', '设备验收');
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('2023071303', '设备验收审核', '/secure/basemodule/trm/equipt/equipt-accepts/page/audit-list?bpmn_statusCode=Audit', '2023071301', '2', '008.svg', '设备验收审核');
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('2023071304', '设备验收查询', '/secure/basemodule/trm/equipt/equipt-accepts/page/search-list', '2023071301', '3', '008.svg', '设备验收查询');

INSERT INTO T_CORE_TABLE (ID, AUDITABLE, ATTACHMENT)
VALUES ('T_LIMS_EQUIPT_ACCEPT', '1', '0');

INSERT INTO T_CORE_MENU_EXT (ID, SERVICENAME, TABLENAME, TYPE, ENABLE)
VALUES ('2023071301', '设备验收', 'T_LIMS_EQUIPT_ACCEPT', 'audit_def', '1');


COMMIT;

ALTER TABLE T_LIMS_EQUIPT ADD acceptTime DATE;
COMMENT ON COLUMN T_LIMS_EQUIPT.ACCEPTTIME IS '验收时间';
CALL INSERTI18N('T_LIMS_EQUIPT.ACCEPTTIME', '验收时间', '验收时间', 'zh-CN', '验收时间');



INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('2023071305', '设备维修管理', '', '20220902013', '6', '008.svg', '设备维修管理');
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('2023071305101', '设备维修申请', '/secure/basemodule/trm/equipt/equipt-repairs/page/edit-list', '2023071305', '1', '008.svg', '设备维修申请');
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('2023071305102', '设备维修审核', '/secure/basemodule/trm/equipt/equipt-repairs/page/audit-list?bpmn_statusCode=Audit', '2023071305', '2', '008.svg', '设备维修审核');
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('2023071305103', '设备维修记录', '/secure/basemodule/trm/equipt/equipt-repairs/page/audit-list?bpmn_statusCode=Implement', '2023071305', '3', '008.svg', '设备维修记录');
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('2023071305104', '设备维修验收', '/secure/basemodule/trm/equipt/equipt-repairs/page/audit-list?bpmn_statusCode=Affirm', '2023071305', '4', '008.svg', '设备维修验收');
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('2023071305105', '设备维修查询', '/secure/basemodule/trm/equipt/equipt-repairs/page/search-list', '2023071305', '5', '008.svg', '设备维修查询');

ALTER TABLE T_LIMS_EQUIPT_REPAIR ADD repairDesc VARCHAR2(300);
COMMENT ON COLUMN T_LIMS_EQUIPT_REPAIR.REPAIRDESC IS '维修原因';
CALL INSERTI18N('T_LIMS_EQUIPT_REPAIR.REPAIRDESC', '维修原因', '维修原因', 'zh-CN', '维修原因');

ALTER TABLE T_LIMS_EQUIPT_REPAIR ADD auditDate DATE;
COMMENT ON COLUMN T_LIMS_EQUIPT_REPAIR.AUDITDATE IS '审核时间';
CALL INSERTI18N('T_LIMS_EQUIPT_REPAIR.AUDITDATE', '审核时间', '审核时间', 'zh-CN', '审核时间');

ALTER TABLE T_LIMS_EQUIPT_REPAIR ADD repairNo VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_EQUIPT_REPAIR.REPAIRNO IS '申请编号';
CALL INSERTI18N('T_LIMS_EQUIPT_REPAIR.REPAIRNO', '申请编号', '申请编号', 'zh-CN', '申请编号');

ALTER TABLE T_LIMS_EQUIPT_REPAIR ADD implementDate DATE;
COMMENT ON COLUMN T_LIMS_EQUIPT_REPAIR.IMPLEMENTDATE IS '维修时间';
CALL INSERTI18N('T_LIMS_EQUIPT_REPAIR.IMPLEMENTDATE', '维修时间', '维修时间', 'zh-CN', '维修时间');

ALTER TABLE T_LIMS_EQUIPT_REPAIR ADD repairResult VARCHAR2(300);
COMMENT ON COLUMN T_LIMS_EQUIPT_REPAIR.REPAIRRESULT IS '维修结果';
CALL INSERTI18N('T_LIMS_EQUIPT_REPAIR.REPAIRRESULT', '维修结果', '维修结果', 'zh-CN', '维修结果');

INSERT INTO T_CORE_SEQUENCE (ID, PATTERN, JSONPARAM) VALUES ('T_LIMS_EQUIPT_REPAIR', '[key][yyyy][mm][dd][nnn]', '[{"key":"WX","mm":"12","n":2,"yyyy":"2023"}]');
-- ----------------------------- 2023-07-13 add by zengs------------end

 -- ----------------------------- 2023-07-13 add by liujie1111@sunwayworld.com--------------begin

-- 建表语句
CREATE TABLE T_LIMS_EQUIPT_POINTCHECK(
    ID NUMBER NOT NULL,
    EQUIPTID NUMBER NULL,
    EQUIPTNAME VARCHAR2(36)  NULL,
    EQUIPTCODE VARCHAR2(36)  NULL,
    TEST VARCHAR2(60)  NULL,
    FREQUENCY VARCHAR2(36)  NULL,
    CHECKER VARCHAR2(36)  NULL,
    CHECKTIME DATE NULL,
    RESULT VARCHAR2(12)  NULL,
    EXECPTIONTIME DATE NULL,
    RECORD VARCHAR2(120)  NULL,
    ABNORMALPHENOMENA VARCHAR2(120)  NULL,
    CAUSEANALYSIS VARCHAR2(120)  NULL,
    ABNORMALHANDLING VARCHAR2(120)  NULL
 );
COMMENT ON TABLE T_LIMS_EQUIPT_POINTCHECK IS '设备点检表';
COMMENT ON COLUMN T_LIMS_EQUIPT_POINTCHECK.ID IS '主键';
COMMENT ON COLUMN T_LIMS_EQUIPT_POINTCHECK.EQUIPTID IS '设备Id';
COMMENT ON COLUMN T_LIMS_EQUIPT_POINTCHECK.EQUIPTNAME IS '设备名称';
COMMENT ON COLUMN T_LIMS_EQUIPT_POINTCHECK.EQUIPTCODE IS '设备编码';
COMMENT ON COLUMN T_LIMS_EQUIPT_POINTCHECK.TEST IS '点检项目';
COMMENT ON COLUMN T_LIMS_EQUIPT_POINTCHECK.FREQUENCY IS '点检频率';
COMMENT ON COLUMN T_LIMS_EQUIPT_POINTCHECK.CHECKER IS '点检人';
COMMENT ON COLUMN T_LIMS_EQUIPT_POINTCHECK.CHECKTIME IS '点检时间';
COMMENT ON COLUMN T_LIMS_EQUIPT_POINTCHECK.RESULT IS '点检结果';
COMMENT ON COLUMN T_LIMS_EQUIPT_POINTCHECK.EXECPTIONTIME IS '异常处理时间';
COMMENT ON COLUMN T_LIMS_EQUIPT_POINTCHECK.RECORD IS '点检记录';
COMMENT ON COLUMN T_LIMS_EQUIPT_POINTCHECK.ABNORMALPHENOMENA IS '异常现象';
COMMENT ON COLUMN T_LIMS_EQUIPT_POINTCHECK.CAUSEANALYSIS IS '原因分析';
COMMENT ON COLUMN T_LIMS_EQUIPT_POINTCHECK.ABNORMALHANDLING IS '异常处置';

ALTER TABLE T_LIMS_EQUIPT_POINTCHECK ADD CONSTRAINT PK_LIMS_EQUIPT_POINTCHECK PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_EQUIPT_POINTCHECK.SERVICE_NAME', '设备点检表', '设备点检表', 'zh-CN', '设备点检表');
CALL INSERTI18N('T_LIMS_EQUIPT_POINTCHECK.ID', '设备点检表的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_EQUIPT_POINTCHECK.EQUIPTID', '设备点检表的设备Id', '设备Id', 'zh-CN', '设备Id');
CALL INSERTI18N('T_LIMS_EQUIPT_POINTCHECK.EQUIPTNAME', '设备点检表的设备名称', '设备名称', 'zh-CN', '设备名称');
CALL INSERTI18N('T_LIMS_EQUIPT_POINTCHECK.EQUIPTCODE', '设备点检表的设备编码', '设备编码', 'zh-CN', '设备编码');
CALL INSERTI18N('T_LIMS_EQUIPT_POINTCHECK.TEST', '设备点检表的点检项目', '点检项目', 'zh-CN', '点检项目');
CALL INSERTI18N('T_LIMS_EQUIPT_POINTCHECK.FREQUENCY', '设备点检表的点检频率', '点检频率', 'zh-CN', '点检频率');
CALL INSERTI18N('T_LIMS_EQUIPT_POINTCHECK.CHECKER', '设备点检表的点检人', '点检人', 'zh-CN', '点检人');
CALL INSERTI18N('T_LIMS_EQUIPT_POINTCHECK.CHECKTIME', '设备点检表的点检时间', '点检时间', 'zh-CN', '点检时间');
CALL INSERTI18N('T_LIMS_EQUIPT_POINTCHECK.RESULT', '设备点检表的点检结果', '点检结果', 'zh-CN', '点检结果');
CALL INSERTI18N('T_LIMS_EQUIPT_POINTCHECK.EXECPTIONTIME', '设备点检表的异常处理时间', '异常处理时间', 'zh-CN', '异常处理时间');
CALL INSERTI18N('T_LIMS_EQUIPT_POINTCHECK.RECORD', '设备点检表的点检记录', '点检记录', 'zh-CN', '点检记录');
CALL INSERTI18N('T_LIMS_EQUIPT_POINTCHECK.ABNORMALPHENOMENA', '设备点检表的异常现象', '异常现象', 'zh-CN', '异常现象');
CALL INSERTI18N('T_LIMS_EQUIPT_POINTCHECK.CAUSEANALYSIS', '设备点检表的原因分析', '原因分析', 'zh-CN', '原因分析');
CALL INSERTI18N('T_LIMS_EQUIPT_POINTCHECK.ABNORMALHANDLING', '设备点检表的异常处置', '异常处置', 'zh-CN', '异常处置');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.POINTCHECKS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.POINTCHECKS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.POINTCHECKS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.POINTCHECKS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.POINTCHECKS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

-- 创建菜单语句
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('20230713111', '设备点检', '/secure/basemodule/trm/equipt/equipt-pointchecks/page/edit-list', '20220902013', '10', '042.svg', '设备点检');


-- ----------------------------- 2023-07-13 add by liujie1111@sunwayworld.com------------end

-- ----------------------------- 2023-07-14 add by liujie1111@sunwayworld.com------------begin
ALTER TABLE T_LIMS_EQUIPT ADD POINTCHECKSTATUS VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_EQUIPT.POINTCHECKSTATUS IS '设备点检状态';
ALTER TABLE T_LIMS_EQUIPT ADD VIRTUALLY VARCHAR2(12);
COMMENT ON COLUMN T_LIMS_EQUIPT.VIRTUALLY IS '是否虚拟设备';

CALL INSERTI18N('T_LIMS_EQUIPT.POINTCHECKSTATUS', '设备点检状态', '设备点检状态', 'zh-CN', '设备点检状态');

CALL INSERTI18N('T_LIMS_EQUIPT.VIRTUALLY', '是否虚拟设备', '是否虚拟设备', 'zh-CN', '是否虚拟设备');

ALTER TABLE T_LIMS_TEST ADD PROJECTGROUPING VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_TEST.PROJECTGROUPING IS '研发项目分组';

CALL INSERTI18N('T_LIMS_TEST.PROJECTGROUPING', '研发项目分组', '研发项目分组', 'zh-CN', '研发项目分组')

ALTER TABLE T_LIMS_WORKSHOP ADD LINEDISTINCTION VARCHAR2(120);
COMMENT ON COLUMN T_LIMS_WORKSHOP.LINEDISTINCTION IS '产线';

CALL INSERTI18N('T_LIMS_WORKSHOP.LINEDISTINCTION', '产线', '产线', 'zh-CN', '产线')

ALTER TABLE T_LIMS_FOLDER ADD LINEDISTINCTION VARCHAR2(100);


-- ----------------------------- 2023-07-14 add by liujie1111@sunwayworld.com------------end
-- ----------------------------- 2023-07-17 add by zengs@sunwayworld.com------------begin
INSERT INTO T_CORE_SCHEDULE_TASK (ID, TASKNAME, SERVICENAME, METHODNAME, TYPE)
VALUES ('equiptUpkeepRemind', '设备保养根据下次保养日期提前一天提醒', 'com.sunwayworld.basemodule.trm.equipt.upkeep.service.LimsEquiptUpkeepService', 'equiptUpkeepRemind', 'service');
-- ----------------------------- 2023-07-17 add by zengs@sunwayworld.com------------end

-- ----------------------------- 2023-07-17 add by liujie1111@sunwayworld.com--------------begin

-- 建表语句
CREATE TABLE T_LIMS_EQUIPT_SATURATION(
    ID NUMBER NOT NULL,
    CTESTNAME VARCHAR2(120)  NULL,
    EQUIPTNAME VARCHAR2(60)  NULL,
    EQUIPTCODE VARCHAR2(60)  NULL,
    BEATTIME VARCHAR2(12)  NULL,
    ORDERCOUNT VARCHAR2(12)  NULL,
    TIMECONSUMING VARCHAR2(12)  NULL,
    OPERATE VARCHAR2(12)  NULL,
    SINGLEQUANTITY VARCHAR2(12)  NULL,
    EQUIPTQUANTITY VARCHAR2(12)  NULL,
    MAXQUANTITY VARCHAR2(12)  NULL,
    TESTDAYS VARCHAR2(12)  NULL,
    WORKTIME VARCHAR2(12)  NULL,
    PROJECTTIME VARCHAR2(12)  NULL,
    MONWORKDAY VARCHAR2(12)  NULL,
    DEMAND VARCHAR2(12)  NULL,
    RESULT VARCHAR2(120)  NULL
 );
COMMENT ON TABLE T_LIMS_EQUIPT_SATURATION IS '设备饱和率';
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.ID IS '主键';
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.CTESTNAME IS '测试名';
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.EQUIPTNAME IS '使用的工装设备';
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.EQUIPTCODE IS '测试设备型号';
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.BEATTIME IS '节拍时间';
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.ORDERCOUNT IS '节拍内测试样品数量';
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.TIMECONSUMING IS '单个样品消耗时间';
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.OPERATE IS '运营时间';
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.SINGLEQUANTITY IS '单台设备测试量';
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.EQUIPTQUANTITY IS '设备数量';
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.MAXQUANTITY IS '设备最大测试量';
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.TESTDAYS IS '平均测试天数';
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.WORKTIME IS '员工工作时长';
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.PROJECTTIME IS '项目人力工时';
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.MONWORKDAY IS '每月工作天数';
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.DEMAND IS '测试需求人力';
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.RESULT IS '结论';

ALTER TABLE T_LIMS_EQUIPT_SATURATION ADD CONSTRAINT PK_LIMS_EQUIPT_SATURATION PRIMARY KEY (ID);



CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.SERVICE_NAME', '设备饱和率', '设备饱和率', 'zh-CN', '设备饱和率');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.ID', '设备饱和率的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.CTESTNAME', '设备饱和率的测试名', '测试名', 'zh-CN', '测试名');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.EQUIPTNAME', '设备饱和率的使用的工装设备', '使用的工装设备', 'zh-CN', '使用的工装设备');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.EQUIPTCODE', '设备饱和率的测试设备型号', '测试设备型号', 'zh-CN', '测试设备型号');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.BEATTIME', '设备饱和率的节拍时间', '节拍时间', 'zh-CN', '节拍时间');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.ORDERCOUNT', '设备饱和率的节拍内测试样品数量', '节拍内测试样品数量', 'zh-CN', '节拍内测试样品数量');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.TIMECONSUMING', '设备饱和率的单个样品消耗时间', '单个样品消耗时间', 'zh-CN', '单个样品消耗时间');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.OPERATE', '设备饱和率的运营时间', '运营时间', 'zh-CN', '运营时间');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.SINGLEQUANTITY', '设备饱和率的单台设备测试量', '单台设备测试量', 'zh-CN', '单台设备测试量');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.EQUIPTQUANTITY', '设备饱和率的设备数量', '设备数量', 'zh-CN', '设备数量');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.MAXQUANTITY', '设备饱和率的设备最大测试量', '设备最大测试量', 'zh-CN', '设备最大测试量');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.QUANTITY', '设备饱和率的测试总量', '测试总量', 'zh-CN', '测试总量');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.TESTDAYS', '设备饱和率的平均测试天数', '平均测试天数', 'zh-CN', '平均测试天数');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.AVGQUANTITY', '设备饱和率的当前每天送检量', '当前每天送检量', 'zh-CN', '当前每天送检量');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.STRENGTH', '设备饱和率的设备强度', '设备强度', 'zh-CN', '设备强度');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.WORKTIME', '设备饱和率的员工工作时长', '员工工作时长', 'zh-CN', '员工工作时长');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.PROJECTTIME', '设备饱和率的项目人力工时', '项目人力工时', 'zh-CN', '项目人力工时');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.MONWORKDAY', '设备饱和率的每月工作天数', '每月工作天数', 'zh-CN', '每月工作天数');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.DEMAND', '设备饱和率的测试需求人力', '测试需求人力', 'zh-CN', '测试需求人力');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.COEFFICIENT', '设备饱和率的人力系数', '人力系数', 'zh-CN', '人力系数');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.RESULT', '设备饱和率的结论', '结论', 'zh-CN', '结论');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.SATURATIONS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.SATURATIONS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.SATURATIONS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.SATURATIONS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.SATURATIONS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

-- 创建菜单语句
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('20230717001', '设备饱和率台账', '/secure/basemodule/trm/equipt/equipt-saturations/page/edit-list', '20220902013', '20', '073.svg', '设备饱和率');

ALTER TABLE T_LIMS_EQUIPT_SATURATION ADD PROVIDE VARCHAR2(120);
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.PROVIDE IS '测试分配人力';
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.PROVIDE', '测试分配人力', '测试分配人力', 'zh-CN', '测试分配人力');


COMMIT;

-- ----------------------------- 2023-07-17 add by liujie1111@sunwayworld.com------------end

-- ----------------------------- 2023-07-18 add by liujie1111@sunwayworld.com------------begin
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('20230718001', '设备饱和率', '/secure/basemodule/trm/equipt/equipt-saturations/page/saturationRate', '20220902013', '30', '074.svg', '设备饱和率');


-- ----------------------------- 2023-07-18 add by liujie1111@sunwayworld.com------------end

-- ----------------------------- 2023-07-19 add by liujie1111@sunwayworld.com------------begin
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('20230719001', '设备状态', '/secure/basemodule/trm/equipts/page/status', '20220902013', '40', '075.svg', '设备状态');

INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,I18NCODE) VALUES (202307190001,'合格','equiptStatus','13',1,2,'admin','系统管理员',NULL,'0',NULL,NULL,NULL,'合格',NULL);

INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,I18NCODE) VALUES (202307190002,'验收','equiptStatus','13',2,2,'admin','系统管理员',NULL,'0',NULL,NULL,NULL,'验收',NULL);

INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,I18NCODE) VALUES (202307190003,'故障','equiptStatus','13',3,2,'admin','系统管理员',NULL,'0',NULL,NULL,NULL,'故障',NULL);

INSERT INTO T_CORE_CODE (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,I18NCODE) VALUES (202307190004,'报废','equiptStatus','13',4,2,'admin','系统管理员',NULL,'0',NULL,NULL,NULL,'报废',NULL);


DELETE FROM  T_CORE_CODE WHERE ID IN (202110190003,202110190004,202110190005,2022082510441)
-- ----------------------------- 2023-07-19 add by liujie1111@sunwayworld.com------------end

-- ----------------------------- 2023-07-20 add by liujie1111@sunwayworld.com------------begin
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('20230720001', '设备点检统计', '/secure/basemodule/trm/equipts/page/pointcheck', '20220902013', '50', '076.svg', '设备点检统计');

ALTER TABLE T_LIMS_SPECIMEN_ITEM MODIFY SHORUPPER NVARCHAR2(36);
ALTER TABLE T_LIMS_SPECIMEN_ITEM MODIFY SHORLOWER NVARCHAR2(36);
CALL INSERTI18N('T_LIMS_STAFF_WORKLICENSE.WORKLICENSETYPE', '人员上岗证目标的上岗证名称', '上岗证名称', 'zh-CN', '上岗证名称');

INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME)
VALUES('staffDuties','人员职务','sys', NULL, NULL, NULL,NULL,NULL,NULL);
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID,  ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230720101, '检测人员', 'staffDuties',  1, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '检测人员');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID,  ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230720102, '非检测人员', 'staffDuties',  2, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '非检测人员');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID,  ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230720103, '技术人员', 'staffDuties', 3, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '技术人员');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID,  ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230720104, '管理人员', 'staffDuties',  4, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '管理人员');

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('230720001', '人员培训考核查询', '/secure/basemodule/basedata/staff-trains/page/search-list', '230705001', '60', '006.svg', '人员培训考核查询');

-- ----------------------------- 2023-07-20 add by liujie1111@sunwayworld.com------------end

-- ----------------------------- 2023-07-21 add by liujie1111@sunwayworld.com------------begin
CALL INSERTI18N('T_LIMS_TEST.STANDARDQUANTITY', '送检要求', '送检要求', 'zh-CN', '送检要求');
DELETE FROM  T_CORE_CODE WHERE ID  =20230720102
CALL INSERTI18N('T_LIMS_STAFF_TRAIN.PLANENDTIME', '培训考核表的学习结束时间', '学习结束时间', 'zh-CN', '学习结束时间');
CALL INSERTI18N('T_LIMS_STAFF_TRAIN.REALENDTIME', '培训考核表的学习通过时间', '学习通过时间', 'zh-CN', '学习通过时间');
CALL INSERTI18N('T_LIMS_STAFF_TRAIN.HEAD', '培训考核表的负责人', '培训负责人', 'zh-CN', '培训负责人');
-- ----------------------------- 2023-07-21 add by liujie1111@sunwayworld.com------------end


-- ----------------------------- 2023-07-24 add by liujie1111@sunwayworld.com------------begin
INSERT INTO T_CORE_MENU (ID,MENUNAME,HREF,PARENTID,ORDERNO,MENUINITNAME,LASTUPDATEDBYID,LASTUPDATEDBYNAME,LASTUPDATEDTIME,ICON,TODOICON,I18NCODE) VALUES ('20230724001','扣电项目统计','/secure/basemodule/business/test/ordtasks/page/kdStatistics','1001',19,'扣电项目统计',NULL,NULL,NULL,'003.svg',NULL,NULL);
CALL INSERTI18N('BASEMODULE.BASEDATA.EQUIPT.ASSOCIATED.VIRTUAL', '关联真实设备', '关联真实设备', 'zh-CN', '关联真实设备');
CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.VIRTUALEQUIPTCODE', '关联真实设备的真实设备编码', '真实设备编码', 'zh-CN', '真实设备编码');
CALL INSERTI18N('T_LIMS_EQUIPT_ASSOCIATEDVIRTUAL.VIRTUALEQUIPTNAME', '关联真实设备的真实设备名称', '真实设备名称', 'zh-CN', '真实设备名称');

DELETE FROM  T_CORE_CODE WHERE ID  =20230720101
DELETE FROM  T_CORE_CODE WHERE ID  =20230720103
DELETE FROM  T_CORE_CODE WHERE ID  =20230720104

INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID,  ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230724101, '全部', 'staffDuties',  1, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '全部');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID,  ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230724102, '测试人员', 'staffDuties',  2, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '测试人员');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID,  ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230724103, '非测试人员(技术、管理人员)', 'staffDuties', 3, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '非测试人员(技术、管理人员)');

INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('20230724002', '人员饱和率', '/secure/basemodule/trm/equipt/equipt-saturations/page/staffSaturationRate', '20220902013', '40', '075.svg', '人员饱和率');
-- ----------------------------- 2023-07-24 add by liujie1111@sunwayworld.com------------end


-- ----------------------------- 2023-07-25 add by liujie1111@sunwayworld.com--------------begin

-- 建表语句
CREATE TABLE T_LIMS_BASE_CHANGE(
    ID NUMBER NOT NULL,
    TESTNAME VARCHAR2(36)  NULL,
    TESTID NUMBER NULL,
    CHANGELEVEL VARCHAR2(36)  NULL,
    BASE VARCHAR2(36)  NULL,
    CHANGETYPE VARCHAR2(36)  NULL,
    FILEID NUMBER NULL,
    CHANGETIME DATE NULL
 );
COMMENT ON TABLE T_LIMS_BASE_CHANGE IS '实验室变更';
COMMENT ON COLUMN T_LIMS_BASE_CHANGE.ID IS '主键';
COMMENT ON COLUMN T_LIMS_BASE_CHANGE.TESTNAME IS '检测项目名称';
COMMENT ON COLUMN T_LIMS_BASE_CHANGE.TESTID IS '检测项目id';
COMMENT ON COLUMN T_LIMS_BASE_CHANGE.CHANGELEVEL IS '变更等级';
COMMENT ON COLUMN T_LIMS_BASE_CHANGE.BASE IS '基地';
COMMENT ON COLUMN T_LIMS_BASE_CHANGE.CHANGETYPE IS '变更类型';
COMMENT ON COLUMN T_LIMS_BASE_CHANGE.FILEID IS '附件ID';
COMMENT ON COLUMN T_LIMS_BASE_CHANGE.CHANGETIME IS '变更时间';

ALTER TABLE T_LIMS_BASE_CHANGE ADD CONSTRAINT PK_LIMS_BASE_CHANGE PRIMARY KEY (ID);




CALL INSERTI18N('T_LIMS_BASE_CHANGE.SERVICE_NAME', '实验室变更', '实验室变更', 'zh-CN', '实验室变更');
CALL INSERTI18N('T_LIMS_BASE_CHANGE.ID', '实验室变更的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_BASE_CHANGE.TESTNAME', '实验室变更的检测项目名称', '检测项目名称', 'zh-CN', '检测项目名称');
CALL INSERTI18N('T_LIMS_BASE_CHANGE.TESTID', '实验室变更的检测项目id', '检测项目id', 'zh-CN', '检测项目id');
CALL INSERTI18N('T_LIMS_BASE_CHANGE.CHANGELEVEL', '实验室变更的变更等级', '变更等级', 'zh-CN', '变更等级');
CALL INSERTI18N('T_LIMS_BASE_CHANGE.BASE', '实验室变更的基地', '基地', 'zh-CN', '基地');
CALL INSERTI18N('T_LIMS_BASE_CHANGE.CHANGETYPE', '实验室变更的变更类型', '变更类型', 'zh-CN', '变更类型');
CALL INSERTI18N('T_LIMS_BASE_CHANGE.FILEID', '实验室变更的附件ID', '附件ID', 'zh-CN', '附件ID');
CALL INSERTI18N('T_LIMS_BASE_CHANGE.CHANGETIME', '实验室变更的变更时间', '变更时间', 'zh-CN', '变更时间');
CALL INSERTI18N('BASEMODULE.BASEDATA.BASECHANGES.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BASEDATA.BASECHANGES.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BASEDATA.BASECHANGES.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BASEDATA.BASECHANGES.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BASEDATA.BASECHANGES.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

-- 创建菜单语句
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('230725001', '实验室变更', '/secure/basemodule/basedata/base-changes/page/edit-list', '91', '230725001', '042.svg', '实验室变更');
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('230725002', '实验室变更查询', '/secure/basemodule/basedata/base-changes/page/search-list', '91', '230725002', '043.svg', '实验室变更查询');




-- ----------------------------- 2023-07-25 add by liujie1111@sunwayworld.com------------end

-- ----------------------------- 2023-07-26 add by  miq@sunwayworld.com--------------begin
CALL INSERTI18N('T_CORE_ORG.ID_3', '三级部门编码', '三级部门编码', 'zh-CN', '三级部门编码');
CALL INSERTI18N('T_CORE_ORG.ORGNAME_3', '三级部门名称', '三级部门名称', 'zh-CN', '三级部门名称');
CALL INSERTI18N('T_CORE_ORG.ID_2', '二级部门编码', '二级部门编码', 'zh-CN', '二级部门编码');
CALL INSERTI18N('T_CORE_ORG.ORGNAME_2', '二级部门名称', '二级部门名称', 'zh-CN', '二级部门名称');
CALL INSERTI18N('T_CORE_ORG.ID_1', '一级部门编码', '一级部门编码', 'zh-CN', '一级部门编码');
CALL INSERTI18N('T_CORE_ORG.ORGNAME_1', '一级部门名称', '一级部门名称', 'zh-CN', '一级部门名称');

-- ----------------------------- 2023-07-26 add by miq@sunwayworld.com------------end


-- ----------------------------- 2023-07-27 add by liujie1111@sunwayworld.com------------begin
CALL INSERTI18N('T_LIMS_FOLDER.WORKSHOP', '车间', '车间', 'zh-CN', '车间');
CALL INSERTI18N('T_LIMS_FOLDER.LINEDISTINCTION', '产线', '产线', 'zh-CN', '产线');
ALTER TABLE T_LIMS_ORDTASK ADD VIRTUALEQUIPTCODE VARCHAR2(100);
COMMENT ON COLUMN T_LIMS_ORDTASK.VIRTUALEQUIPTCODE IS '真实设备编码';
ALTER TABLE T_LIMS_ORDTASK ADD VIRTUALEQUIPTNAME VARCHAR2(100);
COMMENT ON COLUMN T_LIMS_ORDTASK.VIRTUALEQUIPTNAME IS '真实设备名称';

ALTER TABLE T_LIMS_FOLDER ADD CORG2 VARCHAR2(32);
COMMENT ON COLUMN T_LIMS_FOLDER.CORG2 IS '委托二级部门';

UPDATE T_LIMS_FOLDER t SET CORG2=get_ORGID(t.CLIENTUSERORGID,'02')
WHERE CLIENTUSERORGID IS NOT null ;

CALL INSERTI18N('T_LIMS_FOLDER.CORG2', '委托二级部门', '委托二级部门', 'zh-CN', '委托二级部门');

ALTER TABLE T_LIMS_WORKLICENSE ADD APPLYTIME DATE;
COMMENT ON COLUMN T_LIMS_WORKLICENSE.APPLYTIME IS '上岗证申请时间';
ALTER TABLE T_LIMS_WORKLICENSE ADD PASSTIME DATE;
COMMENT ON COLUMN T_LIMS_WORKLICENSE.PASSTIME IS '学习通过时间';
CALL INSERTI18N('T_LIMS_STAFF_WORKLICENSE.APPLYTIME', '上岗证申请时间', '上岗证申请时间', 'zh-CN', '上岗证申请时间');
CALL INSERTI18N('T_LIMS_STAFF_WORKLICENSE.PASSTIME', '学习通过时间', '学习通过时间', 'zh-CN', '学习通过时间');

ALTER TABLE T_LIMS_ORDTASK MODIFY FORMULA VARCHAR2(360);


ALTER TABLE T_LIMS_STAFF_WORKLICENSE ADD STAFFNO VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_STAFF_WORKLICENSE.STAFFNO IS '人员工号';

-- ----------------------------- 2023-07-27 add by liujie1111@sunwayworld.com------------end

-- ----------------------------- 2023-07-28 add by liujie1111@sunwayworld.com------------begin
ALTER TABLE T_LIMS_WORKLICENSE ADD STATUS VARCHAR2(12);
COMMENT ON COLUMN T_LIMS_WORKLICENSE.STATUS IS '上岗证类别';

INSERT INTO T_CORE_MENU (ID,MENUNAME,HREF,PARENTID,ORDERNO,MENUINITNAME,LASTUPDATEDBYID,LASTUPDATEDBYNAME,LASTUPDATEDTIME,ICON,TODOICON,I18NCODE) VALUES ('230728001','测试及时率','/secure/basemodule/business/test/tasks/page/timelinessrate','91',230728001,'测试及时率',NULL,NULL,NULL,'004.svg',NULL,NULL);



-- ----------------------------- 2023-07-28 add by liujie1111@sunwayworld.com------------end


-- ----------------------------- 2023-07-28 add by dingjian-----------start

ALTER TABLE T_LIMS_TESTGROUP ADD AUTOAUDITFLAG varchar2(12) NULL;
COMMENT ON COLUMN T_LIMS_TESTGROUP.AUTOAUDITFLAG IS '检测组负责人节点自动审核标识';

ALTER TABLE T_LIMS_FOLDER ADD AUTOAUDITFLAG varchar2(12) NULL;
COMMENT ON COLUMN T_LIMS_FOLDER.AUTOAUDITFLAG IS '检测组负责人节点自动审核标识，Y为需自动审核';


INSERT INTO T_CORE_SCHEDULE_TASK (ID, TASKNAME, SERVICENAME, METHODNAME, TYPE)
VALUES ('handleAutoAuditFolder', '自动审核指定检测负责人节点委托单', 'com.sunwayworld.basemodule.business.test.folder.service.impl.LimsFolderService', 'handleAutoAuditFolder', 'service')
-- ----------------------------- 2023-07-28 add by dingjian-----------end

-- ----------------------------- 2023-07-31 add by liujie-----------begin

CREATE TABLE T_CORE_REQUEST_URL_WHITE_LIST (
     ID NUMBER NOT NULL,
     URL VARCHAR2(768)   NULL ,
     METHOD VARCHAR2(24)   NULL ,
     NOTE VARCHAR2(192)   NULL ,
     CREATEDBYID VARCHAR2(36)   NULL ,
     CREATEDBYNAME VARCHAR2(60)  NULL ,
     CREATEDTIME DATE  NULL ,
     CREATEDBYORGID VARCHAR2(36)   NULL ,
     CREATEDBYORGNAME VARCHAR2(270)   NULL

)
ALTER TABLE T_CORE_REQUEST_URL_WHITE_LIST ADD CONSTRAINT PK_T_CORE_REQUEST_URL_WHITE_LIST PRIMARY KEY (ID);

CALL INSERTI18N('T_CORE_REQUEST_URL_WHITE_LIST.SERVICE_NAME', '接口鉴权白名单', '接口鉴权白名单', 'zh-CN', '接口鉴权白名单');
CALL INSERTI18N('T_CORE_REQUEST_URL_WHITE_LIST.ID', '接口鉴权白名单的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_CORE_REQUEST_URL_WHITE_LIST.URL', '接口鉴权白名单的请求路径', '请求路径', 'zh-CN', '请求路径');
CALL INSERTI18N('T_CORE_REQUEST_URL_WHITE_LIST.METHOD', '接口鉴权白名单的请求方法', '请求方法', 'zh-CN', '请求方法');
CALL INSERTI18N('T_CORE_REQUEST_URL_WHITE_LIST.NOTE', '接口鉴权白名单的功能说明', '功能说明', 'zh-CN', '功能说明');
CALL INSERTI18N('T_CORE_REQUEST_URL_WHITE_LIST.CREATEDBYID', '接口鉴权白名单的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_CORE_REQUEST_URL_WHITE_LIST.CREATEDBYNAME', '接口鉴权白名单的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_CORE_REQUEST_URL_WHITE_LIST.CREATEDTIME', '接口鉴权白名单的制单时间', '制单时间', 'zh-CN', '制单时间');
CALL INSERTI18N('T_CORE_REQUEST_URL_WHITE_LIST.CREATEDBYORGID', '接口鉴权白名单的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_CORE_REQUEST_URL_WHITE_LIST.CREATEDBYORGNAME', '接口鉴权白名单的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');
CALL INSERTI18N('MODULE.ADMIN.REQUESTS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('MODULE.ADMIN.REQUESTS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('MODULE.ADMIN.REQUESTS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('MODULE.ADMIN.REQUESTS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('MODULE.ADMIN.REQUESTS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

-- 创建菜单语句
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('2023060801', '接口鉴权白名单', '/secure/module/admin/request-url-white-lists/page/edit-list', '93', '2023060801', '053.svg', '接口鉴权白名单');

-- ----------------------------- 2023-07-31 add by liujie-----------end


-- ----------------------------- 2023-08-01 add by liujie-----------begin
update T_LIMS_TEST set  STANDARDQUANTITY =null;
update T_LIMS_TASK set  STANDARDQUANTITY =null;
ALTER TABLE T_LIMS_TASK MODIFY STANDARDQUANTITY VARCHAR2(32) DEFAULT NULL;

ALTER TABLE T_LIMS_TEST MODIFY STANDARDQUANTITY VARCHAR2(32) DEFAULT NULL;

-- ----------------------------- 2023-08-01 add by liujie-----------end

 -- ----------------------------- 2023-08-02 add by liujie1111@sunwayworld.com--------------begin

-- 建表语句
CREATE TABLE T_LIMS_ANALYST_ASSOCIATION(
    ID NUMBER NOT NULL,
    ANALYSTID NUMBER NULL,
    ANALYSTNAME VARCHAR2(36)  NULL,
    TESTID NUMBER NULL,
    TESTMETHODID NUMBER NULL,
    ACCOCTESTID NUMBER NULL,
    ACCOCTESTNAME VARCHAR2(36)  NULL,
    ACCOCANALYSTNAME VARCHAR2(36)  NULL,
    ACCOCANALYSTID NUMBER NULL
 );
COMMENT ON TABLE T_LIMS_ANALYST_ASSOCIATION IS '关联分析项';
COMMENT ON COLUMN T_LIMS_ANALYST_ASSOCIATION.ID IS '主键';
COMMENT ON COLUMN T_LIMS_ANALYST_ASSOCIATION.ANALYSTID IS '分析项ID';
COMMENT ON COLUMN T_LIMS_ANALYST_ASSOCIATION.ANALYSTNAME IS '分析项名称';
COMMENT ON COLUMN T_LIMS_ANALYST_ASSOCIATION.TESTID IS '检测项ID';
COMMENT ON COLUMN T_LIMS_ANALYST_ASSOCIATION.TESTMETHODID IS '检测方法ID';
COMMENT ON COLUMN T_LIMS_ANALYST_ASSOCIATION.ACCOCTESTID IS '关联检测项ID';
COMMENT ON COLUMN T_LIMS_ANALYST_ASSOCIATION.ACCOCTESTNAME IS '关联检测项名称';
COMMENT ON COLUMN T_LIMS_ANALYST_ASSOCIATION.ACCOCANALYSTNAME IS '关联分析项名称';
COMMENT ON COLUMN T_LIMS_ANALYST_ASSOCIATION.ACCOCANALYSTID IS '关联分析项ID';

ALTER TABLE T_LIMS_ANALYST_ASSOCIATION ADD CONSTRAINT PK_LIMS_ANALYST_ASSOCIATION PRIMARY KEY (ID);


CALL INSERTI18N('T_LIMS_ANALYST_ASSOCIATION.SERVICE_NAME', '关联分析项', '关联分析项', 'zh-CN', '关联分析项');
CALL INSERTI18N('T_LIMS_ANALYST_ASSOCIATION.ID', '关联分析项的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_ANALYST_ASSOCIATION.ANALYSTID', '关联分析项的分析项ID', '分析项ID', 'zh-CN', '分析项ID');
CALL INSERTI18N('T_LIMS_ANALYST_ASSOCIATION.ANALYSTNAME', '关联分析项的分析项名称', '分析项名称', 'zh-CN', '分析项名称');
CALL INSERTI18N('T_LIMS_ANALYST_ASSOCIATION.TESTID', '关联分析项的检测项ID', '检测项ID', 'zh-CN', '检测项ID');
CALL INSERTI18N('T_LIMS_ANALYST_ASSOCIATION.TESTMETHODID', '关联分析项的检测方法ID', '检测方法ID', 'zh-CN', '检测方法ID');
CALL INSERTI18N('T_LIMS_ANALYST_ASSOCIATION.ACCOCTESTID', '关联分析项的关联检测项ID', '关联检测项ID', 'zh-CN', '关联检测项ID');
CALL INSERTI18N('T_LIMS_ANALYST_ASSOCIATION.ACCOCTESTNAME', '关联分析项的关联检测项名称', '关联检测项名称', 'zh-CN', '关联检测项名称');
CALL INSERTI18N('T_LIMS_ANALYST_ASSOCIATION.ACCOCANALYSTNAME', '关联分析项的关联分析项名称', '关联分析项名称', 'zh-CN', '关联分析项名称');
CALL INSERTI18N('T_LIMS_ANALYST_ASSOCIATION.ACCOCANALYSTID', '关联分析项的关联分析项ID', '关联分析项ID', 'zh-CN', '关联分析项ID');
CALL INSERTI18N('BASEMODULE.COREDATA.TEST.ANALYSTASSOCIATIONS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.COREDATA.TEST.ANALYSTASSOCIATIONS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.COREDATA.TEST.ANALYSTASSOCIATIONS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.COREDATA.TEST.ANALYSTASSOCIATIONS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.COREDATA.TEST.ANALYSTASSOCIATIONS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');




COMMIT;

-- ----------------------------- 2023-08-02 add by liujie1111@sunwayworld.com------------end

-- ----------------------------- 2023-08-04 add by liujie1111@sunwayworld.com------------begin

INSERT INTO T_CORE_CONSTANT (ID,CONSTANTVALUE,CONSTANTDESC,CLASSFICATION,SHOW,LASTUPDATEDTIME,CREATEDTIME,CREATEDBYID,CREATEDBYNAME,LASTUPDATEDBYID,LASTUPDATEDBYNAME,VERSION) VALUES ('CHECK_ACCESS_PERMISSION_AUTO_INSERT','1','垂直越权','系统','1',NULL,NULL,NULL,NULL,NULL,NULL,0);

ALTER TABLE T_LIMS_EQUIPT_SATURATION ADD TESTGROUP VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.TESTGROUP IS '测试组';
ALTER TABLE T_LIMS_EQUIPT_SATURATION ADD BASE VARCHAR2(36);
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.BASE IS '基地';
ALTER TABLE T_LIMS_EQUIPT_SATURATION ADD ISCTEST VARCHAR2(12);
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.ISCTEST IS '是否C项目';
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.TESTGROUP', '测试组', '测试组', 'zh-CN', '测试组');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.BASE', '基地', '基地', 'zh-CN', '基地');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.ISCTEST', '是否C项目', '是否C项目', 'zh-CN', '是否C项目');


-- ----------------------------- 2023-08-04 add by liujie1111@sunwayworld.com------------end
-- ----------------------------- 2023-08-07 add by liujie1111@sunwayworld.com------------begin
ALTER TABLE T_LIMS_TESTGROUP ADD BASENAME VARCHAR2(90);
COMMENT ON COLUMN T_LIMS_TESTGROUP.BASENAME IS '基地名称';
CALL INSERTI18N('T_LIMS_TESTGROUP.BASENAME', '基地名称', '基地名称', 'zh-CN', '基地名称');

ALTER TABLE T_LIMS_EQUIPT_SATURATION ADD RESERVEPERSONNEL VARCHAR2(12);
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.RESERVEPERSONNEL IS '储备人员人力';
ALTER TABLE T_LIMS_EQUIPT_SATURATION ADD TOTALCOEFFICIENT VARCHAR2(12);
COMMENT ON COLUMN T_LIMS_EQUIPT_SATURATION.TOTALCOEFFICIENT IS '总人力系数';
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.RESERVEPERSONNEL', '储备人员人力', '储备人员人力', 'zh-CN', '储备人员人力');
CALL INSERTI18N('T_LIMS_EQUIPT_SATURATION.TOTALCOEFFICIENT', '总人力系数', '总人力系数', 'zh-CN', '总人力系数');

-- 创建菜单语句
INSERT INTO T_CORE_MENU (ID, MENUNAME, HREF, PARENTID, ORDERNO, ICON, MENUINITNAME)
VALUES ('20230813111', '设备点检查询', '/secure/basemodule/trm/equipt/equipt-pointchecks/page/search-list', '20220902013', '11', '043.svg', '设备点检查询');

-- ----------------------------- 2023-08-07 add by liujie1111@sunwayworld.com------------end

-- ----------------------------- 2023-08-08 add by liujie1111@sunwayworld.com------------begin
ALTER TABLE T_LIMS_EQUIPT_POINTCHECK ADD SUBMITSTATUS VARCHAR2(12);
COMMENT ON COLUMN T_LIMS_EQUIPT_POINTCHECK.SUBMITSTATUS IS '是否点检';
-- ----------------------------- 2023-08-08 add by liujie1111@sunwayworld.com------------begin

-- ----------------------------- 2023-08-09 add by liujie1111@sunwayworld.com------------begin
INSERT INTO T_CORE_MENU (ID,MENUNAME,HREF,PARENTID,ORDERNO,MENUINITNAME,LASTUPDATEDBYID,LASTUPDATEDBYNAME,LASTUPDATEDTIME,ICON,TODOICON,I18NCODE)
VALUES ('20230809001','质控定时报检任务编辑','/secure/basemodule/trm/qualitycontrol/specimens/page/scheduledEdit','9107',910710,'质控定时报检任务编辑',NULL,NULL,NULL,'061.svg',NULL,NULL);
-- ----------------------------- 2023-08-09 add by liujie1111@sunwayworld.com------------end


-- ----------------------------- 2023-08-10 add by liujie1111@sunwayworld.com------------begin
ALTER TABLE T_LIMS_FOLDER ADD FIRSTQUALITYTIME DATE;
COMMENT ON COLUMN T_LIMS_FOLDER.FIRSTQUALITYTIME IS '首次报检时间';
ALTER TABLE T_LIMS_FOLDER ADD FREQUENCY VARCHAR2(32);
COMMENT ON COLUMN T_LIMS_FOLDER.FREQUENCY IS '报检频率';
ALTER TABLE T_LIMS_FOLDER ADD ISACTIVATE VARCHAR2(32);
COMMENT ON COLUMN T_LIMS_FOLDER.ISACTIVATE IS '是否启用';
ALTER TABLE T_LIMS_FOLDER ADD SCHEDULEDEDIT VARCHAR2(12);
CALL INSERTI18N('T_LIMS_FOLDER.FIRSTQUALITYTIME', '首次报检时间', '首次报检时间', 'zh-CN', '首次报检时间');
CALL INSERTI18N('T_LIMS_FOLDER.FREQUENCY', '报检频率', '报检频率', 'zh-CN', '报检频率');
CALL INSERTI18N('T_LIMS_FOLDER.ISACTIVATE', '是否启用', '是否启用', 'zh-CN', '是否启用');


-- ----------------------------- 2023-08-10 add by liujie1111@sunwayworld.com------------end

 -- ----------------------------- 2023-08-11 add by liujie1111@sunwayworld--------------begin

-- 建表语句
CREATE TABLE T_LIMS_STAFF_SATURATION(
    ID NUMBER NOT NULL,
    BASE VARCHAR2(12)  NULL,
    TESTGROUP VARCHAR2(12)  NULL,
    TESTNAME VARCHAR2(36)  NULL,
    DIMENSION VARCHAR2(12)  NULL,
    TIMEORDER VARCHAR2(12)  NULL,
    STAFFRESOURCES VARCHAR2(12)  NULL,
    RESOURCESATURATION VARCHAR2(12)  NULL,
    RESERVE VARCHAR2(12)  NULL,
    RESERVESATURATION VARCHAR2(12)  NULL
 );
COMMENT ON TABLE T_LIMS_STAFF_SATURATION IS '人员饱和度';
COMMENT ON COLUMN T_LIMS_STAFF_SATURATION.ID IS '主键';
COMMENT ON COLUMN T_LIMS_STAFF_SATURATION.BASE IS '基地';
COMMENT ON COLUMN T_LIMS_STAFF_SATURATION.TESTGROUP IS '检测组';
COMMENT ON COLUMN T_LIMS_STAFF_SATURATION.TESTNAME IS '检测项目';
COMMENT ON COLUMN T_LIMS_STAFF_SATURATION.DIMENSION IS '维度（周/月）';
COMMENT ON COLUMN T_LIMS_STAFF_SATURATION.TIMEORDER IS '周次/月次';
COMMENT ON COLUMN T_LIMS_STAFF_SATURATION.STAFFRESOURCES IS '测试人力';
COMMENT ON COLUMN T_LIMS_STAFF_SATURATION.RESOURCESATURATION IS '测试人力饱和度';
COMMENT ON COLUMN T_LIMS_STAFF_SATURATION.RESERVE IS '测试+储备人力';
COMMENT ON COLUMN T_LIMS_STAFF_SATURATION.RESERVESATURATION IS '测试+储备人力饱和度';

ALTER TABLE T_LIMS_STAFF_SATURATION ADD CONSTRAINT PK_LIMS_STAFF_SATURATION PRIMARY KEY (ID);




CALL INSERTI18N('T_LIMS_STAFF_SATURATION.SERVICE_NAME', '人员饱和度', '人员饱和度', 'zh-CN', '人员饱和度');
CALL INSERTI18N('T_LIMS_STAFF_SATURATION.ID', '人员饱和度的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_STAFF_SATURATION.BASE', '人员饱和度的基地', '基地', 'zh-CN', '基地');
CALL INSERTI18N('T_LIMS_STAFF_SATURATION.TESTGROUP', '人员饱和度的检测组', '检测组', 'zh-CN', '检测组');
CALL INSERTI18N('T_LIMS_STAFF_SATURATION.TESTNAME', '人员饱和度的检测项目', '检测项目', 'zh-CN', '检测项目');
CALL INSERTI18N('T_LIMS_STAFF_SATURATION.DIMENSION', '人员饱和度的维度（周/月）', '维度（周/月）', 'zh-CN', '维度（周/月）');
CALL INSERTI18N('T_LIMS_STAFF_SATURATION.TIMEORDER', '人员饱和度的周次/月次', '周次/月次', 'zh-CN', '周次/月次');
CALL INSERTI18N('T_LIMS_STAFF_SATURATION.STAFFRESOURCES', '人员饱和度的测试人力', '测试人力', 'zh-CN', '测试人力');
CALL INSERTI18N('T_LIMS_STAFF_SATURATION.RESOURCESATURATION', '人员饱和度的测试人力饱和度', '测试人力饱和度', 'zh-CN', '测试人力饱和度');
CALL INSERTI18N('T_LIMS_STAFF_SATURATION.RESERVE', '人员饱和度的测试+储备人力', '测试+储备人力', 'zh-CN', '测试+储备人力');
CALL INSERTI18N('T_LIMS_STAFF_SATURATION.RESERVESATURATION', '人员饱和度的测试+储备人力饱和度', '测试+储备人力饱和度', 'zh-CN', '测试+储备人力饱和度');
CALL INSERTI18N('BASEMODULE.BASEDATA.STAFF.SATURATIONS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.BASEDATA.STAFF.SATURATIONS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.BASEDATA.STAFF.SATURATIONS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.BASEDATA.STAFF.SATURATIONS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.BASEDATA.STAFF.SATURATIONS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

ALTER TABLE T_LIMS_STAFF_SATURATION ADD STATISTICALDIMENSION VARCHAR2(12);
COMMENT ON COLUMN T_LIMS_STAFF_SATURATION.STATISTICALDIMENSION IS '统计维度';


-- ----------------------------- 2023-08-11 add by liujie1111@sunwayworld------------end

-- ----------------------------- 2023-08-14 add by liujie1111@sunwayworld------------begin
UPDATE T_CORE_MENU SET HREF = '/secure/basemodule/trm/equipts/page/pointCheck' WHERE ID = 20230713111
-- ----------------------------- 2023-08-14 add by liujie1111@sunwayworld------------end

-- ----------------------------- 2023-09-18 add by gaozq------------begin
alter table T_LIMS_TRAIN_USER add INEXTERNAL VARCHAR2(36);
comment on column T_LIMS_TRAIN_USER.INEXTERNAL is '内部/外部';
CALL INSERTI18N('T_LIMS_TRAIN_USER.INEXTERNAL','内部/外部','内部/外部','zh-CN','内部/外部');

alter table T_LIMS_TRAIN_USER add REMARK VARCHAR2(200);
comment on column T_LIMS_TRAIN_USER.REMARK is '备注说明';

CALL INSERTI18N('T_LIMS_TRAIN_USER.REMARK','备注说明','备注说明','zh-CN','备注说明');

-- ----------------------------- 2023-09-18 add by gaozq------------end
-- ----------------------------- 2023-09-19 add by gaozq------------begin
alter table T_LIMS_STAFF add USERSIGNATURE VARCHAR2(60);
comment on column T_LIMS_STAFF.USERSIGNATURE is '电子签名';
CALL INSERTI18N('T_LIMS_STAFF.USERSIGNATURE','电子签名','电子签名','zh-CN','电子签名');


alter table T_LIMS_SUPERVISION add TEMPORARYFLAG VARCHAR2(10);
comment on column T_LIMS_SUPERVISION.TEMPORARYFLAG is '临时计划';
CALL INSERTI18N('T_LIMS_SUPERVISION.TEMPORARYFLAG','临时计划','临时计划','zh-CN','临时计划');
CALL INSERTI18N('GIKAM.BUTTON.INSERT.TEMPORARYFLAG','新增临时计划','新增临时计划','zh-CN','新增临时计划');

INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230919001, '质量负责人', 'post', '13', 1, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '质量负责人');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230919002, '技术负责人', 'post', '13', 2, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '技术负责人');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230919003, '样品管理员', 'post', '13', 3, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '样品管理员');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230919004, '实验室组长', 'post', '13', 4, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '实验室组长');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230919005, '实验员', 'post', '13', 5, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '实验员');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230919006, '报告编制人', 'post', '13', 6, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '报告编制人');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230919007, '报告审核人', 'post', '13', 7, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '报告审核人');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230919008, '报告批准人', 'post', '13', 8, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '报告批准人');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230919009, '设备管理员', 'post', '13', 9, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '设备管理员');
INSERT INTO T_CORE_CODE
(ID, CODENAME, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, CREATEDTIME, LASTSUSPENDEDFLAG, LASTSUSPENDEDBYID, LASTSUSPENDEDBYNAME, LASTSUSPENDEDTIME, CODE)
VALUES(20230919010, '物资管理员', 'post', '13', 10, 1, 'admin', '系统管理员', NULL, '0', NULL, NULL, NULL, '物资管理员');
-- ----------------------------- 2023-09-19 add by gaozq------------end
-- ----------------------------- 2023-09-20 add by gaozq------------end
CALL INSERTI18N('T_LIMS_EQUIPT.IDNORMALRANGE', '设备量程', '设备量程', 'zh-CN', '设备量程');

alter table T_LIMS_EQUIPT add PRECISION VARCHAR2(36);
comment on column T_LIMS_EQUIPT.PRECISION is '设备精度';

CALL INSERTI18N('T_LIMS_EQUIPT.PRECISION','设备精度','设备精度','zh-CN','设备精度');
CALL INSERTI18N('T_LIMS_EQUIPT.ORGNAME', '所属部门', '所属部门', 'zh-CN', '所属部门');


alter table T_LIMS_EQUIPT add GUARANTEEPERIODENDTIME DATE;
comment on column T_LIMS_EQUIPT.GUARANTEEPERIODENDTIME is '质保期结束时间';
alter table T_LIMS_EQUIPT add GUARANTEEPERIODSTARTTIME DATE;
comment on column T_LIMS_EQUIPT.GUARANTEEPERIODSTARTTIME is '质保期开始时间';

CALL INSERTI18N('T_LIMS_EQUIPT.GUARANTEEPERIODENDTIME','质保期结束时间','质保期结束时间','zh-CN','质保期结束时间');
CALL INSERTI18N('T_LIMS_EQUIPT.GUARANTEEPERIODSTARTTIME','质保期开始时间','质保期开始时间','zh-CN','质保期开始时间');

alter table T_LIMS_EQUIPT add LASTMAINTENANCEDATE DATE;
comment on column T_LIMS_EQUIPT.LASTMAINTENANCEDATE is '上次维修保养日期';
CALL INSERTI18N('T_LIMS_EQUIPT.LASTMAINTENANCEDATE','上次维修保养日期','上次维修保养日期','zh-CN','上次维修保养日期');

alter table T_LIMS_EQUIPT add KEEPERID VARCHAR2(36);
comment on column T_LIMS_EQUIPT.KEEPERID is '保管人id';
alter table T_LIMS_EQUIPT add KEEPER VARCHAR2(60);
comment on column T_LIMS_EQUIPT.KEEPER is '保管人';
CALL INSERTI18N('T_LIMS_EQUIPT.KEEPERID','保管人id','保管人id','zh-CN','保管人id');
CALL INSERTI18N('T_LIMS_EQUIPT.KEEPER','保管人','保管人','zh-CN','保管人');


alter table T_LIMS_EQUIPT add CONTRACTNO VARCHAR2(36);
comment on column T_LIMS_EQUIPT.CONTRACTNO is '合同编号';
CALL INSERTI18N('T_LIMS_EQUIPT.CONTRACTNO','合同编号','合同编号','zh-CN','合同编号');

alter table T_LIMS_EQUIPT add EQUIPTSIZE VARCHAR2(36);
comment on column T_LIMS_EQUIPT.EQUIPTSIZE is '设备尺寸';
CALL INSERTI18N('T_LIMS_EQUIPT.EQUIPTSIZE','设备尺寸','设备尺寸','zh-CN','设备尺寸');

alter table T_LIMS_EQUIPT add SUPPLIER VARCHAR2(60);
comment on column T_LIMS_EQUIPT.SUPPLIER is '供应商';
CALL INSERTI18N('T_LIMS_EQUIPT.SUPPLIER','供应商','供应商','zh-CN','供应商');

alter table T_LIMS_EQUIPT add MEASUREVALIDITYDATE DATE;
comment on column T_LIMS_EQUIPT.MEASUREVALIDITYDATE is '计量有效期';
CALL INSERTI18N('T_LIMS_EQUIPT.MEASUREVALIDITYDATE','计量有效期','计量有效期','zh-CN','计量有效期');

-- ----------------------------- 2023-09-20 add by gaozq------------end


