SystemConfigMapperEx.xml 988 B

12345678910111213141516171819202122232425
  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.jsh.erp.datasource.mappers.SystemConfigMapperEx">
  4. <select id="selectByConditionSystemConfig" parameterType="com.jsh.erp.datasource.entities.SystemConfigExample" resultMap="com.jsh.erp.datasource.mappers.SystemConfigMapper.BaseResultMap">
  5. select *
  6. FROM jsh_system_config
  7. where 1=1
  8. <if test="companyName != null">
  9. <bind name="bindCompanyName" value="'%'+companyName+'%'"/>
  10. and company_name like #{bindCompanyName}
  11. </if>
  12. and ifnull(delete_flag,'0') !='1'
  13. </select>
  14. <update id="batchDeleteSystemConfigByIds">
  15. update jsh_system_config
  16. set delete_flag='1'
  17. where 1=1
  18. and id in (
  19. <foreach collection="ids" item="id" separator=",">
  20. #{id}
  21. </foreach>
  22. )
  23. </update>
  24. </mapper>