优化代码
This commit is contained in:
parent
849430fa1c
commit
815555c9bc
|
@ -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());
|
||||
});
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue