|
|
@ -18,6 +18,7 @@ import com.hxhq.business.service.*; |
|
|
import com.hxhq.common.core.constant.CacheConstants; |
|
|
import com.hxhq.common.core.constant.CacheConstants; |
|
|
import com.hxhq.common.core.exception.ServiceException; |
|
|
import com.hxhq.common.core.exception.ServiceException; |
|
|
import com.hxhq.common.core.utils.DateUtils; |
|
|
import com.hxhq.common.core.utils.DateUtils; |
|
|
|
|
|
import com.hxhq.common.core.utils.StringUtils; |
|
|
import com.hxhq.common.core.web.controller.BaseController; |
|
|
import com.hxhq.common.core.web.controller.BaseController; |
|
|
import com.hxhq.common.core.web.domain.AjaxResult; |
|
|
import com.hxhq.common.core.web.domain.AjaxResult; |
|
|
import com.hxhq.common.core.web.page.TableDataInfo; |
|
|
import com.hxhq.common.core.web.page.TableDataInfo; |
|
|
@ -25,7 +26,6 @@ import com.hxhq.common.redis.service.RedisService; |
|
|
import com.hxhq.common.security.annotation.RequiresPermissions; |
|
|
import com.hxhq.common.security.annotation.RequiresPermissions; |
|
|
import com.hxhq.common.security.utils.SecurityUtils; |
|
|
import com.hxhq.common.security.utils.SecurityUtils; |
|
|
import com.hxhq.system.service.ISysUserService; |
|
|
import com.hxhq.system.service.ISysUserService; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
|
import org.aspectj.weaver.loadtime.Aj; |
|
|
import org.aspectj.weaver.loadtime.Aj; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
@ -144,19 +144,28 @@ public class PublicController extends BaseController { |
|
|
if (study.getStatus() != null && study.getStatus().intValue() > 0) { |
|
|
if (study.getStatus() != null && study.getStatus().intValue() > 0) { |
|
|
queryWrapper.eq("status", study.getStatus()); |
|
|
queryWrapper.eq("status", study.getStatus()); |
|
|
} |
|
|
} |
|
|
if (com.hxhq.common.core.utils.StringUtils.isNoneBlank(study.getName())) { |
|
|
|
|
|
queryWrapper.like("s.name", study.getName()); |
|
|
|
|
|
|
|
|
if (StringUtils.isNoneBlank(study.getName())) { |
|
|
|
|
|
queryWrapper.like("name", study.getName()); |
|
|
} |
|
|
} |
|
|
if (com.hxhq.common.core.utils.StringUtils.isNoneBlank(study.getSn())) { |
|
|
|
|
|
queryWrapper.like("s.sn", study.getSn()); |
|
|
|
|
|
|
|
|
if (StringUtils.isNoneBlank(study.getSn())) { |
|
|
|
|
|
queryWrapper.like("sn", study.getSn()); |
|
|
} |
|
|
} |
|
|
if (study.getLeader() != null && study.getLeader().longValue() > 0) { |
|
|
|
|
|
queryWrapper.eq("leader", study.getLeader()); |
|
|
|
|
|
|
|
|
if (StringUtils.isNoneBlank(study.getLeaderName())) { |
|
|
|
|
|
queryWrapper.like("leader_name", study.getLeaderName()); |
|
|
} |
|
|
} |
|
|
List<Study> list = studyService.list(queryWrapper); |
|
|
List<Study> list = studyService.list(queryWrapper); |
|
|
return getDataTable(list); |
|
|
return getDataTable(list); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 查询部长列表 |
|
|
|
|
|
*/ |
|
|
|
|
|
@GetMapping("/bzList") |
|
|
|
|
|
public AjaxResult bzList() |
|
|
|
|
|
{ |
|
|
|
|
|
return AjaxResult.success(sysUserService.selectBzList()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|