Browse Source

sop列表修改

wangliang 1 year ago
parent
commit
fb8a3eb427

+ 3 - 0
sop-business/src/main/java/com/qmth/sop/business/service/impl/TBSopInfoServiceImpl.java

@@ -278,6 +278,9 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
     public IPage<Map> list(SopInfoListParam sopInfoListParam) {
 //        SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
 //        List<Long> userIdList = !CollectionUtils.isEmpty(sopInfoListParam.getUserIdList()) ? sopInfoListParam.getUserIdList() : Arrays.asList(sysUser.getId());
+        if (sopInfoListParam.getType() != TFCustomTypeEnum.OFFICE_SOP_FLOW || sopInfoListParam.getType() != TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW) {
+            throw ExceptionResultEnum.ERROR.exception("流程类型只能为教务处或研究生");
+        }
         String fieldName = null, fieldValue = null;
         if (!CollectionUtils.isEmpty(sopInfoListParam.getFormWidgetMetadataList())) {
             StringJoiner stringJoiner = new StringJoiner(",");