Commit 97392bde authored by 蔡镇泽's avatar 蔡镇泽

任务分配调整

parent aeed983a
......@@ -152,7 +152,7 @@ public class TaskServiceImpl implements TaskService {
@Override
public Result<Object> allotTask(String taskId, Integer empId) {
ChAprEmp chAprEmp = aprEmpMapper.selectById(empId);
if (chAprEmp != null && chAprEmp.getGroupLeader() != null && chAprEmp.getGroupLeader() != 0) {
if (chAprEmp == null || chAprEmp.getGroupLeader() == null || chAprEmp.getGroupLeader() != 0) {
//不是组长
return Result.failed("评定人员必须是组长!");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment