官方流程

This commit is contained in:
qimingjin 2022-01-03 21:11:53 +08:00
parent adbcd26640
commit d7a614b1c4
3 changed files with 8 additions and 2 deletions

View File

@ -184,7 +184,7 @@ public class SysFormInstanceController extends BaseController
@ResponseBody
public AjaxResult remove(String ids) {
SysFormDataRecord sysFormDataRecord = new SysFormDataRecord();
sysFormDataRecord.setFormIdList(Convert.toStrArray(ids));
sysFormDataRecord.setFormIdList(Convert.toStrList(ids));
List<SysFormDataRecord> sysFormDataRecords = sysFormDataRecordService.selectSysFormDataRecordList(sysFormDataRecord);
if(CollUtil.isNotEmpty(sysFormDataRecords)){
return AjaxResult.error("该表单已被填写,暂不能删除");

View File

@ -1,10 +1,13 @@
package com.snow.from.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.snow.common.core.domain.BaseEntity;
import lombok.Data;
import java.util.List;
/**
* 单数据记录对象 sys_form_data_record
*
@ -31,7 +34,8 @@ public class SysFormDataRecord extends BaseEntity
/**
* 表单id数组
*/
private String[] formIdList;
@TableField(exist = false)
private List formIdList;
/**
* 表单内容

View File

@ -1,5 +1,6 @@
package com.snow.from.service.impl;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
@ -68,6 +69,7 @@ public class SysFormDataRecordServiceImpl extends ServiceImpl<SysFormDataRecordM
lambda.eq(ObjectUtil.isNotEmpty(sysFormDataRecord.getFormId()),SysFormDataRecord::getFormId,sysFormDataRecord.getFormId());
lambda.eq(ObjectUtil.isNotEmpty(sysFormDataRecord.getFormStatus()),SysFormDataRecord::getFormStatus,sysFormDataRecord.getFormStatus());
lambda.eq(ObjectUtil.isNotEmpty(sysFormDataRecord.getDingProcessInstanceId()),SysFormDataRecord::getDingProcessInstanceId,sysFormDataRecord.getDingProcessInstanceId());
lambda.in(CollUtil.isNotEmpty(sysFormDataRecord.getFormIdList()),SysFormDataRecord::getFormId,sysFormDataRecord.getFormId());
lambda.orderByDesc(SysFormDataRecord::getCreateTime);
return sysFormDataRecordMapper.selectList(lambda);
}