<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.zzg.system.mapper.state.StateProcessTemplateMapper">
|
|
|
<select id="page" resultType="com.zzg.common.core.domain.entity.state.StateProcessTemplate">
|
SELECT * FROM state_process_template
|
WHERE (template_key, template_version) in (select template_key, MAX(template_version)from state_process_template group by template_key)
|
<if test="request.name != null and request.name != ''">
|
AND template_name::text LIKE CONCAT('%',#{request.name}, '%' )
|
</if>
|
and del_flag = 0
|
</select>
|
|
</mapper>
|