|
@@ -2,6 +2,7 @@ package com.ylx.web.controller.massage;
|
|
|
|
|
|
import cn.binarywang.wx.miniapp.api.WxMaService;
|
|
|
import cn.binarywang.wx.miniapp.bean.WxMaSubscribeMessage;
|
|
|
+import cn.hutool.json.JSONUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.ylx.common.annotation.Log;
|
|
@@ -201,6 +202,7 @@ public class TJsController extends BaseController {
|
|
|
@ApiOperation("分页查询数据")
|
|
|
public Page<TJs> selectSp(Page<TJs> page, TJs js) {
|
|
|
LoginUser loginUser = this.getLoginUser();
|
|
|
+ log.info("loginUser:{}", JSONUtil.toJsonStr(loginUser));
|
|
|
LambdaQueryWrapper<TJs> mhCompanyLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
mhCompanyLambdaQueryWrapper.eq(null != js.getnTong(), TJs::getnTong, js.getnTong()).
|
|
|
like(StringUtils.isNotBlank(js.getcName()), TJs::getcName, js.getcName()).
|
|
@@ -212,7 +214,7 @@ public class TJsController extends BaseController {
|
|
|
orderByDesc(TJs::getDtCreateTime);
|
|
|
//部门数据
|
|
|
if(loginUser.getDeptId() != 100){
|
|
|
- mhCompanyLambdaQueryWrapper.eq(TJs::getDeptId,loginUser);
|
|
|
+ mhCompanyLambdaQueryWrapper.eq(TJs::getDeptId,loginUser.getDeptId().toString());
|
|
|
}
|
|
|
if (js.getPageType() == 1) {
|
|
|
mhCompanyLambdaQueryWrapper.eq(TJs::getnTong, JsStatusEnum.JS_PASS.getCode());
|