详情和手册,角色自动带出岗位代码提交

This commit is contained in:
yujh 2024-08-01 10:25:24 +08:00
parent 262e0774da
commit c02d5cda5a
3 changed files with 3287 additions and 3003 deletions

View File

@ -24,12 +24,14 @@ import com.actionsoft.apps.coe.pal.pal.output.util.OutputWordUtil;
import com.actionsoft.apps.coe.pal.pal.repository.PALRepositoryQueryAPIManager;
import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache;
import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryPropertyCache;
import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelDaoFacotory;
import com.actionsoft.apps.coe.pal.pal.repository.designer.relation.cache.DesignerShapeRelationCache;
import com.actionsoft.apps.coe.pal.pal.repository.designer.relation.dao.DesignerShapeRelationDao;
import com.actionsoft.apps.coe.pal.pal.repository.designer.relation.model.DesignerShapeRelationModel;
import com.actionsoft.apps.coe.pal.pal.repository.designer.util.CoeDesignerUtil;
import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel;
import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryPropertyModel;
import com.actionsoft.apps.coe.pal.pal.repository.model.impl.PALRepositoryModelImpl;
import com.actionsoft.apps.coe.pal.pal.repository.upfile.constant.CoeFileConstant;
import com.actionsoft.apps.coe.pal.pal.repository.upfile.dao.UpFileDao;
import com.actionsoft.apps.coe.pal.pal.repository.upfile.model.UpfileModel;
@ -280,6 +282,7 @@ public class Report1Gener {
}
prReportComment.getCommentContent2(dataMap, repositoryModel);//获取一些公共的数据(手册首页的手册岗位名称部门时间等)
JSONArray repositoryShapeTable = new JSONArray();//流程步骤Table
JSONArray roleMappingPostTable = new JSONArray();
@ -376,12 +379,14 @@ public class Report1Gener {
int index = 1;// 流程步骤序号
int dangerIndex = 1;// 风险序号
int regulateIndex = 1;// 控制序号
int roleMappingPostIndex =1;//控制序号
for (Map<String, Object> shape : repositoryFileElements) {
//过滤导出的图形类型
if ("method_approval_node,method_service_node,method_approval_node3,method_service_node4,decision".indexOf((String)shape.get("type")) == -1) {
continue;
}
JSONObject _tr = new JSONObject();
JSONObject _roleMappingPostTr = new JSONObject();
OutputWordUtil.setShapeDefaultValue2(repositoryId, _tr); //设置默认值
@ -496,9 +501,31 @@ public class Report1Gener {
regulateIndex = setTableValueOfControlAndRisk(attrId, repositoryId, shape.get("id").toString(), regulateTable, regulateIndex, _tr.getString(OutputWordUtil.SHAPE_NAME), relationFileMap);
regulateSet.clear();
}
//如果当前属性是role则查询该角色有无关联岗位信息
if("role".equals(attrId)){
String shapeId = shape.get("id").toString();
//查询该角色有没有保定岗位
//先查询该UUID的角色映射关系
String querySqlRole = " SELECT RELATIONSHAPEID FROM APP_ACT_COE_PAL_SHAPE_RLAT WHERE SHAPEID = ? AND ATTRID = ?";
String relationShapeId = DBSql.getString(querySqlRole, new Object[]{shapeId, "role"});
String querySql = " SELECT RELATIONSHAPETEXT FROM APP_ACT_COE_PAL_SHAPE_RLAT WHERE SHAPEID = ? AND ATTRID = ?";
String postInfo = DBSql.getString(querySql, new Object[]{relationShapeId, "post"});
if(UtilString.isNotEmpty(postInfo)){
_roleMappingPostTr.put("shape_number",roleMappingPostIndex);
_roleMappingPostTr.put("roleMapping_role",attrValue);
_roleMappingPostTr.put("roleMapping_post",postInfo);
//如果存在角色关联岗位的则加个*
_tr.put("shape_" + attrId, "*"+attrValue.replace("\n", WRAPSTRING));
roleMappingPostIndex++;
}
}
}
}
repositoryShapeTable.add(_tr);
if(!_roleMappingPostTr.isEmpty()){
roleMappingPostTable.add(_roleMappingPostTr);
}
index++;
}
}
@ -771,7 +798,10 @@ public class Report1Gener {
dataMap.put("metrics_count", metrics.size());//
dataMap.put(OutputWordUtil.TABLE_REPOSITORY_SHAPE, repositoryShapeTable);
dataMap.put("TABLE_REPOSITORY_SHAPE_COUNT", repositoryShapeTable.size());
dataMap.put("TABLE_REPOSITORY_SHAPE_COUNT", repositoryShapeTable.size()); //roleMappingPostTable
dataMap.put("roleMappingPostTable", roleMappingPostTable);
dataMap.put("roleMappingPostTableCount", roleMappingPostTable.size());
boolean contains = isNumberAscArray.contains("false");
if(contains) {
fileTable.sort(Comparator.comparing(obj -> ((JSONObject) obj).getString("file_name")));

View File

@ -2609,6 +2609,8 @@ y7fdOgAAAABJRU5ErkJggk==
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="482" w:type="dxa"/>
@ -3485,7 +3487,6 @@ y7fdOgAAAABJRU5ErkJggk==
</w:tr>
</#list>
</w:tbl>
<#if (goal_table_count >0 )>
<wx:sub-section>
<w:p wsp:rsidR="00111088" wsp:rsidRDefault="00AC2941" wsp:rsidP="00E21AF8">
<w:pPr>
@ -3529,9 +3530,6 @@ y7fdOgAAAABJRU5ErkJggk==
</w:p>
</#list>
</wx:sub-section>
</#if>
<#if (term_table_count>0 )>
<wx:sub-section>
<w:p wsp:rsidR="00AC2941" wsp:rsidRDefault="00AC2941">
<w:pPr>
@ -3766,8 +3764,6 @@ y7fdOgAAAABJRU5ErkJggk==
</w:pPr>
</w:p>
</wx:sub-section>
</#if>
<#if (organization_table_count >0 )>
<wx:sub-section>
<w:p wsp:rsidR="00AC2941" wsp:rsidRDefault="00AC2941">
<w:pPr>
@ -3986,14 +3982,12 @@ y7fdOgAAAABJRU5ErkJggk==
</#list>
</w:tbl>
</#if>
<w:p wsp:rsidR="00AC2941" wsp:rsidRDefault="00AC2941">
<w:pPr>
<w:pStyle w:val="IDSTYLERDDEFAULT"/>
</w:pPr>
</w:p>
</wx:sub-section>
</#if>
<wx:sub-section>
<w:p wsp:rsidR="00581922" wsp:rsidRDefault="00581922">
<w:pPr>
@ -4350,7 +4344,6 @@ y7fdOgAAAABJRU5ErkJggk==
</wx:sub-section>
</wx:sect>
<wx:sect>
<#if (TABLE_REPOSITORY_SHAPE_COUNT >0 )>
<wx:sub-section>
<w:p wsp:rsidR="00AC2941" wsp:rsidRDefault="00AC2941">
<w:pPr>
@ -4562,7 +4555,7 @@ y7fdOgAAAABJRU5ErkJggk==
<w:sz-cs w:val="21"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:rPr>
<w:t>角色</w:t>
<w:t>角色/岗位</w:t>
</w:r>
</w:p>
</w:tc>
@ -4943,6 +4936,277 @@ y7fdOgAAAABJRU5ErkJggk==
</#list>
</w:tbl>
</#if>
<!-- 角色岗位表开始 -->
<#if (roleMappingPostTableCount ==0 )>
<#else>
<w:p wsp:rsidR="00AC2941" wsp:rsidRDefault="00AC2941">
<w:pPr>
<w:pStyle w:val="1"/>
<w:listPr>
<wx:t wx:val=""/>
<wx:font wx:val="宋体"/>
</w:listPr>
</w:pPr>
<aml:annotation aml:id="4" w:type="Word.Bookmark.Start" w:name="_Toc112685144"/>
<w:r>
<w:t>角色岗位对应表</w:t>
</w:r>
<aml:annotation aml:id="4" w:type="Word.Bookmark.End"/>
</w:p>
<w:tbl>
<w:tblPr>
<w:tblW w:w="0" w:type="auto"/>
<w:tblInd w:w="0" w:type="dxa"/>
<w:tblBorders>
<w:top w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
<w:left w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
<w:bottom w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
<w:right w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
<w:insideH w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
<w:insideV w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
</w:tblBorders>
<w:tblLayout w:type="Fixed"/>
</w:tblPr>
<w:tblGrid>
<w:gridCol w:w="789"/>
<w:gridCol w:w="6393"/>
<w:gridCol w:w="6393"/>
</w:tblGrid>
<w:tr wsp:rsidR="00AC2941" wsp:rsidRPr="006A6A9A" wsp:rsidTr="007A3F31">
<w:trPr>
<w:tblHeader/>
</w:trPr>
<w:tc>
<w:tcPr>
<w:tcW w:w="789" w:type="dxa"/>
<w:tcBorders>
<w:top w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:left w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:bottom w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:right w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:tl2br w:val="nil"/>
<w:tr2bl w:val="nil"/>
</w:tcBorders>
<w:shd w:val="clear" w:color="CCCCCC" w:fill="auto"/>
<w:tcMar>
<w:top w:w="0" w:type="dxa"/>
<w:left w:w="108" w:type="dxa"/>
<w:right w:w="108" w:type="dxa"/>
</w:tcMar>
<w:vAlign w:val="center"/>
</w:tcPr>
<w:p wsp:rsidR="00AC2941" wsp:rsidRPr="00491D9E" wsp:rsidRDefault="00AC2941">
<w:pPr>
<w:pStyle w:val="TABLEHEAD"/>
<w:spacing w:before="45" w:after="45"/>
<w:rPr>
<w:sz w:val="21"/>
<w:sz-cs w:val="21"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:rPr>
</w:pPr>
<w:r wsp:rsidRPr="00491D9E">
<w:rPr>
<w:sz w:val="21"/>
<w:sz-cs w:val="21"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:rPr>
<w:t>序号</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="1729" w:type="dxa"/>
<w:tcBorders>
<w:top w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:left w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:bottom w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:right w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:tl2br w:val="nil"/>
<w:tr2bl w:val="nil"/>
</w:tcBorders>
<w:shd w:val="clear" w:color="CCCCCC" w:fill="auto"/>
<w:tcMar>
<w:top w:w="0" w:type="dxa"/>
<w:left w:w="108" w:type="dxa"/>
<w:right w:w="108" w:type="dxa"/>
</w:tcMar>
<w:vAlign w:val="center"/>
</w:tcPr>
<w:p wsp:rsidR="00AC2941" wsp:rsidRPr="00491D9E" wsp:rsidRDefault="00AC2941">
<w:pPr>
<w:pStyle w:val="TABLEHEAD"/>
<w:spacing w:before="45" w:after="45"/>
<w:rPr>
<w:sz w:val="21"/>
<w:sz-cs w:val="21"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:rPr>
</w:pPr>
<w:r wsp:rsidRPr="00491D9E">
<w:rPr>
<w:sz w:val="21"/>
<w:sz-cs w:val="21"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:rPr>
<w:t>角色</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="68270" w:type="dxa"/>
<w:tcBorders>
<w:top w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:left w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:bottom w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:right w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:tl2br w:val="nil"/>
<w:tr2bl w:val="nil"/>
</w:tcBorders>
<w:shd w:val="clear" w:color="CCCCCC" w:fill="auto"/>
<w:tcMar>
<w:top w:w="0" w:type="dxa"/>
<w:left w:w="108" w:type="dxa"/>
<w:right w:w="108" w:type="dxa"/>
</w:tcMar>
<w:vAlign w:val="center"/>
</w:tcPr>
<w:p wsp:rsidR="00AC2941" wsp:rsidRPr="00491D9E" wsp:rsidRDefault="00AC2941">
<w:pPr>
<w:pStyle w:val="TABLEHEAD"/>
<w:spacing w:before="45" w:after="45"/>
<w:rPr>
<w:sz w:val="21"/>
<w:sz-cs w:val="21"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:rPr>
</w:pPr>
<w:r wsp:rsidRPr="00491D9E">
<w:rPr>
<w:sz w:val="21"/>
<w:sz-cs w:val="21"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:rPr>
<w:t>岗位</w:t>
</w:r>
</w:p>
</w:tc>
</w:tr>
<#list roleMappingPostTable as table3>
<w:tr wsp:rsidR="00AC2941" wsp:rsidTr="007A3F31">
<w:tc>
<w:tcPr>
<w:tcW w:w="789" w:type="dxa"/>
<w:tcBorders>
<w:top w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:left w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:bottom w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:right w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:tl2br w:val="nil"/>
<w:tr2bl w:val="nil"/>
</w:tcBorders>
<w:tcMar>
<w:top w:w="0" w:type="dxa"/>
<w:left w:w="108" w:type="dxa"/>
<w:right w:w="108" w:type="dxa"/>
</w:tcMar>
<w:vAlign w:val="center"/>
</w:tcPr>
<w:p wsp:rsidR="00AC2941" wsp:rsidRPr="00491D9E" wsp:rsidRDefault="006A6A9A">
<w:pPr>
<w:pStyle w:val="TABLEITEMCENTER"/>
<w:rPr>
<w:sz w:val="21"/>
<w:sz-cs w:val="21"/>
</w:rPr>
</w:pPr>
<w:r wsp:rsidRPr="00491D9E">
<w:rPr>
<w:sz w:val="21"/>
<w:sz-cs w:val="21"/>
</w:rPr>
<w:t>${table3.shape_number}</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="1729" w:type="dxa"/>
<w:tcBorders>
<w:top w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:left w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:bottom w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:right w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:tl2br w:val="nil"/>
<w:tr2bl w:val="nil"/>
</w:tcBorders>
<w:tcMar>
<w:top w:w="0" w:type="dxa"/>
<w:left w:w="108" w:type="dxa"/>
<w:right w:w="108" w:type="dxa"/>
</w:tcMar>
<w:vAlign w:val="center"/>
</w:tcPr>
<w:p wsp:rsidR="00AC2941" wsp:rsidRPr="00491D9E" wsp:rsidRDefault="006A6A9A">
<w:pPr>
<w:pStyle w:val="TABLEITEM"/>
<w:rPr>
<w:sz w:val="21"/>
<w:sz-cs w:val="21"/>
</w:rPr>
</w:pPr>
<w:r wsp:rsidRPr="00491D9E">
<w:rPr>
<w:color w:val="auto"/>
<w:sz w:val="21"/>
<w:sz-cs w:val="21"/>
</w:rPr>
<w:t>${table3.roleMapping_role}</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="3827" w:type="dxa"/>
<w:tcBorders>
<w:top w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:left w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:bottom w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:right w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="000000"/>
<w:tl2br w:val="nil"/>
<w:tr2bl w:val="nil"/>
</w:tcBorders>
<w:tcMar>
<w:top w:w="0" w:type="dxa"/>
<w:left w:w="108" w:type="dxa"/>
<w:right w:w="108" w:type="dxa"/>
</w:tcMar>
<w:vAlign w:val="center"/>
</w:tcPr>
<w:p wsp:rsidR="00AC2941" wsp:rsidRPr="00491D9E" wsp:rsidRDefault="006A6A9A">
<w:pPr>
<w:pStyle w:val="TABLEITEM"/>
<w:rPr>
<w:sz w:val="21"/>
<w:sz-cs w:val="21"/>
</w:rPr>
</w:pPr>
<w:r wsp:rsidRPr="00491D9E">
<w:rPr>
<w:sz w:val="21"/>
<w:sz-cs w:val="21"/>
</w:rPr>
<w:t>${table3.roleMapping_post}</w:t>
</w:r>
</w:p>
</w:tc>
</w:tr>
</#list>
</w:tbl>
</#if>
<!-- 角色岗位表结束 -->
<w:p wsp:rsidR="00751D62" wsp:rsidRDefault="00751D62">
<w:pPr>
<w:pStyle w:val="IDSTYLERDDEFAULT"/>
@ -5234,10 +5498,8 @@ y7fdOgAAAABJRU5ErkJggk==
</w:pPr>
</w:p>
</wx:sub-section>
</#if>
</wx:sect>
<wx:sect>
<#if (metrics_count >0 )>
<wx:sub-section>
<w:p wsp:rsidR="00AC2941" wsp:rsidRDefault="00AC2941">
<w:pPr>
@ -5956,8 +6218,6 @@ y7fdOgAAAABJRU5ErkJggk==
</w:pPr>
</w:p>
</wx:sub-section>
</#if>
<#if (relevant_table_count >0 )>
<wx:sub-section>
<w:p wsp:rsidR="00AC2941" wsp:rsidRDefault="00AC2941">
<w:pPr>
@ -6178,8 +6438,6 @@ y7fdOgAAAABJRU5ErkJggk==
</w:pPr>
</w:p>
</wx:sub-section>
</#if>
<#if (supports_table_count >0 )>
<wx:sub-section>
<w:p wsp:rsidR="00AC2941" wsp:rsidRDefault="00AC2941">
<w:pPr>
@ -6404,8 +6662,6 @@ y7fdOgAAAABJRU5ErkJggk==
</w:pPr>
</w:p>
</wx:sub-section>
</#if>
<#if (T_supplementary_articles_count >0)>
<wx:sub-section>
<w:p wsp:rsidR="00140F58" wsp:rsidRPr="00E21AF8" wsp:rsidRDefault="00AC2941" wsp:rsidP="00E21AF8">
<w:pPr>
@ -6458,8 +6714,6 @@ y7fdOgAAAABJRU5ErkJggk==
</w:pPr>
</w:p>
</wx:sub-section>
</#if>
<#if (file_table_count >0 )>
<wx:sub-section>
<w:p wsp:rsidR="00546297" wsp:rsidRDefault="00546297" wsp:rsidP="00140F58">
<w:pPr>
@ -6522,7 +6776,6 @@ y7fdOgAAAABJRU5ErkJggk==
</#list>
</#if>
</wx:sub-section>
</#if>
<w:sectPr wsp:rsidR="00140F58" wsp:rsidRPr="00822EA9">
<w:hdr w:type="odd">
<w:tbl>

View File

@ -21,6 +21,8 @@ import java.util.Map.Entry;
import java.util.Set;
import javax.imageio.ImageIO;
import com.actionsoft.apps.coe.pal.pal.repository.cache.*;
import com.actionsoft.bpms.util.*;
import org.apache.commons.lang.StringUtils;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
@ -57,13 +59,6 @@ import com.actionsoft.apps.coe.pal.pal.output.extend.OutputAppProfile;
import com.actionsoft.apps.coe.pal.pal.output.model.OutputTaskModel;
import com.actionsoft.apps.coe.pal.pal.output.util.OutputWordUtil;
import com.actionsoft.apps.coe.pal.pal.repository.PALRepositoryQueryAPIManager;
import com.actionsoft.apps.coe.pal.pal.repository.cache.CoeProcessLevelCorrelateCache;
import com.actionsoft.apps.coe.pal.pal.repository.cache.CoeProcessLevelNoCache;
import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryAttributeCache;
import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache;
import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryRemoveCache;
import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryShapeAttributeCache;
import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryShapeConfigCache;
import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelCorrelateDao;
import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelDaoFacotory;
import com.actionsoft.apps.coe.pal.pal.repository.dao.PALRepository;
@ -141,11 +136,6 @@ import com.actionsoft.bpms.server.conf.server.AWSServerConf;
import com.actionsoft.bpms.server.fs.DCContext;
import com.actionsoft.bpms.server.fs.dc.DCProfileManager;
import com.actionsoft.bpms.server.fs.dc.DCUtil;
import com.actionsoft.bpms.util.Base64;
import com.actionsoft.bpms.util.UUIDGener;
import com.actionsoft.bpms.util.UtilDate;
import com.actionsoft.bpms.util.UtilFile;
import com.actionsoft.bpms.util.UtilString;
import com.actionsoft.exception.AWSException;
import com.actionsoft.exception.BPMNDefException;
import com.actionsoft.i18n.I18nRes;
@ -3291,6 +3281,17 @@ public class CoeDesignerWeb extends ActionWeb {
relationShapes.getJSONObject(shapeId1).put(model.getAttrId(), relationShapes.getJSONObject(shapeId1).getString(model.getAttrId()) + "," + model.getRelationShapeText());
} else {
relationShapes.getJSONObject(shapeId1).put(model.getAttrId(), model.getRelationShapeText());
//增加角色自动获取岗位逻辑
if(model.getAttrId().equals("role")){
//查询该角色有没有保定岗位
String querySql = " SELECT RELATIONSHAPETEXT FROM APP_ACT_COE_PAL_SHAPE_RLAT WHERE FILEID = ? AND SHAPEID = ? AND ATTRID = ?";
String postInfo = DBSql.getString(querySql, new Object[]{model.getRelationFileId(), model.getRelationShapeId(), "post"});
if(UtilString.isNotEmpty(postInfo)){
relationShapes.getJSONObject(shapeId1).put("post", postInfo);
}
}
}
} else if ("awsorg".equals(attrTypeMap.get(model.getAttrId()))) {
if (relationShapes.getJSONObject(shapeId1).containsKey(model.getAttrId())) {