后台服务
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

49 rindas
1.4 KiB

  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="com.iformall.mapper.MouldPatchSignMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.sm.MouldPatchSign">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="type" jdbcType="INTEGER" property="type" />
  7. <result column="title" jdbcType="VARCHAR" property="title" />
  8. </resultMap>
  9. <sql id="allColumns">
  10. `id`,`type` ,`title`
  11. </sql>
  12. <sql id="dynamicWhereConditions">
  13. where `is_del` = 0
  14. <if test=" null != id ">
  15. and `id` = #{id}
  16. </if>
  17. <if test=" null != type ">
  18. and `type` = #{type}
  19. </if>
  20. <if test=" null != title ">
  21. and `title` like concat('%', #{title},'%')
  22. </if>
  23. <if test=" null != ids ">
  24. and id in
  25. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  26. #{idItem}
  27. </foreach>
  28. </if>
  29. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  30. </sql>
  31. <select id="findList" parameterType="com.iformall.domain.po.sm.MouldPatchSign" resultMap="BaseResultMap">
  32. select <include refid="allColumns" /> from mould_patch_sign
  33. <include refid="dynamicWhereConditions" />
  34. </select>
  35. <delete id="deleteById" parameterType="java.util.HashMap">
  36. update mould_patch_sign set is_del = 1,update_date = now() where id = #{id}
  37. </delete>
  38. </mapper>