分润支付(初版)
This commit is contained in:
parent
cdc7ed3c32
commit
df921920af
@ -0,0 +1,64 @@
|
||||
<%@page import="com.itextpdf.text.log.SysoCounter"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%><%@
|
||||
include
|
||||
file="/Frame/resources/include/include_begin_info.jspf"%>
|
||||
<%
|
||||
|
||||
String sTempletNo = "CommissionChargeConfigInfo";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
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()", "", "", "", ""},
|
||||
};
|
||||
sButtonPosition = "south";
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function selectSplitting(){
|
||||
AsDialog.OpenSelector("selectSplitting", "", "dialogWidth=" + parseInt(window.screen.width * 0.6) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px", function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"){
|
||||
//alert(getHtmlMessage('1'));
|
||||
return;
|
||||
}
|
||||
sReturn = sReturn.split("@");
|
||||
setItemValue(0, getRow(), "distributor_id",sReturn[0]);
|
||||
setItemValue(0, getRow(), "product_id",sReturn[1]);
|
||||
setItemValue(0, getRow(), "distributor_name",sReturn[2]);
|
||||
setItemValue(0, getRow(), "product_name",sReturn[3]);
|
||||
}, "请选择分润配置")
|
||||
}
|
||||
|
||||
function goBack(){
|
||||
parent.AsDialog.ClosePage();
|
||||
}
|
||||
function saveRecord() {
|
||||
|
||||
if(!checkRatio()){
|
||||
return;
|
||||
};
|
||||
as_save("myiframe0", "goBack()");
|
||||
}
|
||||
function checkRatio(){
|
||||
|
||||
var firstRatio = getItemValue(0, 0, "ratio_1") == null ? 0: getItemValue(0, 0, "ratio_1");
|
||||
var secondRatio = getItemValue(0, 0, "ratio_2") == null ? 0 : getItemValue(0, 0, "ratio_2");
|
||||
var thirdRatio = getItemValue(0, 0, "ratio_3") == null ? 0 : getItemValue(0, 0, "ratio_3");
|
||||
var fourthRatio = getItemValue(0, 0, "ratio_4") == null ? 0 : getItemValue(0, 0, "ratio_4");
|
||||
|
||||
for(var i=1;i<5;i++){
|
||||
var ratio = getItemValue(0, 0, "ratio_"+i);
|
||||
var charge = getItemValue(0, 0, "charge_"+i)
|
||||
if(ratio==null||ratio==""){
|
||||
setItemValue(0, 0, "ratio_"+i, "0") ;
|
||||
}
|
||||
if(charge==null||charge==""){
|
||||
setItemValue(0, 0, "charge_"+i, "0") ;
|
||||
}
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,75 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
|
||||
<%
|
||||
String PG_TITLE = "分润利率"; // 浏览器窗口标题 <title> PG_TITLE </title>
|
||||
%>
|
||||
<%
|
||||
String userid=CurUser.getUserID();
|
||||
ASObjectModel doTemp = new ASObjectModel("CommissionChargeConfigList");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.MultiSelect = true; //多选
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(30);
|
||||
dwTemp.genHTMLObjectWindow("");
|
||||
%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
|
||||
<%
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||||
{"true","","Button","修改","修改","viewAndEdit()","","","","btn_icon_edit"},
|
||||
{"true","All","Button","删除","删除","deleteRecord()","","","","btn_icon_delete",""},
|
||||
};
|
||||
%>
|
||||
<%/*~END~*/%>
|
||||
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
|
||||
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
<form name=form1 method=post action="<%=sWebRootPath%>/servlet/view/fileTemplateView?CompClientID=<%=sCompClientID%>" target=MyAtt>
|
||||
<div style="display:none">
|
||||
<input id="sqlString" name="sqlString" value="">
|
||||
</div>
|
||||
</form>
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
|
||||
<script type="text/javascript">
|
||||
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
|
||||
|
||||
function newRecord(){
|
||||
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/CommissionChargeConfigInfo.jsp";
|
||||
AsDialog.PopView(sUrl,'',"resizable=yes;dialogWidth=600px;dialogHeight=500px;center:yes;status:no;statusbar:no",function(){
|
||||
reloadSelf();},"新增返佣配置");
|
||||
}
|
||||
|
||||
function viewAndEdit(){
|
||||
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/CommissionChargeConfigInfo.jsp";
|
||||
var sPara = getItemValue(0,getRow(0),'ID');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsDialog.PopView(sUrl,"ID="+sPara,"resizable=yes;dialogWidth=600px;dialogHeight=500px;center:yes;status:no;statusbar:no",function(){reloadSelf();},"修改返佣配置");
|
||||
}
|
||||
|
||||
function deleteRecord(){
|
||||
var ownNumber = getItemValue(0,getRow(),'id');
|
||||
if(typeof(ownNumber)=="undefined" || ownNumber.length==0 ){
|
||||
alert("请选择一条信息!");
|
||||
return ;
|
||||
}
|
||||
if(confirm('确实要删除吗?')){
|
||||
as_delete(0,'');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%>
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,38 @@
|
||||
<%@page import="com.amarsoft.are.util.json.JSONEncoder"%>
|
||||
<%@page import="jbo.app.tenwa.calc.LC_EBANK_TEMP"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/IncludeBegin.jsp"%>
|
||||
<%
|
||||
//dwTemp.MultiSelect = true; //多选
|
||||
String flowunid = CurPage.getAttribute("FlowUnid");
|
||||
String PhaseNo = CurPage.getParameter("PhaseNo");
|
||||
String temp = "false";
|
||||
if("0010".equals(PhaseNo)){
|
||||
temp = "true";
|
||||
};
|
||||
//参数:0.是否显示, 1.标题, 2.JS事件字符串表示(TabContentFrame会替换为真实名称), 3. 是否缓存(默认是), 4. 是否有关闭按钮(默认无), 5. Strip高度(默认600px)
|
||||
String sTabStrip[][] = {
|
||||
{temp, "分润计划", "AsControl.OpenComp('/Tenwa/Lease/Flow/Rent/RentReback/SplittingChargeList.jsp', 'FlowUnid="+flowunid+"', 'TabContentFrame')","false"},
|
||||
{"true", "分润支付数据", "AsControl.OpenComp('/Tenwa/Lease/Flow/Rent/RentReback/SplittingChargeTemp.jsp', 'FlowUnid="+flowunid+"', 'TabContentFrame')", "false"},
|
||||
// {"true", "分润支付汇总数据", "AsControl.OpenComp('/Tenwa/Lease/Flow/Rent/RentReback/LCSplittingPayTemp.jsp', 'FlowUnid="+flowunid+"', 'TabContentFrame')", "false"},
|
||||
};
|
||||
|
||||
//参数:0.是否显示, 1.权限, 2.类型, 3.按钮文字, 4.说明文字, 5.事件, 6.快捷键, 7.资源路径, 8.资源路径参数, 9.图标, 10.风格
|
||||
String sButtons[][] = {
|
||||
};
|
||||
|
||||
// BeforeTabStripHtml-html
|
||||
CurPage.setAttribute("BeforeTabStripHtml", Button.getHtmlText(sButtons, CurUser, CurPage, CurConfig));
|
||||
|
||||
// TabStrip-JSON
|
||||
CurPage.setAttribute("TabStrip", JSONEncoder.encode(sTabStrip));
|
||||
|
||||
// TabStripType-tab/strip 默认为tab
|
||||
//CurPage.setAttribute("TabStripType", "strip");
|
||||
|
||||
// First-num 默认为0
|
||||
CurPage.setAttribute("First", "0");
|
||||
|
||||
%>
|
||||
<%@ include file="/Frame/resources/include/ui/include_tabstrip.jspf"%>
|
||||
<%@ include file="/IncludeEnd.jsp"%>
|
||||
@ -0,0 +1,69 @@
|
||||
<%@page import="jbo.app.tenwa.calc.LC_EBANK_PROCESS"%>
|
||||
<%@page import="jbo.app.tenwa.calc.LC_EBANK_TEMP"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
|
||||
String flowunid = CurPage.getParameter("FlowUnid");
|
||||
String rightType = CurPage.getParameter("RightType");
|
||||
String applytype = CurPage.getParameter("ApplyType");
|
||||
|
||||
ASObjectModel doTemp = new ASObjectModel("ViSplittingList");
|
||||
// doTemp.appendJboWhere("v.charge_list<>0");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
//dwTemp.ShowSummary="1"; //汇总
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
if(!"ReadOnly".equals(rightType)){
|
||||
dwTemp.MultiSelect = true;
|
||||
}
|
||||
dwTemp.setPageSize(50);
|
||||
dwTemp.genHTMLObjectWindow(flowunid);
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
{"ReadOnly".equals(rightType)?"false":"true","","Button","生成分润支付数据","生成分润支付数据","createSplittingPay()","","","","btn_icon_add",""}
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function createSplittingPay(){
|
||||
|
||||
var checked = new Array();
|
||||
checked = getCheckedRows(0);
|
||||
if(checked.length==0){
|
||||
alert("请先选择需要支付的数据");
|
||||
return;
|
||||
}
|
||||
var data_f = new Array();
|
||||
for(var i=0;i<checked.length;i++){
|
||||
|
||||
for(var j=0;j<DZ[0][2][i].length;j++){
|
||||
DZ[0][2][i][j] = DZ[0][2][i][j].replace(/,/g,"");
|
||||
}
|
||||
data_f[data_f.length]=DZ[0][2][i];
|
||||
}
|
||||
var param = data_f.join("@");
|
||||
param = param.replace(/,/g,"~");
|
||||
debugger;
|
||||
//return;
|
||||
var sResult = AsControl.RunJavaMethodTransAsynch("com.tenwa.lease.flow.rent.rentreback.OtherPayMethod","createSplitChargeTemp",
|
||||
"dataF="+param+",flowunid=<%=flowunid%>");
|
||||
if("true"==sResult){
|
||||
alert("操作成功,请到分润支付数据中查看!");
|
||||
reloadSelf();
|
||||
TablePage.pageCheckedData = {};
|
||||
TablePage.pageUncheckedData = {};
|
||||
}else{
|
||||
alert(sResult);
|
||||
reloadSelf();
|
||||
TablePage.pageCheckedData = {};
|
||||
TablePage.pageUncheckedData = {};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,135 @@
|
||||
<%@page import="jbo.app.tenwa.calc.LC_FUND_INCOME_TEMP"%>
|
||||
<%@page import="jbo.app.tenwa.calc.LC_EBANK_PROCESS"%>
|
||||
<%@page import="jbo.app.tenwa.calc.LC_EBANK_TEMP"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
|
||||
String flowunid = CurPage.getParameter("FlowUnid");
|
||||
String phaseNo = CurPage.getParameter("PhaseNo");
|
||||
String rightType = CurPage.getParameter("RightType");
|
||||
String ishistory = CurPage.getParameter("IsHistory");
|
||||
String sTempletNo = CurPage.getParameter("TempletNo");//模板号
|
||||
ASObjectModel doTemp = new ASObjectModel("SplittingChargeTempList");
|
||||
|
||||
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
|
||||
dwTemp.Style="1";
|
||||
dwTemp.ShowSummary = "1";
|
||||
if(!"ReadOnly".equals(rightType)){
|
||||
dwTemp.MultiSelect = true;
|
||||
}
|
||||
dwTemp.ReadOnly = "1";
|
||||
if("0010".equals(phaseNo)||"0040".equals(phaseNo)){
|
||||
dwTemp.ReadOnly = "0";
|
||||
}
|
||||
dwTemp.setPageSize(50);
|
||||
ASDataObject ado = dwTemp.getDataObject();
|
||||
|
||||
dwTemp.genHTMLObjectWindow(flowunid);
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String[][] sButtons = null;
|
||||
if("ReadOnly".equals(rightType)){
|
||||
sButtons = new String[][]{
|
||||
};
|
||||
}else if("0010".equals(phaseNo)){
|
||||
sButtons = new String[][]{
|
||||
// {"true","","Button","保存","保存","as_save(0)","","","","btn_icon_save",""},
|
||||
{"true","","Button","撤销","撤销","deleteProcess()","","","","btn_icon_delete",""},
|
||||
};
|
||||
}else{
|
||||
sButtons = new String[][]{
|
||||
};
|
||||
}
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
function deleteProcess(){
|
||||
var contractID = getItemValueArray(0,"contract_id")+","+TablePage.getCheckedItemValueArrayWithOtherPage("contract_id",s_c_p[0]);
|
||||
if("," == contractID){
|
||||
alert("请先选择需要撤回的选项");
|
||||
return;
|
||||
}
|
||||
contractID = contractID.replace(/,/ig,"@");
|
||||
if(contractID.startsWith("@")){
|
||||
contractID = contractID.substring(1);
|
||||
}
|
||||
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.rent.rentreback.OtherPayMethod","deleteSplitChargeTemp",
|
||||
"contractIDs="+contractID+",flowunid=<%=flowunid%>");
|
||||
if("success"==sResult){
|
||||
as_delete(0);
|
||||
alert("撤销成功!");
|
||||
reloadSelf();
|
||||
TablePage.pageCheckedData = {};
|
||||
TablePage.pageUncheckedData = {};
|
||||
}else{
|
||||
alert("撤销失败!");
|
||||
TablePage.pageCheckedData = {};
|
||||
TablePage.pageUncheckedData = {};
|
||||
}
|
||||
}
|
||||
function batchModify(){
|
||||
var rows = getCheckedRows(0);
|
||||
if(rows.length == 0){
|
||||
alert("请选择需要批量修改的数据!");
|
||||
return;
|
||||
}
|
||||
AsDialog.PopView("/Tenwa/Lease/Flow/Rent/RentReback/SplittingBatchModify.jsp",'',"dialogWidth=800px;dialogHeight=350px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(data){
|
||||
if(data.length==0){
|
||||
return;
|
||||
}
|
||||
for(var i=0;i<rows.length;i++){
|
||||
for (var key in data){
|
||||
if(typeof(data[key])=="undefined"||""==data[key]){
|
||||
continue;
|
||||
}
|
||||
var INTEREST_sp = getItemValue(0,rows[i],"INTEREST_sp");
|
||||
var splittingMoney = INTEREST_sp-data[key];
|
||||
setItemValue(0,rows[i],key,data[key]);
|
||||
setItemValue(0,rows[i],"splitting_money",splittingMoney+"");
|
||||
}
|
||||
}
|
||||
as_save(0);
|
||||
},"批量修改");
|
||||
}
|
||||
|
||||
function exportExcel(){
|
||||
var param={};
|
||||
var tempParam={};
|
||||
var sparam="";
|
||||
//模板号
|
||||
param["templateNo"]="6e9c203900b7498499717de902f21d8d";
|
||||
|
||||
//生成文件关联关系
|
||||
tempParam["OBJECTTYPE"]="分润支付报表";
|
||||
tempParam["FLOW_UNID"]="<%=flowunid%>";
|
||||
|
||||
//生成模板固定参数
|
||||
tempParam["CurUserId"]="<%=CurUser.getUserID()%>";
|
||||
tempParam["CurOrgId"]="<%=CurUser.getOrgID()%>";
|
||||
tempParam["fileSavePath"]="<%=CurConfig.getConfigure("FileSavePath")%>";
|
||||
|
||||
param["templateParam"]=JSON.stringify(tempParam).replace(/,/g,"@");//生成模板的参数据
|
||||
for(var key in param){
|
||||
if(sparam.length>0){sparam+=",";}
|
||||
sparam+=key+"="+param[key];
|
||||
}
|
||||
var result=RunJavaMethodTrans("com.tenwa.officetempalte.action.CreateOfficeAction","createOfficeByTemplate",sparam);
|
||||
if(result == "success"){
|
||||
var attributeID = AsControl.RunJsp("/Tenwa/Lease/Flow/Rent/BatchIncome/GetLBDocAttributeID.jsp",
|
||||
"FLOW_UNID="+tempParam["FLOW_UNID"]+"&OBJECTTYPE="+tempParam["OBJECTTYPE"]);
|
||||
downloadFile(attributeID);
|
||||
}else{
|
||||
alert("导出失败!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function downloadFile(id){
|
||||
if(!frames["downloadTemplate"]) $("<iframe name='downloadTemplate' style='display:none;'></iframe>").appendTo("body");
|
||||
window.open(sWebRootPath+"/servlet/view/docDownloadServlet?CompClientID=<%=sCompClientID%>&sqlString=save@"+id, "downloadTemplate");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -4417,5 +4417,28 @@
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="VI_SPLITTING_PAY" label="" keyAttributes="">
|
||||
<attributes>
|
||||
<attribute name="distributor_id" label="distributor_id" type="STRING"/>
|
||||
<attribute name="contract_id" label="contract_id" type="STRING"/>
|
||||
<attribute name="contract_no" label="contract_no" type="STRING"/>
|
||||
<attribute name="customer_name" label="customer_name" type="STRING"/>
|
||||
<attribute name="plan_list" label="plan_list" type="STRING"/>
|
||||
<attribute name="splitting_money" label="splitting_money" type="STRING"/>
|
||||
<attribute name="charge_1" label="charge_1" type="STRING"/>
|
||||
<attribute name="ratio_1" label="ratio_1" type="STRING"/>
|
||||
<attribute name="charge_2" label="charge_2" type="STRING"/>
|
||||
<attribute name="ratio_2" label="ratio_2" type="STRING"/>
|
||||
<attribute name="charge_3" label="charge_3" type="STRING"/>
|
||||
<attribute name="ratio_3" label="ratio_3" type="STRING"/>
|
||||
<attribute name="charge_4" label="charge_4" type="STRING"/>
|
||||
<attribute name="ratio_4" label="ratio_4" type="STRING"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="vi_splitting_pay" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
</package>
|
||||
</jbo>
|
||||
|
||||
@ -1558,7 +1558,12 @@
|
||||
<attributes>
|
||||
<attribute name="id" label="id" type="STRING" length="32"/>
|
||||
<attribute name="plan_id" label="租金计划ID" type="STRING" length="32"/>
|
||||
<attribute name="contract_id" label="合同ID" type="STRING" length="32"/>
|
||||
<attribute name="distributor_id" label="经销商ID" type="STRING" length="32"/>
|
||||
<attribute name="splitting_money" label="支付分润金额" type="DOUBLE" length="18" scale="2"/>
|
||||
<attribute name="pay_times" label="支付次数" type="STRING" length="18" />
|
||||
<attribute name="pay_list" label="支付期数" type="STRING" length="18" />
|
||||
<attribute name="pay_ratio" label="截至百分比" type="STRING" length="18" />
|
||||
<attribute name="service_ratio" label="手续费费率" type="DOUBLE" length="18" scale="6"/>
|
||||
<attribute name="service_money" label="手续费" type="DOUBLE" length="18" scale="2"/>
|
||||
<attribute name="pay_date" label="支付日期" type="STRING" length="20"/>
|
||||
@ -1575,7 +1580,12 @@
|
||||
<attributes>
|
||||
<attribute name="id" label="id" type="STRING" length="32"/>
|
||||
<attribute name="plan_id" label="租金计划ID" type="STRING" length="32"/>
|
||||
<attribute name="contract_id" label="合同ID" type="STRING" length="32"/>
|
||||
<attribute name="distributor_id" label="经销商ID" type="STRING" length="32"/>
|
||||
<attribute name="splitting_money" label="支付分润金额" type="DOUBLE" length="18" scale="2"/>
|
||||
<attribute name="pay_times" label="支付次数" type="STRING" length="18" />
|
||||
<attribute name="pay_list" label="支付期数" type="STRING" length="18" />
|
||||
<attribute name="pay_ratio" label="截至百分比" type="STRING" length="18" />
|
||||
<attribute name="service_ratio" label="手续费费率" type="DOUBLE" length="18" scale="6"/>
|
||||
<attribute name="service_money" label="手续费" type="DOUBLE" length="18" scale="2"/>
|
||||
<attribute name="pay_date" label="支付日期" type="STRING" length="20"/>
|
||||
|
||||
@ -87,6 +87,8 @@
|
||||
<attribute name="LENDING_TYPE" label="保单放款方式" type="STRING" length="10"/>
|
||||
<attribute name="GPS_VENDOR" label="GPS供应商" type="STRING" length="32"/>
|
||||
<attribute name="ManySubject" label="主体" type="STRING" length="32"/>
|
||||
|
||||
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
@ -180,26 +182,26 @@
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="VI_PRODUCTS_NUMBER" label="" keyAttributes="">
|
||||
<class name="VI_PRODUCTS_NUMBER" label="" keyAttributes="">
|
||||
<attributes>
|
||||
<attribute name="TYPENO" label="产品编号" type="STRING"/>
|
||||
<attribute name="TYPENAME" label="产品名称" type="STRING"/>
|
||||
<attribute name="payType" label="投放方式" type="STRING"/>
|
||||
<attribute name="LeasForm" label="租赁形式" type="STRING"/>
|
||||
<attribute name="equip_type" label="租赁物类型" type="STRING"/>
|
||||
<attribute name="EFFECTIVEDATE" label="生效日期" type="STRING"/>
|
||||
<attribute name="EFFECTIVEDATE" label="生效日期" type="STRING"/>
|
||||
<attribute name="INCOME_NUMBER" label="期数" type="STRING"/>
|
||||
<attribute name="fact_money" label="投放金额" type="STRING"/>
|
||||
<attribute name="fact_date" label="初次投放时间" type="STRING"/>
|
||||
<attribute name="Attribute2" label="产品类型" type="STRING"/>
|
||||
<attribute name="distributor_name" label="经销商名称" type="STRING"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="vi_products_number" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
<attribute name="distributor_name" label="经销商名称" type="STRING"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="vi_products_number" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LB_PRODUCTTOCOMPANY_INFO" label="" keyAttributes="ID">
|
||||
<attributes>
|
||||
@ -219,6 +221,32 @@
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LC_COMMISSION_CHARGE_CONFIG" label="返佣支付配置" keyAttributes="ID">
|
||||
<attributes>
|
||||
<attribute name="ID" label="ID" type="STRING" length="32"/>
|
||||
<attribute name="distributor_id" label="经销商ID" type="STRING" length="32"/>
|
||||
<attribute name="product_id" label="产品ID" type="STRING" length="32"/>
|
||||
<attribute name="income_number" label="租赁期限" type="STRING" length="20"/>
|
||||
<attribute name="charge_1" label="第一次返佣期次" type="STRING" length="10"/>
|
||||
<attribute name="ratio_1" label="第一次返佣比率" type="STRING" length="20"/>
|
||||
<attribute name="charge_2" label="第二次返佣期次" type="STRING" length="10"/>
|
||||
<attribute name="ratio_2" label="第二次返佣比率" type="STRING" length="20"/>
|
||||
<attribute name="charge_3" label="第三次返佣期次" type="STRING" length="10"/>
|
||||
<attribute name="ratio_3" label="第三次返佣比率" type="STRING" length="20"/>
|
||||
<attribute name="charge_4" label="第四次返佣期次" type="STRING" length="10"/>
|
||||
<attribute name="ratio_4" label="第四次返佣比率" type="STRING" length="20"/>
|
||||
<attribute name="inputuserid" label="创建人" type="STRING" length="32"/>
|
||||
<attribute name="inputtime" label="创建时间" type="STRING" length="32"/>
|
||||
<attribute name="updateuserid" label="修改人" type="STRING" length="32"/>
|
||||
<attribute name="updatetime" label="修改时间" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="lc_commission_charge_config" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
</package>
|
||||
</jbo>
|
||||
|
||||
|
||||
@ -201,7 +201,10 @@ public class NameManager
|
||||
|
||||
|
||||
}
|
||||
|
||||
public static String getDistributorNameById(String productId) throws Exception{
|
||||
return NameCache.getName("jbo.app.tenwa.customer.DISTRIBUTOR_INFO", "DISTRIBUTOR_NAME", "DISTRIBUTOR_NO", productId);
|
||||
}
|
||||
|
||||
public static String getCustomerNumber(String sCustomerID)
|
||||
throws Exception
|
||||
{
|
||||
|
||||
72
src_jbo/jbo/app/tenwa/calc/VI_SPLITTING_PAY.java
Normal file
72
src_jbo/jbo/app/tenwa/calc/VI_SPLITTING_PAY.java
Normal file
@ -0,0 +1,72 @@
|
||||
package jbo.app.tenwa.calc;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface VI_SPLITTING_PAY{
|
||||
/**
|
||||
* <br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.app.tenwa.calc.VI_SPLITTING_PAY";
|
||||
/**
|
||||
* distributor_id STRING(20)<br>
|
||||
*/
|
||||
public static final String distributor_id = "distributor_id";
|
||||
/**
|
||||
* contract_id STRING(20)<br>
|
||||
*/
|
||||
public static final String contract_id = "contract_id";
|
||||
/**
|
||||
* contract_no STRING(20)<br>
|
||||
*/
|
||||
public static final String contract_no = "contract_no";
|
||||
/**
|
||||
* customer_name STRING(20)<br>
|
||||
*/
|
||||
public static final String customer_name = "customer_name";
|
||||
/**
|
||||
* plan_list STRING(20)<br>
|
||||
*/
|
||||
public static final String plan_list = "plan_list";
|
||||
/**
|
||||
* splitting_money STRING(20)<br>
|
||||
*/
|
||||
public static final String splitting_money = "splitting_money";
|
||||
/**
|
||||
* charge_1 STRING(20)<br>
|
||||
*/
|
||||
public static final String charge_1 = "charge_1";
|
||||
/**
|
||||
* ratio_1 STRING(20)<br>
|
||||
*/
|
||||
public static final String ratio_1 = "ratio_1";
|
||||
/**
|
||||
* charge_2 STRING(20)<br>
|
||||
*/
|
||||
public static final String charge_2 = "charge_2";
|
||||
/**
|
||||
* ratio_2 STRING(20)<br>
|
||||
*/
|
||||
public static final String ratio_2 = "ratio_2";
|
||||
/**
|
||||
* charge_3 STRING(20)<br>
|
||||
*/
|
||||
public static final String charge_3 = "charge_3";
|
||||
/**
|
||||
* ratio_3 STRING(20)<br>
|
||||
*/
|
||||
public static final String ratio_3 = "ratio_3";
|
||||
/**
|
||||
* charge_4 STRING(20)<br>
|
||||
*/
|
||||
public static final String charge_4 = "charge_4";
|
||||
/**
|
||||
* ratio_4 STRING(20)<br>
|
||||
*/
|
||||
public static final String ratio_4 = "ratio_4";
|
||||
}
|
||||
@ -22,10 +22,30 @@ public interface LC_SPLITTING_PAY{
|
||||
*/
|
||||
public static final String plan_id = "plan_id";
|
||||
/**
|
||||
* 合同ID STRING(32)<br>
|
||||
*/
|
||||
public static final String contract_id = "contract_id";
|
||||
/**
|
||||
* 经销商ID STRING(32)<br>
|
||||
*/
|
||||
public static final String distributor_id = "distributor_id";
|
||||
/**
|
||||
* 支付分润金额 DOUBLE(18)<br>
|
||||
*/
|
||||
public static final String splitting_money = "splitting_money";
|
||||
/**
|
||||
* 支付次数 STRING(18)<br>
|
||||
*/
|
||||
public static final String pay_times = "pay_times";
|
||||
/**
|
||||
* 支付期数 STRING(18)<br>
|
||||
*/
|
||||
public static final String pay_list = "pay_list";
|
||||
/**
|
||||
* 截至百分比 STRING(18)<br>
|
||||
*/
|
||||
public static final String pay_ratio = "pay_ratio";
|
||||
/**
|
||||
* 手续费费率 DOUBLE(18)<br>
|
||||
*/
|
||||
public static final String service_ratio = "service_ratio";
|
||||
|
||||
@ -22,10 +22,30 @@ public interface LC_SPLITTING_PAY_TEMP{
|
||||
*/
|
||||
public static final String plan_id = "plan_id";
|
||||
/**
|
||||
* 合同ID STRING(32)<br>
|
||||
*/
|
||||
public static final String contract_id = "contract_id";
|
||||
/**
|
||||
* 经销商ID STRING(32)<br>
|
||||
*/
|
||||
public static final String distributor_id = "distributor_id";
|
||||
/**
|
||||
* 支付分润金额 DOUBLE(18)<br>
|
||||
*/
|
||||
public static final String splitting_money = "splitting_money";
|
||||
/**
|
||||
* 支付次数 STRING(18)<br>
|
||||
*/
|
||||
public static final String pay_times = "pay_times";
|
||||
/**
|
||||
* 支付期数 STRING(18)<br>
|
||||
*/
|
||||
public static final String pay_list = "pay_list";
|
||||
/**
|
||||
* 截至百分比 STRING(18)<br>
|
||||
*/
|
||||
public static final String pay_ratio = "pay_ratio";
|
||||
/**
|
||||
* 手续费费率 DOUBLE(18)<br>
|
||||
*/
|
||||
public static final String service_ratio = "service_ratio";
|
||||
|
||||
80
src_jbo/jbo/prd/LC_COMMISSION_CHARGE_CONFIG.java
Normal file
80
src_jbo/jbo/prd/LC_COMMISSION_CHARGE_CONFIG.java
Normal file
@ -0,0 +1,80 @@
|
||||
package jbo.prd;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* 返佣支付配置 - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface LC_COMMISSION_CHARGE_CONFIG{
|
||||
/**
|
||||
* 返佣支付配置<br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.prd.LC_COMMISSION_CHARGE_CONFIG";
|
||||
/**
|
||||
* ID STRING(32)<br>
|
||||
*/
|
||||
public static final String ID = "ID";
|
||||
/**
|
||||
* 经销商ID STRING(32)<br>
|
||||
*/
|
||||
public static final String distributor_id = "distributor_id";
|
||||
/**
|
||||
* 产品ID STRING(32)<br>
|
||||
*/
|
||||
public static final String product_id = "product_id";
|
||||
/**
|
||||
* 租赁期限 STRING(20)<br>
|
||||
*/
|
||||
public static final String income_number = "income_number";
|
||||
/**
|
||||
* 第一次返佣期次 STRING(10)<br>
|
||||
*/
|
||||
public static final String charge_1 = "charge_1";
|
||||
/**
|
||||
* 第一次返佣比率 STRING(20)<br>
|
||||
*/
|
||||
public static final String ratio_1 = "ratio_1";
|
||||
/**
|
||||
* 第二次返佣期次 STRING(10)<br>
|
||||
*/
|
||||
public static final String charge_2 = "charge_2";
|
||||
/**
|
||||
* 第二次返佣比率 STRING(20)<br>
|
||||
*/
|
||||
public static final String ratio_2 = "ratio_2";
|
||||
/**
|
||||
* 第三次返佣期次 STRING(10)<br>
|
||||
*/
|
||||
public static final String charge_3 = "charge_3";
|
||||
/**
|
||||
* 第三次返佣比率 STRING(20)<br>
|
||||
*/
|
||||
public static final String ratio_3 = "ratio_3";
|
||||
/**
|
||||
* 第四次返佣期次 STRING(10)<br>
|
||||
*/
|
||||
public static final String charge_4 = "charge_4";
|
||||
/**
|
||||
* 第四次返佣比率 STRING(20)<br>
|
||||
*/
|
||||
public static final String ratio_4 = "ratio_4";
|
||||
/**
|
||||
* 创建人 STRING(32)<br>
|
||||
*/
|
||||
public static final String inputuserid = "inputuserid";
|
||||
/**
|
||||
* 创建时间 STRING(32)<br>
|
||||
*/
|
||||
public static final String inputtime = "inputtime";
|
||||
/**
|
||||
* 修改人 STRING(32)<br>
|
||||
*/
|
||||
public static final String updateuserid = "updateuserid";
|
||||
/**
|
||||
* 修改时间 STRING(32)<br>
|
||||
*/
|
||||
public static final String updatetime = "updatetime";
|
||||
}
|
||||
148
src_sql/投产SQL/v20200915/zhangbb0915-2.sql
Normal file
148
src_sql/投产SQL/v20200915/zhangbb0915-2.sql
Normal file
@ -0,0 +1,148 @@
|
||||
-- 创建表格
|
||||
create table `lc_commission_charge_config` (
|
||||
`ID` varchar (96),
|
||||
`product_id` varchar (96),
|
||||
`distributor_id` varchar (96),
|
||||
`INCOME_NUMBER` varchar (60),
|
||||
`charge_1` varchar (30),
|
||||
`ratio_1` varchar (60),
|
||||
`charge_2` varchar (30),
|
||||
`ratio_2` varchar (60),
|
||||
`charge_3` varchar (30),
|
||||
`ratio_3` varchar (60),
|
||||
`charge_4` varchar (30),
|
||||
`ratio_4` varchar (60),
|
||||
`inputuserid` varchar (96),
|
||||
`inputtime` varchar (60),
|
||||
`updateuserid` varchar (96),
|
||||
`updatetime` varchar (96)
|
||||
);
|
||||
|
||||
-- 创建模板
|
||||
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 ('CommissionChargeConfigList','返佣支付配置',null,'30020',null,'1','1','default','jbo.prd.LC_COMMISSION_CHARGE_CONFIG','O','','','','','','SYS_Designer','2020/08/27 10:59:39','SYS_Designer','2020/08/27 11:00:59','','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 ('CommissionChargeConfigList','1000','1000','1','O','ID','ID','String','','ID','','1','Text','1','1','','','','32','0','0','1','1','1',1,'0','','','SYS_DESIGNER','2020/08/27 10:59:40','SYS_Designer','2020/08/27 11:31:42','','','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 ('CommissionChargeConfigList','1010','1010','1','O','distributor_id','distributor_id','String','','经销商ID','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/08/27 10:59:40','SYS_Designer','2020/09/01 14:24:33','','','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 ('CommissionChargeConfigList','1020','1020','1','O','product_id','product_id','String','','产品ID','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/08/27 10:59:40','SYS_Designer','2020/09/01 14:24:34','','','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 ('CommissionChargeConfigList','1030','1030','1','O','income_number','income_number','String','','租赁期限','','1','Text','1','1','','','','20','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/08/27 10:59:40','SYS_Designer','2020/08/27 11:00:59','','','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 ('CommissionChargeConfigList','1040','1040','1','O','charge_1','charge_1','String','','期次1','','1','Text','1','1','','','','10','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/08/27 10:59:40','SYS_Designer','2020/09/03 17:25:38','','','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 ('CommissionChargeConfigList','1050','1050','1','O','ratio_1','ratio_1','String','','比率1','%','1','Text','1','1','','','','20','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/08/27 10:59:40','SYS_Designer','2020/09/03 17:26:56','','','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 ('CommissionChargeConfigList','1060','1060','1','O','charge_2','charge_2','String','','期次2','','1','Text','1','1','','','','10','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/08/27 10:59:40','SYS_Designer','2020/09/03 17:26:56','','','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 ('CommissionChargeConfigList','1070','1070','1','O','ratio_2','ratio_2','String','','比率2','%','1','Text','1','1','','','','20','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/08/27 10:59:40','SYS_Designer','2020/09/03 17:26:56','','','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 ('CommissionChargeConfigList','1080','1080','1','O','charge_3','charge_3','String','','期次3','','1','Text','1','1','','','','10','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/08/27 10:59:40','SYS_Designer','2020/09/03 17:26:56','','','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 ('CommissionChargeConfigList','1090','1090','1','O','ratio_3','ratio_3','String','','比率3','%','1','Text','1','1','','','','20','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/08/27 10:59:40','SYS_Designer','2020/09/03 17:26:56','','','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 ('CommissionChargeConfigList','1100','1100','1','O','charge_4','charge_4','String','','期次4','','1','Text','1','1','','','','10','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/08/27 10:59:40','SYS_Designer','2020/09/03 17:26:56','','','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 ('CommissionChargeConfigList','1110','1110','1','O','ratio_4','ratio_4','String','','比率4','%','1','Text','1','1','','','','20','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/08/27 10:59:40','SYS_Designer','2020/09/03 17:26:56','','','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 ('CommissionChargeConfigList','1120','1120','1','O','inputuserid','inputuserid','String','','创建人','','1','Text','1','1','','','','10','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/08/27 10:59:40','SYS_Designer','2020/09/01 14:28:28','','','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 ('CommissionChargeConfigList','1130','1130','1','O','inputtime','inputtime','String','','创建时间','','1','Date','3','2','','','','20','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/08/27 10:59:40','SYS_Designer','2020/08/27 11:31:42','','','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 ('CommissionChargeConfigList','1140','1140','1','O','updateuserid','updateuserid','String','','修改人','','1','Text','1','1','','','','10','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/08/27 10:59:40','SYS_Designer','2020/09/01 14:28:28','','','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 ('CommissionChargeConfigList','1150','1150','1','O','updatetime','updatetime','String','','修改时间','','1','Date','3','2','','','','20','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/08/27 10:59:40','SYS_Designer','2020/08/27 11:31:42','','','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 ('CommissionChargeConfigList','1160','1015','1','','com.amarsoft.dict.als.manage.NameManager.getDistributorNameById(distributor_id)','distributor_name','String','','经销商名称','','1','Text','1','1','','','',null,'1','0','0','1','0',0,'','','','SYS_Designer','2020/09/01 14:24:34','SYS_Designer','2020/09/01 14:24:34','','','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 ('CommissionChargeConfigList','1170','1025','1','','com.amarsoft.app.base.util.SYSNameManager.getProductNameByProductID(product_id)','product_name','String','','产品名称','','1','Text','1','1','','','',null,'1','0','0','1','0',0,'','','','SYS_Designer','2020/09/01 14:24:34','SYS_Designer','2020/09/01 14:24:34','','','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 ('CommissionChargeConfigList','1180','1125','1','','com.amarsoft.dict.als.manage.NameManager.getUserName(inputuserid)','inputusername','String','','创建人','','1','Text','1','1','','','',null,'1','0','0','1','0',0,'','','','SYS_Designer','2020/09/01 14:28:28','SYS_Designer','2020/09/01 14:28:28','','','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 ('CommissionChargeConfigList','1190','1145','1','','com.amarsoft.dict.als.manage.NameManager.getUserName(updateuserid)','updateusername','String','','修改人','','1','Text','1','1','','','',null,'1','0','0','1','0',0,'','','','SYS_Designer','2020/09/01 14:28:29','SYS_Designer','2020/09/01 14:28:29','','','1','','','','');
|
||||
|
||||
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 ('CommissionChargeConfigInfo','返佣支付配置',null,'30020',null,'1','1','default','jbo.prd.LC_COMMISSION_CHARGE_CONFIG','O','ID=:ID','','','com.amarsoft.awe.dw.handler.impl.CommonHandler',null,'SYS_Designer','2020/08/27 11:01:18','SYS_Designer','2020/08/27 14:52:12','','0','');
|
||||
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 ('CommissionChargeConfigInfo','1000','1000','1','O','ID','ID','String','','ID','','1','Text','1','1','','','',null,'0','0','0','1','1',1,'0','','','SYS_Designer','2020/08/27 11:01:18','SYS_Designer','2020/08/27 14:55:42','','','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 ('CommissionChargeConfigInfo','1010','1010','1','O','distributor_id','distributor_id','String','','经销商ID','','1','Text','1','1','','','',null,'0','0','1','1','1',1,'0','','','SYS_Designer','2020/08/27 11:01:18','SYS_Designer','2020/09/01 14:39:55','','','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 ('CommissionChargeConfigInfo','1020','1020','1','O','product_id','product_id','String','','产品ID','','1','Text','1','1','','','',null,'0','0','1','1','1',1,'0','','','SYS_Designer','2020/08/27 11:01:18','SYS_Designer','2020/09/01 14:39:55','','','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 ('CommissionChargeConfigInfo','1030','1030','1','O','income_number','income_number','String','','租赁期限','','1','Text','1','3','','','',null,'1','0','1','1','1',1,'0','','','SYS_Designer','2020/08/27 11:01:18','SYS_Designer','2020/09/01 14:39:55','','','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 ('CommissionChargeConfigInfo','1040','1040','1','O','charge_1','charge_1','Number','','期次1','','1','Text','5','3','','','',null,'1','0','1','1','1',1,'0','','','SYS_Designer','2020/08/27 11:01:18','SYS_Designer','2020/09/03 17:24:16','','','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 ('CommissionChargeConfigInfo','1050','1050','1','O','ratio_1','ratio_1','Number','0','比率1','<span style="color:red">%</span>','1','Text','2','3','','','',null,'1','0','1','1','1',1,'0','','','SYS_Designer','2020/08/27 11:01:18','SYS_Designer','2020/09/03 17:24:16','','','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 ('CommissionChargeConfigInfo','1060','1060','1','O','charge_2','charge_2','Number','','期次2','','1','Text','5','3','','','',null,'1','0','0','1','1',1,'0','','','SYS_Designer','2020/08/27 11:01:18','SYS_Designer','2020/09/03 17:24:16','','','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 ('CommissionChargeConfigInfo','1070','1070','1','O','ratio_2','ratio_2','Number','0','比率2','<span style="color:red">%</span>','1','Text','2','3','','','',null,'1','0','0','1','1',1,'0','','','SYS_Designer','2020/08/27 11:01:18','SYS_Designer','2020/09/03 17:24:16','','','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 ('CommissionChargeConfigInfo','1080','1080','1','O','charge_3','charge_3','Number','','期次3','','1','Text','5','3','','','',null,'1','0','0','1','1',1,'0','','','SYS_Designer','2020/08/27 11:01:18','SYS_Designer','2020/09/03 17:24:16','','','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 ('CommissionChargeConfigInfo','1090','1090','1','O','ratio_3','ratio_3','Number','0','比率3','<span style="color:red">%</span>','1','Text','2','3','','','',null,'1','0','0','1','1',1,'0','','','SYS_Designer','2020/08/27 11:01:18','SYS_Designer','2020/09/03 17:24:16','','','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 ('CommissionChargeConfigInfo','1100','1100','1','O','charge_4','charge_4','Number','','期次4','','1','Text','5','3','','','',null,'1','0','0','1','1',1,'0','','','SYS_Designer','2020/08/27 11:01:18','SYS_Designer','2020/09/03 17:24:16','','','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 ('CommissionChargeConfigInfo','1110','1110','1','O','ratio_4','ratio_4','Number','0','比率4','<span style="color:red">%</span>','1','Text','2','3','','','',null,'1','0','0','1','1',1,'0','','','SYS_Designer','2020/08/27 11:01:18','SYS_Designer','2020/09/03 17:24:16','','','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 ('CommissionChargeConfigInfo','1120','1120','1','O','inputuserid','inputuserid','String','','创建人','','1','Text','1','1','','','',null,'0','0','0','1','1',1,'0','','','SYS_Designer','2020/08/27 11:01:18','SYS_Designer','2020/08/27 14:55:42','','','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 ('CommissionChargeConfigInfo','1130','1130','1','O','inputtime','inputtime','String','','创建时间','','1','Date','3','2','','','',null,'0','0','0','1','1',1,'0','','','SYS_Designer','2020/08/27 11:01:18','SYS_Designer','2020/08/27 14:55:42','','','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 ('CommissionChargeConfigInfo','1140','1140','1','O','updateuserid','updateuserid','String','','修改人','','1','Text','1','1','','','',null,'0','0','0','1','1',1,'0','','','SYS_Designer','2020/08/27 11:01:18','SYS_Designer','2020/08/27 14:55:42','','','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 ('CommissionChargeConfigInfo','1150','1150','1','O','updatetime','updatetime','String','','修改时间','','1','Date','3','2','','','',null,'0','0','0','1','1',1,'0','','','SYS_Designer','2020/08/27 11:01:18','SYS_Designer','2020/08/27 14:55:42','','','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 ('CommissionChargeConfigInfo','1160','1025','1','','com.amarsoft.app.base.util.SYSNameManager.getProductNameByProductID(product_id)','product_name','String','','产品名称','','1','Text','1','1','','','',null,'1','1','1','1','0',0,'','','','SYS_Designer','2020/08/27 14:03:21','SYS_Designer','2020/09/01 16:54:53','','','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 ('CommissionChargeConfigInfo','1170','1015','1','','com.amarsoft.dict.als.manage.NameManager.getDistributorNameById(distributor_id)','distributor_name','String','','经销商名称','','1','Text','1','1','','','',null,'1','1','1','1','0',0,'','','','SYS_Designer','2020/08/27 14:03:21','SYS_Designer','2020/09/01 17:14:40','','','1','','','selectSplitting()','');
|
||||
|
||||
-- 创建表
|
||||
DROP TABLE IF EXISTS lc_splitting_pay_temp;
|
||||
DROP TABLE IF EXISTS lc_splitting_pay;
|
||||
create table `lc_splitting_pay_temp` (
|
||||
`id` varchar (96),
|
||||
`contract_id` varchar (96),
|
||||
`distributor_id` varchar (96),
|
||||
`plan_id` varchar (96),
|
||||
`pay_times` tinyint (4),
|
||||
`pay_list` tinyint (4),
|
||||
`pay_ratio` Decimal (24),
|
||||
`pay_money` Decimal (24),
|
||||
`splitting_money` Decimal (24),
|
||||
`split_money` Decimal (24),
|
||||
`service_ratio` Decimal (24),
|
||||
`service_money` Decimal (24),
|
||||
`pay_date` varchar (96),
|
||||
`flowunid` varchar (96),
|
||||
`inputtime` varchar (96)
|
||||
);
|
||||
create table `lc_splitting_pay_temp` (
|
||||
`id` varchar (96),
|
||||
`contract_id` varchar (96),
|
||||
`distributor_id` varchar (96),
|
||||
`plan_id` varchar (96),
|
||||
`pay_times` tinyint (4),
|
||||
`pay_list` tinyint (4),
|
||||
`pay_ratio` Decimal (24),
|
||||
`pay_money` Decimal (24),
|
||||
`splitting_money` Decimal (24),
|
||||
`split_money` Decimal (24),
|
||||
`service_ratio` Decimal (24),
|
||||
`service_money` Decimal (24),
|
||||
`pay_date` varchar (96),
|
||||
`flowunid` varchar (96),
|
||||
`inputtime` varchar (96)
|
||||
);
|
||||
create table `lc_split_occupy_process` (
|
||||
`contract_id` varchar (96),
|
||||
`flowunid` varchar (96)
|
||||
);
|
||||
|
||||
-- 创建模板
|
||||
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 ('ViSplittingList','分润支付计划表',null,'30',null,'1','1','default','jbo.app.tenwa.calc.VI_SPLITTING_PAY','O ','','','','com.tenwa.lease.flow.rent.rentreback.VILCSplitCHargeHandler',null,'SYS_Designer','2020/09/07 20:59:59','SYS_Designer','2020/09/08 13:42:50','','0','');
|
||||
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 ('ViSplittingList','1010','1010','1','','com.amarsoft.dict.als.manage.NameManager.getDistributorNameById(distributor_id)','distributor_name','String','','渠道商','','1','Text','1','1','','','','20','1','0','0','1','0',1,'0','','','SYS_Designer','2020/09/07 20:59:59','SYS_Designer','2020/09/08 13:42:50','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 ('ViSplittingList','1020','1020','1','O','contract_no','contract_no','String','','合同编号','','1','Text','1','1','','','','32','1','0','0','1','0',1,'0','','','SYS_Designer','2020/09/07 20:59:59','SYS_Designer','2020/09/08 13:42:50','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 ('ViSplittingList','1030','1030','1','O','customer_name','customer_name','String','','客户名称','','1','Text','1','1','','','','20','1','0','0','1','0',1,'0','','','SYS_Designer','2020/09/07 20:59:59','SYS_Designer','2020/09/08 13:42:50','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 ('ViSplittingList','1050','1050','1','O','distributor_id','distributor_id','String','','经销商id','','1','Text','1','1','','','','20','0','0','0','1','0',1,'0','','','SYS_Designer','2020/09/07 20:59:59','SYS_Designer','2020/09/08 13:42:50','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 ('ViSplittingList','1060','1060','1','O','plan_list','plan_list','String','','期次','','1','Text','1','1','','','','20','0','0','0','1','0',1,'0','','','SYS_Designer','2020/09/07 20:59:59','SYS_Designer','2020/09/08 16:07: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 ('ViSplittingList','1070','1070','1','','''''','sum_sp','String','','分润总金额','','1','Text','2','1','','','','20','1','0','0','1','0',1,'0','','','SYS_Designer','2020/09/07 20:59:59','SYS_Designer','2020/09/08 13:42:50','','','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 ('ViSplittingList','1080','1080','1','O','splitting_money','splitting_money','String','','已支付金额','','1','Text','2','1','','','','20','1','0','0','1','0',1,'0','','','SYS_Designer','2020/09/07 20:59:59','SYS_Designer','2020/09/08 13:42:50','','','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 ('ViSplittingList','1090','1090','1','','''''','should_sp','String','','截至当前应付金额','','1','Text','2','1','','','','20','1','0','0','1','0',1,'0','','','SYS_Designer','2020/09/07 20:59:59','SYS_Designer','2020/09/08 13:42:50','','','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 ('ViSplittingList','1110','1110','1','','''''','cur_sp','String','','本次应付金额','','1','Text','2','1','','','','20','1','0','0','1','0',1,'0','','','SYS_Designer','2020/09/07 20:59:59','SYS_Designer','2020/09/08 13:42:50','','','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 ('ViSplittingList','1130','1055','1','','''''','charge_times','String','','支付次数','','1','Text','1','1','','','',null,'1','0','0','1','0',0,'','','','SYS_Designer','2020/09/08 11:16:03','SYS_Designer','2020/09/08 16:07: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 ('ViSplittingList','1150','1065','1','','''''','charge_list','String','','支付期次','','1','Text','1','1','','','',null,'1','0','0','1','0',0,'','','','SYS_Designer','2020/09/08 11:16:03','SYS_Designer','2020/09/08 16:07: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 ('ViSplittingList','1170','1170','1','O','contract_id','contract_id','String','','合同id','','1','Text','1','1','','','',null,'0','0','0','1','0',0,'','','','SYS_Designer','2020/09/08 13:56:58','SYS_Designer','2020/09/08 13:56:58','','','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 ('ViSplittingList','1190','1190','1','O','charge_1','charge_1','String','','第一次期次','','1','Text','1','1','','','',null,'0','0','0','1','0',0,'','','','SYS_Designer','2020/09/08 14:08:20','SYS_Designer','2020/09/08 14:08:20','','','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 ('ViSplittingList','1210','1210','1','O','ratio_1','ratio_1','String','','第一次利率','','1','Text','1','1','','','',null,'0','0','0','1','0',0,'','','','SYS_Designer','2020/09/08 14:08:20','SYS_Designer','2020/09/08 14:08:20','','','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 ('ViSplittingList','1230','1230','1','O','charge_2','charge_2','String','','第二次期次','','1','Text','1','1','','','',null,'0','0','0','1','0',0,'','','','SYS_Designer','2020/09/08 14:08:20','SYS_Designer','2020/09/08 14:08:20','','','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 ('ViSplittingList','1250','1250','1','O','ratio_2','ratio_2','String','','第二次利率','','1','Text','1','1','','','',null,'0','0','0','1','0',0,'','','','SYS_Designer','2020/09/08 14:08:20','SYS_Designer','2020/09/08 14:08:20','','','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 ('ViSplittingList','1270','1270','1','O','charge_3','charge_3','String','','第三次期次','','1','Text','1','1','','','',null,'0','0','0','1','0',0,'','','','SYS_Designer','2020/09/08 14:08:21','SYS_Designer','2020/09/08 14:08:21','','','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 ('ViSplittingList','1290','1290','1','O','ratio_3','ratio_3','String','','第三次利率','','1','Text','1','1','','','',null,'0','0','0','1','0',0,'','','','SYS_Designer','2020/09/08 14:08:21','SYS_Designer','2020/09/08 14:08:21','','','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 ('ViSplittingList','1310','1310','1','O','charge_4','charge_4','String','','第四次期次','','1','Text','1','1','','','',null,'0','0','0','1','0',0,'','','','SYS_Designer','2020/09/08 14:08:21','SYS_Designer','2020/09/08 14:08:21','','','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 ('ViSplittingList','1330','1330','1','O','ratio_4','ratio_4','String','','第四次利率','','1','Text','1','1','','','',null,'0','0','0','1','0',0,'','','','SYS_Designer','2020/09/08 14:08:21','SYS_Designer','2020/09/08 14:08:21','','','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 ('ViSplittingList','1350','1350','1','','''''','ratio_cur','String','','当期比例','','1','Text','1','1','','','',null,'0','0','0','1','0',0,'','','','SYS_Designer','2020/09/08 19:47:19','SYS_Designer','2020/09/08 19:47:19','','','1','','','','');
|
||||
|
||||
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 ('SplittingChargeTempList','分润支付临时表',null,'30',null,'1','1','default','jbo.com.tenwa.entity.comm.flow.LC_SPLITTING_PAY_TEMP','O left join jbo.app.tenwa.calc.LC_RENT_PLAN lrp ON lrp.id=O.plan_id left join jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO lci on lci.id=lrp.contract_id LEFT JOIN jbo.app.tenwa.customer.DISTRIBUTOR_INFO di ON di.distributor_no = lci.distributor_id LEFT JOIN jbo.com.tenwa.lease.comm.LB_UNION_LESSEE lul ON lul.contract_id = lci.id LEFT JOIN jbo.app.tenwa.customer.CUSTOMER_INFO ci ON lul.CUSTOMER_ID = ci.customerid ','O.flowunid=:flowunid','','lrp.contract_id,lrp.plan_list','',null,'SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/07 21:05:13','','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 ('SplittingChargeTempList','1000','1000','1','O','id','id','String','','分润支付ID','','1','Text','1','1','','','',null,'0','1','0','1','0',1,'0','','','SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/07 21:05:13','','','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 ('SplittingChargeTempList','1005','1005','1','O','plan_id','plan_id','String','','租金ID','','1','Text','1','1','','','',null,'0','1','0','1','0',0,'','','','SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/07 21:05:13','','','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 ('SplittingChargeTempList','1010','1010','1','di','distributor_name','distributor_name','String','','渠道商','','1','Text','1','1','','','','20','1','1','0','1','1',1,'0','','','SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/07 21:05:13','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 ('SplittingChargeTempList','1020','1020','1','lci','contract_no','contract_no','String','','合同编号','','1','Text','1','1','','','','32','1','1','0','1','1',1,'0','','','SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/07 21:05:13','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 ('SplittingChargeTempList','1030','1030','1','ci','customername','customername','String','','客户名称','','1','Text','1','1','','','','20','1','1','0','1','1',1,'0','','','SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/07 21:05:13','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 ('SplittingChargeTempList','1050','1050','1','lrp','plan_list','plan_list','String','','期次','','1','Text','1','1','','','','20','1','1','0','1','0',1,'0','','','SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/07 21:05:13','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 ('SplittingChargeTempList','1060','1060','1','lrp','plan_date','plan_date','String','','计划日期','','1','Text','1','1','','','','20','1','1','0','1','1',1,'0','','','SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/07 21:05:13','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 ('SplittingChargeTempList','1070','1070','1','lrp','rent','rent','String','','计划租金','','2','Text','2','1','','','','20','1','1','0','1','0',1,'0','','','SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/07 21:05:13','','','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 ('SplittingChargeTempList','1080','1080','1','lrp','corpus','corpus','String','','计划本金','','2','Text','2','1','','','','20','1','1','0','1','0',1,'0','','','SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/07 21:05:13','','','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 ('SplittingChargeTempList','1090','1090','1','lrp','interest','interest','String','','计划利息','','2','Text','2','1','','','','20','1','1','0','1','0',1,'0','','','SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/07 21:05:13','','','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 ('SplittingChargeTempList','1110','1110','1','lrp','corpus_sp','corpus_sp','String','','分润成本','','2','Text','2','1','','','','20','1','1','0','1','0',1,'0','','','SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/07 21:05:13','','','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 ('SplittingChargeTempList','1120','1120','1','lrp','INTEREST_sp','INTEREST_sp','String','','分润给SP','','2','Text','2','1','','','','20','1','1','0','1','0',1,'0','','','SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/07 21:05:13','','','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 ('SplittingChargeTempList','1125','1125','1','O','pay_date','pay_date','String','','支付日期','','1','Date','3','1','','','',null,'1','0','0','1','0',0,'','','','SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/07 21:05:13','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 ('SplittingChargeTempList','1130','1130','1','O','splitting_money','splitting_money','String','','实际支付金额','','2','Text','2','1','','','',null,'1','0','0','1','0',0,'','','','SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/07 21:05:13','','','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 ('SplittingChargeTempList','1140','1140','1','O','service_money','service_money','String','','手续费','','2','Text','2','1','','','',null,'1','0','0','1','0',0,'','','','SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/07 21:05:13','','','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 ('SplittingChargeTempList','1150','1150','1','O','service_ratio','service_ratio','Number','','手续费率','%','1','Text','2','1','','','',null,'1','1','0','1','0',0,'','','','SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/07 21:05:13','0','','1','','','','');
|
||||
|
||||
|
||||
@ -31,7 +31,7 @@ public class CopyLCSplittingPayTempToForml extends BaseBussiness{
|
||||
DataOperatorUtil.copyJBOSet(LC_SPLITTING_PAY_TEMP.CLASS_NAME, fromCondtion,LC_SPLITTING_PAY.CLASS_NAME, null, null, null,Sqlca);
|
||||
List<BizObject> lspArray = JBOFactory.createBizObjectQuery(LC_SPLITTING_PAY_TEMP.CLASS_NAME, "FLOWUNID=:FLOWUNID").setParameter("FLOWUNID", this.getAttribute("FlowUnid").toString()).getResultList(false);
|
||||
for(BizObject bo: lspArray){
|
||||
SqlObject so = new SqlObject("update LC_RENT_PLAN set splitting_status='Y' where id='"+bo.getAttribute("plan_id").toString()+"'");
|
||||
SqlObject so = new SqlObject("delete from lc_split_occupy_process where flowunid='"+this.getAttribute("FlowUnid").toString()+"'");
|
||||
Sqlca.executeSQL(so);
|
||||
}
|
||||
String sMessage="true";
|
||||
|
||||
@ -1,257 +1,332 @@
|
||||
package com.tenwa.lease.flow.rent.rentreback;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.SQLException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.app.tenwa.calc.LC_EBANK_PROCESS;
|
||||
import jbo.app.tenwa.calc.LC_RENT_INCOME;
|
||||
import jbo.app.tenwa.calc.LC_RENT_PLAN;
|
||||
import jbo.app.tenwa.customer.LPOUNDAGE_MAINTENANCE;
|
||||
import jbo.com.tenwa.entity.comm.flow.LC_SPLITTING_PAY_TEMP;
|
||||
|
||||
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;
|
||||
import com.amarsoft.are.util.StringFunction;
|
||||
import com.amarsoft.awe.util.SqlObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService;
|
||||
import com.tenwa.lease.flow.comm.service.ServiceOperatorEnum;
|
||||
import com.tenwa.lease.flow.comm.serviceImp.LeaseFlowBaseServiceImp;
|
||||
import com.tenwa.quartz.DateUtil;
|
||||
|
||||
public class OtherPayMethod {
|
||||
|
||||
private String flowunid;
|
||||
private String planIDs;
|
||||
private String interestSPs;
|
||||
private String serviceType;
|
||||
private String ids;
|
||||
private String mayopeMoney;
|
||||
private String ebankNumbers;
|
||||
|
||||
|
||||
|
||||
public String createSplittingPayTemp(JBOTransaction tx) throws JBOException{
|
||||
BigDecimal ratio = null;
|
||||
String[] planID = planIDs.split("@");
|
||||
String chargeWay = "AutoBuckle";
|
||||
for(int i=0;i<planID.length;i++){
|
||||
BizObject boLRP = JBOFactory.createBizObjectQuery(LC_RENT_PLAN.CLASS_NAME, "ID=:ID").setParameter("ID", planID[i]).getSingleResult(false);
|
||||
String interest_sp = boLRP.getAttribute("INTEREST_sp")==null?"0":boLRP.getAttribute("INTEREST_sp").toString();
|
||||
String coolectStatus = boLRP.getAttribute("COLLECT_STATUS")==null?"0":boLRP.getAttribute("COLLECT_STATUS").toString();
|
||||
|
||||
if(!"代偿".equals(coolectStatus)){
|
||||
BizObject boLRI = JBOFactory.createBizObjectQuery(LC_RENT_INCOME.CLASS_NAME, "PLAN_ID=:ID").setParameter("ID", planID[i]).getSingleResult(false);
|
||||
chargeWay = boLRI.getAttribute("CHARGE_WAY")==null?"0":boLRI.getAttribute("CHARGE_WAY").toString();
|
||||
System.out.println("------------还款渠道:"+chargeWay+"------------");
|
||||
}
|
||||
|
||||
String serviceMoney = "0";
|
||||
String splitting_money = interest_sp;
|
||||
ratio = getRatio(tx,chargeWay);
|
||||
if(ratio==null){
|
||||
return "获取手续费费率失败。";
|
||||
}
|
||||
if(ratio.compareTo(new BigDecimal("0"))!=0){
|
||||
serviceMoney = (new BigDecimal(interest_sp)).multiply(ratio).setScale(2, BigDecimal.ROUND_HALF_UP).toString();
|
||||
splitting_money = (new BigDecimal(interest_sp)).subtract(new BigDecimal(serviceMoney)).toString();
|
||||
}
|
||||
|
||||
String plan_id = planID[i];
|
||||
try {
|
||||
BizObjectManager bomLspt = JBOFactory.getBizObjectManager(LC_SPLITTING_PAY_TEMP.CLASS_NAME,tx);
|
||||
BizObject bolspt = bomLspt.newObject();
|
||||
bolspt.setAttributeValue("plan_id", plan_id);
|
||||
bolspt.setAttributeValue("splitting_money", splitting_money);
|
||||
bolspt.setAttributeValue("service_ratio", ratio.multiply(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP).toString());
|
||||
bolspt.setAttributeValue("service_money", serviceMoney);
|
||||
bolspt.setAttributeValue("flowunid", flowunid);
|
||||
bolspt.setAttributeValue("inputtime", StringFunction.getTodayNow());
|
||||
bomLspt.saveObject(bolspt);
|
||||
changeSplittingStatus(tx,plan_id,"0");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return "插入临时表失败";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return "success";
|
||||
}
|
||||
/**
|
||||
* 更改分润支付状态
|
||||
* @param tx
|
||||
* @param planID
|
||||
* @param status 已支付为Y,流程中为0,未支付为null
|
||||
* @return
|
||||
*/
|
||||
public String changeSplittingStatus(JBOTransaction tx,String planID,String status){
|
||||
SqlObject so;
|
||||
try {
|
||||
so = new SqlObject("update LC_RENT_PLAN set splitting_status='"+status+"' where id='"+planID+"'");
|
||||
Transaction.createTransaction(tx).executeSQL(so);
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return "Error";
|
||||
}
|
||||
return "Success";
|
||||
}
|
||||
public String changeSplittingStatusBatch(JBOTransaction tx){
|
||||
String[] planID = planIDs.split("@");
|
||||
for(String plan_id:planID){
|
||||
changeSplittingStatus(tx,plan_id,"N");
|
||||
}
|
||||
return "success";
|
||||
}
|
||||
public String createRebackList(JBOTransaction tx){
|
||||
String idArray[] = ids.split("@");
|
||||
String m_Money[] = mayopeMoney.split("@");
|
||||
int failNmber = 0;
|
||||
for(int i=0;i<idArray.length;i++){
|
||||
Map<String,String> fromCondtion = new HashMap<String, String>();
|
||||
fromCondtion.put("id",idArray[i]);
|
||||
Map<String,String> otherProperty = new HashMap<String,String>();
|
||||
otherProperty.put("FlowUnid", flowunid);
|
||||
otherProperty.put("MAYOPE_MONEY", "0.00");
|
||||
otherProperty.put("RETURN_MONEY", m_Money[i]);
|
||||
|
||||
LeaseFlowBaseService service=new LeaseFlowBaseServiceImp();
|
||||
try {
|
||||
BizObjectManager bom = JBOFactory.getBizObjectManager(LC_EBANK_PROCESS.CLASS_NAME,tx);
|
||||
BizObject bo = bom.newObject();
|
||||
bo.setAttributeValue("EBANK_NUMBER", idArray[i]);
|
||||
bo.setAttributeValue("FLOW_NAME" ,"其它支付");
|
||||
bo.setAttributeValue("FLOWUNID" ,flowunid);
|
||||
bo.setAttributeValue("INPUTTIME", DateUtil.getDateTime(new Date()));
|
||||
bom.saveObject(bo);
|
||||
service.copyEbankInfo(tx, fromCondtion, null,otherProperty, ServiceOperatorEnum.FormalToTemp);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
failNmber++;
|
||||
}
|
||||
}
|
||||
if(failNmber==0){
|
||||
return "success";
|
||||
}
|
||||
if(failNmber==idArray.length){
|
||||
return "操作失败";
|
||||
}else{
|
||||
return "部分操作成功";
|
||||
}
|
||||
}
|
||||
public String deleteProcess(JBOTransaction tx){
|
||||
if(ebankNumbers!=null||"".equals(ebankNumbers)){
|
||||
|
||||
if(ebankNumbers.endsWith("@")){
|
||||
ebankNumbers = ebankNumbers.substring(0, ebankNumbers.length()-1);
|
||||
};
|
||||
String ebankNumber = ebankNumbers.replace("@", "','");
|
||||
try {
|
||||
SqlObject so = new SqlObject("delete from lc_ebank_process where ebank_number in ('"+ebankNumber+"')");
|
||||
Transaction.createTransaction(tx).executeSQL(so);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return "error";
|
||||
}
|
||||
}
|
||||
return "success";
|
||||
}
|
||||
public BigDecimal getRatio(JBOTransaction tx,String serviceType){
|
||||
SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd");
|
||||
String currentDate = df.format(new Date());
|
||||
BizObjectManager lm;
|
||||
BigDecimal ratio = null;
|
||||
try {
|
||||
lm = JBOFactory.getBizObjectManager(LPOUNDAGE_MAINTENANCE.CLASS_NAME,tx);
|
||||
String getServiceRatioSQL = "select rate from O where charge_way='"+serviceType+"' AND start_date<='"+currentDate+"' AND expiry_date>='"+currentDate+"'";
|
||||
BizObject boRatio = lm.createQuery(getServiceRatioSQL).getSingleResult(false);
|
||||
String rate = boRatio.getAttribute("rate")==null?"0":boRatio.getAttribute("rate").toString();
|
||||
System.out.println("------------手续费费率:"+rate+"------------");
|
||||
ratio = (new BigDecimal(rate)).divide(new BigDecimal("100"), 6, BigDecimal.ROUND_HALF_UP);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
return ratio;
|
||||
}
|
||||
public String getRatio(String serviceType){
|
||||
SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd");
|
||||
String currentDate = df.format(new Date());
|
||||
BizObjectManager lm;
|
||||
String rate = null;
|
||||
try {
|
||||
lm = JBOFactory.getBizObjectManager(LPOUNDAGE_MAINTENANCE.CLASS_NAME);
|
||||
String getServiceRatioSQL = "select rate from O where charge_way='"+serviceType+"' AND start_date<='"+currentDate+"' AND expiry_date>='"+currentDate+"'";
|
||||
BizObject boRatio = lm.createQuery(getServiceRatioSQL).getSingleResult(false);
|
||||
rate = boRatio.getAttribute("rate")==null?"0":boRatio.getAttribute("rate").toString();
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
return rate;
|
||||
}
|
||||
public String getFlowunid() {
|
||||
return flowunid;
|
||||
}
|
||||
public void setFlowunid(String flowunid) {
|
||||
this.flowunid = flowunid;
|
||||
}
|
||||
public String getPlanIDs() {
|
||||
return planIDs;
|
||||
}
|
||||
public void setPlanIDs(String planIDs) {
|
||||
this.planIDs = planIDs;
|
||||
}
|
||||
public String getInterestSPs() {
|
||||
return interestSPs;
|
||||
}
|
||||
public void setInterestSPs(String interestSPs) {
|
||||
this.interestSPs = interestSPs;
|
||||
}
|
||||
public String getServiceType() {
|
||||
return serviceType;
|
||||
}
|
||||
public void setServiceType(String serviceType) {
|
||||
this.serviceType = serviceType;
|
||||
}
|
||||
|
||||
public String getIds() {
|
||||
return ids;
|
||||
}
|
||||
|
||||
public void setIds(String ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
public String getEbankNumbers() {
|
||||
return ebankNumbers;
|
||||
}
|
||||
|
||||
public void setEbankNumbers(String ebankNumbers) {
|
||||
this.ebankNumbers = ebankNumbers;
|
||||
}
|
||||
|
||||
public String getMayopeMoney() {
|
||||
return mayopeMoney;
|
||||
}
|
||||
|
||||
public void setMayopeMoney(String mayopeMoney) {
|
||||
this.mayopeMoney = mayopeMoney;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
package com.tenwa.lease.flow.rent.rentreback;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.SQLException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.app.tenwa.calc.LC_EBANK_PROCESS;
|
||||
import jbo.app.tenwa.calc.LC_RENT_INCOME;
|
||||
import jbo.app.tenwa.calc.LC_RENT_PLAN;
|
||||
import jbo.app.tenwa.customer.LPOUNDAGE_MAINTENANCE;
|
||||
import jbo.com.tenwa.entity.comm.flow.LC_SPLITTING_PAY_TEMP;
|
||||
|
||||
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;
|
||||
import com.amarsoft.are.util.StringFunction;
|
||||
import com.amarsoft.awe.util.SqlObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService;
|
||||
import com.tenwa.lease.flow.comm.service.ServiceOperatorEnum;
|
||||
import com.tenwa.lease.flow.comm.serviceImp.LeaseFlowBaseServiceImp;
|
||||
import com.tenwa.quartz.DateUtil;
|
||||
/**
|
||||
*
|
||||
* @author zhangbb
|
||||
*
|
||||
*/
|
||||
public class OtherPayMethod {
|
||||
|
||||
private String flowunid;
|
||||
private String planIDs;
|
||||
private String contractIDs;
|
||||
private String interestSPs;
|
||||
private String serviceType;
|
||||
private String ids;
|
||||
private String mayopeMoney;
|
||||
private String ebankNumbers;
|
||||
private String dataF;
|
||||
|
||||
|
||||
public String createSplitChargeTemp(JBOTransaction tx) throws JBOException{
|
||||
System.out.println(dataF);
|
||||
String[] datas= dataF.split("@");
|
||||
BizObjectManager bomLspt = JBOFactory.getBizObjectManager(LC_SPLITTING_PAY_TEMP.CLASS_NAME,tx);
|
||||
for(int i=0;i<datas.length;i++){
|
||||
String[] data = datas[i].split("~");
|
||||
BizObject bolspt = bomLspt.newObject();
|
||||
bolspt.setAttributeValue("contract_id", data[11]);
|
||||
bolspt.setAttributeValue("distributor_id", data[11]);
|
||||
bolspt.setAttributeValue("pay_times", data[4]);
|
||||
bolspt.setAttributeValue("pay_list", data[5]);
|
||||
bolspt.setAttributeValue("pay_ratio", data[20]);
|
||||
bolspt.setAttributeValue("splitting_money", data[10]);
|
||||
bolspt.setAttributeValue("flowunid", flowunid);
|
||||
bolspt.setAttributeValue("inputtime", StringFunction.getTodayNow());
|
||||
bomLspt.saveObject(bolspt);
|
||||
insertSplitChargeStatus(data[11],tx);
|
||||
}
|
||||
|
||||
return "success";
|
||||
}
|
||||
public String deleteSplitChargeTemp(JBOTransaction tx) throws JBOException{
|
||||
|
||||
String[] contractID= contractIDs.split("@");
|
||||
BizObjectManager bomLspt = JBOFactory.getBizObjectManager(LC_SPLITTING_PAY_TEMP.CLASS_NAME,tx);
|
||||
for(int i=0;i<contractID.length;i++){
|
||||
bomLspt.createQuery("delete from O where contract_id=:contract_id and flowunid=:flowunid")
|
||||
.setParameter("contract_id", contractID[i]).setParameter("flowunid", flowunid).executeUpdate();
|
||||
deleteSplitChargeStatus(contractID[i],tx);
|
||||
}
|
||||
return "success";
|
||||
}
|
||||
public String insertSplitChargeStatus(String contractID,JBOTransaction tx){
|
||||
SqlObject so;
|
||||
try {
|
||||
so = new SqlObject("insert into lc_split_occupy_process values('"+contractID+"','"+flowunid+"')");
|
||||
Transaction.createTransaction(tx).executeSQL(so);
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return "Error";
|
||||
}
|
||||
return "Success";
|
||||
}
|
||||
public String deleteSplitChargeStatus(String contractID,JBOTransaction tx){
|
||||
SqlObject so;
|
||||
try {
|
||||
so = new SqlObject("delete from lc_split_occupy_process where flowunid='"+flowunid+"' and contract_id='"+contractID+"';");
|
||||
Transaction.createTransaction(tx).executeSQL(so);
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return "Error";
|
||||
}
|
||||
return "Success";
|
||||
}
|
||||
public String createSplittingPayTemp(JBOTransaction tx) throws JBOException{
|
||||
BigDecimal ratio = null;
|
||||
String[] planID = planIDs.split("@");
|
||||
String chargeWay = "AutoBuckle";
|
||||
for(int i=0;i<planID.length;i++){
|
||||
BizObject boLRP = JBOFactory.createBizObjectQuery(LC_RENT_PLAN.CLASS_NAME, "ID=:ID").setParameter("ID", planID[i]).getSingleResult(false);
|
||||
String interest_sp = boLRP.getAttribute("INTEREST_sp")==null?"0":boLRP.getAttribute("INTEREST_sp").toString();
|
||||
String coolectStatus = boLRP.getAttribute("COLLECT_STATUS")==null?"0":boLRP.getAttribute("COLLECT_STATUS").toString();
|
||||
|
||||
if(!"代偿".equals(coolectStatus)){
|
||||
BizObject boLRI = JBOFactory.createBizObjectQuery(LC_RENT_INCOME.CLASS_NAME, "PLAN_ID=:ID").setParameter("ID", planID[i]).getSingleResult(false);
|
||||
chargeWay = boLRI.getAttribute("CHARGE_WAY")==null?"0":boLRI.getAttribute("CHARGE_WAY").toString();
|
||||
System.out.println("------------还款渠道:"+chargeWay+"------------");
|
||||
}
|
||||
|
||||
String serviceMoney = "0";
|
||||
String splitting_money = interest_sp;
|
||||
ratio = getRatio(tx,chargeWay);
|
||||
if(ratio==null){
|
||||
return "获取手续费费率失败。";
|
||||
}
|
||||
if(ratio.compareTo(new BigDecimal("0"))!=0){
|
||||
serviceMoney = (new BigDecimal(interest_sp)).multiply(ratio).setScale(2, BigDecimal.ROUND_HALF_UP).toString();
|
||||
splitting_money = (new BigDecimal(interest_sp)).subtract(new BigDecimal(serviceMoney)).toString();
|
||||
}
|
||||
|
||||
String plan_id = planID[i];
|
||||
try {
|
||||
BizObjectManager bomLspt = JBOFactory.getBizObjectManager(LC_SPLITTING_PAY_TEMP.CLASS_NAME,tx);
|
||||
BizObject bolspt = bomLspt.newObject();
|
||||
bolspt.setAttributeValue("plan_id", plan_id);
|
||||
bolspt.setAttributeValue("splitting_money", splitting_money);
|
||||
bolspt.setAttributeValue("service_ratio", ratio.multiply(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP).toString());
|
||||
bolspt.setAttributeValue("service_money", serviceMoney);
|
||||
bolspt.setAttributeValue("flowunid", flowunid);
|
||||
bolspt.setAttributeValue("inputtime", StringFunction.getTodayNow());
|
||||
bomLspt.saveObject(bolspt);
|
||||
changeSplittingStatus(tx,plan_id,"0");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return "插入临时表失败";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return "success";
|
||||
}
|
||||
/**
|
||||
* 更改分润支付状态
|
||||
* @param tx
|
||||
* @param planID
|
||||
* @param status 已支付为Y,流程中为0,未支付为null
|
||||
* @return
|
||||
*/
|
||||
public String changeSplittingStatus(JBOTransaction tx,String planID,String status){
|
||||
SqlObject so;
|
||||
try {
|
||||
so = new SqlObject("update LC_RENT_PLAN set splitting_status='"+status+"' where id='"+planID+"'");
|
||||
Transaction.createTransaction(tx).executeSQL(so);
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return "Error";
|
||||
}
|
||||
return "Success";
|
||||
}
|
||||
public String changeSplittingStatusBatch(JBOTransaction tx){
|
||||
String[] planID = planIDs.split("@");
|
||||
for(String plan_id:planID){
|
||||
changeSplittingStatus(tx,plan_id,"N");
|
||||
}
|
||||
return "success";
|
||||
}
|
||||
public String createRebackList(JBOTransaction tx){
|
||||
String idArray[] = ids.split("@");
|
||||
String m_Money[] = mayopeMoney.split("@");
|
||||
int failNmber = 0;
|
||||
for(int i=0;i<idArray.length;i++){
|
||||
Map<String,String> fromCondtion = new HashMap<String, String>();
|
||||
fromCondtion.put("id",idArray[i]);
|
||||
Map<String,String> otherProperty = new HashMap<String,String>();
|
||||
otherProperty.put("FlowUnid", flowunid);
|
||||
otherProperty.put("MAYOPE_MONEY", "0.00");
|
||||
otherProperty.put("RETURN_MONEY", m_Money[i]);
|
||||
|
||||
LeaseFlowBaseService service=new LeaseFlowBaseServiceImp();
|
||||
try {
|
||||
BizObjectManager bom = JBOFactory.getBizObjectManager(LC_EBANK_PROCESS.CLASS_NAME,tx);
|
||||
BizObject bo = bom.newObject();
|
||||
bo.setAttributeValue("EBANK_NUMBER", idArray[i]);
|
||||
bo.setAttributeValue("FLOW_NAME" ,"其它支付");
|
||||
bo.setAttributeValue("FLOWUNID" ,flowunid);
|
||||
bo.setAttributeValue("INPUTTIME", DateUtil.getDateTime(new Date()));
|
||||
bom.saveObject(bo);
|
||||
service.copyEbankInfo(tx, fromCondtion, null,otherProperty, ServiceOperatorEnum.FormalToTemp);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
failNmber++;
|
||||
}
|
||||
}
|
||||
if(failNmber==0){
|
||||
return "success";
|
||||
}
|
||||
if(failNmber==idArray.length){
|
||||
return "操作失败";
|
||||
}else{
|
||||
return "部分操作成功";
|
||||
}
|
||||
}
|
||||
public String deleteProcess(JBOTransaction tx){
|
||||
if(ebankNumbers!=null||"".equals(ebankNumbers)){
|
||||
|
||||
if(ebankNumbers.endsWith("@")){
|
||||
ebankNumbers = ebankNumbers.substring(0, ebankNumbers.length()-1);
|
||||
};
|
||||
String ebankNumber = ebankNumbers.replace("@", "','");
|
||||
try {
|
||||
SqlObject so = new SqlObject("delete from lc_ebank_process where ebank_number in ('"+ebankNumber+"')");
|
||||
Transaction.createTransaction(tx).executeSQL(so);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return "error";
|
||||
}
|
||||
}
|
||||
return "success";
|
||||
}
|
||||
public BigDecimal getRatio(JBOTransaction tx,String serviceType){
|
||||
SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd");
|
||||
String currentDate = df.format(new Date());
|
||||
BizObjectManager lm;
|
||||
BigDecimal ratio = null;
|
||||
try {
|
||||
lm = JBOFactory.getBizObjectManager(LPOUNDAGE_MAINTENANCE.CLASS_NAME,tx);
|
||||
String getServiceRatioSQL = "select rate from O where charge_way='"+serviceType+"' AND start_date<='"+currentDate+"' AND expiry_date>='"+currentDate+"'";
|
||||
BizObject boRatio = lm.createQuery(getServiceRatioSQL).getSingleResult(false);
|
||||
String rate = boRatio.getAttribute("rate")==null?"0":boRatio.getAttribute("rate").toString();
|
||||
System.out.println("------------手续费费率:"+rate+"------------");
|
||||
ratio = (new BigDecimal(rate)).divide(new BigDecimal("100"), 6, BigDecimal.ROUND_HALF_UP);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
return ratio;
|
||||
}
|
||||
public String getRatio(String serviceType){
|
||||
SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd");
|
||||
String currentDate = df.format(new Date());
|
||||
BizObjectManager lm;
|
||||
String rate = null;
|
||||
try {
|
||||
lm = JBOFactory.getBizObjectManager(LPOUNDAGE_MAINTENANCE.CLASS_NAME);
|
||||
String getServiceRatioSQL = "select rate from O where charge_way='"+serviceType+"' AND start_date<='"+currentDate+"' AND expiry_date>='"+currentDate+"'";
|
||||
BizObject boRatio = lm.createQuery(getServiceRatioSQL).getSingleResult(false);
|
||||
rate = boRatio.getAttribute("rate")==null?"0":boRatio.getAttribute("rate").toString();
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
return rate;
|
||||
}
|
||||
public String getFlowunid() {
|
||||
return flowunid;
|
||||
}
|
||||
public void setFlowunid(String flowunid) {
|
||||
this.flowunid = flowunid;
|
||||
}
|
||||
public String getPlanIDs() {
|
||||
return planIDs;
|
||||
}
|
||||
public void setPlanIDs(String planIDs) {
|
||||
this.planIDs = planIDs;
|
||||
}
|
||||
public String getInterestSPs() {
|
||||
return interestSPs;
|
||||
}
|
||||
public void setInterestSPs(String interestSPs) {
|
||||
this.interestSPs = interestSPs;
|
||||
}
|
||||
public String getServiceType() {
|
||||
return serviceType;
|
||||
}
|
||||
public void setServiceType(String serviceType) {
|
||||
this.serviceType = serviceType;
|
||||
}
|
||||
|
||||
public String getIds() {
|
||||
return ids;
|
||||
}
|
||||
|
||||
public void setIds(String ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
public String getEbankNumbers() {
|
||||
return ebankNumbers;
|
||||
}
|
||||
|
||||
public void setEbankNumbers(String ebankNumbers) {
|
||||
this.ebankNumbers = ebankNumbers;
|
||||
}
|
||||
|
||||
public String getMayopeMoney() {
|
||||
return mayopeMoney;
|
||||
}
|
||||
|
||||
public void setMayopeMoney(String mayopeMoney) {
|
||||
this.mayopeMoney = mayopeMoney;
|
||||
}
|
||||
|
||||
public String getDataF() {
|
||||
return dataF;
|
||||
}
|
||||
|
||||
public void setDataF(String dataF) {
|
||||
this.dataF = dataF;
|
||||
}
|
||||
public String getContractIDs() {
|
||||
return contractIDs;
|
||||
}
|
||||
public void setContractIDs(String contractIDs) {
|
||||
this.contractIDs = contractIDs;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,56 @@
|
||||
package com.tenwa.lease.flow.rent.rentreback;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import jbo.app.tenwa.calc.LC_RENT_PLAN;
|
||||
import jbo.app.tenwa.calc.VI_LC_RENT_PLAN;
|
||||
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.awe.dw.handler.impl.CommonHandler;
|
||||
|
||||
public class VILCSplitCHargeHandler extends CommonHandler{
|
||||
|
||||
@Override
|
||||
protected void initDisplayForEdit(BizObject bo) throws Exception {
|
||||
String contractId = bo.getAttribute("contract_id").toString();
|
||||
String splitting_money = bo.getAttribute("splitting_money").toString();
|
||||
int planList = bo.getAttribute("plan_list").getInt();
|
||||
String lrpSql = "select v.sum(v.ifnull(interest_sp,0)) as v.interest_sp from O where contract_id=:contract_id group by contract_id";
|
||||
BizObject lrpBo = JBOFactory.getBizObjectManager(LC_RENT_PLAN.CLASS_NAME).createQuery(lrpSql).setParameter("contract_id", contractId).getSingleResult(false);
|
||||
double interest_sp = 0;
|
||||
if(lrpBo!=null&&lrpBo.getAttribute("interest_sp")!=null){
|
||||
interest_sp = lrpBo.getAttribute("interest_sp").getDouble();
|
||||
}
|
||||
|
||||
int chargeList = 0;
|
||||
int i=1;
|
||||
for(;i<=4;i++){
|
||||
chargeList = bo.getAttribute("charge_"+i).getInt();
|
||||
|
||||
if(planList<chargeList){
|
||||
if(i==1){
|
||||
chargeList=0;
|
||||
}else{
|
||||
i--;
|
||||
chargeList = bo.getAttribute("charge_"+i).getInt();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
String ratio = bo.getAttribute("ratio_"+i).toString();
|
||||
BigDecimal ratioBig = new BigDecimal(ratio);
|
||||
BigDecimal should_sp_big = new BigDecimal(Double.toString(interest_sp)).divide(new BigDecimal("100")).multiply(ratioBig).setScale(2, BigDecimal.ROUND_HALF_UP);
|
||||
String should_sp = should_sp_big.toString();
|
||||
BigDecimal cur_sp_big = should_sp_big.subtract(new BigDecimal(splitting_money));
|
||||
String cur_sp = cur_sp_big.toString();
|
||||
|
||||
bo.setAttributeValue("sum_sp", interest_sp+"");
|
||||
bo.setAttributeValue("charge_list", chargeList+"");
|
||||
bo.setAttributeValue("charge_times",i);
|
||||
bo.setAttributeValue("should_sp",should_sp);
|
||||
bo.setAttributeValue("cur_sp",cur_sp);
|
||||
bo.setAttributeValue("ratio_cur",ratio);
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user