保证金收取和退回流程资料清单风险预警

This commit is contained in:
ap007 2023-01-30 16:42:41 +08:00
parent 885905c810
commit 1aa55162b7

View File

@ -0,0 +1,43 @@
package com.tenwa.lease.flow.project.commcheck;
import com.amarsoft.app.alarm.AlarmBiz;
import com.amarsoft.awe.util.Transaction;
import com.ample.icms.check.ImageCheck;
import com.ample.icms.util.GetInfoUtil;
/**
* ×ÊÁÏÇåµ¥¼ì²é
* @author 20170524
*
*/
public class IcmsDocListCheckByFlowunid extends AlarmBiz {
@Override
public Object run(Transaction Sqlca) throws Exception {
String flowUnid = this.getAttribute("ObjectNo").toString();
String flowNo = this.getAttribute("FlowNo").toString();
GetInfoUtil gif = new GetInfoUtil();
String busiNo = flowUnid;
String app = gif.getAppInfoByFlowNo(flowNo,Sqlca);
String [] appInfo = app.split("@");
String appCode = appInfo[0];
String appName = appInfo[1];
if("0000".equals(appCode)){
setPass(false);
putMsg(appName);
return null;
}
ImageCheck ic= new ImageCheck();
ic.setAppCode(appCode);
ic.setAppName(appName);
ic.setBusiNo(busiNo);
String result =ic.resultAnalysis(ic.getResult());
String[] resultInfo = result.split("@");
if("true".equals(resultInfo[0])){
setPass(true);
}else{
setPass(false);
}
putMsg(resultInfo[1]);
return null;
}
}