app附件相关内容

This commit is contained in:
jianghongdong 2018-08-10 00:02:19 +08:00
parent 80dc981ef1
commit c086f834e8
4 changed files with 19 additions and 11 deletions

View File

@ -191,11 +191,19 @@ public class BusinessDocDetailServiceImpl implements BusinessDocDetailService {
docName = docName.substring(0, docName.length() - 1);
}
}
BizObjectManager fboM = JBOFactory
.getBizObjectManager(FLOW_BUSSINESS_OBJECT.CLASS_NAME);
BizObject fbo = fboM.createQuery("flow_unid=:flow_unid")
.setParameter("flow_unid", flowUnid).getSingleResult(false);
String proj_id = fbo.getAttribute("proj_id").getString();
BizObjectManager relaManage = JBOFactory
.getBizObjectManager(LB_DOCRELATIVE.CLASS_NAME);
BizObject rela = relaManage.createQuery("FLOW_UNID=:FLOW_UNID")
.setParameter("FLOW_UNID", flowUnid).getSingleResult(false);
BizObject rela = relaManage.createQuery("ObjectType='BusinessApplyFlow' and proj_id=:projid")
.setParameter("projid", proj_id).getSingleResult(false);
String relaId = "";
if (null == rela) {
ReturnMapUtil.setReturnMap(null,

View File

@ -276,20 +276,20 @@ public class BusinessBO implements Serializable {
msg = "»ñÈ¡¿Í»§ÐÅϢʧ°Ü!";
return false;
}
String proj_id = fbo.getAttribute("proj_id").getString();
String sql = "";
sql = "SELECT DISTINCT O.ID, O.DOC_NAME,r.id " + "FROM O, "
+ LB_DOCRELATIVE.CLASS_NAME + " R "
+ "WHERE O.RELATIVE_ID = R.ID "
+ "AND O.ID NOT IN (SELECT A.LIBRARY_ID FROM "
+ LB_DOCATTRIBUTE.CLASS_NAME + " A) "
+ "AND R.FLOW_UNID=:FLOW_UNID " + "AND o.DOC_NATURE='01' "
+ "AND R.ObjectType='BusinessApplyFlow' and R.proj_id=:projid " + "AND o.DOC_NATURE='01' "
+ "ORDER BY SERIAL_NUM";
// R.ObjectType='BusinessApplyFlow' and R.proj_id=:projid
BizObjectManager libraryManage = JBOFactory
.getBizObjectManager(LB_DOCLIBRARY.CLASS_NAME);
BizObjectQuery query = libraryManage.createQuery(sql).setParameter(
"FLOW_UNID", objectNo);
"projid", proj_id);
List<BizObject> librarys = query.getResultList(false);
String docNameConfig = "01".equals(customerType) ? RestfullConstant.baseProperty

View File

@ -28,10 +28,10 @@ public class InitDocListTools {
.setParameter("OBJECTNO", flowUnid).getSingleResult(false);
if (null == object)
return false;
String flowNo = object.getAttribute("flowno") == null ? "" : object
String sObjectType = object.getAttribute("flowno") == null ? "" : object
.getAttribute("flowno").toString();
String sObjectType = object.getAttribute("ObjectType") == null ? ""
: object.getAttribute("ObjectType").toString();
// String sObjectType = object.getAttribute("ObjectType") == null ? ""
// : object.getAttribute("ObjectType").toString();
String productId = "";
BizObject flow = GetFlowAction.getFlowBussinessObject(flowUnid);
if (null == flow)

View File

@ -95,9 +95,9 @@ public class BusinessApplyStartServiceImpl implements BusinessApplyStartService
fieldMap = (Map<String, Object>) testMap.get("fieldMap");
fileList = (List<Map<String, Object>>) testMap.get("fileList");
BusinessBO bo = new BusinessBO(fieldMap, tx);
// boolean flag = bo.checkDoc();
boolean flag = bo.checkDoc();
if(true) {
if(flag) {
ReturnMapUtil.setReturnMap(null, RestfullConstant.baseProperty.get("success").toString(), "");
} else {
String msg = bo.getMsg();