洪城义警-正式版后台
tangzy
2022-02-25 0a4fbcd9d997005bda2b5ac5dc9daa586342d7db
src/main/java/org/springblade/modules/zc/mapper/ZcMapper.xml
@@ -16,6 +16,10 @@
        <result column="parent_id" property="parentId"/>
        <result column="jurisdiction" property="jurisdiction"/>
        <result column="cardid" property="cardid"/>
        <result column="examination_type" property="examination_type"/>
        <result column="examination_mx" property="examination_mx"/>
        <result column="audit_time" property="auditTime"/>
        <result column="address" property="address"/>
    </resultMap>
@@ -37,17 +41,34 @@
        <if test="zc.cardid != null and zc.cardid != '' ">
            and cardid like CONCAT('%',#{zc.cardid},'%')
        </if>
        and type != 1
        <if test="zc.examination_type != null and zc.examination_type != '' ">
            and examination_type = #{zc.examination_type}
        </if>
        and type != 1 ORDER BY zctime DESC
    </select>
    <!--注册新增-->
   <insert id="inster">
       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,address)
        values (#{username}, #{password}, #{sname}, #{sex}, #{phone}, #{zctime}, #{deptid}, #{parentId},
                #{jurisdiction}, #{cardid},#{address})
    </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>