Compare commits
2 Commits
e2111c6d12
...
a4d7ebc849
Author | SHA1 | Date | |
---|---|---|---|
|
a4d7ebc849 | ||
|
f68dbfa414 |
@ -19,7 +19,7 @@ import java.util.List;
|
||||
* @date 2024-03-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/drivingSchool/applet/schoolCoach")
|
||||
@RequestMapping("/admin-api/drivingSchool/applet/schoolCoach")
|
||||
public class DriveSchoolCoachAppletController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
@ -38,7 +38,7 @@ public class DriveSchoolCoachAppletController extends BaseController
|
||||
/**
|
||||
* 查询驾校教练列表(更多)
|
||||
*/
|
||||
@GetMapping("/ListAll")
|
||||
@GetMapping("/listAll")
|
||||
public CommonResult list(DriveSchoolCoach driveSchoolCoach)
|
||||
{
|
||||
List<DriveSchoolCoach> list = driveSchoolCoachService.selectDriveSchoolCoachListAll(driveSchoolCoach);
|
||||
|
@ -280,6 +280,9 @@ public class DrivePayServiceImpl implements DrivePayService {
|
||||
// LoginUser loginUser = SecurityFrameworkUtils.getLoginUser();
|
||||
// String avatar = loginUser.getInfo().get("avatar");
|
||||
AdminUserRespDTO sysUser = userApi.getUser(SecurityFrameworkUtils.getLoginUserId());
|
||||
if (ObjectUtils.isEmpty(sysUser)){
|
||||
throw new RuntimeException("请先登录!");
|
||||
}
|
||||
//SysUser sysUser = userService.selectUserById(SecurityFrameworkUtils.getLoginUserId());
|
||||
PayVo payVo = drivePayMapper.findPayByUserId(SecurityFrameworkUtils.getLoginUserId());
|
||||
if(ObjectUtils.isNotEmpty(payVo)){
|
||||
|
@ -71,13 +71,11 @@ public class DriveSchoolCourseServiceImpl implements IDriveSchoolCourseService
|
||||
@Override
|
||||
public IPage<DriveSchoolCourse> selectDriveSchoolCourseList(DriveSchoolCourse driveSchoolCourse, Page<DriveSchoolCourse> page)
|
||||
{
|
||||
Long userId = SecurityFrameworkUtils.getLoginUserId();
|
||||
AdminUserRespDTO user = userApi.getUser(userId);
|
||||
Long deptId = user.getDeptId();
|
||||
Long deptId = SecurityFrameworkUtils.getLoginUserDeptId();
|
||||
driveSchoolCourse.setDeptId(deptId);
|
||||
if (deptId == 100){
|
||||
driveSchoolCourse.setDeptId(null);
|
||||
}
|
||||
// if (deptId == 100){
|
||||
// driveSchoolCourse.setDeptId(null);
|
||||
// }
|
||||
IPage<DriveSchoolCourse> driveSchoolCourseIPage = driveSchoolCourseMapper.selectDriveSchoolCourseList(driveSchoolCourse, page);
|
||||
List<DriveSchoolCourse> driveSchoolCourses = driveSchoolCourseIPage.getRecords();
|
||||
for (DriveSchoolCourse driveSchoolCours : driveSchoolCourses) {
|
||||
|
@ -108,15 +108,13 @@ public class DriveSchoolFeedbackServiceImpl implements IDriveSchoolFeedbackServi
|
||||
@Override
|
||||
public int insertDriveSchoolFeedback(DriveSchoolFeedback driveSchoolFeedback) throws Exception {
|
||||
Long userId = SecurityFrameworkUtils.getLoginUserId();
|
||||
// Long userId = SecurityUtils.getUserId();
|
||||
// SysUser sysUser = sysUserMapper.selectUserById(userId);
|
||||
AdminUserRespDTO sysUser = userApi.getUser(userId);
|
||||
if(ObjectUtils.isNotEmpty(sysUser)){
|
||||
driveSchoolFeedback.setUserName(sysUser.getNickname());
|
||||
}
|
||||
DriveSchoolPay driveSchoolPay = driveSchoolPayService.selectByUserId(userId);
|
||||
if (ObjectUtils.isEmpty(driveSchoolPay)){
|
||||
throw new Exception("请先报名!");
|
||||
throw new RuntimeException("请先报名!");
|
||||
}
|
||||
driveSchoolFeedback.setUserId(userId);
|
||||
driveSchoolFeedback.setJlId(driveSchoolPay.getJlId());
|
||||
|
@ -276,12 +276,13 @@ public class DriveSchoolReservationCourseServiceImpl implements IDriveSchoolRese
|
||||
AdminUserRespDTO sysUser = userApi.getUser(userId);
|
||||
// SysUser sysUser = sysUserMapper.selectUserById(userId);
|
||||
Long deptId1 = sysUser.getDeptId();
|
||||
deptId1 = 100L;
|
||||
//更新学员签到签退时间
|
||||
if (ObjectUtils.isNotEmpty(driveSchoolReservationCourse) && ObjectUtils.isNotEmpty(driveSchoolReservationCourse.getStuSignState()) && deptId1==100 && driveSchoolReservationCourse.getStuSignState().equals("1")){
|
||||
if (ObjectUtils.isNotEmpty(driveSchoolReservationCourse) && ObjectUtils.isNotEmpty(driveSchoolReservationCourse.getStuSignState()) && ObjectUtils.isNotEmpty(deptId1) && deptId1==100 && driveSchoolReservationCourse.getStuSignState().equals("1")){
|
||||
driveSchoolReservationCourse.setStuSigninTime(DateUtils.getNowDate());
|
||||
driveSchoolReservationCourseMapper.updateDriveSchoolReservationCourse(driveSchoolReservationCourse);
|
||||
}
|
||||
if (ObjectUtils.isNotEmpty(driveSchoolReservationCourse) && ObjectUtils.isNotEmpty(driveSchoolReservationCourse.getStuSignState()) && deptId1==100 && driveSchoolReservationCourse.getStuSignState().equals("2")){
|
||||
if (ObjectUtils.isNotEmpty(driveSchoolReservationCourse) && ObjectUtils.isNotEmpty(driveSchoolReservationCourse.getStuSignState()) && ObjectUtils.isNotEmpty(deptId1) && deptId1==100 && driveSchoolReservationCourse.getStuSignState().equals("2")){
|
||||
driveSchoolReservationCourse.setStuSignoutTime(DateUtils.getNowDate());
|
||||
driveSchoolReservationCourseMapper.updateDriveSchoolReservationCourse(driveSchoolReservationCourse);
|
||||
Date tempStartTime = new Date();
|
||||
|
@ -71,7 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="entity.experienceYear != null "> and experience_year = #{entity.experienceYear}</if>
|
||||
<if test="entity.instructorDesc != null and entity.instructorDesc != ''"> and instructor_desc = #{entity.instructorDesc}</if>
|
||||
<if test="entity.subjectType != null and entity.subjectType != ''"> and subject_type like concat('%',#{entity.subjectType},'%')</if>
|
||||
<if test="entity.drivingYear != null "> and driving_year = #{drivingYear}</if>
|
||||
<if test="entity.drivingYear != null "> and driving_year = #{entity.drivingYear}</if>
|
||||
<if test="entity.driveCardType != null and entity.driveCardType != ''"> and drive_card_type = #{entity.driveCardType}</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
|
Loading…
Reference in New Issue
Block a user