智慧保安后台管理-外网项目备份
Administrator
2021-09-27 345d17cf82e1bbc1fbfbeec10193c2bed59cd674
src/main/java/org/springblade/modules/zc/mapper/ZcMapper.xml
@@ -9,7 +9,7 @@
        <result column="password" property="password"/>
        <result column="sname" property="sname"/>
        <result column="sex" property="sex"/>
        <result column="phone" property="phone"/>
        <result column="cardid" property="cardid"/>
        <result column="zctime" property="zctime"/>
        <result column="type" property="type"/>
        <result column="deptid" property="deptid"/>
@@ -36,6 +36,9 @@
        <if test="zc.username!=null and zc.username!=''">
            and z.username like concat(concat('%', #{zc.username}),'%')
        </if>
        <if test="zc.cardid!=null and zc.cardid!=''">
            and z.cardid like concat(concat('%', #{zc.cardid}),'%')
        </if>
    </select>
@@ -45,10 +48,17 @@
        values (#{username}, #{password}, #{sname}, #{cardid}, #{zctime}, #{deptid})
    </insert>
    <!--根据用户名用户注册信息-->
    <select id="selectType" resultType="String">
        select type
        from act_zc
        where username = #{param1}
    </select>
    <!--根据用户名查询注册用户注册信息-->
    <select id="getAuditSuccessInfo" resultType="org.springblade.modules.zc.entity.Zc">
        select * from act_zc
        where username = #{param1}
    </select>
</mapper>