You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ocr/jyjz-system/jyjz-system-oa/target/classes/mapper/oa/FlowFormMapper.xml

31 lines
1.4 KiB

<?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="cn.jyjz.flowable.mapper.FlowFormMapper">
<resultMap id="baseMap" type="cn.jyjz.flowable.domain.FlowForm">
<id property="id" column="id"/>
<result property="name" column="name"/>
<result property="modelKey" column="model_key"/>
<result property="description" column="description"/>
<result property="modelComment" column="model_comment"/>
<result property="created" column="created"/>
<result property="createdBy" column="created_by"/>
<result property="lastUpdated" column="last_updated"/>
<result property="lastUpdatedBy" column="last_updatedBy"/>
<result property="version" column="version"/>
<result property="modelEditorJson" column="model_editor_json"/>
<result property="modelType" column="model_type"/>
<result property="tenantId" column="tenant_id"/>
</resultMap>
<select id="queryList" resultMap="baseMap">
SELECT *
FROM `act_de_model`
WHERE model_type = 2
<if test="flowForm.key != null ">
and ( name like concat('%',#{flowForm.key},'%')
or description like concat('%',#{flowForm.key},'%') )
</if>
</select>
</mapper>