|
|
-SELECT t1.*,t2.workname,t2.remarks,t2.additem, t2.itemtype,t2.contractupload,t2.fileupload,t2.textedit,t2.confirm,t2.confirm_options,t2.amountpay,t2.required,t2.signature FROM sa_workorder_template_works t1 left join sa_workpreset t2 on t2.sa_workpresetid=t1.sa_workpresetid and t1.siteid=t2.siteid where t1.siteid=$siteid$ and t1.sa_workorder_templateid=$sa_workorder_templateid$ and t1.parentid=$parentid$ and $where$
|
|
|
+SELECT t1.*,t2.workname,t2.remarks,t2.additem, t2.itemtype,t2.contractupload,t2.fileupload,t2.textedit,t2.confirm,t2.confirm_options,t2.amountpay,t2.required,t2.signature,t2.passcheck,t2.questionedit FROM sa_workorder_template_works t1 left join sa_workpreset t2 on t2.sa_workpresetid=t1.sa_workpresetid and t1.siteid=t2.siteid where t1.siteid=$siteid$ and t1.sa_workorder_templateid=$sa_workorder_templateid$ and t1.parentid=$parentid$ and $where$
|