小么熊🐻 1 жил өмнө
parent
commit
18963f9846

+ 27 - 2
jsjp-admin/src/main/java/com/miaxis/app/controller/tms/TmsStudentInfoController.java

@@ -7,6 +7,7 @@ import com.miaxis.common.core.domain.Response;
 import com.miaxis.common.core.page.ResponsePageInfo;
 import com.miaxis.tms.dto.TmsStudentInfoDTO;
 import com.miaxis.tms.dto.TmsStudentInfoIdDTO;
+import com.miaxis.tms.dto.TmsStudentInfoQrDTO;
 import com.miaxis.tms.service.ITmsStudentInfoService;
 import com.miaxis.tms.vo.TmsStudentInfoIdVo;
 import com.miaxis.tms.vo.TmsStudentInfoVo;
@@ -38,10 +39,10 @@ public class TmsStudentInfoController extends BaseController {
     private ITmsStudentInfoService studentInfoService;
 
     /**
-     * 查询考场信息列表
+     * 查询学员信息列表
      */
     @GetMapping("/list")
-    @ApiOperation("查询考场信息列表")
+    @ApiOperation("查询学员信息列表")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "pageNum", value = "当前页码", dataType = "int", paramType = "query", required = false),
             @ApiImplicitParam(name = "pageSize", value = "每页数据量", dataType = "int", paramType = "query", required = false),
@@ -63,5 +64,29 @@ public class TmsStudentInfoController extends BaseController {
     }
 
 
+
+    /**
+     * 绑定IP
+     */
+    @GetMapping("/updateStudentAppCoachIdById")
+    @ApiOperation("根据ID获取学员员详细信息")
+    public Response updateStuAppCoachIdById(TmsStudentInfoQrDTO studentInfoQrDTO) {
+        studentInfoService.upStuAppCoachIdById(studentInfoQrDTO);
+        return Response.success();
+    }
+
 }
 
+
+
+
+
+
+
+
+
+
+
+
+
+

+ 0 - 1
jsjp-service/src/main/java/com/miaxis/tms/dto/TmsStudentInfoQrDTO.java

@@ -16,7 +16,6 @@ public class TmsStudentInfoQrDTO implements Serializable {
     @ApiModelProperty(value = "id",required = true)
     private Long appCoachId;
 
-
     @ApiModelProperty(value = "地区编号",required = true)
     private String city;
 

+ 3 - 0
jsjp-service/src/main/java/com/miaxis/tms/mapper/TmsStudentInfoMapper.java

@@ -3,6 +3,7 @@ package com.miaxis.tms.mapper;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.miaxis.tms.dto.TmsStudentInfoDTO;
 import com.miaxis.tms.dto.TmsStudentInfoIdDTO;
+import com.miaxis.tms.dto.TmsStudentInfoQrDTO;
 import com.miaxis.tms.vo.TmsStudentInfoIdVo;
 import com.miaxis.tms.vo.TmsStudentInfoVo;
 
@@ -22,4 +23,6 @@ public interface TmsStudentInfoMapper extends BaseMapper<TmsStudentInfoVo> {
     List<TmsStudentInfoVo> getTmsStudentInfoList(TmsStudentInfoDTO studentDTO);
 
     TmsStudentInfoIdVo getTmsStudentInfoById(TmsStudentInfoIdDTO stuIdDTO);
+
+    int upStuAppCoachIdById(TmsStudentInfoQrDTO studentInfoQrDTO);
 }

+ 2 - 3
jsjp-service/src/main/java/com/miaxis/tms/service/ITmsStudentInfoService.java

@@ -1,10 +1,9 @@
 package com.miaxis.tms.service;
 
 import com.baomidou.mybatisplus.extension.service.IService;
-import com.miaxis.tms.domain.CoachInfo;
-import com.miaxis.tms.dto.CoachInfoIdDTO;
 import com.miaxis.tms.dto.TmsStudentInfoDTO;
 import com.miaxis.tms.dto.TmsStudentInfoIdDTO;
+import com.miaxis.tms.dto.TmsStudentInfoQrDTO;
 import com.miaxis.tms.vo.TmsStudentInfoIdVo;
 import com.miaxis.tms.vo.TmsStudentInfoVo;
 
@@ -26,5 +25,5 @@ public interface ITmsStudentInfoService extends IService<TmsStudentInfoVo> {
 
     TmsStudentInfoIdVo getTmsStudentInfoById(TmsStudentInfoIdDTO stuIdDTO);
 
-
+    int upStuAppCoachIdById(TmsStudentInfoQrDTO studentInfoQrDTO);
 }

+ 7 - 0
jsjp-service/src/main/java/com/miaxis/tms/service/impl/TmsStudentInfoServiceImpl.java

@@ -5,6 +5,7 @@ import com.miaxis.common.annotation.DataSource;
 import com.miaxis.common.enums.DataSourceTypeEnum;
 import com.miaxis.tms.dto.TmsStudentInfoDTO;
 import com.miaxis.tms.dto.TmsStudentInfoIdDTO;
+import com.miaxis.tms.dto.TmsStudentInfoQrDTO;
 import com.miaxis.tms.mapper.TmsStudentInfoMapper;
 import com.miaxis.tms.service.ITmsStudentInfoService;
 import com.miaxis.tms.vo.TmsStudentInfoIdVo;
@@ -42,4 +43,10 @@ public class TmsStudentInfoServiceImpl extends ServiceImpl<TmsStudentInfoMapper,
         return mapper.getTmsStudentInfoById(stuIdDTO);
     }
 
+    @Override
+    public int upStuAppCoachIdById(TmsStudentInfoQrDTO studentInfoQrDTO) {
+        return mapper.upStuAppCoachIdById(studentInfoQrDTO);
+    }
+
+
 }

+ 5 - 0
jsjp-service/src/main/resources/mapper/tms/TmsStudentInfoMapper.xml

@@ -140,4 +140,9 @@
     </select>
 
 
+
+    <update id="upStuAppCoachIdById" parameterType="com.miaxis.tms.dto.TmsStudentInfoQrDTO">
+        update TMS_STUDENT_INFO@tms${city} set tso_app_coach_id = #{appCoachId} where tso_id = #{id}
+    </update>
+
 </mapper>