24 lines
724 B
Java
24 lines
724 B
Java
package com.base.helper;
|
|
|
|
import java.util.Map;
|
|
|
|
import com.amarsoft.are.jbo.BizObject;
|
|
import com.amarsoft.are.jbo.BizObjectManager;
|
|
import com.amarsoft.are.jbo.JBOException;
|
|
import com.amarsoft.are.jbo.JBOFactory;
|
|
import com.base.util.BizObjectUtil;
|
|
|
|
public class BFTemplateHelper {
|
|
public static Map<String, Object> getDocById(String sId)
|
|
throws JBOException {
|
|
BizObjectManager bm = JBOFactory
|
|
.getBizObjectManager("jbo.com.tenwa.entity.comm.officetempalte.BF_TEMPLATE");
|
|
BizObject bo = bm.createQuery("id=:id").setParameter("id", sId)
|
|
.getSingleResult(false);
|
|
if (null == bo)
|
|
return null;
|
|
BizObjectUtil util = new BizObjectUtil();
|
|
return util.bizObject2MapValue(bo);
|
|
}
|
|
}
|