|
@@ -430,12 +430,18 @@ public class HyWorkOrder extends Controller {
|
|
|
+ where.getString("frownum") + "'");
|
|
+ where.getString("frownum") + "'");
|
|
|
|
|
|
|
|
/** 节点关联培训物料查询 **/
|
|
/** 节点关联培训物料查询 **/
|
|
|
|
|
+ System.err.println("select t.fitemno,t.fitemname,t.fmodel,t.fspec,t.fqty from HYORDERNODE_TITEM t left join titem t2 on t.fitemno=t2.fitemno and t.siteid=t2.siteid\n"
|
|
|
|
|
+ + "where EXISTS(select 1 from hyordernode t1 where t1.hyordernodeid=t.fparentid and t1.hyordernodeid="
|
|
|
|
|
+ + rowdetail.getInteger("ownerid") + ") and t.siteid='" + siteid + "'");
|
|
|
Rows rows_traintitem = dbConnect.runSqlQuery(
|
|
Rows rows_traintitem = dbConnect.runSqlQuery(
|
|
|
"select t.fitemno,t.fitemname,t.fmodel,t.fspec,t.fqty from HYORDERNODE_TITEM t left join titem t2 on t.fitemno=t2.fitemno and t.siteid=t2.siteid\n"
|
|
"select t.fitemno,t.fitemname,t.fmodel,t.fspec,t.fqty from HYORDERNODE_TITEM t left join titem t2 on t.fitemno=t2.fitemno and t.siteid=t2.siteid\n"
|
|
|
+ "where EXISTS(select 1 from hyordernode t1 where t1.hyordernodeid=t.fparentid and t1.hyordernodeid="
|
|
+ "where EXISTS(select 1 from hyordernode t1 where t1.hyordernodeid=t.fparentid and t1.hyordernodeid="
|
|
|
+ rowdetail.getInteger("ownerid") + ") and t.siteid='" + siteid + "'");
|
|
+ rowdetail.getInteger("ownerid") + ") and t.siteid='" + siteid + "'");
|
|
|
|
|
|
|
|
/** 节点关联培训人员查询 **/
|
|
/** 节点关联培训人员查询 **/
|
|
|
|
|
+ System.err.println("select t.fname,t.job,t.phone,t.fagentnum,t2.fagentshortname from HYORDERNODE_trainers t left join tagents t2 on t.fagentnum=t2.fagentnum and t.siteid=t2.siteid\n"
|
|
|
|
|
+ + "where EXISTS(select 1 from hyordernode t1 where t1.hyordernodeid=t.fparentid and t1.hyordernodeid="
|
|
|
|
|
+ + rowdetail.getInteger("ownerid") + ") and t.siteid='" + siteid + "'");
|
|
|
Rows rows_trainers = dbConnect.runSqlQuery(
|
|
Rows rows_trainers = dbConnect.runSqlQuery(
|
|
|
"select t.fname,t.job,t.phone,t.fagentnum,t2.fagentshortname from HYORDERNODE_trainers t left join tagents t2 on t.fagentnum=t2.fagentnum and t.siteid=t2.siteid\n"
|
|
"select t.fname,t.job,t.phone,t.fagentnum,t2.fagentshortname from HYORDERNODE_trainers t left join tagents t2 on t.fagentnum=t2.fagentnum and t.siteid=t2.siteid\n"
|
|
|
+ "where EXISTS(select 1 from hyordernode t1 where t1.hyordernodeid=t.fparentid and t1.hyordernodeid="
|
|
+ "where EXISTS(select 1 from hyordernode t1 where t1.hyordernodeid=t.fparentid and t1.hyordernodeid="
|