/* Ċ Ġ* ĠAuto - generated Ġfile . ĠCreated Ġby ĠMyBatis ĠGenerator Ċ Ġ*/ Ċ package Ġcom . lab ij ie . application . open . data . mapper Ċ Ċ import Ġcom . lab ij ie . application . open . data . Open Partner Record Ċ import Ġcom . lab ij ie . application . open . data . mapper . Open Partner Dynamic Sql Support . Open Partner Ċ import Ġcom . lab ij ie . application . open . data . mapper . Open Partner Dynamic Sql Support . Open Partner . app Count Ċ import Ġcom . lab ij ie . application . open . data . mapper . Open Partner Dynamic Sql Support . Open Partner . contact Ċ import Ġcom . lab ij ie . application . open . data . mapper . Open Partner Dynamic Sql Support . Open Partner . email Ċ import Ġcom . lab ij ie . application . open . data . mapper . Open Partner Dynamic Sql Support . Open Partner . id Ċ import Ġcom . lab ij ie . application . open . data . mapper . Open Partner Dynamic Sql Support . Open Partner . name Ċ import Ġcom . lab ij ie . application . open . data . mapper . Open Partner Dynamic Sql Support . Open Partner . phoneNumber Ċ import Ġcom . lab ij ie . application . open . data . mapper . Open Partner Dynamic Sql Support . Open Partner . status Ċ import Ġcom . lab ij ie . application . open . data . mapper . Open Partner Dynamic Sql Support . Open Partner . time Expired Ċ import Ġcom . lab ij ie . application . open . data . mapper . Open Partner Dynamic Sql Support . Open Partner . time Latest Paid Ċ import Ġcom . lab ij ie . application . open . data . mapper . Open Partner Dynamic Sql Support . Open Partner . time Latest Updated Ċ import Ġorg . mybatis . dynamic . sql . Sql Builder . isEqualTo Ċ import Ġorg . mybatis . dynamic . sql . util . kotlin .* Ċ import Ġorg . mybatis . dynamic . sql . util . kotlin . mybatis 3 .* Ċ Ċ fun ĠOpen Partner Mapper . count ( comp leter : ĠCount Comp leter ) Ġ= ĊĠĠĠ Ġcount From ( this :: count , ĠOpen Partner , Ġcomp leter ) Ċ Ċ fun ĠOpen Partner Mapper . delete ( comp leter : ĠDelete Comp leter ) Ġ= ĊĠĠĠ Ġdelete From ( this :: delete , ĠOpen Partner , Ġcomp leter ) Ċ Ċ fun ĠOpen Partner Mapper . delete By PrimaryKey ( id _: ĠLong ) Ġ= ĊĠĠĠ Ġdelete Ġ{ ĊĠĠĠĠĠĠĠ Ġwhere ( id , Ġis EqualTo ( id _)) ĊĠĠĠ Ġ} Ċ Ċ fun ĠOpen Partner Mapper . insert ( record : ĠOpen Partner Record ) Ġ= ĊĠĠĠ Ġinsert ( this :: insert , Ġrecord , ĠOpen Partner ) Ġ{ ĊĠĠĠĠĠĠĠ Ġmap ( id ). to Property (" id ") ĊĠĠĠĠĠĠĠ Ġmap ( name ). to Property (" name ") ĊĠĠĠĠĠĠĠ Ġmap ( time Expired ). to Property (" time Expired ") ĊĠĠĠĠĠĠĠ Ġmap ( status ). to Property (" status ") ĊĠĠĠĠĠĠĠ Ġmap ( time Latest Paid ). to Property (" time Latest Paid ") ĊĠĠĠĠĠĠĠ Ġmap ( time Latest Updated ). to Property (" time Latest Updated ") ĊĠĠĠĠĠĠĠ Ġmap ( phoneNumber ). to Property (" phoneNumber ") ĊĠĠĠĠĠĠĠ Ġmap ( contact ). to Property (" contact ") ĊĠĠĠĠĠĠĠ Ġmap ( email ). to Property (" email ") ĊĠĠĠĠĠĠĠ Ġmap ( app Count ). to Property (" app Count ") ĊĠĠĠ Ġ} Ċ Ċ fun ĠOpen Partner Mapper . insert Multiple ( records : ĠCollection < Open Partner Record >) Ġ= ĊĠĠĠ Ġinsert Multiple ( this :: insert Multiple , Ġrecords , ĠOpen Partner ) Ġ{ ĊĠĠĠĠĠĠĠ Ġmap ( id ). to Property (" id ") ĊĠĠĠĠĠĠĠ Ġmap ( name ). to Property (" name ") ĊĠĠĠĠĠĠĠ Ġmap ( time Expired ). to Property (" time Expired ") ĊĠĠĠĠĠĠĠ Ġmap ( status ). to Property (" status ") ĊĠĠĠĠĠĠĠ Ġmap ( time Latest Paid ). to Property (" time Latest Paid ") ĊĠĠĠĠĠĠĠ Ġmap ( time Latest Updated ). to Property (" time Latest Updated ") ĊĠĠĠĠĠĠĠ Ġmap ( phoneNumber ). to Property (" phoneNumber ") ĊĠĠĠĠĠĠĠ Ġmap ( contact ). to Property (" contact ") ĊĠĠĠĠĠĠĠ Ġmap ( email ). to Property (" email ") ĊĠĠĠĠĠĠĠ Ġmap ( app Count ). to Property (" app Count ") ĊĠĠĠ Ġ} Ċ Ċ fun ĠOpen Partner Mapper . insert Multiple ( var arg Ġrecords : ĠOpen Partner Record ) Ġ= ĊĠĠĠ Ġinsert Multiple ( records . toList ()) Ċ Ċ fun ĠOpen Partner Mapper . insert Select ive ( record : ĠOpen Partner Record ) Ġ= ĊĠĠĠ Ġinsert ( this :: insert , Ġrecord , ĠOpen Partner ) Ġ{ ĊĠĠĠĠĠĠĠ Ġmap ( id ). to Property When Present (" id ", Ġrecord :: id ) ĊĠĠĠĠĠĠĠ Ġmap ( name ). to Property When Present (" name ", Ġrecord :: name ) ĊĠĠĠĠĠĠĠ Ġmap ( time Expired ). to Property When Present (" time Expired ", Ġrecord :: time Expired ) ĊĠĠĠĠĠĠĠ Ġmap ( status ). to Property When Present (" status ", Ġrecord :: status ) ĊĠĠĠĠĠĠĠ Ġmap ( time Latest Paid ). to Property When Present (" time Latest Paid ", Ġrecord :: time Latest Paid ) ĊĠĠĠĠĠĠĠ Ġmap ( time Latest Updated ). to Property When Present (" time Latest Updated ", Ġrecord :: time Latest Updated ) ĊĠĠĠĠĠĠĠ Ġmap ( phoneNumber ). to Property When Present (" phoneNumber ", Ġrecord :: phoneNumber ) ĊĠĠĠĠĠĠĠ Ġmap ( contact ). to Property When Present (" contact ", Ġrecord :: contact ) ĊĠĠĠĠĠĠĠ Ġmap ( email ). to Property When Present (" email ", Ġrecord :: email ) ĊĠĠĠĠĠĠĠ Ġmap ( app Count ). to Property When Present (" app Count ", Ġrecord :: app Count ) ĊĠĠĠ Ġ} Ċ Ċ private Ġval Ġcolumn List Ġ= ĠlistOf ( id , Ġname , Ġtime Expired , Ġstatus , Ġtime Latest Paid , Ġtime Latest Updated , ĠphoneNumber , Ġcontact , Ġemail , Ġapp Count ) Ċ Ċ fun ĠOpen Partner Mapper . select One ( comp leter : ĠSelect Comp leter ) Ġ= ĊĠĠĠ Ġselect One ( this :: select One , Ġcolumn List , ĠOpen Partner , Ġcomp leter ) Ċ Ċ fun ĠOpen Partner Mapper . select ( comp leter : ĠSelect Comp leter ) Ġ= ĊĠĠĠ Ġselect List ( this :: select Many , Ġcolumn List , ĠOpen Partner , Ġcomp leter ) Ċ Ċ fun ĠOpen Partner Mapper . select Distinct ( comp leter : ĠSelect Comp leter ) Ġ= ĊĠĠĠ Ġselect Distinct ( this :: select Many , Ġcolumn List , ĠOpen Partner , Ġcomp leter ) Ċ Ċ fun ĠOpen Partner Mapper . select By PrimaryKey ( id _: ĠLong ) Ġ= ĊĠĠĠ Ġselect One Ġ{ ĊĠĠĠĠĠĠĠ Ġwhere ( id , Ġis EqualTo ( id _)) ĊĠĠĠ Ġ} Ċ Ċ fun ĠOpen Partner Mapper . update ( comp leter : ĠUpdate Comp leter ) Ġ= ĊĠĠĠ Ġupdate ( this :: update , ĠOpen Partner , Ġcomp leter ) Ċ Ċ fun ĠKotlin Update Builder . update All Columns ( record : ĠOpen Partner Record ) Ġ= ĊĠĠĠ Ġapply Ġ{ ĊĠĠĠĠĠĠĠ Ġset ( id ). equalTo ( record :: id ) ĊĠĠĠĠĠĠĠ Ġset ( name ). equalTo ( record :: name ) ĊĠĠĠĠĠĠĠ Ġset ( time Expired ). equalTo ( record :: time Expired ) ĊĠĠĠĠĠĠĠ Ġset ( status ). equalTo ( record :: status ) ĊĠĠĠĠĠĠĠ Ġset ( time Latest Paid ). equalTo ( record :: time Latest Paid ) ĊĠĠĠĠĠĠĠ Ġset ( time Latest Updated ). equalTo ( record :: time Latest Updated ) ĊĠĠĠĠĠĠĠ Ġset ( phoneNumber ). equalTo ( record :: phoneNumber ) ĊĠĠĠĠĠĠĠ Ġset ( contact ). equalTo ( record :: contact ) ĊĠĠĠĠĠĠĠ Ġset ( email ). equalTo ( record :: email ) ĊĠĠĠĠĠĠĠ Ġset ( app Count ). equalTo ( record :: app Count ) ĊĠĠĠ Ġ} Ċ Ċ fun ĠKotlin Update Builder . update Select ive Columns ( record : ĠOpen Partner Record ) Ġ= ĊĠĠĠ Ġapply Ġ{ ĊĠĠĠĠĠĠĠ Ġset ( id ). equalTo When Present ( record :: id ) ĊĠĠĠĠĠĠĠ Ġset ( name ). equalTo When Present ( record :: name ) ĊĠĠĠĠĠĠĠ Ġset ( time Expired ). equalTo When Present ( record :: time Expired ) ĊĠĠĠĠĠĠĠ Ġset ( status ). equalTo When Present ( record :: status ) ĊĠĠĠĠĠĠĠ Ġset ( time Latest Paid ). equalTo When Present ( record :: time Latest Paid ) ĊĠĠĠĠĠĠĠ Ġset ( time Latest Updated ). equalTo When Present ( record :: time Latest Updated ) ĊĠĠĠĠĠĠĠ Ġset ( phoneNumber ). equalTo When Present ( record :: phoneNumber ) ĊĠĠĠĠĠĠĠ Ġset ( contact ). equalTo When Present ( record :: contact ) ĊĠĠĠĠĠĠĠ Ġset ( email ). equalTo When Present ( record :: email ) ĊĠĠĠĠĠĠĠ Ġset ( app Count ). equalTo When Present ( record :: app Count ) ĊĠĠĠ Ġ} Ċ Ċ fun ĠOpen Partner Mapper . update By PrimaryKey ( record : ĠOpen Partner Record ) Ġ= ĊĠĠĠ Ġupdate Ġ{ ĊĠĠĠĠĠĠĠ Ġset ( name ). equalTo ( record :: name ) ĊĠĠĠĠĠĠĠ Ġset ( time Expired ). equalTo ( record :: time Expired ) ĊĠĠĠĠĠĠĠ Ġset ( status ). equalTo ( record :: status ) ĊĠĠĠĠĠĠĠ Ġset ( time Latest Paid ). equalTo ( record :: time Latest Paid ) ĊĠĠĠĠĠĠĠ Ġset ( time Latest Updated ). equalTo ( record :: time Latest Updated ) ĊĠĠĠĠĠĠĠ Ġset ( phoneNumber ). equalTo ( record :: phoneNumber ) ĊĠĠĠĠĠĠĠ Ġset ( contact ). equalTo ( record :: contact ) ĊĠĠĠĠĠĠĠ Ġset ( email ). equalTo ( record :: email ) ĊĠĠĠĠĠĠĠ Ġset ( app Count ). equalTo ( record :: app Count ) ĊĠĠĠĠĠĠĠ Ġwhere ( id , Ġis EqualTo ( record :: id )) ĊĠĠĠ Ġ} Ċ Ċ fun ĠOpen Partner Mapper . update By PrimaryKey Select ive ( record : ĠOpen Partner Record ) Ġ= ĊĠĠĠ Ġupdate Ġ{ ĊĠĠĠĠĠĠĠ Ġset ( name ). equalTo When Present ( record :: name ) ĊĠĠĠĠĠĠĠ Ġset ( time Expired ). equalTo When Present ( record :: time Expired ) ĊĠĠĠĠĠĠĠ Ġset ( status ). equalTo When Present ( record :: status ) ĊĠĠĠĠĠĠĠ Ġset ( time Latest Paid ). equalTo When Present ( record :: time Latest Paid ) ĊĠĠĠĠĠĠĠ Ġset ( time Latest Updated ). equalTo When Present ( record :: time Latest Updated ) ĊĠĠĠĠĠĠĠ Ġset ( phoneNumber ). equalTo When Present ( record :: phoneNumber ) ĊĠĠĠĠĠĠĠ Ġset ( contact ). equalTo When Present ( record :: contact ) ĊĠĠĠĠĠĠĠ Ġset ( email ). equalTo When Present ( record :: email ) ĊĠĠĠĠĠĠĠ Ġset ( app Count ). equalTo When Present ( record :: app Count ) ĊĠĠĠĠĠĠĠ Ġwhere ( id , Ġis EqualTo ( record :: id )) ĊĠĠĠ Ġ}