|
|
|
@ -5,6 +5,8 @@ import java.util.List; |
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
|
|
import com.cjy.appointmentteamdata.domain.AppointmentPeopleInfo; |
|
|
|
|
import com.ruoyi.common.core.domain.entity.SysUser; |
|
|
|
|
import com.ruoyi.common.utils.SecurityUtils; |
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
@ -47,7 +49,11 @@ public class AppointmentTeamDataController extends BaseController |
|
|
|
|
{ |
|
|
|
|
startPage(); |
|
|
|
|
appointmentTeamData.setOrganCode(getUserOrganCode()); |
|
|
|
|
appointmentTeamData.setCreateBy(getUserId().toString()); |
|
|
|
|
SysUser user = SecurityUtils.getLoginUser().getUser(); |
|
|
|
|
if(user.getRoles().stream() |
|
|
|
|
.noneMatch(role -> role.getRoleId() == 1)){ |
|
|
|
|
appointmentTeamData.setCreateBy(getUserId().toString()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
List<AppointmentTeamData> list = appointmentTeamDataService.selectAppointmentTeamDataList(appointmentTeamData); |
|
|
|
|
return getDataTable(list); |
|
|
|
|