diff --git a/WebContent/Tenwa/beforeApplication/BeforeApplicationConfigInfo.jsp b/WebContent/Tenwa/beforeApplication/BeforeApplicationConfigInfo.jsp
new file mode 100644
index 000000000..40966aecc
--- /dev/null
+++ b/WebContent/Tenwa/beforeApplication/BeforeApplicationConfigInfo.jsp
@@ -0,0 +1,58 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
+ /*
+ Author: undefined 2020-07-04
+ Content: 示例详情页面
+ History Log:
+ */
+
+ String sTempletNo = "BeforeApplicationConfigInfo";//--模板号--
+ ASObjectModel doTemp = new ASObjectModel(sTempletNo);
+ doTemp.setHtmlEvent("IS_MILE","onChange","changeMile");
+ doTemp.setHtmlEvent("IS_AGE_LIMIT","onChange","changeAgeLimit");
+ //doTemp.setColTips("", "测试");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
+ dwTemp.Style = "2";//freeform
+ //dwTemp.ReadOnly = "-2";//只读模式
+ dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
+
+ String sButtons[][] = {
+ {"true","All","Button","保存","保存所有修改","as_save(0,returnList())","","","",""},
+ {"true","All","Button","返回","返回列表","returnList()","","","",""}
+ };
+ //sButtonPosition = "south";
+%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
+
+<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/beforeApplication/BeforeApplicationConfigList.jsp b/WebContent/Tenwa/beforeApplication/BeforeApplicationConfigList.jsp
new file mode 100644
index 000000000..610c3984d
--- /dev/null
+++ b/WebContent/Tenwa/beforeApplication/BeforeApplicationConfigList.jsp
@@ -0,0 +1,41 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
+ /*
+ Author: undefined 2020-07-04
+ Content:
+ History Log:
+ */
+ ASObjectModel doTemp = new ASObjectModel("BeforeApplicationConfigList");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ dwTemp.Style="1"; //--设置为Grid风格--
+ dwTemp.ReadOnly = "1"; //只读模式
+ dwTemp.setPageSize(10);
+ dwTemp.genHTMLObjectWindow("");
+
+ //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
+ String sButtons[][] = {
+ {"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
+ {"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
+ {"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
+ };
+%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
+
+<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/WEB-INF/etc/jbo/jbo_comm.xml b/WebContent/WEB-INF/etc/jbo/jbo_comm.xml
index 711f6bfe3..cd0033a27 100644
--- a/WebContent/WEB-INF/etc/jbo/jbo_comm.xml
+++ b/WebContent/WEB-INF/etc/jbo/jbo_comm.xml
@@ -148,6 +148,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/data/controller/BusinessDataController.java b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/data/controller/BusinessDataController.java
index 2f73fad9f..294eacf35 100644
--- a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/data/controller/BusinessDataController.java
+++ b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/data/controller/BusinessDataController.java
@@ -60,4 +60,24 @@ public class BusinessDataController {
return ReturnMapUtil.rollback(e);
}
}
+
+ //预审批功能
+ @Path("/before/applicationcheck")
+ @POST
+ public Map beforeApplicationCheck(@Context HttpServletRequest request,
+ @Context HttpServletResponse response, @Context JBOTransaction tx,
+ @Context Transaction sqlca) throws Exception {
+ ReturnMapUtil ReturnMapUtil = new ReturnMapUtil(tx, sqlca);
+ ARE.getLog()
+ .info("[CONTROLLER] BusinessDataController run .................");
+ ARE.getLog().info(
+ "[Path] /business/data/before/applicationcheck" + " run .................");
+
+ BusinessDataService service = new BusinessDataServiceImpl();
+ try {
+ return service.beforeApplicationCheck(request, response, tx, sqlca, ReturnMapUtil);
+ } catch (Exception e) {
+ return ReturnMapUtil.rollback(e);
+ }
+ }
}
diff --git a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/data/service/BusinessDataService.java b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/data/service/BusinessDataService.java
index 0d19ef0f5..9a2bae252 100644
--- a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/data/service/BusinessDataService.java
+++ b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/data/service/BusinessDataService.java
@@ -19,4 +19,8 @@ public interface BusinessDataService {
@Context HttpServletResponse response, @Context JBOTransaction tx,
@Context Transaction sqlca, ReturnMapUtil ReturnMapUtil)
throws Exception;
+ Map beforeApplicationCheck(@Context HttpServletRequest request,
+ @Context HttpServletResponse response, @Context JBOTransaction tx,
+ @Context Transaction sqlca, ReturnMapUtil ReturnMapUtil)
+ throws Exception;
}
diff --git a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/data/service/impl/BusinessDataServiceImpl.java b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/data/service/impl/BusinessDataServiceImpl.java
index b83ce051f..25c428779 100644
--- a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/data/service/impl/BusinessDataServiceImpl.java
+++ b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/data/service/impl/BusinessDataServiceImpl.java
@@ -8,13 +8,21 @@ import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
+import jbo.com.tenwa.entity.comm.serialutil.LB_BEFORE_APPLICATION_CONFIG;
+
+import com.amarsoft.are.jbo.BizObject;
+import com.amarsoft.are.jbo.BizObjectManager;
+import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.are.jbo.JBOTransaction;
import com.amarsoft.awe.util.Transaction;
+import com.amarsoft.context.ASUser;
import com.base.constant.RestfullConstant;
import com.base.util.MultipartDataUtil;
import com.base.util.ReturnMapUtil;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
import com.tenwa.flow.util.CalculateUtil;
+import com.tenwa.util.BeforeApplicationCheckUtil;
+import com.tenwa.util.MultiSubjectUtil;
import apx.com.amarsoft.als.apzl.apply.business.data.service.BusinessDataService;
@@ -75,4 +83,88 @@ public class BusinessDataServiceImpl implements BusinessDataService {
return ReturnMapUtil.getReturnMap();
}
+ @Override
+ public Map beforeApplicationCheck(
+ HttpServletRequest request, HttpServletResponse response,
+ JBOTransaction tx, Transaction sqlca, ReturnMapUtil ReturnMapUtil)
+ throws Exception {
+ Map testMap = (Map) MultipartDataUtil
+ .readRequestParam(request, "UTF-8");
+ fieldMap = (Map) testMap.get("fieldMap"); // 参数
+ String fullname = fieldMap.get("fullname") == null ? "" : fieldMap.get("fullname").toString();
+ String fullcertid = fieldMap.get("fullcertid") == null ? "" : fieldMap.get("fullcertid").toString();
+ String fullphone = fieldMap.get("fullphone") == null ? "" : fieldMap.get("fullphone").toString();
+ String fullsex = fieldMap.get("fullsex") == null ? "" : fieldMap.get("fullsex").toString();
+ String brand = fieldMap.get("brand") == null ? "" : fieldMap.get("brand").toString();
+ String model = fieldMap.get("model") == null ? "" : fieldMap.get("model").toString();
+ String modelId = fieldMap.get("modelId") == null ? "" : fieldMap.get("modelId").toString();
+ String carseries = fieldMap.get("carseries") == null ? "" : fieldMap.get("carseries").toString();
+ String mile = fieldMap.get("mile") == null ? "0" : fieldMap.get("mile").toString();
+ String age_limit = fieldMap.get("age_limit") == null ? "0" : fieldMap.get("age_limit").toString();
+ String price = fieldMap.get("price") == null ? "" : fieldMap.get("price").toString();
+ String carattributes = fieldMap.get("carattributes") == null ? "" : fieldMap.get("carattributes").toString();
+ String liter = fieldMap.get("liter") == null ? "" : fieldMap.get("liter").toString();
+ String geartype = fieldMap.get("geartype") == null ? "" : fieldMap.get("geartype").toString();
+ String userid = fieldMap.get("userid") == null ? "" : fieldMap.get("userid").toString();
+ Map body = new HashMap();
+ ASUser asUser = new ASUser(userid);
+ BizObjectManager lbacm = JBOFactory.getBizObjectManager(LB_BEFORE_APPLICATION_CONFIG.CLASS_NAME);
+ BizObject lbac = lbacm.createQuery(" ").getSingleResult(false);
+ if(lbac != null){
+ String message = null;
+ //逾期信息校验
+ String isOverdue = lbac.getAttribute("is_overdue").getString();
+ if("Y".equals(isOverdue)){
+ List