数组转对象

This commit is contained in:
yexuan 2018-08-15 09:25:38 +08:00
parent 38e2fccc0b
commit 80bc2e5102
2 changed files with 8 additions and 3 deletions

View File

@ -21,6 +21,10 @@ import com.base.util.ReturnMapUtil;
public class CustomerQueryServiceImpl implements CustomerQueryService {
private Map<String, Object> fieldMap;
public void setFieldMap(Map<String, Object> fieldMap) {
this.fieldMap = fieldMap;
}
@SuppressWarnings("unchecked")
public Map<String, Object> info(HttpServletRequest request,
HttpServletResponse response, JBOTransaction tx, Transaction sqlca,
@ -36,10 +40,11 @@ public class CustomerQueryServiceImpl implements CustomerQueryService {
String customerId = mm.getCustomerIdByFlowUnid(flowUnid);
BizObjectManager bom = JBOFactory
.getBizObjectManager(CUSTOMER_INFO_TEMP.CLASS_NAME);
String customerType = ((BizObject) bom
String customerType = ((BizObject) bom
.createQuery("customerid=:customerid")
.setParameter("customerid", customerId).getResultList(false))
.setParameter("customerid", customerId).getResultList(false).get(0))
.getAttribute("CUSTOMERTYPE").toString();
fieldMap.put("flowUnid".toLowerCase(), flowUnid);
fieldMap.put("flowUnid".toUpperCase(), flowUnid);
fieldMap.put("flow_Unid".toLowerCase(), flowUnid);

View File

@ -26,7 +26,7 @@ public class ApplyCancelController {
ReturnMapUtil ReturnMapUtil = new ReturnMapUtil(tx, sqlca);
ARE.getLog().info(
"[CONTROLLER] ApplyCancelController run .................");
ARE.getLog().info("[Path] /apply/business/channel" + " run .................");
ARE.getLog().info("[Path] /apply/business/cancel" + " run .................");
ApplyCancelService service = new ApplyCancelServiceImpl();
try {