LogoDao.xml 471 B

1234567891011121314
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="platform.modules.government.dao.LogoDao">
  4. <update id="updateOtherLogo">
  5. update z_logo set is_start=false where del_flag=false and id!=#{id}
  6. </update>
  7. <select id="countLogo" resultType="Integer">
  8. select count(id) from z_logo where id!=#{id} and is_start=true;
  9. </select>
  10. </mapper>