|
@@ -11,13 +11,16 @@ import com.fs.framework.service.TokenService;
|
|
import com.fs.qw.mapper.QwUserMapper;
|
|
import com.fs.qw.mapper.QwUserMapper;
|
|
import com.fs.qw.param.SopUserLogsVO;
|
|
import com.fs.qw.param.SopUserLogsVO;
|
|
import com.fs.qw.service.IQwUserService;
|
|
import com.fs.qw.service.IQwUserService;
|
|
|
|
+import com.fs.sop.domain.QwSop;
|
|
import com.fs.sop.domain.SopUserLogs;
|
|
import com.fs.sop.domain.SopUserLogs;
|
|
|
|
+import com.fs.sop.mapper.QwSopMapper;
|
|
import com.fs.sop.params.SopUserLogsParam;
|
|
import com.fs.sop.params.SopUserLogsParam;
|
|
import com.fs.sop.service.ISopUserLogsService;
|
|
import com.fs.sop.service.ISopUserLogsService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -38,6 +41,9 @@ public class SopUserLogsController extends BaseController
|
|
@Autowired
|
|
@Autowired
|
|
private QwUserMapper qwUserMapper;
|
|
private QwUserMapper qwUserMapper;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private QwSopMapper sopMapper;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 查询sopUserLogs列表
|
|
* 查询sopUserLogs列表
|
|
*/
|
|
*/
|
|
@@ -45,12 +51,24 @@ public class SopUserLogsController extends BaseController
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
public TableDataInfo list(SopUserLogsParam sopUserLogs)
|
|
public TableDataInfo list(SopUserLogsParam sopUserLogs)
|
|
{
|
|
{
|
|
- startPage();
|
|
|
|
sopUserLogs.setStatus(1);
|
|
sopUserLogs.setStatus(1);
|
|
- List<SopUserLogsVO> list = sopUserLogsService.selectSopUserLogsList(sopUserLogs);
|
|
|
|
|
|
+
|
|
|
|
+ QwSop qwSop = sopMapper.selectQwSopById(sopUserLogs.getSopId());
|
|
|
|
+ Integer filterMode = qwSop.getFilterMode();
|
|
|
|
+
|
|
|
|
+ List<SopUserLogsVO> list=null;
|
|
|
|
+ if(filterMode == null || filterMode == 1){
|
|
|
|
+ startPage();
|
|
|
|
+ list = sopUserLogsService.selectSopUserLogsList(sopUserLogs);
|
|
|
|
+ }else {
|
|
|
|
+ startPage();
|
|
|
|
+ list = sopUserLogsService.selectSopUserLogsGroupListByParam(sopUserLogs);
|
|
|
|
+ }
|
|
|
|
+
|
|
list.forEach(item->{
|
|
list.forEach(item->{
|
|
item.setQwUserName(qwUserMapper.selectQwUserByQwUserIdAndCorpId(item.getQwUserId(), item.getCorpId()));
|
|
item.setQwUserName(qwUserMapper.selectQwUserByQwUserIdAndCorpId(item.getQwUserId(), item.getCorpId()));
|
|
});
|
|
});
|
|
|
|
+
|
|
return getDataTable(list);
|
|
return getDataTable(list);
|
|
}
|
|
}
|
|
|
|
|