Преглед изворни кода

预报名学员添加单个学员 查询接口

zhangbin пре 1 година
родитељ
комит
9440aa0758

+ 11 - 1
jsjp-admin/src/main/java/com/miaxis/app/controller/tms/TmsStudentInfoController.java

@@ -168,11 +168,21 @@ public class TmsStudentInfoController extends BaseController {
      * 根据学员id获取详细信息
      */
     @GetMapping("/getTmsStudentInfoById")
-    @ApiOperation("根据ID获取学员详细信息(无时间点)")
+    @ApiOperation("根据ID获取学员详细信息(无时间点)")
     public Response<TmsStudentInfoIdVo> getTmsStudentInfoById(TmsStudentInfoIdDTO studentInfoIdDTO) {
         return Response.success(studentInfoService.getTmsStudentInfoById(studentInfoIdDTO));
     }
 
+    /**
+     * 根据预约报名学员id获取详细信息
+     */
+    @GetMapping("/getTmsStudentInfoTempById")
+    @ApiOperation("根据ID获取预约报名学员详细信息(无时间点)")
+    public Response<TmsStudentInfoIdVo> getTmsStudentInfoTempById(TmsStudentInfoIdDTO studentInfoIdDTO) {
+        return Response.success(studentInfoService.getTmsStudentInfoTempById(studentInfoIdDTO));
+    }
+
+
     /**
      * 温州根据学员id获取详细信息
      */

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

@@ -21,6 +21,8 @@ public interface TmsStudentInfoMapper extends BaseMapper<TmsStudentInfoVo> {
 
     TmsStudentInfoIdVo getTmsStudentInfoById(TmsStudentInfoIdDTO stuIdDTO);
 
+    TmsStudentInfoIdVo getTmsStudentInfoTempById(TmsStudentInfoIdDTO stuIdDTO);
+
     TmsStudentInfoIdVo getWzTmsStudentInfoById(TmsStudentInfoApplyIdDTO stuIdDTO);
 
     TmsStudentInfoIdVo getWzOldTmsStudentInfoById(TmsStudentInfoApplyIdDTO stuIdDTO);

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

@@ -30,6 +30,8 @@ public interface ITmsStudentInfoService extends IService<TmsStudentInfoVo> {
 
     TmsStudentInfoIdVo getTmsStudentInfoById(TmsStudentInfoIdDTO stuIdDTO);
 
+    TmsStudentInfoIdVo getTmsStudentInfoTempById(TmsStudentInfoIdDTO stuIdDTO);
+
     int upStuAppCoachIdById(TmsStudentInfoQrDTO studentInfoQrDTO);
 
     List<TmsLogFaceVo> getTmsLogFaceListByStuId(TmsStudentInfoIdDTO studentInfoIdDTO);

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

@@ -75,6 +75,12 @@ public class TmsStudentInfoServiceImpl extends ServiceImpl<TmsStudentInfoMapper,
         }
     }
 
+
+    @Override
+    public TmsStudentInfoIdVo getTmsStudentInfoTempById(TmsStudentInfoIdDTO stuIdDTO) {
+        return mapper.getTmsStudentInfoTempById(stuIdDTO);
+    }
+
     @Override
     public int upStuAppCoachIdById(TmsStudentInfoQrDTO studentInfoQrDTO) {
         return mapper.upStuAppCoachIdById(studentInfoQrDTO);

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

@@ -282,6 +282,37 @@
 
 
 
+    <select id="getTmsStudentInfoTempById"  parameterType="com.miaxis.tms.dto.TmsStudentInfoIdDTO" resultMap="TmsStudentInfoIdResultMap">
+        SELECT t.tso_id,
+               t.tso_cardtype,
+               t.tso_Idcard,
+               t.tso_name,
+               t.tso_sex,
+               t.tso_phone,
+               t.tso_source,
+               t.TSO_NATIONALITY,
+               t.tso_traintype,
+               t.tso_active,
+               t.tso_record_date,
+               t.tso_address,
+               t.tso_photo_path,
+               t.tso_password,
+               S.TSI_ID,
+               S.TSI_NAME,
+               S.TSI_SHORTNAME,
+               S.TSI_ADDRESS,
+               S.TSI_INSCODE,
+               S.TSI_QXBH,
+               S.TSI_QXMC,
+               S.TSI_DQBH,
+               S.TSI_DQMC
+        FROM TMS_STUDENT_INFO_temp@tms${city} T
+        LEFT JOIN TMS_SCHOOL_INFO@tms${city} S
+            ON T.TSO_SCHOOL_ID = S.TSI_ID
+        WHERE T.TSO_ID = #{id}
+    </select>
+
+