STCD ,
DTMMDPR ,
DTMNM ,
DATE_FORMAT(ESSTYM,'%Y-%m-%d') ESSTYM,
LGTD_PC ,
ISART ,
STLC ,
WELLDEP ,
NOTE ,
LTTD ,
AQME ,
BURCN ,
PBPRJ ,
BWSTTP ,
STNM ,
ADCD ,
STTP ,
STEL ,
DATE_FORMAT(CALYM,'%Y-%m-%d') CALYM,
RVNM ,
GOGUNT ,
PRTC ,
GRDLVL ,
ADNM ,
LTTD_PC ,
LGTD ,
WSTTP ,
OSTCD ,
ESSTYR ,
DATE_FORMAT(INTM,'%Y-%m-%d %T') INTM,
STNDPNT ,
MNUN ,
ONUN ,
SPGHGH
STCD ,
DTMMDPR ,
DTMNM ,
ESSTYM ,
LGTD_PC ,
ISART ,
STLC ,
WELLDEP ,
NOTE ,
LTTD ,
AQME ,
BURCN ,
PBPRJ ,
BWSTTP ,
STNM ,
ADCD ,
STTP ,
STEL ,
CALYM ,
RVNM ,
GOGUNT ,
PRTC ,
GRDLVL ,
ADNM ,
LTTD_PC ,
LGTD ,
WSTTP ,
OSTCD ,
ESSTYR ,
INTM ,
STNDPNT ,
MNUN ,
ONUN ,
SPGHGH
#{stcd},
#{dtmmdpr},
#{dtmnm},
DATE_FORMAT(#{esstym},'%Y-%m-%d'),
#{lgtdPc},
#{isart},
#{stlc},
#{welldep},
#{note},
#{lttd},
#{aqme},
#{burcn},
#{pbprj},
#{bwsttp},
#{stnm},
#{adcd},
#{sttp},
#{stel},
DATE_FORMAT(#{calym},'%Y-%m-%d'),
#{rvnm},
#{gogunt},
#{prtc},
#{grdlvl},
#{adnm},
#{lttdPc},
#{lgtd},
#{wsttp},
#{ostcd},
#{esstyr},
DATE_FORMAT(#{intm},'%Y-%m-%d %T') ,
#{stndpnt},
#{mnun},
#{onun},
#{spghgh}
and STCD = #{stcd}
and DTMMDPR = #{dtmmdpr}
and DTMNM = #{dtmnm}
and ESSTYM = STR_TO_DATE(#{esstym},'%Y-%m-%d')
and LGTD_PC = #{lgtdPc}
and ISART = #{isart}
and STLC = #{stlc}
and WELLDEP = #{welldep}
and NOTE = #{note}
and LTTD = #{lttd}
and AQME = #{aqme}
and BURCN = #{burcn}
and PBPRJ = #{pbprj}
and BWSTTP = #{bwsttp}
and STNM like '%${stnm}%'
and ADCD like '${adcd}%'
and STTP = #{sttp}
and STEL = #{stel}
and CALYM = STR_TO_DATE(#{calym},'%Y-%m-%d')
and RVNM = #{rvnm}
and GOGUNT = #{gogunt}
and PRTC = #{prtc}
and GRDLVL = #{grdlvl}
and ADNM = #{adnm}
and LTTD_PC = #{lttdPc}
and LGTD = #{lgtd}
and WSTTP = #{wsttp}
and OSTCD = #{ostcd}
and ESSTYR = #{esstyr}
and INTM = STR_TO_DATE(#{intm},'%Y-%m-%d %T')
and STNDPNT = #{stndpnt}
and MNUN = #{mnun}
and ONUN = #{onun}
and SPGHGH = #{spghgh}
insert into ATT_GRW_BASE( )
values ( )
delete from ATT_GRW_BASE where STCD = #{stcd}
delete from ATT_GRW_BASE
update ATT_GRW_BASE set flag_valid = 0 where STCD = #{stcd}
update ATT_GRW_BASE
DTMMDPR = #{dtmmdpr},
DTMNM = #{dtmnm},
ESSTYM = STR_TO_DATE(#{esstym},'%Y-%m-%d'),
LGTD_PC = #{lgtdPc},
ISART = #{isart},
STLC = #{stlc},
WELLDEP = #{welldep},
NOTE = #{note},
LTTD = #{lttd},
AQME = #{aqme},
BURCN = #{burcn},
PBPRJ = #{pbprj},
BWSTTP = #{bwsttp},
STNM = #{stnm},
ADCD = #{adcd},
STTP = #{sttp},
STEL = #{stel},
CALYM = STR_TO_DATE(#{calym},'%Y-%m-%d'),
RVNM = #{rvnm},
GOGUNT = #{gogunt},
PRTC = #{prtc},
GRDLVL = #{grdlvl},
ADNM = #{adnm},
LTTD_PC = #{lttdPc},
LGTD = #{lgtd},
WSTTP = #{wsttp},
OSTCD = #{ostcd},
ESSTYR = #{esstyr},
INTM = STR_TO_DATE(#{intm},'%Y-%m-%d %T'),
STNDPNT = #{stndpnt},
MNUN = #{mnun},
ONUN = #{onun},
SPGHGH = #{spghgh},
STCD = #{stcd}
update ATT_GRW_BASE
STCD = #{stcd},
DTMMDPR = #{dtmmdpr},
DTMNM = #{dtmnm},
ESSTYM = STR_TO_DATE(#{esstym},'%Y-%m-%d'),
LGTD_PC = #{lgtdPc},
ISART = #{isart},
STLC = #{stlc},
WELLDEP = #{welldep},
NOTE = #{note},
LTTD = #{lttd},
AQME = #{aqme},
BURCN = #{burcn},
PBPRJ = #{pbprj},
BWSTTP = #{bwsttp},
STNM = #{stnm},
ADCD = #{adcd},
STTP = #{sttp},
STEL = #{stel},
CALYM = STR_TO_DATE(#{calym},'%Y-%m-%d'),
RVNM = #{rvnm},
GOGUNT = #{gogunt},
PRTC = #{prtc},
GRDLVL = #{grdlvl},
ADNM = #{adnm},
LTTD_PC = #{lttdPc},
LGTD = #{lgtd},
WSTTP = #{wsttp},
OSTCD = #{ostcd},
ESSTYR = #{esstyr},
INTM = STR_TO_DATE(#{intm},'%Y-%m-%d %T'),
STNDPNT = #{stndpnt},
MNUN = #{mnun},
ONUN = #{onun},
SPGHGH = #{spghgh},
and ORG_ID=#{orgId}
and ORG_ID is null