diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/PoundageMaintenanceInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/PoundageMaintenanceInfo.jsp index 64078e7c5..c4e1f688c 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/PoundageMaintenanceInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/PoundageMaintenanceInfo.jsp @@ -11,8 +11,14 @@ doTemp.setHtmlEvent("expiry_date", "onchange", "isEndTime"); doTemp.setHtmlEvent("start_date", "onchange", "isStartTime"); if(Id!=null){ - doTemp.setReadOnly("start_date",true);//先把页面所有字段设为只读状态 - doTemp.setReadOnly("expiry_date",true);//先把页面所有字段设为只读状态 + String sql = "SELECT id FROM LPOUNDAGE_MAINTENANCE WHERE charge_channel='"+CurPage.getParameter("chargeChannel")+"' AND charge_way='"+CurPage.getParameter("chargeWay")+"' AND DATE_FORMAT("+CurPage.getParameter("startDate")+",'%Y/%m/%d') diff --git a/src_tenwa/com/tenwa/customer/controller/group/CheckPoundegeDate.java b/src_tenwa/com/tenwa/customer/controller/group/CheckPoundegeDate.java index 237099820..e5c971c81 100644 --- a/src_tenwa/com/tenwa/customer/controller/group/CheckPoundegeDate.java +++ b/src_tenwa/com/tenwa/customer/controller/group/CheckPoundegeDate.java @@ -15,6 +15,7 @@ public class CheckPoundegeDate { private String chargeWay;//扣款方式 private String startDate;//开始时间 private String expiryDate;//结束时间 + private String id; public String getChargeChannel() { return chargeChannel; } @@ -39,19 +40,26 @@ public class CheckPoundegeDate { public void setExpiryDate(String expiryDate) { this.expiryDate = expiryDate; } + public String getId() { + return id; + } + public void setId(String id) { + this.id = id; + } + //校验扣款手续费维护日期 public String checkPoundegeDate(JBOTransaction tx) throws Exception{ Conn conn = new Conn(tx); String sql = "SELECT id FROM LPOUNDAGE_MAINTENANCE where charge_channel=? AND charge_way=? AND DATE_FORMAT(expiry_date,'%Y/%m/%d')>DATE_FORMAT(?,'%Y/%m/%d')"; List> results = conn.executeQuery(sql, chargeChannel,chargeWay,startDate); - if(results.size()>0){ + if(id==null &&results.size()>0){ return "开始时间大于已有数据的结束时间!!"; } String endSql = "SELECT a.expiry_date FROM LPOUNDAGE_MAINTENANCE AS a WHERE expiry_date = (SELECT MAX(expiry_date) FROM LPOUNDAGE_MAINTENANCE WHERE a.charge_channel=charge_channel AND a.charge_way=charge_way) and a.charge_channel=? AND a.charge_way=?"; List> endtime = conn.executeQuery(endSql, chargeChannel,chargeWay); - if(endtime.size()>0){ + if(id==null && endtime.size()>0){ String enddate = endtime.get(0).get("expiry_date"); DateFormat df = new SimpleDateFormat("yyyy/MM/dd"); Date startdate = df.parse(startDate); diff --git a/src_tenwa/com/tenwa/flow/fund/flowpayment/SubmitAgainLabel.java b/src_tenwa/com/tenwa/flow/fund/flowpayment/SubmitAgainLabel.java index 79514b59e..3622d334f 100644 --- a/src_tenwa/com/tenwa/flow/fund/flowpayment/SubmitAgainLabel.java +++ b/src_tenwa/com/tenwa/flow/fund/flowpayment/SubmitAgainLabel.java @@ -35,9 +35,12 @@ public class SubmitAgainLabel extends BaseBussiness{ if( fbo!= null){ String proj_name = fbo.getAttribute("proj_name").toString(); if(proj_name.indexOf("再次提交")<0){ - fbo.setAttributeValue("proj_name", proj_name+"_再次提交"); - fboManage.saveObject(fbo); + fbo.setAttributeValue("proj_name", proj_name+"_"+resultList.size()+"次提交"); + }else{ + fbo.setAttributeValue("proj_name", proj_name.substring(0,proj_name.indexOf("次提交")-1)+resultList.size()+"次提交"); } + + fboManage.saveObject(fbo); } }