$info=$db->table('lie_msg_tpl as mt')->select('mt.tpl_id','mt.channels','mt.description','mt.ex_str','mtc.cls_name','mtsc.sub_cls_name','mtsc.sub_cls_id','mtsc.cls_id')
->leftjoin('lie_msg_tpl_sub_classify as mtsc','mtsc.sub_cls_id','=','mt.sub_cls_id')
->leftjoin('lie_msg_tpl_classify as mtc','mtc.cls_id','=','mtsc.cls_id')
$info=$db->table('lie_msg_tpl as mt')->select('mt.tpl_id','mt.channels','mt.description','mt.ex_str','mc.cls_id','mc.name','mc.depth','mc.id_path','mc.parent_id','mc.parent_name')
->leftjoin('lie_msg_classify as mc','mc.cls_id','=','mt.cls_id')
@@ -409,17 +393,16 @@ class MessageController extends Controller
if(!empty($rq_tpl_id))
{
//通过tpl_id找到模板的渠道们 和 描述等
$info=$db->table('lie_msg_tpl as mt')->select('mt.tpl_id','mt.description','mt.channels','mt.msg_type','mt.creater','mt.source_type','mt.obj_user','mt.ex_str','mtsc.sub_cls_id','mtsc.sub_cls_name','mtsc.cls_id','mtc.cls_name')
->leftjoin('lie_msg_tpl_sub_classify as mtsc','mt.sub_cls_id','=','mtsc.sub_cls_id')
->leftjoin('lie_msg_tpl_classify as mtc','mtc.cls_id','=','mtsc.cls_id')
$info=$db->table('lie_msg_tpl as mt')->select('mt.tpl_id','mt.description','mt.channels','mt.msg_type','mt.creater','mt.source_type','mt.obj_user','mt.ex_str','mc.parent_id','mc.parent_name','mc.cls_id','mc.name')
->leftjoin('lie_msg_classify as mc','mt.cls_id','=','mc.cls_id')