diff --git a/src_tenwa/com/tenwa/flow/rent/copyrent/CopyRentIncomeTempToFormal.java b/src_tenwa/com/tenwa/flow/rent/copyrent/CopyRentIncomeTempToFormal.java index 8a6c77045..41b39a903 100644 --- a/src_tenwa/com/tenwa/flow/rent/copyrent/CopyRentIncomeTempToFormal.java +++ b/src_tenwa/com/tenwa/flow/rent/copyrent/CopyRentIncomeTempToFormal.java @@ -1,11 +1,13 @@ package com.tenwa.flow.rent.copyrent; +import java.text.SimpleDateFormat; +import java.util.Date; import java.util.HashMap; import java.util.Map; import com.amarsoft.awe.util.SqlObject; import com.amarsoft.awe.util.Transaction; -import com.amarsoft.biz.bizlet.Bizlet; +import com.amarsoft.context.ASUser; import com.tenwa.flow.baseBussion.BaseBussiness; import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService; import com.tenwa.lease.flow.comm.service.ServiceOperatorEnum; @@ -20,6 +22,9 @@ public class CopyRentIncomeTempToFormal extends BaseBussiness{ public Object run(Transaction Sqlca) throws Exception{ this.initBussinessParam(Sqlca.getTransaction()); String sFlowUnid = (String)this.getAttribute("ObjectNo"); + String userId = (String)this.getAttribute("CurUserID"); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + ASUser asUser=new ASUser(userId); String id = (String)this.getAttribute("ebank_number"); SqlObject so = new SqlObject("update lc_rent_income_temp set is_flowing='1' where flowunid='"+sFlowUnid+"'"); Sqlca.executeSQL(so); @@ -29,6 +34,9 @@ public class CopyRentIncomeTempToFormal extends BaseBussiness{ otherProperty.put("FLOWUNID", ""); if(id==null||id.equals("null"))id=""; otherProperty.put("EBANK_NUMBER", id); + otherProperty.put("INPUTUSERID", userId); + otherProperty.put("INPUTORGID", asUser.getOrgID()); + otherProperty.put("INPUTTIME", simpleDateFormat.format(new Date())); LeaseFlowBaseService service=new LeaseFlowBaseServiceImp(); service.copyRentIncomeInfo(Sqlca, fromCondtion, null , otherProperty, ServiceOperatorEnum.TempToFormal,null); String sMessage="true";