YongSheng.F:

1,app业务申请后,向前端返回flowunid。
2,修改部分bug。
This commit is contained in:
fys 2018-06-16 18:06:39 +08:00
parent 537c10bb74
commit c5d25b68da
3 changed files with 21 additions and 8 deletions

View File

@ -58,7 +58,7 @@ public class BusinessBO {
this.certtype = fieldMap.get("certtype".toLowerCase()) == null ? null
: fieldMap.get("certtype".toLowerCase()).toString();
this.certid = fieldMap.get("certid".toLowerCase()) == null ? null
: fieldMap.get("carAttributes".toLowerCase()).toString();
: fieldMap.get("certid".toLowerCase()).toString();
}
public String getCarAttributes() {

View File

@ -1,5 +1,6 @@
package apx.com.amarsoft.als.apzl.apply.business.start.service.impl;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
@ -10,6 +11,7 @@ import com.amarsoft.awe.util.Transaction;
import com.base.constant.RestfullConstant;
import com.base.util.MultipartDataUtil;
import com.base.util.ReturnMapUtil;
import com.tenwa.flow.action.comm.CommonAction;
import com.tenwa.lease.flow.project.projectapproval.BusinessApprovalStartAction;
import apx.com.amarsoft.als.apzl.apply.business.start.bo.BusinessBO;
@ -44,21 +46,32 @@ public class BusinessApplyStartServiceImpl implements BusinessApplyStartService
+ "@'leasehold':'" + bo.getLeasehold() + "'@'carSystem':'"
+ bo.getCarSystem() + "'}";
BusinessApprovalStartAction.setProductID(bo.getProductId());
BusinessApprovalStartAction.setCustomerType(bo.getCustomerType());
BusinessApprovalStartAction.setCarAttributes(bo.getCarAttributes());
BusinessApprovalStartAction.setLeasehold(bo.getLeasehold());
BusinessApprovalStartAction.setCarSystem(bo.getCarSystem());
BusinessApprovalStartAction.setCarSeries(bo.getCarSeries());
BusinessApprovalStartAction.setFixedFlowParam(param);
BusinessApprovalStartAction.setProductId(bo.getProductId());
//用户信息
BusinessApprovalStartAction.setCertid(bo.getCertid());
BusinessApprovalStartAction.setCustname(bo.getCUSTOMERNAME());
BusinessApprovalStartAction.setCustomerType(bo.getCustomerType());
String sReturnInfo = BusinessApprovalStartAction.initFLow(tx);
if (sReturnInfo.startsWith("success"))
ReturnMapUtil.setReturnMap(null,
if (sReturnInfo.startsWith("success")){
//获取当前申请的相关参数包含FlowUnid
Map<String,String> params = BusinessApprovalStartAction.getFlowParam();
//返回前台的数据
Map<String,Object> body = new HashMap<String,Object>();
body.put("flowUnid",params.get("FlowUnid"));
body.put("objectNo",params.get("FlowUnid"));
ReturnMapUtil.setReturnMap(body,
RestfullConstant.baseProperty.get("success").toString(),
"发起成功");
"发起成功");
}
else
ReturnMapUtil.setReturnMap(null,
RestfullConstant.baseProperty.get("fail").toString(),
RestfullConstant.baseProperty.get("FAIL").toString(),
"·¢Æðʧ°Ü");
return ReturnMapUtil.getReturnMap();

View File

@ -258,7 +258,7 @@ public class SelectCatalogWin {
Map<String, Object> row = new HashMap<String, Object>();
int count = rsmd.getColumnCount();
List<Map<String, Object>> colList = new ArrayList<Map<String, Object>>();
for (int i = 1; i <= count; i++) {
for (int i = 1; i <= aSelFieldName.length; i++) {
Map<String, Object> col = new HashMap<String, Object>();
String key = rsmd.getColumnLabel(i);
String value = rs.getString(i);