优化代码

This commit is contained in:
jinqiming 2021-10-27 11:24:00 +08:00
parent 849430fa1c
commit 815555c9bc
2 changed files with 17 additions and 2 deletions

View File

@ -74,7 +74,7 @@ public class SysOaTaskController extends BaseController
@RequiresPermissions("system:task:taskDistributeList")
@PostMapping("/taskDistributeList")
@ResponseBody
public TableDataInfo visitLogList(SysOaTaskDistribute sysOaTaskDistribute)
public TableDataInfo taskDistributeList(SysOaTaskDistribute sysOaTaskDistribute)
{
startPage();
List<SysOaTaskDistribute> list = sysOaTaskDistributeService.selectSysOaTaskDistributeList(sysOaTaskDistribute);
@ -234,6 +234,7 @@ public class SysOaTaskController extends BaseController
private void warpSysOaTask(List<SysOaTaskDistribute> sysOaTaskDistributes){
sysOaTaskDistributes.forEach(t->{
SysOaTask sysOaTask = sysOaTaskService.selectSysOaTaskById(t.getTaskNo());
sysOaTask.setCreateBy(sysUserService.selectUserById(Long.parseLong(sysOaTask.getCreateBy())).getUserName());
t.setSysOaTask(sysOaTask);
t.setCreateBy(sysUserService.selectUserById(Long.parseLong(t.getCreateBy())).getUserName());
});

View File

@ -197,6 +197,13 @@
return $.table.selectDictLabel(taskTypeDatas, row.sysOaTask.taskType);
}
},
{
field: 'createBy',
title: '分配人',
formatter: function(value, row, index) {
return row.sysOaTask.createBy;
}
},
{
title: '操作',
align: 'center',
@ -317,6 +324,13 @@
return $.table.selectDictLabel(taskTypeDatas, row.sysOaTask.taskType);
}
},
{
field: 'createBy',
title: '分配人',
formatter: function(value, row, index) {
return row.sysOaTask.createBy;
}
},
{
title: '操作',
align: 'center',
@ -378,7 +392,7 @@
},
{
field: 'taskDistributeId',
title: '分配人'
title: '待处理人'
},
{
field: 'taskExecuteStatus',