|
@@ -37,6 +37,7 @@ import com.dragonsoft.dcuc.approve.model.vo.LogDto;
|
|
|
import com.dragonsoft.dcuc.approve.service.*;
|
|
|
import com.dragonsoft.duceap.base.entity.http.ResponseDTO;
|
|
|
import com.dragonsoft.duceap.base.entity.http.ResponseStatus;
|
|
|
+import com.dragonsoft.duceap.base.entity.search.SearchDTO;
|
|
|
import com.dragonsoft.duceap.base.entity.security.BaseSecurityUser;
|
|
|
import com.dragonsoft.duceap.base.enums.BooleanEnum;
|
|
|
import com.dragonsoft.duceap.base.exception.ApplicationException;
|
|
@@ -1853,7 +1854,11 @@ public class ApproveServiceImpl implements IApproveService {
|
|
|
searchable.or(searchFilters.get(0), (SearchFilter[]) ArrayUtils.remove(lists, 0));
|
|
|
searchable.addSearchFilter("r.deleted", SearchOperator.eq, BooleanEnum.FALSE.getValue());
|
|
|
searchable.addSort(Sort.Direction.DESC, "r.generateTime");
|
|
|
- Integer countNum = approveActRunTaskMapper.totalCounts(searchable);
|
|
|
+ SearchDTO searchDTO = searchable.toSearchDTO();
|
|
|
+ Searchable countSearchable = Searchable.toSearchable(searchDTO);
|
|
|
+ countSearchable.removePageable();
|
|
|
+ // 需使用无分页的SearchAble 不然会获取不到总条数
|
|
|
+ Integer countNum = approveActRunTaskMapper.totalCounts(countSearchable);
|
|
|
if (countNum == null) {
|
|
|
countNum = 0;
|
|
|
} else {
|