public class TplKit extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
TplKit.TplDateSlot
UI经常会使用 一个值包含开始和结束日期,所以做一个区间日期 包装类,方便使用
|
| Constructor and Description |
|---|
TplKit() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dbSave(String tableName,
Object obj) |
boolean |
dbSaveOrUpdateById(String tableName,
Object obj)
根据ID识别 是否是 dbSave 还是 dbUpdate
|
boolean |
dbSaves(String tableName,
String key,
Object obj) |
boolean |
dbUpdate(String tableName,
Object obj) |
boolean |
dbUpdates(String tableName,
String key,
Object obj) |
TplKit.TplDateSlot |
splitToDate(String str)
把字符串切割为TplDateSlot,start 和 end
|
com.jfinal.plugin.activerecord.Record |
toRecord() |
com.jfinal.plugin.activerecord.Record |
toRecord(Object obj)
转换为Record对象
|
public TplKit.TplDateSlot splitToDate(String str)
str - " - " 分隔的字符串public com.jfinal.plugin.activerecord.Record toRecord(Object obj)
public com.jfinal.plugin.activerecord.Record toRecord()
public boolean dbSaveOrUpdateById(String tableName, Object obj)
Copyright © 2021. All rights reserved.