diff --git a/calc/com/tenwa/reckon/util/TbBeanTools.java b/calc/com/tenwa/reckon/util/TbBeanTools.java index afa5e69b9..48e9e01ab 100644 --- a/calc/com/tenwa/reckon/util/TbBeanTools.java +++ b/calc/com/tenwa/reckon/util/TbBeanTools.java @@ -4,12 +4,14 @@ import java.util.ArrayList; import java.util.List; import com.amarsoft.are.jbo.JBOTransaction; + import jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT; import com.amarsoft.are.ARE; import com.amarsoft.are.jbo.BizObject; import com.amarsoft.are.jbo.BizObjectManager; import com.amarsoft.are.jbo.JBOFactory; +import com.amarsoft.are.lang.DataElement; import com.amarsoft.are.log.Log; import com.amarsoft.awe.util.SqlObject; import com.tenwa.reckon.bean.KnowingConfigBean; @@ -89,7 +91,13 @@ public class TbBeanTools { TabCalBean tcb = new TabCalBean(); tcb = getTabInfo(calType); tcb.setPlanCValue(plannumber); + String Condition_tb =tcb.getCondition_tb(); + String PlanCName = tcb.getPlanCName(); BizObject condition = JBOFactory.getBizObjectManager( tcb.getCondition_tb(), tx ).createQuery( "select * from O where flowunid = :flowunid and "+tcb.getPlanCName()+"='"+plannumber+"'" ).setParameter( "flowunid", flowunid ).getSingleResult( false ); + DataElement yearRate = condition.getAttribute("YEAR_RATE"); + if(yearRate!=null) { + String str = condition.getAttribute("YEAR_RATE").toString(); + } tcb.setCondition(condition); //设置已知规则 BizObjectManager m2 = JBOFactory.getBizObjectManager( tcb.getRuleTb(), tx ); diff --git a/config/interfacePlatform.properties b/config/interfacePlatform.properties new file mode 100644 index 000000000..0aee0d874 --- /dev/null +++ b/config/interfacePlatform.properties @@ -0,0 +1,5 @@ +url=http://localhost:8080/platform/batch/kjflc/ +FileToPush=pushToBatchDealAllTimer +AtTheEndOfContractPush=ContractFinishPushTimer +ContractLoanPush=loanPushTimer +PushApprovalOpinions=publicPushApproveTimer \ No newline at end of file diff --git a/src_core/com/tenwa/comm/message/controller/BankCardChangeReminderMessage.java b/src_core/com/tenwa/comm/message/controller/BankCardChangeReminderMessage.java index d56c9b511..b46d5da7f 100644 --- a/src_core/com/tenwa/comm/message/controller/BankCardChangeReminderMessage.java +++ b/src_core/com/tenwa/comm/message/controller/BankCardChangeReminderMessage.java @@ -6,11 +6,7 @@ import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; - import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT; -import jbo.com.tenwa.lease.comm.LB_INSURANCE_INFO; -import jbo.sys.CODE_LIBRARY; - import com.amarsoft.are.jbo.BizObject; import com.amarsoft.are.jbo.BizObjectManager; import com.amarsoft.are.jbo.JBOFactory; @@ -25,7 +21,7 @@ public class BankCardChangeReminderMessage extends BaseBussinessMessage{ public void loadMessageInfo()throws Exception{ String reminderDays = this.messageParam.get("reminderdays")==null?"0":this.messageParam.get("reminderdays"); - Date currentTime = new Date(); + Date currentTime = new Date(); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); Calendar calendar = Calendar.getInstance(); calendar.setTime(currentTime); diff --git a/src_core/com/tenwa/comm/message/controller/BaseMessageTimeTask.java b/src_core/com/tenwa/comm/message/controller/BaseMessageTimeTask.java index a6cd2c77c..a6f2be383 100644 --- a/src_core/com/tenwa/comm/message/controller/BaseMessageTimeTask.java +++ b/src_core/com/tenwa/comm/message/controller/BaseMessageTimeTask.java @@ -7,7 +7,6 @@ import jbo.com.tenwa.entity.comm.message.BT_BUSSINESS_MESSAGE_CONFIG; import com.amarsoft.are.jbo.BizObject; import com.amarsoft.are.jbo.BizObjectManager; -import com.amarsoft.are.jbo.JBOException; import com.amarsoft.are.jbo.JBOFactory; import com.amarsoft.are.jbo.JBOTransaction; diff --git a/src_core/com/tenwa/comm/message/controller/BussinessMessageController.java b/src_core/com/tenwa/comm/message/controller/BussinessMessageController.java index 8aba6b646..105f741ae 100644 --- a/src_core/com/tenwa/comm/message/controller/BussinessMessageController.java +++ b/src_core/com/tenwa/comm/message/controller/BussinessMessageController.java @@ -2,10 +2,8 @@ package com.tenwa.comm.message.controller; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; - import jbo.com.tenwa.entity.comm.message.BT_BUSSINESS_MESSAGE; import jbo.com.tenwa.entity.comm.message.BT_BUSSINESS_MESSAGE_CONFIG; - import com.amarsoft.app.lc.util.DateAssistant; import com.amarsoft.are.jbo.BizObject; import com.amarsoft.are.jbo.BizObjectManager; diff --git a/src_core/com/tenwa/comm/message/controller/CardChangeReminderMessage.java b/src_core/com/tenwa/comm/message/controller/CardChangeReminderMessage.java index 51ca3a97d..d981cae88 100644 --- a/src_core/com/tenwa/comm/message/controller/CardChangeReminderMessage.java +++ b/src_core/com/tenwa/comm/message/controller/CardChangeReminderMessage.java @@ -6,12 +6,7 @@ import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; - -import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT; import jbo.app.tenwa.doc.LB_DOC_CONTRACT_LIST; -import jbo.com.tenwa.lease.comm.LB_INSURANCE_INFO; -import jbo.sys.CODE_LIBRARY; - import com.amarsoft.are.jbo.BizObject; import com.amarsoft.are.jbo.BizObjectManager; import com.amarsoft.are.jbo.JBOFactory; @@ -57,5 +52,4 @@ public class CardChangeReminderMessage extends BaseBussinessMessage{ } } } - } diff --git a/src_tenwa/com/tenwa/gps/HttpClientSUtil.java b/src_tenwa/com/tenwa/gps/HttpClientSUtil.java index 3e657e306..fabcb2237 100644 --- a/src_tenwa/com/tenwa/gps/HttpClientSUtil.java +++ b/src_tenwa/com/tenwa/gps/HttpClientSUtil.java @@ -210,6 +210,7 @@ public class HttpClientSUtil { Map resultMap = new HashMap(); resultMap.put("data",EntityUtils.toString(response.getEntity(),"UTF-8")); resultMap.put("status",String.valueOf(response.getStatusLine().getStatusCode())); + System.err.println(resultMap); return resultMap; } } diff --git a/src_tenwa/com/tenwa/lease/app/quartzmession/AtTheEndOfContractPush.java b/src_tenwa/com/tenwa/lease/app/quartzmession/AtTheEndOfContractPush.java new file mode 100644 index 000000000..a7a5f09d9 --- /dev/null +++ b/src_tenwa/com/tenwa/lease/app/quartzmession/AtTheEndOfContractPush.java @@ -0,0 +1,20 @@ +package com.tenwa.lease.app.quartzmession; + +import org.quartz.Job; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.tenwa.gps.HttpClientSUtil; +import com.tenwa.httpclient.resources.InterfacePlatformConfigure; + +public class AtTheEndOfContractPush implements Job { + + @Override + public void execute(JobExecutionContext arg0) throws JobExecutionException { + try { + HttpClientSUtil.doGet(InterfacePlatformConfigure.get("url")+InterfacePlatformConfigure.get("AtTheEndOfContractPush"),null,null); + } catch (Exception e) { + e.printStackTrace(); + } + } +} diff --git a/src_tenwa/com/tenwa/lease/app/quartzmession/ContractLoanPush.java b/src_tenwa/com/tenwa/lease/app/quartzmession/ContractLoanPush.java new file mode 100644 index 000000000..c33e90a29 --- /dev/null +++ b/src_tenwa/com/tenwa/lease/app/quartzmession/ContractLoanPush.java @@ -0,0 +1,20 @@ +package com.tenwa.lease.app.quartzmession; + +import org.quartz.Job; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.tenwa.gps.HttpClientSUtil; +import com.tenwa.httpclient.resources.InterfacePlatformConfigure; + +public class ContractLoanPush implements Job { + + @Override + public void execute(JobExecutionContext arg0) throws JobExecutionException { + try { + HttpClientSUtil.doGet(InterfacePlatformConfigure.get("url")+InterfacePlatformConfigure.get("ContractLoanPush"),null,null); + } catch (Exception e) { + e.printStackTrace(); + } + } +} diff --git a/src_tenwa/com/tenwa/lease/app/quartzmession/FileToPush.java b/src_tenwa/com/tenwa/lease/app/quartzmession/FileToPush.java new file mode 100644 index 000000000..c264fc589 --- /dev/null +++ b/src_tenwa/com/tenwa/lease/app/quartzmession/FileToPush.java @@ -0,0 +1,21 @@ +package com.tenwa.lease.app.quartzmession; + +import org.quartz.Job; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.tenwa.gps.HttpClientSUtil; +import com.tenwa.httpclient.resources.InterfacePlatformConfigure; + +public class FileToPush implements Job { + + @Override + public void execute(JobExecutionContext arg0) throws JobExecutionException { + + try { + HttpClientSUtil.doGet(InterfacePlatformConfigure.get("url")+InterfacePlatformConfigure.get("FileToPush"),null,null); + } catch (Exception e) { + e.printStackTrace(); + } + } +} diff --git a/src_tenwa/com/tenwa/lease/app/quartzmession/PushApprovalOpinions.java b/src_tenwa/com/tenwa/lease/app/quartzmession/PushApprovalOpinions.java new file mode 100644 index 000000000..0b4fa66d1 --- /dev/null +++ b/src_tenwa/com/tenwa/lease/app/quartzmession/PushApprovalOpinions.java @@ -0,0 +1,20 @@ +package com.tenwa.lease.app.quartzmession; + +import org.quartz.Job; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.tenwa.gps.HttpClientSUtil; +import com.tenwa.httpclient.resources.InterfacePlatformConfigure; + +public class PushApprovalOpinions implements Job { + + @Override + public void execute(JobExecutionContext arg0) throws JobExecutionException { + try { + HttpClientSUtil.doGet(InterfacePlatformConfigure.get("url")+InterfacePlatformConfigure.get("PushApprovalOpinions"),null,null); + } catch (Exception e) { + e.printStackTrace(); + } + } +}