付款申请发起、放款后督发起牌照管理接口及保存方法
This commit is contained in:
parent
1c1236d437
commit
28bbe728d9
@ -0,0 +1,22 @@
|
||||
package apx.com.amarsoft.als.user.change.center.service;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.ws.rs.core.Context;
|
||||
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.base.util.ReturnMapUtil;
|
||||
//³µÅƹÜÀí
|
||||
public interface ApplyLicensePlateService {
|
||||
Map<String, Object> applyLicensePlate(@Context HttpServletRequest request,
|
||||
@Context HttpServletResponse response, @Context JBOTransaction tx,
|
||||
@Context Transaction sqlca, ReturnMapUtil ReturnMapUtil)
|
||||
throws Exception;
|
||||
Map<String, Object> saveapplyLicensePlate(@Context HttpServletRequest request,
|
||||
@Context HttpServletResponse response, @Context JBOTransaction tx,
|
||||
@Context Transaction sqlca, ReturnMapUtil ReturnMapUtil)
|
||||
throws Exception;
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package apx.com.amarsoft.als.user.change.center.service;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.ws.rs.core.Context;
|
||||
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.base.util.ReturnMapUtil;
|
||||
|
||||
//·Å¿îºó¶½
|
||||
public interface ApplyOverseeService {
|
||||
|
||||
Map<String, Object> applyOversee(@Context HttpServletRequest request,
|
||||
@Context HttpServletResponse response, @Context JBOTransaction tx,
|
||||
@Context Transaction sqlca, ReturnMapUtil ReturnMapUtil)
|
||||
throws Exception;
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package apx.com.amarsoft.als.user.change.center.service;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.ws.rs.core.Context;
|
||||
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.base.util.ReturnMapUtil;
|
||||
|
||||
public interface ApplyPaymentService {
|
||||
|
||||
Map<String, Object> applyPayment(@Context HttpServletRequest request,
|
||||
@Context HttpServletResponse response, @Context JBOTransaction tx,
|
||||
@Context Transaction sqlca, ReturnMapUtil ReturnMapUtil)
|
||||
throws Exception;
|
||||
}
|
||||
@ -0,0 +1,93 @@
|
||||
package apx.com.amarsoft.als.user.change.center.service.impl;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
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.DateUtil;
|
||||
import com.base.util.MultipartDataUtil;
|
||||
import com.base.util.ReturnMapUtil;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
|
||||
import apx.com.amarsoft.als.user.change.center.service.ApplyLicensePlateService;
|
||||
import jbo.com.tenwa.lease.comm.LB_CAR_LICENSE_PLATE_INFO_TEMP;
|
||||
//ÅÆÕÕ¹ÜÀí
|
||||
public class ApplyLicensePlateServiceImpl implements ApplyLicensePlateService{
|
||||
private Map<String, Object> fieldMap;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public Map<String, Object> applyLicensePlate(HttpServletRequest request, HttpServletResponse response,
|
||||
JBOTransaction tx, Transaction sqlca, ReturnMapUtil ReturnMapUtil) throws Exception {
|
||||
Map<String, Object> testMap = (Map<String, Object>) MultipartDataUtil
|
||||
.readRequestParam(request, "UTF-8");
|
||||
fieldMap = (Map<String, Object>) testMap.get("fieldMap");
|
||||
String flowunid = fieldMap.get("flowunid") == null ? "" : fieldMap.get("flowunid").toString();
|
||||
String sql = "select frame_number,plate_number,platetime,is_pledge,pledge_date from LB_CAR_LICENSE_PLATE_INFO_TEMP where flowunid='"+flowunid+"'";
|
||||
List<Map<String, String>> dataList = DataOperatorUtil.getDataBySql(sql);
|
||||
|
||||
Map<String, Object> body = new HashMap<String, Object>();
|
||||
if(dataList.size()>0){
|
||||
for (Map<String, String> map : dataList) {
|
||||
body.put(map.get("frame_number"),map.get("frame_number"));
|
||||
body.put(map.get("plate_number"),map.get("plate_number"));
|
||||
body.put(map.get("platetime"),map.get("platetime"));
|
||||
body.put(map.get("is_pledge"),map.get("is_pledge"));
|
||||
body.put(map.get("pledge_date"),map.get("pledge_date"));
|
||||
}
|
||||
}
|
||||
|
||||
ReturnMapUtil.setReturnMap(body,RestfullConstant.baseProperty.get("success").toString(), "");
|
||||
return ReturnMapUtil.getReturnMap();
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public Map<String, Object> saveapplyLicensePlate(HttpServletRequest request, HttpServletResponse response,
|
||||
JBOTransaction tx, Transaction sqlca, ReturnMapUtil ReturnMapUtil) throws Exception {
|
||||
Map<String, Object> testMap = (Map<String, Object>) MultipartDataUtil.readRequestParam(request, "UTF-8");
|
||||
BizObjectManager catManage = JBOFactory.getBizObjectManager(LB_CAR_LICENSE_PLATE_INFO_TEMP.CLASS_NAME,sqlca);
|
||||
fieldMap = (Map<String, Object>) testMap.get("fieldMap"); // ²ÎÊý
|
||||
String flowunid = fieldMap.get("flowunid") == null ? "" : fieldMap.get("flowunid").toString();
|
||||
String userid = fieldMap.get("userid") == null ? "" : fieldMap.get("userid").toString();
|
||||
ASUser CurUser = new ASUser(userid, sqlca);
|
||||
|
||||
BizObject cat = catManage.createQuery(" flowunid =:flowunid").setParameter("flowunid", flowunid).getSingleResult(true);
|
||||
if( cat == null ){
|
||||
cat = catManage.newObject();
|
||||
cat.setAttributeValue("inputuserid", userid);
|
||||
cat.setAttributeValue("inputorgid", CurUser.getOrgID());
|
||||
cat.setAttributeValue("inputtime", DateUtil.getSystemTimeByFormat("yyyy/MM/dd HH:mm:ss"));
|
||||
|
||||
}else{
|
||||
cat.setAttributeValue("updateuserid", userid);
|
||||
cat.setAttributeValue("updateorgid", CurUser.getOrgID());
|
||||
cat.setAttributeValue("updatetime", DateUtil.getSystemTimeByFormat("yyyy/MM/dd HH:mm:ss"));
|
||||
|
||||
}
|
||||
cat.setAttributeValue("frame_number", fieldMap.get("frame_number") == null ? "" : fieldMap.get("frame_number").toString());
|
||||
cat.setAttributeValue("plate_number", fieldMap.get("plate_number") == null ? "" : fieldMap.get("plate_number").toString());
|
||||
cat.setAttributeValue("platetime", fieldMap.get("platetime") == null ? "" : fieldMap.get("platetime").toString());
|
||||
cat.setAttributeValue("flowunid",flowunid);
|
||||
cat.setAttributeValue("is_pledge", fieldMap.get("is_pledge") == null ? "" : fieldMap.get("is_pledge").toString());
|
||||
cat.setAttributeValue("pledge_date", fieldMap.get("pledge_date") == null ? "" : fieldMap.get("pledge_date").toString());
|
||||
catManage.saveObject(cat);
|
||||
ReturnMapUtil.setReturnMap(null,
|
||||
RestfullConstant.baseProperty.get("success").toString(), "");
|
||||
return ReturnMapUtil.getReturnMap();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
package apx.com.amarsoft.als.user.change.center.service.impl;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.base.constant.RestfullConstant;
|
||||
import com.base.util.MultipartDataUtil;
|
||||
import com.base.util.ReturnMapUtil;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
|
||||
import apx.com.amarsoft.als.user.change.center.service.ApplyOverseeService;
|
||||
|
||||
|
||||
//·Å¿îºó¶½
|
||||
public class ApplyOverseeServiceImpl implements ApplyOverseeService{
|
||||
private Map<String, Object> fieldMap;
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public Map<String, Object> applyOversee(HttpServletRequest request, HttpServletResponse response, JBOTransaction tx,
|
||||
Transaction sqlca, ReturnMapUtil ReturnMapUtil) throws Exception {
|
||||
Map<String, Object> testMap = (Map<String, Object>) MultipartDataUtil
|
||||
.readRequestParam(request, "UTF-8");
|
||||
fieldMap = (Map<String, Object>) testMap.get("fieldMap");
|
||||
String flowunid = fieldMap.get("flowunid") == null ? "" : fieldMap.get("flowunid").toString();
|
||||
String userId = fieldMap.get("userid") == null ? "" : fieldMap.get("userid").toString();
|
||||
String sql = "select bo.flow_key,lfi.fact_money,ft.endtime,lec.MODEL,lec.FRAME_NUMBER,lrp.rent,lcc.INCOME_NUMBER from LB_CONTRACT_INFO lci left join FLOW_BUSSINESS_OBJECT bo on bo.contract_id =lci.id left join lc_fund_income lfi ON lfi.contract_id=lci.id AND lfi.plan_list='1' AND lfi.fee_type='feetype10' AND lfi.pay_status='have_paid' AND lfi.pay_type='pay_type_out' AND (lfi.settle_method='settlemethod6' or lfi.settle_method='settlemethod13') AND lfi.ROLL_BACK='0' left join (SELECT ft1.objectno,ft1.endtime,ft1.flowno FROM FLOW_TASK ft1 WHERE ft1.phaseno='0010' AND ft1.begintime IN (SELECT MAX(ft2.begintime) FROM FLOW_TASK ft2 WHERE ft2.phaseno='0010' AND ft1.objectno=ft2.objectno GROUP BY ft2.objectno)) ft ON ft.objectno = bo.flow_unid LEFT JOIN LB_EQUIPMENT_CAR lec ON lci.id=lec.contract_id LEFT JOIN lc_rent_plan lrp ON lrp.CONTRACT_ID=lci.ID AND lrp.plan_list='1' left join LC_CALC_CONDITION_TEMP lcc on lcc.flowunid=lci.FLOWUNID where ft.flowno='MortgageFileFlow' and lci.FLOWUNID='"+flowunid+"' ";
|
||||
List<Map<String, String>> dataList = DataOperatorUtil.getDataBySql(sql);
|
||||
|
||||
Map<String, Object> body = new HashMap<String, Object>();
|
||||
if(dataList.size()>0){
|
||||
for (Map<String, String> map : dataList) {
|
||||
body.put(map.get("flow_key"),map.get("flow_key"));
|
||||
body.put(map.get("fact_money"),map.get("fact_money"));
|
||||
body.put(map.get("endtime"),map.get("endtime"));
|
||||
body.put(map.get("MODEL"),map.get("MODEL"));
|
||||
body.put(map.get("FRAME_NUMBER"),map.get("FRAME_NUMBER"));
|
||||
body.put(map.get("rent"),map.get("rent"));
|
||||
body.put(map.get("INCOME_NUMBER"),map.get("INCOME_NUMBER"));
|
||||
}
|
||||
}
|
||||
ReturnMapUtil.setReturnMap(body,RestfullConstant.baseProperty.get("success").toString(), "");
|
||||
return ReturnMapUtil.getReturnMap();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,52 @@
|
||||
package apx.com.amarsoft.als.user.change.center.service.impl;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.base.constant.RestfullConstant;
|
||||
import com.base.util.MultipartDataUtil;
|
||||
import com.base.util.ReturnMapUtil;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
|
||||
import apx.com.amarsoft.als.user.change.center.service.ApplyPaymentService;
|
||||
//APP¸¶¿îÉêÇë
|
||||
public class ApplyPaymentServiceImpl implements ApplyPaymentService{
|
||||
|
||||
private Map<String, Object> fieldMap;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public Map<String, Object> applyPayment(HttpServletRequest request, HttpServletResponse response, JBOTransaction tx,
|
||||
Transaction sqlca, ReturnMapUtil ReturnMapUtil) throws Exception {
|
||||
Map<String, Object> testMap = (Map<String, Object>) MultipartDataUtil
|
||||
.readRequestParam(request, "UTF-8");
|
||||
fieldMap = (Map<String, Object>) testMap.get("fieldMap");
|
||||
String flowunid = fieldMap.get("flowunid") == null ? "" : fieldMap.get("flowunid").toString();
|
||||
String userId = fieldMap.get("userid") == null ? "" : fieldMap.get("userid").toString();
|
||||
String sql = "select ft.endtime,O.CONTRACT_NO,ci.customername,ci.CERTID,lec.MODEL,lec.FRAME_NUMBER,lrp.rent,lcc.INCOME_NUMBER from LB_CONTRACT_INFO O LEFT JOIN LB_UNION_LESSEE lul ON O.id=lul.contract_id LEFT JOIN CUSTOMER_INFO ci ON ci.customerid=lul.customer_id LEFT JOIN LB_EQUIPMENT_CAR lec ON O.id=lec.contract_id left join FLOW_BUSSINESS_OBJECT bo on bo.contract_id =O.id LEFT JOIN lc_rent_plan lrp ON lrp.CONTRACT_ID=O.ID AND lrp.plan_list='1' left join LC_CALC_CONDITION_TEMP lcc on lcc.flowunid=O.FLOWUNID left join (SELECT ft1.objectno,ft1.endtime,ft1.flowno FROM FLOW_TASK ft1 WHERE ft1.phaseno='0010' AND ft1.begintime IN (SELECT MAX(ft2.begintime) FROM FLOW_TASK ft2 WHERE ft2.phaseno='0010' AND ft1.objectno=ft2.objectno GROUP BY ft2.objectno)) ft ON ft.objectno = bo.flow_unid where ft.flowno='FundPaymentCarFlow' and O.FLOWUNID='"+flowunid+"' ";
|
||||
List<Map<String, String>> dataList = DataOperatorUtil.getDataBySql(sql);
|
||||
|
||||
Map<String, Object> body = new HashMap<String, Object>();
|
||||
if(dataList.size()>0){
|
||||
for (Map<String, String> map : dataList) {
|
||||
body.put(map.get("CONTRACT_NO"),map.get("CONTRACT_NO"));
|
||||
body.put(map.get("customername"),map.get("customername"));
|
||||
body.put(map.get("CERTID"),map.get("CERTID"));
|
||||
body.put(map.get("MODEL"),map.get("MODEL"));
|
||||
body.put(map.get("FRAME_NUMBER"),map.get("FRAME_NUMBER"));
|
||||
body.put(map.get("rent"),map.get("rent"));
|
||||
body.put(map.get("endtime"),map.get("endtime"));
|
||||
body.put(map.get("INCOME_NUMBER"),map.get("INCOME_NUMBER"));
|
||||
}
|
||||
}
|
||||
ReturnMapUtil.setReturnMap(body,RestfullConstant.baseProperty.get("success").toString(), "");
|
||||
return ReturnMapUtil.getReturnMap();
|
||||
|
||||
}
|
||||
}
|
||||
@ -13,7 +13,13 @@ import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.base.util.ReturnMapUtil;
|
||||
|
||||
import apx.com.amarsoft.als.user.change.center.service.ApplyInvoiceService;
|
||||
import apx.com.amarsoft.als.user.change.center.service.ApplyLicensePlateService;
|
||||
import apx.com.amarsoft.als.user.change.center.service.ApplyOverseeService;
|
||||
import apx.com.amarsoft.als.user.change.center.service.ApplyPaymentService;
|
||||
import apx.com.amarsoft.als.user.change.center.service.impl.ApplyInvoiceServiceImpl;
|
||||
import apx.com.amarsoft.als.user.change.center.service.impl.ApplyLicensePlateServiceImpl;
|
||||
import apx.com.amarsoft.als.user.change.center.service.impl.ApplyOverseeServiceImpl;
|
||||
import apx.com.amarsoft.als.user.change.center.service.impl.ApplyPaymentServiceImpl;
|
||||
import apx.com.amarsoft.als.user.change.initiate.service.AppUndoService;
|
||||
import apx.com.amarsoft.als.user.change.initiate.service.ApplyChangeService;
|
||||
@ -48,14 +54,6 @@ public class ApplyChangeController {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//变更说明
|
||||
@Path("/business/changes")
|
||||
@POST
|
||||
@ -96,21 +94,7 @@ public class ApplyChangeController {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//担保人信息
|
||||
@Path("/business/Guarantor")
|
||||
@ -151,9 +135,7 @@ public class ApplyChangeController {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//租赁车辆信息
|
||||
@Path("/business/Vehicle")
|
||||
@ -257,9 +239,91 @@ public class ApplyChangeController {
|
||||
}
|
||||
}
|
||||
|
||||
//发票信息
|
||||
/* @Path("/business/invoice")
|
||||
@POST
|
||||
public Map<String, Object> applyInvoice(@Context HttpServletRequest request,
|
||||
@Context HttpServletResponse response, @Context JBOTransaction tx,
|
||||
@Context Transaction sqlca) throws Exception {
|
||||
ReturnMapUtil ReturnMapUtil = new ReturnMapUtil(tx, sqlca);
|
||||
ARE.getLog().info(
|
||||
"[CONTROLLER] ApplyChangeController run .................");
|
||||
ARE.getLog().info("[Path] /change/business/invoice" + " run .................");
|
||||
|
||||
ApplyInvoiceService service = new ApplyInvoiceServiceImpl();
|
||||
try {
|
||||
return service.applyInvoice(request, response, tx, sqlca, ReturnMapUtil);
|
||||
} catch (Exception e) {
|
||||
return ReturnMapUtil.rollback(e);
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//放款后督发起
|
||||
@Path("/business/oversee")
|
||||
@POST
|
||||
public Map<String, Object> applyOversee(@Context HttpServletRequest request,
|
||||
@Context HttpServletResponse response, @Context JBOTransaction tx,
|
||||
@Context Transaction sqlca) throws Exception {
|
||||
ReturnMapUtil ReturnMapUtil = new ReturnMapUtil(tx, sqlca);
|
||||
ARE.getLog().info(
|
||||
"[CONTROLLER] ApplyChangeController run .................");
|
||||
ARE.getLog().info("[Path] /change/business/oversee" + " run .................");
|
||||
|
||||
ApplyOverseeService service = new ApplyOverseeServiceImpl();
|
||||
try {
|
||||
return service.applyOversee(request, response, tx, sqlca, ReturnMapUtil);
|
||||
} catch (Exception e) {
|
||||
return ReturnMapUtil.rollback(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//牌照管理
|
||||
@Path("/business/licenseplate")
|
||||
@POST
|
||||
public Map<String, Object> applyLicensePlate(@Context HttpServletRequest request,
|
||||
@Context HttpServletResponse response, @Context JBOTransaction tx,
|
||||
@Context Transaction sqlca) throws Exception {
|
||||
ReturnMapUtil ReturnMapUtil = new ReturnMapUtil(tx, sqlca);
|
||||
ARE.getLog().info(
|
||||
"[CONTROLLER] ApplyChangeController run .................");
|
||||
ARE.getLog().info("[Path] /change/business/licenseplate" + " run .................");
|
||||
|
||||
ApplyLicensePlateService service = new ApplyLicensePlateServiceImpl();
|
||||
try {
|
||||
return service.applyLicensePlate(request, response, tx, sqlca, ReturnMapUtil);
|
||||
} catch (Exception e) {
|
||||
return ReturnMapUtil.rollback(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//牌照保存信息
|
||||
@Path("/save/applyLicensePlate")
|
||||
@POST
|
||||
public Map<String, Object> saveapplyLicensePlate(@Context HttpServletRequest request,
|
||||
@Context HttpServletResponse response, @Context JBOTransaction tx,
|
||||
@Context Transaction sqlca) throws Exception {
|
||||
ReturnMapUtil ReturnMapUtil = new ReturnMapUtil(tx, sqlca);
|
||||
ARE.getLog().info(
|
||||
"[CONTROLLER] ApplyChangeController run .................");
|
||||
ARE.getLog().info("[Path] /change/save/applyLicensePlate" + " run .................");
|
||||
|
||||
ApplyLicensePlateService service = new ApplyLicensePlateServiceImpl();
|
||||
try {
|
||||
return service.saveapplyLicensePlate(request, response, tx, sqlca, ReturnMapUtil);
|
||||
} catch (Exception e) {
|
||||
return ReturnMapUtil.rollback(e);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -36,7 +36,6 @@ public class ApplyChangeServiceImpl implements ApplyChangeService{
|
||||
fieldMap = (Map<String, Object>) testMap.get("fieldMap");
|
||||
String userId = fieldMap.get("userid") == null ? "" : fieldMap.get("userid").toString();
|
||||
String sql = "select lpi.product_id,lpi.project_no,lpi.project_name,ci.customertype,lpi.car_type,lpi.leas_form,psl.operationType,ci.certtype,lpi.subjectid,lpi.subjectname from LB_PROJECT_INFO lpi LEFT JOIN LB_UNION_LESSEE lult on lpi.id=lult.project_id and lult.is_main='y' and( lult.contract_id is null or lult.contract_id='') LEFT JOIN CUSTOMER_INFO ci on lult.customer_id=ci.customerid left join PRD_SPECIFIC_LIBRARY psl on psl.productid=lpi.product_id where lpi.project_status='13' and (SELECT COUNT(id) FROM lb_contract_info_temp WHERE project_id=lpi.ID)=0 and lpi.businesstype='1' and lpi.project_manage= '"+userId+"'";
|
||||
//String sql = "select lpi.product_id,lpi.project_no,lpi.project_name,ci.customertype,lpi.car_type,lpi.leas_form,psl.operationType,ci.certtype,lpi.subjectid,lpi.subjectname from LB_PROJECT_INFO lpi LEFT JOIN LB_UNION_LESSEE lult on lpi.id=lult.project_id and lult.is_main='y' and( lult.contract_id is null or lult.contract_id='') LEFT JOIN CUSTOMER_INFO ci on lult.customer_id=ci.customerid left join PRD_SPECIFIC_LIBRARY psl on psl.productid=lpi.product_id where lpi.project_status='13' and (SELECT COUNT(id) FROM lb_contract_info_temp WHERE project_id=lpi.ID)=0 and lpi.businesstype='1' and lpi.project_manage= '8006U00000001'";
|
||||
List<Map<String, String>> dataList = DataOperatorUtil.getDataBySql(sql);
|
||||
|
||||
Map<String, Object> body = new HashMap<String, Object>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user