洪城义警-正式版后台
zengh
2022-02-21 7722aa86f1a0e2aacbf2fd17203789619e1c64e3
src/main/java/org/springblade/modules/zc/mapper/ZcMapper.xml
@@ -48,12 +48,26 @@
    <!--注册新增-->
   <insert id="inster" useGeneratedKeys="true" keyProperty="id"  keyColumn="id">
       insert  into act_zc(username,password,sname,sex,phone,zctime,deptid,parent_id,jurisdiction,cardid) values(#{username},#{password},#{sname},#{sex},#{phone},#{zctime},#{deptid},#{parentId},#{jurisdiction},#{cardid})
   </insert>
    <insert id="inster" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
        insert into act_zc(username, password, sname, sex, phone, zctime, deptid, parent_id, jurisdiction, cardid)
        values (#{username}, #{password}, #{sname}, #{sex}, #{phone}, #{zctime}, #{deptid}, #{parentId},
                #{jurisdiction}, #{cardid})
    </insert>
    <select id="selectType" resultType="String">
        select type from act_zc where username=#{param1}
        select type
        from act_zc
        where username = #{param1}
    </select>
    <select id="selecyZcCount" resultType="java.lang.Integer">
        select count(*)
        from act_zc
        where username =#{account}
    </select>
    <delete id="deleteZc">
        delete from  act_zc where username=#{account}
    </delete>
</mapper>