添加入inputuserid等字段
This commit is contained in:
parent
8f681c65ed
commit
219631a5e1
@ -6,7 +6,7 @@
|
||||
History Log:
|
||||
*/
|
||||
//初始话手机在线时长查询
|
||||
|
||||
String userId = CurPage.getUserId();
|
||||
String ProjectId = CurPage.getParameter("ProjectId");
|
||||
String flowunid = CurPage.getParameter("ObjectNo");
|
||||
ASObjectModel doTemp = new ASObjectModel("LbTelOnlinList");
|
||||
@ -25,7 +25,7 @@
|
||||
<script type="text/javascript">
|
||||
|
||||
function checkPhoneNumberOnLine(){
|
||||
var result = RunJavaMethodTrans("com.tenwa.lease.flow.project.validate.OnlineClient","getTelOnLine","flowunid=<%=flowunid%>,projectId=<%=ProjectId%>");
|
||||
var result = RunJavaMethodTrans("com.tenwa.lease.flow.project.validate.OnlineClient","getTelOnLine","flowunid=<%=flowunid%>,projectId=<%=ProjectId%>,userId=<%=userId%>");
|
||||
if(result=="true"){
|
||||
window.location.reload();
|
||||
}else{
|
||||
@ -34,7 +34,7 @@
|
||||
}
|
||||
function retry(){
|
||||
var onLineId = getItemValue(0,getRow(0),'online_id');
|
||||
var result = RunJavaMethodTrans("com.tenwa.lease.flow.project.validate.OnlineClient","getTelOnLineReTry","onLineId="+onLineId);
|
||||
var result = RunJavaMethodTrans("com.tenwa.lease.flow.project.validate.OnlineClient","getTelOnLineReTry","onLineId="+onLineId+",userId=<%=userId%>");
|
||||
if(result=="true"){
|
||||
window.location.reload();
|
||||
}else{
|
||||
|
||||
@ -28,6 +28,8 @@ import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.are.util.StringFunction;
|
||||
import com.amarsoft.context.ASUser;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
|
||||
|
||||
@ -45,6 +47,7 @@ public class OnlineClient {
|
||||
|
||||
private String flowunid;
|
||||
private String projectId;
|
||||
private String userId;
|
||||
|
||||
private String onLineId;
|
||||
public static void main(String[] org0) throws ClientProtocolException, IOException, URISyntaxException{
|
||||
@ -121,6 +124,7 @@ public class OnlineClient {
|
||||
String jsonStr = postOnLine("","RETRY",onLineId);
|
||||
Map mapTypes = JSON.parseObject(jsonStr);
|
||||
boolean success = (boolean)(mapTypes.get("success"));
|
||||
ASUser user = new ASUser(userId);
|
||||
if(success){
|
||||
String onLineId = mapTypes.get("id").toString();
|
||||
String result_desc = mapTypes.get("result_desc").toString();
|
||||
@ -138,15 +142,17 @@ public class OnlineClient {
|
||||
//更新需要重发的数据
|
||||
JBOFactory.getBizObjectManager(LB_TELONLINE.CLASS_NAME, tx).createQuery("update O set success='"+success+"',result_desc='"+result_desc+"',"
|
||||
+ "mobile_online_time_info='"+mobile_online_time_info+"',mobile_online_time_consistence='"+mobile_online_time_consistence+"',"
|
||||
+ "nextService='"+nextService+"',reason_code='"+reason_code+"',reason_desc='"+reason_desc+"' where online_id=:id")
|
||||
.setParameter("id", onLineId).executeUpdate();
|
||||
+ "nextService='"+nextService+"',reason_code='"+reason_code+"',reason_desc='"+reason_desc+"',UPDATEUSERID=:userid,UPDATEORGID=:orgid,UPDATETIME=:uptime where online_id=:id")
|
||||
.setParameter("id", onLineId).setParameter("userid",userId).setParameter("orgid",user.getOrgID()).setParameter("uptime",StringFunction.getTodayNow())
|
||||
.executeUpdate();
|
||||
}else{
|
||||
Object reason_code = mapTypes.get("reason_code");
|
||||
Object reason_desc = mapTypes.get("reason_desc");
|
||||
//更新需要重发的数据
|
||||
JBOFactory.getBizObjectManager(LB_TELONLINE.CLASS_NAME, tx).createQuery("update O set success='"+success+"'"
|
||||
+ ",reason_code='"+reason_code+"',reason_desc='"+reason_desc+"' where online_id=:id")
|
||||
.setParameter("id", onLineId).executeUpdate();
|
||||
+ ",reason_code='"+reason_code+"',reason_desc='"+reason_desc+"',UPDATEUSERID=:userid,UPDATEORGID=:orgid,UPDATETIME=:uptime where online_id=:id")
|
||||
.setParameter("id", onLineId).setParameter("userid",userId).setParameter("orgid",user.getOrgID()).setParameter("uptime",StringFunction.getTodayNow())
|
||||
.executeUpdate();
|
||||
}
|
||||
tx.commit();
|
||||
} catch (Exception e) {
|
||||
@ -206,6 +212,10 @@ public class OnlineClient {
|
||||
}
|
||||
lton.setAttributeValue(LB_TELONLINE.reason_code, mapTypes.get("reason_code"));
|
||||
lton.setAttributeValue(LB_TELONLINE.reason_desc, mapTypes.get("reason_desc"));
|
||||
ASUser user = new ASUser(userId);
|
||||
lton.setAttributeValue(LB_TELONLINE.INPUTUSERID, userId);
|
||||
lton.setAttributeValue(LB_TELONLINE.INPUTORGID, user.getOrgID());
|
||||
lton.setAttributeValue(LB_TELONLINE.INPUTTIME, StringFunction.getTodayNow());
|
||||
ltbom.saveObject(lton);
|
||||
}
|
||||
tx.commit();
|
||||
@ -242,6 +252,12 @@ public class OnlineClient {
|
||||
public void setOnLineId(String onLineId) {
|
||||
this.onLineId = onLineId;
|
||||
}
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user