From d5fccf7a613cbfc46126310c17807e687ba711c2 Mon Sep 17 00:00:00 2001 From: hodong13 Date: Wed, 21 Oct 2020 06:18:49 +0000 Subject: [PATCH] --- Dao/DB/DB1.Scheme.txt | 1 + Dao/MyBatis/Maps/CM.xml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dao/DB/DB1.Scheme.txt b/Dao/DB/DB1.Scheme.txt index c2b15f1..016a457 100644 --- a/Dao/DB/DB1.Scheme.txt +++ b/Dao/DB/DB1.Scheme.txt @@ -412,6 +412,7 @@ create table cm ( ,typeedu varchar(100) null ,typegrade varchar(100) null ,typejob varchar(100) null + ,iscertificate tinyint not null default 1 ,isdel tinyint not null ,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL ,primary key(cmno)); diff --git a/Dao/MyBatis/Maps/CM.xml b/Dao/MyBatis/Maps/CM.xml index e593f5f..d04a189 100644 --- a/Dao/MyBatis/Maps/CM.xml +++ b/Dao/MyBatis/Maps/CM.xml @@ -1202,14 +1202,14 @@ insert into cm(ismaster,cgno,pcmno,cname,kname,tmno,classno,rstime,retime,sstime,setime,gstime,getime,cshape,typeman,typeedu,typegrade,typejob,infee,outfee,quota,introhtml,targethtml,goalhtml,contenthtml,studyplace,studytime - ,certcc,certgradecc,jobcc,jobpositiongrade,difficulty,isrefund,isuse,isseq,isdel,) + ,certcc,certgradecc,jobcc,jobpositiongrade,difficulty,isrefund,isuse,isseq,iscertificate,isdel,) select #ismaster#,cgno,case when a.ismaster = 1 and #ismaster# = 0 then a.cmno else a.pcmno end,ifnull(#cname#, concat('사본_', cname)),a.kname,#tmno# ,case when #tmno# is null then null else ifnull(b.classno,0)+1 end ,t.rstime,date_format(t.retime,'%Y-%m-%d 23:59:59') retime ,t.sstime,date_format(t.setime,'%Y-%m-%d 23:59:59') setime ,t.gstime,date_format(t.getime,'%Y-%m-%d 23:59:59') getime ,a.cshape,a.typeman,a.typeedu,a.typegrade,a.typejob,infee,outfee,quota,introhtml,targethtml,goalhtml,contenthtml,studyplace,studytime - ,certcc,certgradecc,jobcc,jobpositiongrade,difficulty,isrefund,1,isseq,0, + ,certcc,certgradecc,jobcc,jobpositiongrade,difficulty,isrefund,1,isseq,a.iscertificate,0, from cm a left outer join ( select max(b.classno) classno