Browse Source

增加SWConsts.debug,是否调试模式,调试模式缓存从数据库加载

4.0
郑根木 2 years ago
parent
commit
223bc9eb16
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/engine/model/listcard/single/LCSingleService.java

+ 5
- 5
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/engine/model/listcard/single/LCSingleService.java View File

@@ -43,26 +43,26 @@ public class LCSingleService extends DynPageService {

//读取
public R modelLoad(@SwBody SwMap params, UserSession us) {
return pageHandler(params, us, TYPE_LOAD, handler -> ((LCSingleLoadHandler)handler).load());
return pageHandler(params, us, TYPE_MODEL_LOAD, handler -> ((LCSingleLoadHandler)handler).load());
}

//读取
public R modelAdd(@SwBody SwMap params, UserSession us) {
return pageHandler(params, us, TYPE_LOAD, handler -> ((LCSingleLoadHandler)handler).add());
return pageHandler(params, us, TYPE_MODEL_ADD, handler -> ((LCSingleLoadHandler)handler).add());
}

//删除
public R modelDel(@SwBody SwMap params, UserSession us) {
return pageHandler(params, us, TYPE_DEL, handler -> ((LCSingleDelHandler)handler).del());
return pageHandler(params, us, TYPE_MODEL_DEL, handler -> ((LCSingleDelHandler)handler).del());
}

//列表数据
public R modelList(@SwBody SwMap params, UserSession us) {
return pageHandler(params, us, TYPE_LIST, handler -> ((LCSingleLoadHandler)handler).list());
return pageHandler(params, us, TYPE_MODEL_LIST, handler -> ((LCSingleLoadHandler)handler).list());
}

//列表总记录数及合计栏
public R modelListTotal(@SwBody SwMap params, UserSession us) {
return pageHandler(params, us, TYPE_LIST, handler -> ((LCSingleLoadHandler)handler).getTotal());
return pageHandler(params, us, TYPE_MODEL_LIST, handler -> ((LCSingleLoadHandler)handler).getTotal());
}
}

Loading…
Cancel
Save