| | |
| | | <if test="genTable.tableComment != null and genTable.tableComment != ''"> |
| | | AND lower(table_comment) like lower(concat('%', #{genTable.tableComment}, '%')) |
| | | </if> |
| | | <if test="genTable.params.beginTime != null and genTable.params.beginTime != ''"><!-- 开始时间检索 --> |
| | | AND date_format(create_time,'%y%m%d') >= date_format(#{genTable.params.beginTime},'%y%m%d') |
| | | </if> |
| | | <if test="genTable.params.endTime != null and genTable.params.endTime != ''"><!-- 结束时间检索 --> |
| | | AND date_format(create_time,'%y%m%d') <= date_format(#{genTable.params.endTime},'%y%m%d') |
| | | <if test="genTable.params.beginTime != null and genTable.params.endTime != null"> |
| | | AND create_time between #{genTable.params.beginTime} and #{genTable.params.endTime} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | <if test="genTable.tableComment != null and genTable.tableComment != ''"> |
| | | AND lower(table_comment) like lower(concat('%', #{genTable.tableComment}, '%')) |
| | | </if> |
| | | <if test="genTable.params.beginTime != null and genTable.params.beginTime != ''"><!-- 开始时间检索 --> |
| | | AND date_format(create_time,'%y%m%d') >= date_format(#{genTable.params.beginTime},'%y%m%d') |
| | | </if> |
| | | <if test="genTable.params.endTime != null and genTable.params.endTime != ''"><!-- 结束时间检索 --> |
| | | AND date_format(create_time,'%y%m%d') <= date_format(#{genTable.params.endTime},'%y%m%d') |
| | | <if test="genTable.params.beginTime != null and genTable.params.endTime != null"> |
| | | AND create_time between #{genTable.params.beginTime} and #{genTable.params.endTime} |
| | | </if> |
| | | order by create_time desc |
| | | </select> |
| | |
| | | <if test="tableComment != null and tableComment != ''"> |
| | | AND lower(table_comment) like lower(concat('%', #{tableComment}, '%')) |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | AND date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d') |
| | | </if> |
| | | <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> |
| | | AND date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d') |
| | | <if test="params.beginTime != null and params.endTime != null"> |
| | | AND create_time between #{params.beginTime} and #{params.endTime} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | <if test="tableComment != null and tableComment != ''"> |
| | | AND lower(table_comment) like lower(concat('%', #{tableComment}, '%')) |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | AND date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d') |
| | | </if> |
| | | <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> |
| | | AND date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d') |
| | | <if test="params.beginTime != null and params.endTime != null"> |
| | | AND create_time between #{params.beginTime} and #{params.endTime} |
| | | </if> |
| | | order by create_time desc |
| | | </select> |