Merge branch 'develop' of
http://git2.tenwa.com.cn/ApzlDev/apzl_leasing.git into zhouyh2 Conflicts: src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/start/init/InitDocListTools.java src_core/com/tenwa/doc/action/DocListInitAction.java
This commit is contained in:
commit
569118e3dc
@ -1,15 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Context>
|
<Context>
|
||||||
<Resource
|
<Resource name="jdbc/als" auth="Container" type="javax.sql.DataSource"
|
||||||
name="jdbc/als"
|
maxActive="30" maxIdle="2" maxWait="10000" username="apzl" password="apzl@2018"
|
||||||
auth="Container"
|
driverClassName="com.mysql.jdbc.Driver"
|
||||||
type="javax.sql.DataSource"
|
url="jdbc:mysql://47.93.34.101:3306/apzl?rewriteBatchedStatements=true&useUnicode=true&characterEncoding=GBK&autoReconnectForPools=true&autoReconnect=true&useSSL=false" />
|
||||||
maxActive="30"
|
|
||||||
maxIdle="2"
|
|
||||||
maxWait="10000"
|
|
||||||
username="apzl"
|
|
||||||
password="apzl@2018"
|
|
||||||
driverClassName="com.mysql.jdbc.Driver"
|
|
||||||
url="jdbc:mysql://47.93.34.101:3306/apzl?rewriteBatchedStatements=true&useUnicode=true&characterEncoding=GBK&autoReconnectForPools=true&autoReconnect=true&useSSL=false" />
|
|
||||||
</Context>
|
</Context>
|
||||||
|
|
||||||
|
|||||||
@ -95,8 +95,8 @@
|
|||||||
setErrorTips("LINKMAN_TEL","");
|
setErrorTips("LINKMAN_TEL","");
|
||||||
return true;
|
return true;
|
||||||
}else{
|
}else{
|
||||||
setErrorTips("LINKMAN_TEL","电话格式不正确!");
|
setErrorTips("LINKMAN_TEL","手机号格式不正确!");
|
||||||
//alert("手机号格式不正确!");
|
alert("手机号格式不正确!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -108,7 +108,7 @@
|
|||||||
return true;
|
return true;
|
||||||
}else{
|
}else{
|
||||||
setErrorTips("DISTRIBUTOR_TEL","电话格式不正确!");
|
setErrorTips("DISTRIBUTOR_TEL","电话格式不正确!");
|
||||||
//alert("电话号格式不正确!");
|
alert("电话号格式不正确!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -120,7 +120,7 @@
|
|||||||
return true;
|
return true;
|
||||||
}else{
|
}else{
|
||||||
setErrorTips("DEALER_PHONE","电话格式不正确!");
|
setErrorTips("DEALER_PHONE","电话格式不正确!");
|
||||||
//alert("电话号格式不正确!");
|
alert("电话号格式不正确!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -587,15 +587,19 @@ public class ProductCondition {
|
|||||||
|
|
||||||
public void getProductPenaRulesApp(List<Map<String, Object>> appList,String productId) throws Exception{
|
public void getProductPenaRulesApp(List<Map<String, Object>> appList,String productId) throws Exception{
|
||||||
Map<String,Map<String,String>> map=ProductParamUtil.getProductComponentType(productId, "PRD0308");
|
Map<String,Map<String,String>> map=ProductParamUtil.getProductComponentType(productId, "PRD0308");
|
||||||
if(map.containsKey("PFD01")){//ÃⷣϢÌìÊý
|
/*if(map.containsKey("PFD01")){//免罚息天数
|
||||||
String day=map.get("PFD01").get("PenaltyFreeDays");
|
String day=map.get("PFD01").get("PenaltyFreeDays");
|
||||||
if(day.length()>0){
|
if(day.length()>0){
|
||||||
ProductBaseLoanTools.addAppList(appList, "FREE_DEFA_INTER_DAY", "coldefaultvalue", day);
|
doTemp.setDefaultValue("FREE_DEFA_INTER_DAY", day);
|
||||||
}
|
}
|
||||||
if("N".equals(map.get("PFD01").get("AllowModify"))){
|
if("N".equals(map.get("PFD01").get("AllowModify"))){
|
||||||
ProductBaseLoanTools.addAppList(appList, "FREE_DEFA_INTER_DAY", "colreadonly", "1");
|
doTemp.setColumnAttribute("FREE_DEFA_INTER_DAY","colreadonly", "1");
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
BizObject bo = JBOFactory.createBizObjectQuery(CONFIGURATE.CLASS_NAME,"ATTR_ID=:attrId")
|
||||||
|
.setParameter("attrId","免罚息天数配置").getSingleResult(false);
|
||||||
|
String day = (bo==null)?"":bo.getAttribute("ATTR_VALUE").getString();
|
||||||
|
ProductBaseLoanTools.addAppList(appList, "FREE_DEFA_INTER_DAY", "coldefaultvalue", day);
|
||||||
if(map.containsKey("PENALTY_RATE_DAY")){//罚息日利率
|
if(map.containsKey("PENALTY_RATE_DAY")){//罚息日利率
|
||||||
String rate=map.get("PENALTY_RATE_DAY").get("PENALTY_RATE_DAY");
|
String rate=map.get("PENALTY_RATE_DAY").get("PENALTY_RATE_DAY");
|
||||||
if(rate.length()>0){
|
if(rate.length()>0){
|
||||||
@ -870,11 +874,14 @@ public class ProductCondition {
|
|||||||
//测算年利率字段
|
//测算年利率字段
|
||||||
Map<String, Map<String, String>> productRates = ProductParamUtil.getProductComponentType(productId, "PRD0350");
|
Map<String, Map<String, String>> productRates = ProductParamUtil.getProductComponentType(productId, "PRD0350");
|
||||||
Map<String, String> productRate = productRates.get("product_rate");
|
Map<String, String> productRate = productRates.get("product_rate");
|
||||||
|
String periodType = ProductParamUtil.getProductParameterValue(productId, "PRD0350", "period_type", "begin_end");
|
||||||
|
periodType = periodType == null ? "period_type_0" : periodType;
|
||||||
|
ProductBaseLoanTools.addAppList(appList, "PERIOD_TYPE", "coldefaultvalue", periodType);
|
||||||
if(productRate != null) {
|
if(productRate != null) {
|
||||||
String incomeNumber = productRate.get("INCOME_NUMBER") == null ? "0" : productRate.get("INCOME_NUMBER");
|
String incomeNumber = productRate.get("INCOME_NUMBER") == null ? "0" : productRate.get("INCOME_NUMBER");
|
||||||
ProductBaseLoanTools.addAppList(appList, "INCOME_NUMBER", "coldefaultvalue", incomeNumber);
|
ProductBaseLoanTools.addAppList(appList, "INCOME_NUMBER", "coldefaultvalue", incomeNumber);
|
||||||
String periodType = productRate.get("begin_end") == null ? "period_type_0" : productRate.get("begin_end");
|
// String periodType = productRate.get("begin_end") == null ? "period_type_0" : productRate.get("begin_end");
|
||||||
ProductBaseLoanTools.addAppList(appList, "PERIOD_TYPE", "coldefaultvalue", periodType);
|
// ProductBaseLoanTools.addAppList(appList, "PERIOD_TYPE", "coldefaultvalue", periodType);
|
||||||
String ProductType = productRate.get("ProductType") == null ? "0" : productRate.get("ProductType");
|
String ProductType = productRate.get("ProductType") == null ? "0" : productRate.get("ProductType");
|
||||||
String isReadOnly = productRate.get("ProductRateReadOnly") == null ? "Y" : productRate.get("ProductRateReadOnly");
|
String isReadOnly = productRate.get("ProductRateReadOnly") == null ? "Y" : productRate.get("ProductRateReadOnly");
|
||||||
String YEAR_RATE = productRate.get("ProductRate") == null ? "0" : productRate.get("ProductRate");
|
String YEAR_RATE = productRate.get("ProductRate") == null ? "0" : productRate.get("ProductRate");
|
||||||
|
|||||||
@ -1,2 +1,4 @@
|
|||||||
#ying ke hu yao qiu xian guan bi shen fen yan zheng bas64jiami
|
#ying ke hu yao qiu xian guan bi shen fen yan zheng bas64jiami
|
||||||
#key =P3Y/elU9XFhcWj9bXDlkeCskXCAzI0I9SzQ/Yz9vP2c/az9oP29iUzdfUktIMGNkNykxJUQ5R10/Yz9vYjRLL1J0ZEU/ej94Ji0/dlxqQC9Sa2EzSmJgVkR4P3g/dk1yXGhbcEdxVWlbcUV2QGg/eD92XXdObU9tTS8vaz9nKnk/ZDpzP3M2Zz92Ji9bals7R2dCbT94P3ZPd05tSXpKZz94NWIqeT9kP2Y/ZDJhP3Yyb1h4RWZPbU9zP3g/dkpqX2VNYmM2P3hVQjpVQTVbWEYtXSBUYC9BL3I/ZD0uP2c9ZjluMm9VaFRpYjBacCZyP3ZOcGBcWWFdZ1R2TWNPb0R6P3hNdj9nP2c/Zz9nP2c/di54TnBPZ11nXmZWeFBbTmlgMz94P3ZJelkvNnQ/eD92P2pOdWNaW3BbL1xxTnpJaF5rP3g/dmNaYDRcZ1Z6XHFBY0tnVWlZZVNxYCAxaD92RnpIW0EuR3Y/eDd2PW4/Lz9zP3Y/altvTXlWW2I1P3g/dj9qQDtiNlF2R2tGaEB2X3laO1R5QmJQWz94ZCU/amAtXmVMaFY7Q2ZhQ2I2P3g=
|
#key =P3Y/elU9XFhcWj9bXDlkeCskXCAzI0I9SzQ/Yz9vP2c/az9oP29iUzdfUktIMGNkNykxJUQ5R10/Yz9vYjRLL1J0ZEU/ej94Ji0/dlxqQC9Sa2EzSmJgVkR4P3g/dk1yXGhbcEdxVWlbcUV2QGg/eD92XXdObU9tTS8vaz9nKnk/ZDpzP3M2Zz92Ji9bals7R2dCbT94P3ZPd05tSXpKZz94NWIqeT9kP2Y/ZDJhP3Yyb1h4RWZPbU9zP3g/dkpqX2VNYmM2P3hVQjpVQTVbWEYtXSBUYC9BL3I/ZD0uP2c9ZjluMm9VaFRpYjBacCZyP3ZOcGBcWWFdZ1R2TWNPb0R6P3hNdj9nP2c/Zz9nP2c/di54TnBPZ11nXmZWeFBbTmlgMz94P3ZJelkvNnQ/eD92P2pOdWNaW3BbL1xxTnpJaF5rP3g/dmNaYDRcZ1Z6XHFBY0tnVWlZZVNxYCAxaD92RnpIW0EuR3Y/eDd2PW4/Lz9zP3Y/altvTXlWW2I1P3g/dj9qQDtiNlF2R2tGaEB2X3laO1R5QmJQWz94ZCU/amAtXmVMaFY7Q2ZhQ2I2P3g=
|
||||||
|
|
||||||
|
#
|
||||||
@ -19,7 +19,7 @@ c3p0.preferredTestQuery=select 1
|
|||||||
|
|
||||||
org.quartz.scheduler.skipUpdateCheck=true
|
org.quartz.scheduler.skipUpdateCheck=true
|
||||||
#QuartzScheduler
|
#QuartzScheduler
|
||||||
org.quartz.scheduler.instanceName=zhangjun
|
org.quartz.scheduler.instanceName=QuartzScheduler
|
||||||
org.quartz.scheduler.instanceId=AUTO
|
org.quartz.scheduler.instanceId=AUTO
|
||||||
org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
|
org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
|
||||||
org.quartz.threadPool.threadCount=50
|
org.quartz.threadPool.threadCount=50
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
#che300 prefix ceshi er shou che che300 qian zhui ce shi
|
#che300 prefix ceshi er shou che che300 qian zhui ce shi
|
||||||
com.tenwa.zhanglei.prefix=http://testapi.che300.com/service/common/eval
|
#com.tenwa.zhanglei.prefix=http://testapi.che300.com
|
||||||
#che300 prefix ceshi er shou che che300 qian zhui zheng shi
|
#che300 prefix ceshi er shou che che300 qian zhui zheng shi
|
||||||
#com.tenwa.zhanglei.prefix=http://api.che300.com/service/common/eval
|
com.tenwa.zhanglei.prefix=http://api.che300.com
|
||||||
|
|
||||||
#che300 token
|
#che300 token
|
||||||
#test environment
|
#test environment
|
||||||
com.tenwa.zhanglei.token=a6b83424b55410c36415178002f8415e
|
#com.tenwa.zhanglei.token=a6b83424b55410c36415178002f8415e
|
||||||
#formal environment
|
#formal environment
|
||||||
#com.tenwa.zhanglei.token=0685c8275534d8d391cdaa5a5cf48c73
|
com.tenwa.zhanglei.token=0685c8275534d8d391cdaa5a5cf48c73
|
||||||
|
|
||||||
#che300 operationType cheng yong che dao chu che xin ku shuju bu yao dong
|
#che300 operationType cheng yong che dao chu che xin ku shuju bu yao dong
|
||||||
com.tenwa.zhanglei.oper=exportModel
|
com.tenwa.zhanglei.oper=exportModel
|
||||||
|
|||||||
@ -1029,7 +1029,7 @@ public class FlowAction {
|
|||||||
// 根据任务编号,查出流程的编号,阶段编号,对象类型,对象编号:新增加xuyunlong 归档每一步归档
|
// 根据任务编号,查出流程的编号,阶段编号,对象类型,对象编号:新增加xuyunlong 归档每一步归档
|
||||||
ft = ftManager
|
ft = ftManager
|
||||||
.createQuery(
|
.createQuery(
|
||||||
"select O.flowno,O.phaseno,O.objecttype,O.objectno,O.userid,O.orgid from O where serialNo=:serialNo ")
|
"select O.flowno,O.phaseno,O.FLOWSTATE,O.ASSIGNEDTASKNO,O.objecttype,O.objectno,O.userid,O.orgid from O where serialNo=:serialNo ")
|
||||||
.setParameter("serialNo", taskNo).getSingleResult(false);
|
.setParameter("serialNo", taskNo).getSingleResult(false);
|
||||||
// 将数据保存到历史记录里
|
// 将数据保存到历史记录里
|
||||||
PhaseInfoArchive(ft.getAttribute("flowno").getString(), ft
|
PhaseInfoArchive(ft.getAttribute("flowno").getString(), ft
|
||||||
@ -1071,6 +1071,16 @@ public class FlowAction {
|
|||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
flowService.commitAction(taskNo, phaseAction, phaseOpinion, "", tx);
|
flowService.commitAction(taskNo, phaseAction, phaseOpinion, "", tx);
|
||||||
|
|
||||||
|
if(ft.getAttribute("FLOWSTATE").getString().equals("ANYBACK")){ //退回之后再提交
|
||||||
|
|
||||||
|
if(ft.getAttribute("ASSIGNEDTASKNO")!=null){
|
||||||
|
if(ft.getAttribute("ASSIGNEDTASKNO").getString().length()>0){//如果退回再提交给原处理人要更新状态
|
||||||
|
ftManager.createQuery("update o set FLOWSTATE='NORMAL' WHERE objectno=:objectno and endtime is null")
|
||||||
|
.setParameter("objectno", ft.getAttribute("objectno").getString()).executeUpdate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 更新代理人
|
// 更新代理人
|
||||||
BizObject taskUser = ftManager.createQuery("select O.userId from O where O.SERIALNO=:taskNo").setParameter("taskNo", this.taskNo).getSingleResult(false);
|
BizObject taskUser = ftManager.createQuery("select O.userId from O where O.SERIALNO=:taskNo").setParameter("taskNo", this.taskNo).getSingleResult(false);
|
||||||
|
|||||||
@ -148,9 +148,7 @@ public class InitDocListTools {
|
|||||||
: customerInfo.getAttribute("CUSTOMERTYPE")
|
: customerInfo.getAttribute("CUSTOMERTYPE")
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
for (int i = 0; i < 10; i++)
|
other.put("customerType", customerType);
|
||||||
ARE.getLog().info("customerType:"+customerType);
|
|
||||||
other.put("CustomerType", customerType);
|
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
Configure CurConfig = Configure.getInstance();
|
Configure CurConfig = Configure.getInstance();
|
||||||
// 判断是否存在,不存在就从配置表倒到临时表
|
// 判断是否存在,不存在就从配置表倒到临时表
|
||||||
|
|||||||
@ -85,6 +85,10 @@ public class DocListInitAction {
|
|||||||
relativeid = rela.getAttribute("id").getString();
|
relativeid = rela.getAttribute("id").getString();
|
||||||
for (int i = 0; i < 10; i++)
|
for (int i = 0; i < 10; i++)
|
||||||
ARE.getLog().info("relativeid:"+relativeid);
|
ARE.getLog().info("relativeid:"+relativeid);
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
|
||||||
|
>>>>>>> branch 'develop' of http://git2.tenwa.com.cn/ApzlDev/apzl_leasing.git
|
||||||
List<BizObject> configList = configBm.createQuery(
|
List<BizObject> configList = configBm.createQuery(
|
||||||
"doc_Class_Itemno in (" + docno + ")").getResultList(false);
|
"doc_Class_Itemno in (" + docno + ")").getResultList(false);
|
||||||
for (BizObject config : configList) {
|
for (BizObject config : configList) {
|
||||||
|
|||||||
@ -2,6 +2,9 @@ package com.tenwa.util;
|
|||||||
|
|
||||||
import com.tenwa.flow.treeview.action.BaseInitTreeView;
|
import com.tenwa.flow.treeview.action.BaseInitTreeView;
|
||||||
|
|
||||||
|
import jbo.app.tenwa.doc.LB_DOCATTRIBUTE;
|
||||||
|
import jbo.app.tenwa.doc.LB_DOCRELATIVE;
|
||||||
|
|
||||||
public class test {
|
public class test {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
@ -11,6 +14,17 @@ public class test {
|
|||||||
|
|
||||||
System.out.println(sql.substring(sql.toUpperCase().lastIndexOf("WHERE"), sql.length()));
|
System.out.println(sql.substring(sql.toUpperCase().lastIndexOf("WHERE"), sql.length()));
|
||||||
System.out.println(sql.substring(0, sql.toLowerCase().lastIndexOf("where")));
|
System.out.println(sql.substring(0, sql.toLowerCase().lastIndexOf("where")));
|
||||||
|
|
||||||
|
|
||||||
|
sql = "SELECT DISTINCT O.ID, O.DOC_NAME,r.id " + "FROM O, "
|
||||||
|
+ LB_DOCRELATIVE.CLASS_NAME + " R "
|
||||||
|
+ "WHERE O.RELATIVE_ID = R.ID "
|
||||||
|
+ "AND O.ID NOT IN (SELECT A.LIBRARY_ID FROM "
|
||||||
|
+ LB_DOCATTRIBUTE.CLASS_NAME + " A) "
|
||||||
|
+ "AND R.ObjectType='BusinessApplyFlow' and R.proj_id=:projid " + "AND o.DOC_NATURE='01' "
|
||||||
|
+ "ORDER BY SERIAL_NUM";
|
||||||
|
|
||||||
|
System.out.println(sql);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user