Merge remote-tracking branch 'origin/release20211231' into release20211231

This commit is contained in:
zhanglei 2023-09-25 10:28:16 +08:00
commit cb0a64fbc8
14 changed files with 187 additions and 57 deletions

View File

@ -1,4 +1,5 @@
<%@page import="cn.bean.User"%>
<%@ page import="com.amarsoft.app.util.ASUserObject" %>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
<%@include file="/Tenwa/Core/FlowManager/BaseFunction/BaseFlowListFunction.jspf" %>
@ -33,14 +34,13 @@
<%
String soft = CurPage.getParameter("soft");
String userId = CurUser.getUserID();
ASObjectModel doTemp = new ASObjectModel("FlowInstanceTrack3");
doTemp.setDataQueryClass("com.amarsoft.awe.dw.ui.list.FlowMonitorListHtmlGenerator");
String ros = "true";
if("业务申请分担".equals(soft)){
ros = "false";
doTemp.appendJboWhere("( (O.flow_name='业务申请流程' and O.PHASENAME='信审初审') or ( O.flow_name='业务变更流程' and O.PHASENAME='信审专员初审') )");
doTemp.appendJboWhere("( (O.APPLYTYPE='BusinessApplyApply' and O.PHASENO in ('0030','0040','0050','0051','0052') ) or ( O.flow_name='业务变更流程' and O.PHASENAME='信审专员初审') )");
};
if("付款业务分担".equals(soft)){
ros = "false";

View File

@ -0,0 +1,64 @@
<%@page import="cn.bean.User"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
<%@include file="/Tenwa/Core/FlowManager/BaseFunction/BaseFlowListFunction.jspf" %>
<%
String PG_TITLE = "流程实例跟踪"; // 浏览器窗口标题 <title> PG_TITLE </title>
String soft = CurPage.getParameter("soft");
String userId = CurUser.getUserID();
ArrayList<String> roleList = CurUser.getRoleTable();
String isRisk = "false";
if( roleList!=null && roleList.size()>0 ){
for(int i=0 ;i<roleList.size();i++){
if("800R00000092".equals(roleList.get(i))){
isRisk = "true";
break;
}
}
}
System.out.print("============="+roleList);
ASObjectModel doTemp = new ASObjectModel("FlowInstanceTrack3");
doTemp.setDataQueryClass("com.amarsoft.awe.dw.ui.list.FlowMonitorListHtmlGenerator");
doTemp.appendJboWhere(" O.APPLYTYPE='BusinessApplyApply' and O.serialno is not null ");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(pageSize==null?10:Integer.parseInt(pageSize));
dwTemp.genHTMLObjectWindow("");
String sButtons[][] = {
};
%>
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
//在加载完表格后调用
<%-- alert("<%=soft%>"); --%>
function afterSearch(){
for(var i=0;i<getRowCount(0);i++){
var userId=getItemValue(0,i,"USERID");
if(userId=="system"){
getObj(0,i,"ENDTIME").innerHTML=getObj(0,i,"BEGINTIME").textContent;
}
getObj(0,i,"ACTION").innerHTML= '<a onclick="javascript:viewFlowGraph()">显示流程图</a>&nbsp;&nbsp;&nbsp; <a href=# onclick="javascript:viewHisTabNew()">申请详情</a> ';
}
setColumnWidth(0,"ACTION",150);
}
function viewHisTabNew(){
var sTaskNo = getItemValue(0,getRow(0),'SERIALNO');
var sObjectNo = getItemValue(0,getRow(0),'OBJECTNO');
var sFlowNo = getItemValue(0,getRow(0),'FLOWNO');
var sPhaseNo = getItemValue(0,getRow(0),'PHASENO');
var param ="TaskNo="+sTaskNo+"&ViewID=001&RightType=ReadOnly&riskParam="+"<%=isRisk%>";
var objectinfo =$.parseJSON(RunJspAjax("/Tenwa/Core/FlowManager/GetObjectInfo.jsp?TaskNo="+sTaskNo));
AsControl.OpenTab("/Tenwa/Core/FlowManager/FlowPage/FlowPageViewTab.jsp", param ,objectinfo);
}
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%>
<script type="text/javascript">
</script>
<%/*~END~*/%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -49,10 +49,10 @@
}
let sTaskNo = AsControl.RunJavaMethodTrans("com.amarsoft.app.flow.FlowAction","getFlowEndRelativeTaskNo", "ObjectNo="+flowunid+",projectId="+projectId);
if(typeof(sTaskNo)=="undefined" || sTaskNo.length==0) {
alert("流程未结束,无法查看");
alert("流程任务不存在,请联系管理员");
return;
}
var param ="TaskNo="+sTaskNo+"&ViewID=001&RightType=ReadOnly&delTabs=扣款卡信息,客户历史信息查询";
var param ="TaskNo="+sTaskNo+"&ViewID=001&RightType=ReadOnly&IsHistory=true&delTabs=扣款卡信息,客户历史信息查询";
AsControl.OpenNewWin("/Tenwa/Core/FlowManager/FlowPage/FlowPageViewTab.jsp",param)
}

View File

@ -42,16 +42,17 @@
function viewHisTabLocal() {
var flowunid = getItemValue(0,getRow(),"FLOWUNID");
var projectId = getItemValue(0,getRow(),"PROJECT_ID");
var businessStatus = getItemValue(0,getRow(),"BUSINESS_STATUS")
if (flowunid.length == 0 && projectId.length == 0) {
alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
let sTaskNo = AsControl.RunJavaMethodTrans("com.amarsoft.app.flow.FlowAction","getFlowEndRelativeTaskNo", "ObjectNo="+flowunid+",projectId="+projectId);
let sTaskNo = AsControl.RunJavaMethodTrans("com.amarsoft.app.flow.FlowAction","getFlowEndRelativeTaskNo", "ObjectNo="+flowunid+",businessStatus="+businessStatus+",projectId="+projectId);
if(typeof(sTaskNo)=="undefined" || sTaskNo.length==0) {
alert("流程未结束,无法查看");
alert("流程任务不存在,请联系管理员");
return;
}
var param ="TaskNo="+sTaskNo+"&ViewID=001&RightType=ReadOnly&delTabs=扣款卡信息,客户历史信息查询";
var param ="TaskNo="+sTaskNo+"&ViewID=001&RightType=ReadOnly&IsHistoryNew=true&delTabs=扣款卡信息,客户历史信息查询";
AsControl.OpenNewWin("/Tenwa/Core/FlowManager/FlowPage/FlowPageViewTab.jsp",param)
}

View File

@ -18,6 +18,7 @@
String flowunid = CurPage.getParameter("FlowUnid");
String flowName = CurPage.getParameter("FlowName");//获取流程名称
String projectId = CurPage.getParameter("ProjectId");//获取项目id
String riskParam = CurComp.getParameter("riskParam");
String clean_lease_money = Sqlca.getString("select CLEAN_LEASE_MONEY from LC_CALC_CONDITION_TEMP where flowunid='"+flowunid+"'");
//获取合同状态
String projectstatus = Sqlca.getString("select PROJECT_STATUS from lb_project_info where id='"+projectId+"'");
@ -36,6 +37,15 @@
doTemp.setHtmlEvent("firstchoice","onChange","changeFirstChoice");
doTemp.setHtmlEvent("secondchoice","onChange","changeSecondChoice");
doTemp.setHtmlEvent("thirdchoice","onChange","changeThirdChoice");
String falg = "true";
if ( (riskParam!=null && riskParam.length() > 0 ) || "0010,0020".indexOf(phaseNo)>-1 ){
falg = "false";
doTemp.setReadOnly("FIRSTCHOICE",true);
doTemp.setReadOnly("FIRSTOPINION",true);
doTemp.setReadOnly("SECONDCHOICE",true);
doTemp.setReadOnly("SECONDOPINION",true);
}
ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.setAttr("inputWidth", "163");
@ -60,13 +70,13 @@
//复审意见展示
if("业务申请流程".equals(flowName)&&("0040".equals(phaseNo)||"0050".equals(phaseNo)||"0060".equals(phaseNo)||"0070".equals(phaseNo)||"0080".equals(phaseNo))){
if("业务申请流程".equals(flowName)&&("0040".equals(phaseNo)||"0050".equals(phaseNo)||"0051".equals(phaseNo)||"0052".equals(phaseNo)||"0053".equals(phaseNo))){
doTemp.setVisible("VETO",true);
}else {
doTemp.setVisible("VETO",false);
}
if(("业务申请流程".equals(flowName)||"业务变更流程".equals(flowName))&&("0030".equals(phaseNo)||"0040".equals(phaseNo)||"0050".equals(phaseNo)||"0060".equals(phaseNo)||"0070".equals(phaseNo))){
if(("业务申请流程".equals(flowName)||"业务变更流程".equals(flowName))&&("0030".equals(phaseNo)||"0040".equals(phaseNo)||"0050".equals(phaseNo)||"0051".equals(phaseNo)||"0052".equals(phaseNo)||"0053".equals(phaseNo))){
dwTemp.getDataObject().setVisible("subjectname", true);
}else {
dwTemp.getDataObject().setVisible("subjectname", false);
@ -89,7 +99,7 @@
// dwTemp.getDataObject().setReadOnly("InterOpinion2", true);
dwTemp.setGroupHidden("0040,0050");
}
}else if("0040".equals(phaseNo)||"0050".equals(phaseNo)){//复审
}else if("0040".equals(phaseNo)||"0050".equals(phaseNo)||"0051".equals(phaseNo)||"0052".equals(phaseNo)||"0053".equals(phaseNo)){//复审
dwTemp.getDataObject().setVisible("firstchoice", true);
dwTemp.getDataObject().setVisible("firstopinion", true);
dwTemp.getDataObject().setReadOnly("firstchoice", true);
@ -197,7 +207,7 @@
dwTemp.genHTMLObjectWindow(flowunid);
String sButtons[][] = {
{"0010,0020".indexOf(phaseNo)>-1?"false":"true","","Button","保存","保存所有修改","save()","","","",""}
{falg,"","Button","保存","保存所有修改","save()","","","",""}
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
@ -792,7 +802,7 @@
if("0030" == "<%=phaseNo%>"){
phaseChoice = getItemValue(0,0,"firstchoice");
phaseOpinion = getItemValue(0,0,"firstopinion");
}else if("0040" == "<%=phaseNo%>"||"0050" == "<%=phaseNo%>"){
}else if("0040" == "<%=phaseNo%>"||"0050" == "<%=phaseNo%>" ||"0051" == "<%=phaseNo%>"||"0052" == "<%=phaseNo%>"||"0053" == "<%=phaseNo%>"){
phaseChoice = getItemValue(0,0,"secondchoice");
phaseOpinion = getItemValue(0,0,"secondopinion");
}else if("0060" == "<%=phaseNo%>"){

View File

@ -1,11 +1,10 @@
<%@page import="com.sun.org.apache.xalan.internal.xsltc.compiler.sym"%>
<%@page import="com.tenwa.reckon.product.ASObjectWindowCalc"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2017-07-10
Content: 示例详情页面
History Log:
History Log:
*/
String userId= CurUser.getUserID();
String userName = CurUser.getUserName();
@ -23,6 +22,7 @@
String customertype = CurPage.getParameter("customertype");
String channel = CurPage.getParameter("channel");
String flowName = CurPage.getParameter("FlowName");
String ishistoryNew = CurComp.getParameter("IsHistoryNew");
String falg = "false";
@ -40,7 +40,7 @@
if((null!=sPhaseNo&&sPhaseNo.equals("0010")) && ("BusinessApplyFlow".equals(FlowNo) ||"BusinessChangeFlow".equals(FlowNo))){
doTemp.setReadOnly("LEAS_FORM", true);
doTemp.setReadOnly("PROJECT_SOURCE", false);
};
if("ReadOnly".equals(rightType)){
doTemp.setReadOnly("INPUTNAME", true);
@ -70,12 +70,13 @@
dwTemp.setGroupHidden("0020");
dwTemp.genHTMLObjectWindow(CurPage.getParameter("FlowUnid"));
dwTemp.replaceColumn("customer_info", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"1200px\" frameborder=\"0\" src=\""+sWebRootPath+userll+compClientID+"&sPhaseNo="+sPhaseNo+"\"></iframe>", CurPage.getObjectWindowOutput());
if ("true".equals(ishistoryNew)) falg = "false";
String sButtons[][] = {
{falg,"","Button","保存","保存","save()","","","","btn_icon_saveNew",""},
{"true","","Button","资料清单","资料清单","openFileList('1')","","","","btn_icon_saveNew",""},
{("BusinessApplyFlow".equals(FlowNo)||"BusinessChangeFlow".equals(FlowNo))&&("0030".equals(sPhaseNo)||"0040".equals(sPhaseNo)||"0050".equals(sPhaseNo)||"0060".equals(sPhaseNo)||"0070".equals(sPhaseNo))?"true":"false","","Button","信审资料","信审资料","openFileList('2')","","","","btn_icon_saveNew",""}
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
$(function() {
@ -87,7 +88,7 @@
//去除项目审批信息难看样式
})
function save(){
if(!checkinputName()){
return;
}
@ -121,7 +122,7 @@
return;
}
var operationType="<%=operationType%>";
if(customerType=="01"||customerT=="01"){//法人
//as_save("myiframe0","frame_list.window.saveCompany();");
// if("BAIC_MOTOR"==operationType){
@ -138,7 +139,7 @@
//as_save("myiframe0","frame_list.window.as_save(0);");
}
}
function checkTel(){//校验手机号格式和不为空校验
var mobile = getItemValue(0,getRow(0),"inputTel");
if(mobile==""){
@ -153,7 +154,7 @@
return false;
}
}
function checkinputName(){
var inputName = getItemValue(0,getRow(0),"inputName");
if(inputName==""){
@ -164,7 +165,7 @@
return true;
}
}
function checkZcProjectNumber(){
var zcProjectNumber = getItemValue(0,getRow(0),"ZC_PROJECT_NUMBER");
if(zcProjectNumber==""){
@ -175,7 +176,7 @@
return true;
}
}
function checkZcContractNumber(){
var zcContractNumber = getItemValue(0,getRow(0),"ZC_CONTRACT_NUMBER");
if(zcContractNumber==""){
@ -241,4 +242,4 @@
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -4,7 +4,7 @@
/*
Author: undefined 2018-06-27
Content: 示例详情页面
History Log:
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
String customerType = CurPage.getParameter("CustomerType");
@ -15,8 +15,9 @@
String showtype = CurPage.getParameter("ShowType");
String sPhaseNo=CurPage.getParameter("PhaseNo");
String IsHistory = CurPage.getParameter("IsHistory");
String ishistoryNew = CurComp.getParameter("IsHistoryNew");
if(sPrevUrl == null) sPrevUrl = "";
String falg = "false";
if("0010".equals(sPhaseNo) || "0020".equals(sPhaseNo) ){
@ -59,7 +60,8 @@
}else{
dwTemp.genHTMLObjectWindow(FlowUnid);
}
}
}
if ("true".equals(ishistoryNew)) falg = "false";
String sButtons[][] = {
//{"true","","Button","新增","新增","newRecord()","","","","btn_icon_add"},
{falg,"","Button","保存","保存","viewAndEdit()","","","","btn_icon_edit"},
@ -96,7 +98,7 @@
//$("#FULLNAME").attr("style","color:red;");
$("#TEL").css("color","red");
}
var certResult = checkCertIdAll();
if(certResult=="4"){
//$("#FULLNAME").attr("style","color:red;");
@ -227,11 +229,11 @@
}
if("Ind01"==certtype){
if(certId.length!=18){
setErrorTips("certid","身份证必须是18位");
setErrorTips("certid","身份证必须是18位");
return false;
}
if(CheckLicense(certId)){
setErrorTips("certid","");
setErrorTips("certid","");
return true;
}else{
setErrorTips("certId","身份证格式不正确!");
@ -267,7 +269,7 @@
return false;
} */
}
function checkSuphone(){//校验单位电话格式和不为空
var suphone = getItemValue(0,getRow(0),"suphone");
if(suphone==""){
@ -284,7 +286,7 @@
return false;
}
}
function checkTelRepeat(){//校验共同申请人手机号重复
var customerType = "03";
var tel = getItemValue(0,getRow(),"tel");
@ -417,7 +419,7 @@
function returnList(){
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
}
//根据身份证号判断性别
function ValidityCheck(){
var certID = getItemValue(0,getRow(),"CERTID");
@ -447,7 +449,7 @@
}else{
setItemReadOnly(0,0,"SEX",false);
}
checkCertidRepeat();
birthdayCheck();
}
@ -488,7 +490,7 @@
setErrorTips("CERTID","");
return true;
}
function checkMobileAll(mobile){//检验所有手机号
var sParams = "mobile="+mobile+",flowunid="+"<%=flowunid%>";
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkTel",sParams);
@ -500,8 +502,8 @@
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkCertIdAll",sParams);
return sReturnInfo;
}
function deleteRecord(){
function deleteRecord(){
var ID = getItemValue(0,getRow(),"ID");
if(typeof(ID) == "undefined" || ID.length == 0 ){
alert("无数据可删除 ");
@ -514,4 +516,4 @@
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -12,6 +12,7 @@
String projectNo=CurPage.getParameter("ProjectNo");//项目编号
String phaseNo=CurPage.getParameter("PhaseNo");//流程节点
String flowNo=CurPage.getParameter("FlowNo");//流程编号
String riskParam = CurComp.getParameter("riskParam");
String compClientID = CurPage.getParameter("CompClientID");
String detailUrl = "/Tenwa/Lease/Flow/Project/BusinessApplication/RCScoreResultDetail.jsp?CompClientID=";
String sTempletNo = "queryScoreResult";//--模板号--
@ -24,12 +25,21 @@
+sWebRootPath+detailUrl+compClientID+"&flowunid="+sFlowUnid+"&projectNo="+projectNo+"\"></iframe>", CurPage.getObjectWindowOutput());
System.out.println("info ----- >" +sFlowUnid);
String isHistory=CurPage.getParameter("IsHistory");
String falg = "true";
String falgResult = "true";
if(riskParam!=null && riskParam.length() > 0 && "false".equals(riskParam)){// 说明从业务信息过来的数据,并且对应角色中没有需要显示的数据
falg = "false";
falgResult = "false";
}else if("true".equals(isHistory)){
falg = "false";
}
String sButtons[][] = {
{"true","","Button","评分请求","评分请求","amp()","","","","btn_icon_saveNew",""},
{"true","","Button","反欺诈","反欺诈","afs()","","","","btn_icon_saveNew",""},
{"true","","Button","查询评分结果","查询评分结果","queryScoreResult()","","","","btn_icon_saveNew",""},
{"true","","Button","查询评分报告","查询评分报告","queryScoreResultUrl()","","","","btn_icon_saveNew",""}
{falg,"","Button","评分请求","评分请求","amp()","","","","btn_icon_saveNew",""},
{falg,"","Button","反欺诈","反欺诈","afs()","","","","btn_icon_saveNew",""},
{falgResult,"","Button","查询评分结果","查询评分结果","queryScoreResult()","","","","btn_icon_saveNew",""},
{falgResult,"","Button","查询评分报告","查询评分报告","queryScoreResultUrl()","","","","btn_icon_saveNew",""}
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>

View File

@ -882,6 +882,7 @@
<attribute name="FRAUD_TAKEN_CODE" label="反欺诈人工判定结果" type="STRING" length="50"/>
<attribute name="SCORE_RESULT_CODE" label="评分结果" type="STRING" length="50"/>
<attribute name="RESULT_TIME" label="异步结果时间" type="STRING" length="50"/>
<attribute name="TRAN_NO" label="评分流水号" type="STRING" length="50"/>
</attributes>
<manager>
<managerProperties>

View File

@ -69,6 +69,7 @@ public class FlowAction {
private String AssignSumbitType;// 指派处理方式
private String nextNodeType;
private String projectId; //项目id
private String businessStatus; //业务状态
private FlowService flowService;
@ -236,6 +237,14 @@ public class FlowAction {
return projectId;
}
public String getBusinessStatus() {
return businessStatus;
}
public void setBusinessStatus(String businessStatus) {
this.businessStatus = businessStatus;
}
//处理重复提交数据重复,只适用单体服务
private static Set<String> taskSet = new HashSet<>();
@ -747,16 +756,29 @@ public class FlowAction {
*/
public String getFlowEndRelativeTaskNo(JBOTransaction tx) throws Exception {
String taskSerialNo = "";
String sql = "select ft.RELATIVESERIALNO from flow_bussiness_object fbo join flow_task ft on fbo.flow_unid = ft.objectno where fbo.flow_name = '业务申请流程' and ft.phaseno = '1000'";
if (StringUtils.isNotBlank(objectNo)) {
sql += " and fbo.flow_unid = '" + objectNo + "'";
} else {
sql += " and fbo.proj_id = '" + projectId + "'";
}
String sql = null;
Transaction Sqlca = Transaction.createTransaction(tx);
ASResultSet asResultSet = Sqlca.getASResultSet(new SqlObject(sql));
if (asResultSet.next()) {
taskSerialNo = asResultSet.getString("RELATIVESERIALNO");
if (StringUtils.isNotBlank(businessStatus)) { //流程中处理
if ("业务取消".equals(businessStatus)) {
sql = "select serialno as RELATIVESERIALNO from flow_task where objectno = '" + objectNo + "' order by begintime desc limit 1";
} else {
sql = "select ft.serialno as RELATIVESERIALNO from flow_task ft join flow_object fo on ft.objectno = fo.objectno and ft.phaseno = fo.phaseno where ft.objectno = '" + objectNo + "'";
}
ASResultSet as = Sqlca.getASResultSet(new SqlObject(sql));
if (as.next()) {
taskSerialNo = as.getString("RELATIVESERIALNO");
}
} else {
sql = "select ft.RELATIVESERIALNO from flow_bussiness_object fbo join flow_task ft on fbo.flow_unid = ft.objectno where fbo.flow_name = '业务申请流程' and ft.phaseno = '1000'";
if (StringUtils.isNotBlank(objectNo)) {
sql += " and fbo.flow_unid = '" + objectNo + "'";
} else {
sql += " and fbo.proj_id = '" + projectId + "'";
}
ASResultSet asResultSet = Sqlca.getASResultSet(new SqlObject(sql));
if (asResultSet.next()) {
taskSerialNo = asResultSet.getString("RELATIVESERIALNO");
}
}
return taskSerialNo;
}

View File

@ -1,6 +1,7 @@
package com.ample.esb.controller;
import com.amarsoft.are.jbo.*;
import com.amarsoft.are.util.StringFunction;
import com.amarsoft.dict.als.manage.NameManager;
import com.ample.esb.bean.esb.MessageEsbHead;
import com.ample.esb.bean.esb.Transaction;
@ -22,9 +23,11 @@ public class AmpController {
Map<String,String> map = new HashMap<String,String>();
map.put("flowUnid",flowUnid);
map.put("operatorId",operatorId);
map.put("tranNo",DateUtils.dateTimeNowAccurate());
AmpService as = new AmpServiceImpl(map);
Transaction tran = as.transactionDo();
String result = resultAnalysis(tran);
saveScoreLog(tran,map.get("tranNo"));
as.resetFraudTakenCode();
return result;
}
@ -32,7 +35,7 @@ public class AmpController {
public String resultAnalysis(Transaction tran){
String response = "";
String retCode = tran.getMessageEsbHead().getRetCode();
saveScoreLog(tran);
if("000000".equals(retCode)){
response = "²Ù×÷³É¹¦£¡";
}else{
@ -40,7 +43,7 @@ public class AmpController {
}
return response;
}
public void saveScoreLog(com.ample.esb.bean.esb.Transaction tran){
public void saveScoreLog(com.ample.esb.bean.esb.Transaction tran,String tranNo){
BizObjectManager bom = null;
try {
bom = JBOFactory.getBizObjectManager("jbo.oti.RC_SCORE_LOG");
@ -53,10 +56,11 @@ public class AmpController {
String userName = NameManager.getUserName(operatorId);
bo.setAttributeValue("INPUTUSERNAME",userName);
bo.setAttributeValue("FLOW_UNID",flowUnid);
bo.setAttributeValue("INPUTTIME", DateUtils.dateTimeNow());
bo.setAttributeValue("INPUTTIME", StringFunction.getTodayNow());
String retCode = tran.getMessageEsbHead().getRetCode();
bo.setAttributeValue("RET_CODE", retCode);
bo.setAttributeValue("PROJECT_NO", projectNo);
bo.setAttributeValue("TRAN_NO", tranNo);
bom.saveObject(bo);
} catch (JBOException e) {
e.printStackTrace();

View File

@ -33,9 +33,11 @@ import java.util.*;
public class AmpServiceImpl extends EsbCommon implements AmpService {
private String flowUnid;
private String operatorId;
private String tranNo;
public AmpServiceImpl(Map<String,String> map){
setFlowUnid(map.get("flowUnid"));
setOperatorId(map.get("operatorId"));
setTranNo(map.get("tranNo"));
}
public void resetFraudTakenCode(){
BizObjectManager bom = null;
@ -133,6 +135,7 @@ public class AmpServiceImpl extends EsbCommon implements AmpService {
private BizObject boCft;
//¾­ÏúÉÌÕýʽ±í
private BizObject boDi;
/**
* ÍùbeanÀïÃæÌîÖµ
* @throws JBOException
@ -996,7 +999,7 @@ public class AmpServiceImpl extends EsbCommon implements AmpService {
app.setNumber(number);
app.setApplicationType("APF");
app.setOriginalSystemId("APF");
app.setTranNo(DateUtils.dateTimeNowAccurate());
app.setTranNo(tranNo);
app.setFirstProposalDate(minTime);
app.setLastProposalDate(maxTime);
app.setFaName(faName);
@ -1204,4 +1207,12 @@ public class AmpServiceImpl extends EsbCommon implements AmpService {
public void setOperatorId(String operatorId) {
this.operatorId = operatorId;
}
public String getTranNo() {
return tranNo;
}
public void setTranNo(String tranNo) {
this.tranNo = tranNo;
}
}

View File

@ -53,4 +53,9 @@ public interface RC_SCORE_LOG {
public static final String FRAUD_TAKEN_CODE = "FRAUD_TAKEN_CODE";
public static final String SCORE_RESULT_CODE = "SCORE_RESULT_CODE";
/**
* Á÷Ë®ºÅ STRING(20)<br>
*/
public static final String TRAN_NO = "TRAN_NO";
}

View File

@ -15,8 +15,7 @@ public class ProjectHisInsertBusiness extends BaseBussiness {
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String flowunid = this.getAttribute("FlowUnid").toString();
String flowunid = this.getAttribute("ObjectNo").toString();
StringBuilder querySqlSb = new StringBuilder();
querySqlSb.append(" select certid from customer_family_temp where Partner_ = 'Y' and flowunid = '"+flowunid+"'")