|
������ 2021-5-23 13:41:22
|
|
��������� wxp774777 �� 2021-5-23 13:45 �༭
��myapps/obpm�汾�š���v4.4- sp 21 ��ʱ��ַ��4��30���θ��汾
����������͡���chrome/����
����ϵ��ʽ-qq����774777387
����ϵ�绰��: 18079141110
��������������
1.��ʱ������������һ��ÿ��һ����ִ�еľų����ű���ŀ���ƕ�ʱ������ʶ���豸���ݿ��ж�ȡǩ����¼���뱾�����ݿ���ԣ������д�������ժ���ʹ�á�ŀǰ���������ƕ�ʱ��������ժ������զ�ֹͣ�����ǻ�̨������ʾ��running��״̬�������д��������ӣ���ҫ�ֶ�ֹͣ���в����¿�ʼ�����˲鵽������ϣ��
2.��ѯ��̳�������ֶ���ǰ̨�����ֹͣ��ʱ����ľű�����ʱ���զ��������4.4�汾�ƿ��й���һ�µľű����롣�����������ӣ�����ͨ���ű�����
(����: ����myapps������̳)
��1����ʱ����ִ�д��룺
- var applicationid="11de-f053-df18d577-aeb6-19a7865cfdb6";
- var domainid="11e7-07e8-6ad6ab7f-977a-25e53bf4caad";
- var user="11e7-085e-3e59ccf2-977a-25e53bf4caad"
- var userprocessbean = new packages.cn.myapps.authtime.user.service.userprocessbean();
- var uservo = userprocessbean.doview(user);
- var webuser = new packages.cn.myapps.base.web.webuser(uservo);
-
- var rldqdxsxxsql=" select * from v_rldqdxsxx ";
- var datasourcedesigntimeserviceimpl = new packages.cn.myapps.designtime.datasource.service.datasourcedesigntimeserviceimpl();
- var rldqddatas=datasourcedesigntimeserviceimpl.querydatasourcesql("�칫����ϵͳģ��_ds",rldqdxsxxsql,applicationid)
- if(rldqddatas!=null){
- for(var rldqditerator = rldqddatas.iterator();rldqditerator.hasnext();){
- var map = rldqditerator.next();//ȡֵ
- var bj= map.get("�༶");
- var kc= map.get("�γ�");
- var xsxm= map.get("ѧ������");
- var xq= map.get("item_у��");
- var xsbh= map.get("item_ѧ�����");
- var kcid= map.get("item_kcid");
- var rlid= map.get("item_rlid");
- var sid= map.get("item_sid");
-
- var createmonitoprocess = new packages.cn.myapps.runtime.dynaform.document.ejb.documentprocessbean.createmonitoprocess(applicationid);
- var sql="select * from tlk_у����ϣ where item_у��='" xq "'";
- var query = createmonitoprocess.querybysql(sql,domainid).datas;
- if(query!=null){
- var xqiter =query.iterator();
- if(xqiter != null && xqiter.hasnext()){
- doc = xqiter.next();
- var schoolid = doc.getitemvalueasstring("schoolid");
- var weid = doc.getitemvalueasstring("weid");
- }
- }
-
-
- var rlqdsjxxsql="select * from v_rlqddtxx where user_id ='" rlid "'and user_name ='" xsxm "' ";
- var wxkcdatas=datasourcedesigntimeserviceimpl.querydatasourcesql("face",rlqdsjxxsql,applicationid)
- if(wxkcdatas!=null){
- for(var wxkciterator = wxkcdatas.iterator();wxkciterator.hasnext();){
- var map2 = wxkciterator.next();//ȡֵ
- var qdjq= map2.get("dev_address");
- var qdsj= map2.get("recog_time");
- var tpsrc1= map2.get("recog_photo");
- var tpsrc1 = tpsrc1.replaceall("\\\","/");
- var tpsrc="rl.txgoa.com" tpsrc1;
-
- var instrljxtsql="insert into `ims_wx_school_qdtask`( `weid`, `schoolid`, `sid`, `tid`, `qdjq`, `createtime`, `qdtime`, `rlid`) values ('" weid "','" schoolid "','" sid "', '1','" qdjq "',unix_timestamp(now()) ,'" qdsj "','" rlid "')";
- var instrljxt = datasourcedesigntimeserviceimpl.queryinsert('wxjxt', instrljxtsql,applicationid);
- instrljxt;
-
- var process = getdocumentprocess();
- var formprocess = getformprocess();
- var subform = formprocess.doview("__bu21jnz6smilws1geac");//��ҫ�������ݵı��idֵ������ͨ�����ݿ�ͻ��˲鿴���ű��formid�ֶ�ֵ�Ϳ��ԡ�
- var newdoc = process.donew(subform,webuser,createparamstable());
- newdoc.setauthor(user);
- newdoc.setistmp(false);
- newdoc.setapplicationid(applicationid);
- newdoc.setdomainid(domainid);
- newdoc.addstringitem("у��",xq);
- newdoc.addstringitem("�༶",bj);
- newdoc.addstringitem("�γ�",kc);
- newdoc.addstringitem("ѧ������",xsxm);
- newdoc.addstringitem("ѧ�����",xsbh);
- newdoc.addstringitem("kcid",kcid);
- newdoc.addstringitem("sid",sid);
- newdoc.addstringitem("ǩ������",qdjq);
- newdoc.addstringitem("ǩ����ƭ",tpsrc);
- newdoc.adddateitem("��уʱ��", qdsj);
- process.docreate(newdoc);
-
- }
- }
- }
- var upsql="update `tlk_у����ϣ` , `tlk_����ʶ���¼�ش�` set `tlk_����ʶ���¼�ش�`.item_weid = `tlk_у����ϣ`.item_weid,`tlk_����ʶ���¼�ش�`.item_schoolid =`tlk_у����ϣ`.item_schoolid where `tlk_����ʶ���¼�ش�`.`item_у��` = `tlk_у����ϣ`.`item_у��`";
- var xqup= datasourcedesigntimeserviceimpl.createorupdate("�칫����ϵͳģ��_ds",upsql,applicationid);
- }
���ƴ��� |
|