|
|
@@ -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()); |
|
|
|
} |
|
|
|
} |