| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- -- [queryPlatformInfoList]
- select *
- from $table$
- -- trim prefix=WHERE prefixOverrides=AND|OR
- -- isNotEmpty voidFlag
- -- if voidFlag >= 0
- voidFlag = #{voidFlag}
- -- end
- -- end
- -- isNotEmpty platformType
- -- if platformType >= 0
- and platformType = #{platformType}
- -- end
- -- end
- -- isNotEmpty keyWord
- and (platformName LIKE #{Like:keyWord})
- -- end
- -- end
- -- isEmpty orderBy
- order by createTime desc
- -- else
- order by #{orderBy}
- -- end
- ;
- -- [addPlatformInfo]
- insert into $table$ (
- id, platformCode, platformName, platformType,
- voidFlag, createBy, createTime,
- createTimeLong, updateBy, updateTime,
- updateTimeLong )
- values (
- #{id}, #{platformcode}, #{platformname}, #{platformtype},
- #{voidflag}, #{createby}, #{createtime},
- #{createtimelong}, #{updateby}, #{updatetime},
- #{updatetimelong} );
- -- [updatePlatformInfo]
- update $table$ set
- platformName = #{platformname},
- platformType = #{platformtype},
- platformCode = #{platformcode},
- updateBy = #{updateby},
- updateTime = #{updatetime},
- updateTimeLong = #{updatetimelong}
- where id = #{id};
- -- [voidPlatformInfo]
- update $table$ set
- voidFlag = #{voidflag},
- updateBy = #{updateby},
- updateTime = #{updatetime},
- updateTimeLong = #{updatetimelong}
- where id = #{id};
- -- [queryPlatformRequireList]
- select *
- from $table$
- -- trim prefix=WHERE prefixOverrides=AND|OR
- -- isNotEmpty idPlatform
- -- if idPlatform >= 0
- idPlatform = #{idPlatform}
- -- end
- -- end
- -- isNotEmpty voidFlag
- -- if voidFlag >= 0
- and voidFlag = #{voidFlag}
- -- end
- -- end
- -- isNotEmpty keyWord
- and (requireName LIKE #{Like:keyWord})
- -- end
- -- end
- -- isEmpty orderBy
- order by createTime desc
- -- else
- order by #{orderBy}
- -- end
- ;
- -- [addPlatformRequire]
- insert into $table$
- (id, idPlatform, requireName, requireCode, valueType,
- voidFlag, createBy, createTime,
- createTimeLong, updateBy, updateTime,
- updateTimeLong )
- values
- ( #{id}, #{idplatform}, #{requirename}, #{requirecode}, #{valuetype},
- #{voidflag}, #{createby}, #{createtime},
- #{createtimelong}, #{updateby}, #{updatetime},
- #{updatetimelong} );
- -- [updatePlatformRequire]
- update $table$ set requireName = #{requirename},valueType = #{valuetype},updateBy = #{updateby},
- updateTime = #{updatetime},updateTimeLong = #{updatetimelong} where id = #{id};
- -- [voidPlatformRequire]
- update $table$ set voidFlag = #{voidflag},updateBy = #{updateby},
- updateTime = #{updatetime},updateTimeLong = #{updatetimelong} where id = #{id};
|