|
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.ylx.common.annotation.Log;
|
|
|
import com.ylx.common.core.controller.BaseController;
|
|
|
import com.ylx.common.core.domain.R;
|
|
|
+import com.ylx.common.core.domain.model.LoginUser;
|
|
|
import com.ylx.common.core.domain.model.WxLoginUser;
|
|
|
import com.ylx.common.enums.BusinessType;
|
|
|
import com.ylx.common.exception.ServiceException;
|
|
@@ -199,6 +200,7 @@ public class TJsController extends BaseController {
|
|
|
@RequestMapping(value = "/select", method = RequestMethod.GET)
|
|
|
@ApiOperation("分页查询数据")
|
|
|
public Page<TJs> selectSp(Page<TJs> page, TJs js) {
|
|
|
+ LoginUser loginUser = this.getLoginUser();
|
|
|
LambdaQueryWrapper<TJs> mhCompanyLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
mhCompanyLambdaQueryWrapper.eq(null != js.getnTong(), TJs::getnTong, js.getnTong()).
|
|
|
like(StringUtils.isNotBlank(js.getcName()), TJs::getcName, js.getcName()).
|
|
@@ -208,6 +210,10 @@ public class TJsController extends BaseController {
|
|
|
eq(js.getnSex() != null, TJs::getnSex, js.getnSex()).
|
|
|
eq(js.getDeptId() != null, TJs::getDeptId, js.getDeptId()).
|
|
|
orderByDesc(TJs::getDtCreateTime);
|
|
|
+ //部门数据
|
|
|
+ if(loginUser.getDeptId() != 100){
|
|
|
+ mhCompanyLambdaQueryWrapper.eq(TJs::getDeptId,loginUser);
|
|
|
+ }
|
|
|
if (js.getPageType() == 1) {
|
|
|
mhCompanyLambdaQueryWrapper.eq(TJs::getnTong, JsStatusEnum.JS_PASS.getCode());
|
|
|
} else {
|