|
@@ -20,13 +20,11 @@ import com.persagy.dmp.common.utils.ResultHelper;
|
|
|
import com.persagy.dmp.define.entity.ObjectInfoDefine;
|
|
|
import com.persagy.dmp.define.entity.ObjectTypeDefine;
|
|
|
import com.persagy.dmp.digital.entity.ObjectDigital;
|
|
|
-import com.persagy.dmp.digital.entity.ObjectRelation;
|
|
|
import com.persagy.dmp.mybatis.utils.ConditionUtil;
|
|
|
import com.persagy.dmp.rwd.define.service.IObjectInfoService;
|
|
|
import com.persagy.dmp.rwd.define.service.IObjectTypeService;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -74,8 +72,8 @@ public class ObjectInfoController {
|
|
|
Integer total = service.queryCount(wrapper);
|
|
|
page.setTotal(total);
|
|
|
} else {
|
|
|
- // 20210819 临时处理,优化执行计划,解决Mysql:Out of sort memory问题
|
|
|
- wrapper.select("/*+ SET_VAR(sort_buffer_size = 2M) */*");
|
|
|
+ /// 20210819 临时处理,优化执行计划,解决Mysql:Out of sort memory问题
|
|
|
+ // wrapper.select("/*+ SET_VAR(sort_buffer_size = 2M) */*");
|
|
|
page = service.queryByCondition(QueryCriteriaHelper.toPage(criteria), wrapper);
|
|
|
}
|
|
|
return ResultHelper.multi(page.getRecords(), page.getTotal());
|