智慧保安后台管理-外网
tangzy
2021-09-02 92d375e11f68b898cd8a46cf02bcb82cd469ded5
src/main/java/org/springblade/modules/training/mapper/TrainingRegistrationMapper.xml
@@ -9,7 +9,7 @@
            bt.dept_name AS deptName,
            bt0.dept_name AS trainUnitName,
            bu.real_name realName,bu.phone,bu.cardid idCardNo,
            ke.start_time trainExamTime,ke.exam_name trainExamName,ke.exam_type examType,
            ke.start_time trainExamTime,if(ke.audit_status=1,ke.exam_name,"") trainExamName,ke.exam_type examType,
            "保安证" applyCard
        FROM
            sys_training_registration sr
@@ -50,7 +50,7 @@
            and bu.real_name like concat('%', #{trainingRegistration.realName},'%')
        </if>
        <if test="trainingRegistration.cancel!=null">
            and sr.cancel = #{trainingRegistration.cancel}
            and (sr.training_unit_id is null or ke.audit_status = 3)
        </if>
    </select>
@@ -143,4 +143,27 @@
        </if>
        limit 1
    </select>
    <!--查询已报名培训公司未关联考试的报名信息-->
    <select id="getTrainIds" resultType="java.lang.Long">
        SELECT
        str.id
        FROM
        sys_training_registration str
        left join
        blade_user bu
        on
        str.user_id = bu.id
        left join
            ksxt_exam ke
        on
            ke.id = str.train_exam_id
        WHERE
        1=1
        and str.is_exam = 1
        and str.cancel = 1
        and bu.is_train = 1
        and (str.train_exam_id is null or ke.audit_status = 3)
        limit 0,#{number}
    </select>
</mapper>