| | |
| | | |
| | | try{ |
| | | Integer wrkNo = null; |
| | | Integer taskNo = null; |
| | | String taskNo = null; |
| | | Integer status = null; |
| | | Date modiTimeStart = null, modiTimeEnd = null; |
| | | for (Map.Entry<String, Object> entry : param.entrySet()) { |
| | |
| | | } else if (entry.getKey().equals("wrk_no")) { |
| | | wrkNo = Integer.parseInt(val); |
| | | } else if (entry.getKey().equals("task_no")) { |
| | | taskNo = Integer.parseInt(val); |
| | | taskNo = val; |
| | | } else if (entry.getKey().equals("status")) { |
| | | status = Integer.parseInt(val); |
| | | } |
| | | } |
| | | |
| | | EntityWrapper<TaskWrk> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | // |
| | | // EntityWrapper<TaskWrk> wrapper = new EntityWrapper<>(); |
| | | // excludeTrash(param); |
| | | // convert(param, wrapper); |
| | | // if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | |
| | | List<TaskWrk> taskWrkList = taskWrkService.selectTaskWrkList(wrkNo,taskNo,status,modiTimeStart,modiTimeEnd, curr, limit); |
| | | Page<TaskWrk> page = new Page<TaskWrk>(curr, limit).setRecords(taskWrkList); |
| | |
| | | taskWrk.setMemo("手动强制删除!!!"); |
| | | taskWrk.setModiTime(now); |
| | | taskWrk.setModiUser(getUserId()); |
| | | taskWrk.setCompleteTime(now); |
| | | taskWrk.setCancelTime(now); |
| | | if (!taskWrkService.updateById(taskWrk)){ |
| | | log.error("删除失败" + taskWrk); |
| | | return R.error("删除失败" + taskWrk); |