三期需求
This commit is contained in:
parent
5037ecf8f9
commit
cef61d0699
@ -0,0 +1,82 @@
|
||||
<%@page import="com.itextpdf.text.log.SysoCounter"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||||
|
||||
String Id = CurPage.getParameter("ID");
|
||||
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
||||
if(sPrevUrl == null) sPrevUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/PoundageMaintenanceList.jsp";
|
||||
String sTempletNo = "LPoundageMaintenanceInfo";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
doTemp.setHtmlEvent("charge_channel", "onchange", "getChargeWay");
|
||||
doTemp.setHtmlEvent("expiry_date", "onchange", "isEndTime");
|
||||
doTemp.setHtmlEvent("start_date", "onchange", "isStartTime");
|
||||
if(Id!=null){
|
||||
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')<DATE_FORMAT(START_DATE,'%Y/%m/%d')";
|
||||
String afterId = Sqlca.getString(sql);
|
||||
if(afterId!=null){
|
||||
doTemp.setReadOnly("expiry_date",true);
|
||||
}
|
||||
doTemp.setReadOnly("start_date",true);
|
||||
doTemp.setReadOnly("charge_channel",true);
|
||||
doTemp.setReadOnly("charge_way",true);
|
||||
}
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "0";//只读模式
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true", "All", "Button", "保存","保存所有修改", "saveRecord()", "", "", "", ""},
|
||||
};
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function goBack(){
|
||||
parent.AsDialog.ClosePage();
|
||||
}
|
||||
function saveRecord() {
|
||||
var id=getItemValue(0,0,"id");
|
||||
var chargeChannel=getItemValue(0,0,"charge_channel");
|
||||
var chargeWay=getItemValue(0,0,"CHARGE_WAY");
|
||||
var startDate = getItemValue(0,0,"start_date");
|
||||
var expiryDate = getItemValue(0,0,"expiry_date")
|
||||
var checkDate = RunJavaMethodTrans("com.tenwa.customer.controller.group.CheckPoundegeDate","checkPoundegeDate","id="+id+",chargeChannel="+chargeChannel+",chargeWay="+chargeWay+",startDate="+startDate);
|
||||
if("true" != checkDate){
|
||||
alert(checkDate);
|
||||
return ;
|
||||
}
|
||||
|
||||
as_save("myiframe0", "goBack()");
|
||||
}
|
||||
window.onload=function(){
|
||||
getChargeWay("edit");
|
||||
}
|
||||
|
||||
function getChargeWay(status){
|
||||
var chargeChannel=getItemValue(0,0,"charge_channel");
|
||||
var chargeWay=getItemValue(0,0,"CHARGE_WAY");
|
||||
var sql="select itemno,itemname from code_library where codeno='charge_way' AND attribute1='"+chargeChannel+"' ";
|
||||
initSelectOption(sql,"itemname","itemno","CHARGE_WAY");
|
||||
if(status=="edit"){
|
||||
setItemValue(0,0,"CHARGE_WAY",chargeWay);
|
||||
}
|
||||
}
|
||||
|
||||
function isEndTime(){
|
||||
var start_Date = getItemValue(0,0,"start_date");
|
||||
if(""==start_Date){
|
||||
alert("请先选择开始时间!");
|
||||
setItemValue(0,0,"expiry_date","");
|
||||
}
|
||||
var startDate = new Date(start_Date);
|
||||
var expiryDate = new Date(getItemValue(0,0,"expiry_date"));
|
||||
if(startDate > expiryDate){
|
||||
alert("开始时间不能大于终止时间!");
|
||||
setItemValue(0,0,"expiry_date","");
|
||||
}
|
||||
}
|
||||
|
||||
function isStartTime(){
|
||||
setItemValue(0,0,"expiry_date","");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,53 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
|
||||
String PG_TITLE = "扣款渠道手续费率维护"; // 浏览器窗口标题 <title> PG_TITLE </title>
|
||||
|
||||
ASObjectModel doTemp = new ASObjectModel("LPoundageMaintenanceList");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
//dwTemp.MultiSelect = true; //多选
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(30);
|
||||
dwTemp.genHTMLObjectWindow("");
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||||
{"true","","Button","修改","修改","viewAndEdit()","","","","btn_icon_edit"},
|
||||
{"true","All","Button","删除","删除","deleteRecord()","","","","btn_icon_delete",""},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
var Id;
|
||||
var contractNoArray;
|
||||
var batchNoArray;
|
||||
function newRecord(){
|
||||
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/PoundageMaintenanceInfo.jsp";
|
||||
AsDialog.PopView(sUrl,'',"resizable=yes;dialogWidth=850px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(){
|
||||
reloadSelf();},"新增信息");
|
||||
}
|
||||
|
||||
function viewAndEdit(){
|
||||
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/PoundageMaintenanceInfo.jsp";
|
||||
var id = getItemValue(0,getRow(0),'ID');
|
||||
var startDate = getItemValue(0,getRow(0),'START_DATE');
|
||||
var chargeChannel=getItemValue(0,0,"charge_channel");
|
||||
var chargeWay=getItemValue(0,0,"CHARGE_WAY");
|
||||
|
||||
if(typeof(id)=="undefined" || id.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsDialog.PopView(sUrl,"ID="+id+"&startDate="+startDate+"&chargeChannel="+chargeChannel+"&chargeWay="+chargeWay,"resizable=yes;dialogWidth=850px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(){reloadSelf();},"修改信息");
|
||||
}
|
||||
function deleteRecord(){
|
||||
var ownNumber = getItemValue(0,getRow(),'charge_channel');
|
||||
if(typeof(ownNumber)=="undefined" || ownNumber.length==0 ){
|
||||
alert("请选择一条信息!");
|
||||
return ;
|
||||
}
|
||||
if(confirm('确实要删除吗?')){
|
||||
as_delete(0);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,46 @@
|
||||
<%@page import="org.apache.catalina.startup.UserConfig"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2017-12-28
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
String ishistory = CurPage.getAttribute("IsHistory");
|
||||
ASObjectModel doTemp = new ASObjectModel("VIActualFundPlan");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
/*if(!ishistory.equals("true")&&"0010".equals(phaseNo)){
|
||||
dwTemp.MultiSelect = true; //多选
|
||||
}*/
|
||||
dwTemp.ShowSummary="1"; //汇总
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(pageSize == null ? 30 : Integer.parseInt(pageSize));
|
||||
dwTemp.genHTMLObjectWindow("");
|
||||
|
||||
String[][] sButtons = new String[][]{
|
||||
{"true","All","Button","退回经销商","退回经销商","paymentReturn()","","","","btn_icon_add",""}
|
||||
};
|
||||
|
||||
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function paymentReturn(){
|
||||
var contractid = getItemValue(0,getRow(),"ID");
|
||||
if(contractid.length == 0){
|
||||
AsDebug.showMessage("提示","请选择一行数据","","",true);
|
||||
return;
|
||||
}
|
||||
var Param = "CONTRACT_ID="+contractid+",contract_number="+getItemValue(0,getRow(),"contract_number")+",channel_name="+getItemValue(0,getRow(),"channel_name")+",product_id="+getItemValue(0,getRow(),"product_id")+",customer_name="+getItemValue(0,getRow(),"customer_name")+",fact_object="+getItemValue(0,getRow(),"FACT_OBJECT")+",fact_money="+getItemValue(0,getRow(),"fact_money")+",CLIENT_BANK="+getItemValue(0,getRow(),"CLIENT_BANK")+",CLIENT_ACCOUNT="+getItemValue(0,getRow(),"CLIENT_ACCOUNT")+",CLIENT_ACCNUMBER="+getItemValue(0,getRow(),"CLIENT_ACCNUMBER")+",payType="+getItemValue(0,getRow(),"payType")+",userId=<%=CurUser.getUserID()%>,username=<%=CurUser.getUserName()%>,orgId=<%=CurUser.getOrgID()%>";
|
||||
if(confirm('是否确认退回经销商?')){
|
||||
var result = RunJavaMethodTrans("com.tenwa.flow.fund.fundcollection.FundIncomeMethod","paymentReturn",Param);
|
||||
if("success" == result){
|
||||
AsDebug.showMessage("提示","操作成功!","","",true);
|
||||
reloadSelf();
|
||||
}else{
|
||||
AsDebug.showMessage("提示","操作失败","","",true);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -4078,6 +4078,35 @@
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LB_PAYMENTRETURN_LOG" label="" keyAttributes="id">
|
||||
<attributes>
|
||||
<attribute name="id" label="主键" type="STRING" length="32"/>
|
||||
<attribute name="contract_no" label="合同编号" type="STRING" length="50"/>
|
||||
<attribute name="distributor_name" label="渠道" type="STRING" length="100"/>
|
||||
<attribute name="product_name" label="产品名称" type="STRING" length="100"/>
|
||||
<attribute name="person_name" label="客户名称" type="STRING" length="100"/>
|
||||
<attribute name="pay_object" label="付款对象" type="STRING" length="100"/>
|
||||
<attribute name="pay_number" label="付款金额" type="STRING" length="32"/>
|
||||
<attribute name="distributor_bank_name" label="经销商SP银行" type="STRING" length="100"/>
|
||||
<attribute name="distributor_Account_name" label="经销商SP银行账户" type="STRING" length="100"/>
|
||||
<attribute name="distributor_bank_number" label="经销商SP银行账号" type="STRING" length="32"/>
|
||||
<attribute name="loan_type" label="放款方式" type="STRING" length="32"/>
|
||||
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
|
||||
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
|
||||
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
|
||||
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
|
||||
<attribute name="INPUTUSERNAME" label="登记人" type="STRING" length="50"/>
|
||||
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="lb_paymentreturn_log" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
</package>
|
||||
</jbo>
|
||||
|
||||
@ -196,4 +196,77 @@ insert into `class_method` (`classname`, `methodname`, `methodtype`, `methoddesc
|
||||
delete from FLOW_MODEL where FlowNo='FundPaymentCarFlow' AND PhaseNo='0020';
|
||||
insert into `FLOW_MODEL` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('FundPaymentCarFlow','0020','1020','运营部初审',NULL,NULL,'!审批流程.付款申请提交时自动删除GPS状态(#ObjectNo)+!审批流程.付款申请退回在提交标记(#ObjectNo)','toStringArray(\"#PhaseAction\",\",\",\" \",1)',NULL,'commroute',NULL,'[{usertype:\"选择指定任务池角色\",userinfo:\"800R00000016,业务二部运营专员初审\"}]','#PhaseOpinion1','closePage,doSubmit,backStep,signOpinion',NULL,'all_except',NULL,NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'368','250','100','50','1',NULL,'TASK',NULL,'N','N','FundPaymentCarFlow010','Map<String,String> paramMap=new HashMap<String, String>();\r\nparamMap.put(\"TempletNo\", \"FlowPayDocList\");\r\nparamMap.put(\"isReview\", \"true\");\r\nTreeView.AddNodeUrlParam(\"投放资料清单\", paramMap);\r\nTreeView.updateNodeSetReadOnly(\"商务条件\",\"ReadOnly\");\r\nTreeView.addLastNodeByCode(\"11268\");\r\nTreeView.addBeforeNodeByCode(\"合同列表\",\"11532\");\r\nTreeView.deleteNode(\"扣款卡信息详情\");','','backnextperson',NULL,NULL,NULL,NULL,'N','运营复审(0030)',NULL,NULL,NULL,NULL,NULL);
|
||||
|
||||
-- 提前结清都按一年外计算
|
||||
delete from awe_do_library where dono='LCContractTerminate' and colindex='1064';
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LCContractTerminate','1064','1064','1','O','FIST_RENT','FIST_RENT','Number','','一年内剩余利息','','1','Text','2','3','','','','22','0','1','0','1','0',0,'','0010','','SYS_Designer','2018/07/28 17:31:36','SYS_Designer','2019/11/27 10:53:26','0','','1','','','','');
|
||||
|
||||
delete from awe_do_library where dono='LCContractTerminate' and colindex='1065';
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LCContractTerminate','1065','1065','1','O','FIST_CORPUS','FIST_CORPUS','Number','0.00','商定一年内剩余利息','','1','Text','2','3','','','','22','0','0','0','1','0',0,'','0010','','SYS_Designer','2018/07/31 15:11:34','SYS_Designer','2019/11/27 10:53:26','0','','1','','','','');
|
||||
|
||||
|
||||
-- 创建推送日志表表
|
||||
DROP TABLE lb_PaymentReturn_log;
|
||||
CREATE TABLE `lb_PaymentReturn_log` (
|
||||
`id` VARCHAR(32) NOT NULL COMMENT '主键',
|
||||
`contract_no` VARCHAR(50) DEFAULT NULL COMMENT '合同编号',
|
||||
`distributor_name` VARCHAR(100) DEFAULT NULL COMMENT '渠道',
|
||||
`product_name` VARCHAR(100) DEFAULT NULL COMMENT '产品名称',
|
||||
`person_name` VARCHAR(100) DEFAULT NULL COMMENT '客户名称',
|
||||
`pay_object` VARCHAR(100) DEFAULT NULL COMMENT '付款对象',
|
||||
`pay_number` VARCHAR(32) DEFAULT NULL COMMENT '付款金额',
|
||||
`distributor_bank_name` VARCHAR(100) DEFAULT NULL COMMENT '经销商SP银行',
|
||||
`distributor_Account_name` VARCHAR(100) DEFAULT NULL COMMENT '经销商SP银行账户',
|
||||
`distributor_bank_number` VARCHAR(32) DEFAULT NULL COMMENT '经销商SP银行账号',
|
||||
`loan_type` VARCHAR(32) DEFAULT NULL COMMENT '放款方式',
|
||||
`INPUTUSERNAME` VARCHAR(32) DEFAULT NULL COMMENT '登录名',
|
||||
`INPUTUSERID` VARCHAR(32) DEFAULT NULL COMMENT '登记人',
|
||||
`INPUTORGID` VARCHAR(32) DEFAULT NULL COMMENT '登记部门',
|
||||
`INPUTTIME` VARCHAR(32) DEFAULT NULL COMMENT '登记时间',
|
||||
`UPDATEUSERID` VARCHAR(32) DEFAULT NULL COMMENT '更新人',
|
||||
`UPDATEORGID` VARCHAR(32) DEFAULT NULL COMMENT '更新部门',
|
||||
`UPDATETIME` VARCHAR(32) DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=INNODB DEFAULT CHARSET=gbk COMMENT='汽车付款申请退回日志表';
|
||||
|
||||
-- 手续费率维护
|
||||
delete from AWE_DO_CATALOG where dono='LPoundageMaintenanceInfo';
|
||||
Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('LPoundageMaintenanceInfo','扣款渠道手续费率维护',null,'30020',null,'1','2','default','jbo.app.tenwa.customer.LPOUNDAGE_MAINTENANCE','O','ID=:ID','','','com.amarsoft.awe.dw.handler.impl.CommonHandler',null,'SYS_Designer','2019/11/13 20:20:25','SYS_Designer','2019/11/16 14:26:11','','1','');
|
||||
delete from awe_do_library where dono='LPoundageMaintenanceInfo';
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LPoundageMaintenanceInfo','0010','0010','1','O','id','id','String','','标识','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','administrator','2019/12/06 18:11:49','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LPoundageMaintenanceInfo','0015','0015','1','O','start_date','start_date','String','','开始日期','','1','Date','3','1','','','','32','1','0','1','1','0',0,'','','','SYS_Designer','2019/11/25 17:52:30','administrator','2019/12/06 18:11:49','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LPoundageMaintenanceInfo','0016','0016','1','O','expiry_date','expiry_date','String','','终止日期','','1','Date','3','1','','','','32','1','0','1','1','0',0,'','','','SYS_Designer','2019/11/25 17:52:30','administrator','2019/12/06 18:11:49','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LPoundageMaintenanceInfo','0020','0020','1','O','validity_date','validity_date','String','','有效期','','1','Text','1','1','','','','50','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','administrator','2019/12/06 18:11:49','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LPoundageMaintenanceInfo','0030','0030','1','O','subject','subject','String','','主体','','1','Text','1','1','','','','50','0','1','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','administrator','2019/12/06 18:11:49','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LPoundageMaintenanceInfo','0040','0040','1','O','charge_channel','charge_channel','String','','扣款渠道','','1','Select','1','1','Code','charge_channel','','50','1','0','1','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','administrator','2019/12/06 18:11:49','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LPoundageMaintenanceInfo','0050','0050','1','O','charge_way','charge_way','String','','扣款方式','','1','Select','1','1','Code','charge_way','','50','1','0','1','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','administrator','2019/12/06 18:11:49','','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LPoundageMaintenanceInfo','0060','0060','1','O','rate','rate','Number','','费率','%','1','Text','2','1','','','','50','1','0','1','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','SYS_Designer','2019/12/06 20:16:08','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LPoundageMaintenanceInfo','0100','0100','1','O','updateuserid','updateuserid','String','','更新人','','1','Text','1','1','','','','32','0','1','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','administrator','2019/12/06 18:11:49','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LPoundageMaintenanceInfo','0110','0110','1','O','updateorgid','updateorgid','String','','更新部门','','1','Text','1','1','','','','32','0','1','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','administrator','2019/12/06 18:11:49','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LPoundageMaintenanceInfo','0120','0120','1','O','updatetime','updatetime','String','','更新时间','','1','Text','3','1','','','','32','0','1','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','administrator','2019/12/06 18:11:49','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LPoundageMaintenanceInfo','0130','0130','1','O','inputuserid','inputuserid','String','','登记人','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/16 14:41:47','administrator','2019/12/06 18:11:49','','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LPoundageMaintenanceInfo','0140','0140','1','O','inputorgid','inputorgid','String','','登记部门','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/16 14:41:47','administrator','2019/12/06 18:11:49','','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LPoundageMaintenanceInfo','0150','0150','1','O','inputtime','inputtime','String','','登记时间','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/16 14:41:47','administrator','2019/12/06 18:11:49','','','1','','','','');
|
||||
|
||||
|
||||
|
||||
-- 传统添加手续费类型
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LoanSimulationBasicInfoBusiness','01510','01510','1','O','HANDLING_CHARGE_MONEY_TYPE','HANDLING_CHARGE_MONEY_TYPE','String','','手续费类型','','1','Select','1','1','','0010,一次性确认收入,0020,按月分摊收入','','32','0','0','0','1','0',0,'','credit_conditon','','SYS_Designer','2019/12/08 17:00:26','SYS_Designer','2019/12/08 17:04:33','0','','1','','','','');
|
||||
|
||||
-- 手续费的扣款数据字典
|
||||
delete from CODE_CATALOG where codeno='charge_way';
|
||||
Insert Into CODE_CATALOG (codeno,sortno,codetypeone,codetypetwo,codename,codedescribe,codeattribute,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('charge_way','0012','费率维护','参数定义','扣款方式','','','SYS_Designer',null,'2019/12/06 10:45:39','SYS_Designer','2019/12/06 10:45:39','');
|
||||
|
||||
delete from Code_Library where codeno='charge_way';
|
||||
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('charge_way','AutoBuckle','自动卡扣','','0040','1','','','','gzyl','','','','','','','','SYS_Designer',null,'2019/12/06 10:52:30','SYS_Designer','2019/12/12 19:06:36','','');
|
||||
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('charge_way','Collection','网银回款','','0050','1','','','','wysk','','','','','','','','SYS_Designer',null,'2019/12/16 10:02:11','SYS_Designer','2019/12/16 11:56:51','','');
|
||||
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('charge_way','WXPay','微信支付','','0010','1','','','','wx','','','','','','','','SYS_Designer',null,'2019/12/06 10:45:39','SYS_Designer','2019/12/06 10:54:03','','');
|
||||
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('charge_way','WXUnionPay','主动支付','','0020','1','','','','gzyl','','','','','','','','SYS_Designer',null,'2019/12/06 10:45:39','SYS_Designer','2019/12/12 19:12:48','','');
|
||||
|
||||
delete from CODE_CATALOG where codeno='charge_channel';
|
||||
Insert Into CODE_CATALOG (codeno,sortno,codetypeone,codetypetwo,codename,codedescribe,codeattribute,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('charge_channel','0011','费率维护','参数定义','扣款渠道','','','SYS_Designer',null,'2019/12/06 10:41:42','SYS_Designer','2019/12/06 10:41:42','');
|
||||
delete from Code_Library where codeno='charge_channel';
|
||||
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('charge_channel','gzyl','广州银联','','0010','1','','','','','','','','','','','','SYS_Designer',null,'2019/12/06 10:41:42','SYS_Designer','2019/12/12 19:04:25','','');
|
||||
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('charge_channel','wx','微信','','0020','1','','','','','','','','','','','','SYS_Designer',null,'2019/12/06 10:41:42','SYS_Designer','2019/12/12 19:04:25','','');
|
||||
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('charge_channel','wysk','网银回款','','0030','1','','','','','','','','','','','','SYS_Designer',null,'2019/12/16 10:00:51','SYS_Designer','2019/12/16 11:56:51','','');
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,77 @@
|
||||
package com.tenwa.customer.controller.group;
|
||||
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.tenwa.reckon.util.Conn;
|
||||
|
||||
public class CheckPoundegeDate {
|
||||
|
||||
private String chargeChannel;//扣款渠道
|
||||
private String chargeWay;//扣款方式
|
||||
private String startDate;//开始时间
|
||||
private String expiryDate;//结束时间
|
||||
private String id;
|
||||
public String getChargeChannel() {
|
||||
return chargeChannel;
|
||||
}
|
||||
public void setChargeChannel(String chargeChannel) {
|
||||
this.chargeChannel = chargeChannel;
|
||||
}
|
||||
public String getChargeWay() {
|
||||
return chargeWay;
|
||||
}
|
||||
public void setChargeWay(String chargeWay) {
|
||||
this.chargeWay = chargeWay;
|
||||
}
|
||||
public String getStartDate() {
|
||||
return startDate;
|
||||
}
|
||||
public void setStartDate(String startDate) {
|
||||
this.startDate = startDate;
|
||||
}
|
||||
public String getExpiryDate() {
|
||||
return expiryDate;
|
||||
}
|
||||
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<Map<String, String>> results = conn.executeQuery(sql, chargeChannel,chargeWay,startDate);
|
||||
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<Map<String, String>> endtime = conn.executeQuery(endSql, chargeChannel,chargeWay);
|
||||
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);
|
||||
Date endTime = df.parse(enddate);
|
||||
long days = (startdate.getTime() - endTime.getTime()) / 1000 / 3600 / 24;
|
||||
if(days!=1){
|
||||
return "开始时间比上一条数据结束时间相差大于1天!";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return "true";
|
||||
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user