CONSTRUID, DEVICENAME, EQUIPMENT, CONSTRUCTIONUNITS, CONSTRUPEOPLE, CONSTRUDATE,
CONSTRUCONTENT, CONSTRUFILE, SIGNTIME, BZ, IMAGEURL, IMAGENAME, MAXID, DECLAREID
t.CONSTRUID, t.DEVICENAME, t.EQUIPMENT, t.CONSTRUCTIONUNITS, t.CONSTRUPEOPLE, t.CONSTRUDATE,
t.CONSTRUCONTENT, t.CONSTRUFILE, t.SIGNTIME, t.BZ, t.IMAGEURL, t.IMAGENAME, t.MAXID,
t.DECLAREID
SELECT FROM T_SUBMITTED
SELECT FROM T_SUBMITTED t
and CONSTRUID = #{construid}
and DEVICENAME = #{devicename}
and EQUIPMENT = #{equipment}
and CONSTRUCTIONUNITS = #{constructionunits}
and CONSTRUPEOPLE = #{construpeople}
and CONSTRUDATE = #{construdate}
and CONSTRUCONTENT = #{construcontent}
and CONSTRUFILE = #{construfile}
and SIGNTIME = #{signtime}
and BZ = #{bz}
and IMAGEURL = #{imageurl}
and IMAGENAME = #{imagename}
and MAXID = #{maxid}
and DECLAREID = #{declareid}
and CONSTRUID LIKE '%${construid}%'
and DEVICENAME LIKE '%${devicename}%'
and EQUIPMENT LIKE '%${equipment}%'
and CONSTRUCTIONUNITS LIKE '%${constructionunits}%'
and CONSTRUPEOPLE LIKE '%${construpeople}%'
and CONSTRUDATE LIKE '%${construdate}%'
and CONSTRUCONTENT LIKE '%${construcontent}%'
and CONSTRUFILE LIKE '%${construfile}%'
and SIGNTIME LIKE '%${signtime}%'
and BZ LIKE '%${bz}%'
and IMAGEURL LIKE '%${imageurl}%'
and IMAGENAME LIKE '%${imagename}%'
and MAXID = #{maxid}
and DECLAREID LIKE '%${declareid}%'
delete from T_SUBMITTED
where CONSTRUID = #{construid,jdbcType=VARCHAR}
delete from T_SUBMITTED
where 1!=1
or DEVICENAME = #{devicename}
or EQUIPMENT = #{equipment}
or CONSTRUCTIONUNITS = #{constructionunits}
or CONSTRUPEOPLE = #{construpeople}
or CONSTRUDATE = #{construdate}
or CONSTRUCONTENT = #{construcontent}
or CONSTRUFILE = #{construfile}
or SIGNTIME = #{signtime}
or BZ = #{bz}
or IMAGEURL = #{imageurl}
or IMAGENAME = #{imagename}
or MAXID = #{maxid}
or DECLAREID = #{declareid}
insert into T_SUBMITTED (CONSTRUID, DEVICENAME, EQUIPMENT,
CONSTRUCTIONUNITS, CONSTRUPEOPLE, CONSTRUDATE,
CONSTRUCONTENT, CONSTRUFILE, SIGNTIME,
BZ, IMAGEURL, IMAGENAME,
MAXID, DECLAREID)
values (#{construid,jdbcType=VARCHAR}, #{devicename,jdbcType=VARCHAR}, #{equipment,jdbcType=VARCHAR},
#{constructionunits,jdbcType=VARCHAR}, #{construpeople,jdbcType=VARCHAR}, #{construdate,jdbcType=VARCHAR},
#{construcontent,jdbcType=VARCHAR}, #{construfile,jdbcType=VARCHAR}, #{signtime,jdbcType=VARCHAR},
#{bz,jdbcType=VARCHAR}, #{imageurl,jdbcType=VARCHAR}, #{imagename,jdbcType=VARCHAR},
#{maxid,jdbcType=DECIMAL}, #{declareid,jdbcType=VARCHAR})
insert into T_SUBMITTED
CONSTRUID,
DEVICENAME,
EQUIPMENT,
CONSTRUCTIONUNITS,
CONSTRUPEOPLE,
CONSTRUDATE,
CONSTRUCONTENT,
CONSTRUFILE,
SIGNTIME,
BZ,
IMAGEURL,
IMAGENAME,
MAXID,
DECLAREID,
#{construid,jdbcType=VARCHAR},
#{devicename,jdbcType=VARCHAR},
#{equipment,jdbcType=VARCHAR},
#{constructionunits,jdbcType=VARCHAR},
#{construpeople,jdbcType=VARCHAR},
#{construdate,jdbcType=VARCHAR},
#{construcontent,jdbcType=VARCHAR},
#{construfile,jdbcType=VARCHAR},
#{signtime,jdbcType=VARCHAR},
#{bz,jdbcType=VARCHAR},
#{imageurl,jdbcType=VARCHAR},
#{imagename,jdbcType=VARCHAR},
#{maxid,jdbcType=DECIMAL},
#{declareid,jdbcType=VARCHAR},
update T_SUBMITTED
set DEVICENAME = #{devicename,jdbcType=VARCHAR},
EQUIPMENT = #{equipment,jdbcType=VARCHAR},
CONSTRUCTIONUNITS = #{constructionunits,jdbcType=VARCHAR},
CONSTRUPEOPLE = #{construpeople,jdbcType=VARCHAR},
CONSTRUDATE = #{construdate,jdbcType=VARCHAR},
CONSTRUCONTENT = #{construcontent,jdbcType=VARCHAR},
CONSTRUFILE = #{construfile,jdbcType=VARCHAR},
SIGNTIME = #{signtime,jdbcType=VARCHAR},
BZ = #{bz,jdbcType=VARCHAR},
IMAGEURL = #{imageurl,jdbcType=VARCHAR},
IMAGENAME = #{imagename,jdbcType=VARCHAR},
MAXID = #{maxid,jdbcType=DECIMAL},
DECLAREID = #{declareid,jdbcType=VARCHAR}
where CONSTRUID = #{construid,jdbcType=VARCHAR}
update T_SUBMITTED
DEVICENAME = #{devicename,jdbcType=VARCHAR},
EQUIPMENT = #{equipment,jdbcType=VARCHAR},
CONSTRUCTIONUNITS = #{constructionunits,jdbcType=VARCHAR},
CONSTRUPEOPLE = #{construpeople,jdbcType=VARCHAR},
CONSTRUDATE = #{construdate,jdbcType=VARCHAR},
CONSTRUCONTENT = #{construcontent,jdbcType=VARCHAR},
CONSTRUFILE = #{construfile,jdbcType=VARCHAR},
SIGNTIME = #{signtime,jdbcType=VARCHAR},
BZ = #{bz,jdbcType=VARCHAR},
IMAGEURL = #{imageurl,jdbcType=VARCHAR},
IMAGENAME = #{imagename,jdbcType=VARCHAR},
MAXID = #{maxid,jdbcType=DECIMAL},
DECLAREID = #{declareid,jdbcType=VARCHAR},
where CONSTRUID = #{construid,jdbcType=VARCHAR}
insert into T_SUBMITTED
(CONSTRUID,
DEVICENAME, EQUIPMENT, CONSTRUCTIONUNITS,
CONSTRUPEOPLE, CONSTRUDATE, CONSTRUCONTENT,
CONSTRUFILE, SIGNTIME, BZ,
IMAGEURL, IMAGENAME, MAXID,
DECLAREID)
(
select
#{item.construid,jdbcType=VARCHAR},
#{item.devicename,jdbcType=VARCHAR}, #{item.equipment,jdbcType=VARCHAR}, #{item.constructionunits,jdbcType=VARCHAR},
#{item.construpeople,jdbcType=VARCHAR}, #{item.construdate,jdbcType=VARCHAR}, #{item.construcontent,jdbcType=VARCHAR},
#{item.construfile,jdbcType=VARCHAR}, #{item.signtime,jdbcType=VARCHAR}, #{item.bz,jdbcType=VARCHAR},
#{item.imageurl,jdbcType=VARCHAR}, #{item.imagename,jdbcType=VARCHAR}, #{item.maxid,jdbcType=DECIMAL},
#{item.declareid,jdbcType=VARCHAR} from dual
)
update T_SUBMITTED
set
CONSTRUID=
when #{item.construid,jdbcType=VARCHAR} then #{item.construid,jdbcType=VARCHAR}
,DEVICENAME=
when #{item.construid,jdbcType=VARCHAR} then #{item.devicename,jdbcType=VARCHAR}
,EQUIPMENT=
when #{item.construid,jdbcType=VARCHAR} then #{item.equipment,jdbcType=VARCHAR}
,CONSTRUCTIONUNITS=
when #{item.construid,jdbcType=VARCHAR} then #{item.constructionunits,jdbcType=VARCHAR}
,CONSTRUPEOPLE=
when #{item.construid,jdbcType=VARCHAR} then #{item.construpeople,jdbcType=VARCHAR}
,CONSTRUDATE=
when #{item.construid,jdbcType=VARCHAR} then #{item.construdate,jdbcType=VARCHAR}
,CONSTRUCONTENT=
when #{item.construid,jdbcType=VARCHAR} then #{item.construcontent,jdbcType=VARCHAR}
,CONSTRUFILE=
when #{item.construid,jdbcType=VARCHAR} then #{item.construfile,jdbcType=VARCHAR}
,SIGNTIME=
when #{item.construid,jdbcType=VARCHAR} then #{item.signtime,jdbcType=VARCHAR}
,BZ=
when #{item.construid,jdbcType=VARCHAR} then #{item.bz,jdbcType=VARCHAR}
,IMAGEURL=
when #{item.construid,jdbcType=VARCHAR} then #{item.imageurl,jdbcType=VARCHAR}
,IMAGENAME=
when #{item.construid,jdbcType=VARCHAR} then #{item.imagename,jdbcType=VARCHAR}
,MAXID=
when #{item.construid,jdbcType=VARCHAR} then #{item.maxid,jdbcType=DECIMAL}
,DECLAREID=
when #{item.construid,jdbcType=VARCHAR} then #{item.declareid,jdbcType=VARCHAR}
where CONSTRUID in
#{item.construid,jdbcType=VARCHAR}
delete from T_SUBMITTED
where CONSTRUID in
#{id}