|
|
|
@@ -0,0 +1,41 @@ |
|
|
|
<?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.iformall.mapper.WxFlowConfigMapper"> |
|
|
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.iformall.domain.po.WxFlowConfig"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="tenantId" property="tenantId" /> |
|
|
|
|
|
|
|
<result column="parent_id" property="parentId" /> |
|
|
|
<result column="name" property="name" /> |
|
|
|
<result column="type" property="type" /> |
|
|
|
<result column="status" property="status" /> |
|
|
|
<result column="model_id" property="modelId" /> |
|
|
|
|
|
|
|
<result column="create_date" property="createDate" /> |
|
|
|
<result column="update_date" property="updateDate" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
where 1 = 1 |
|
|
|
<if test=" null != tenantId "> |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
</if> |
|
|
|
<if test=" null != id "> and `id` = #{id} </if> |
|
|
|
<if test=" null != name "> and `name` like concat('%', #{name},'%') </if> |
|
|
|
|
|
|
|
<if test=" null != sortColumns"> order by ${sortColumns} </if> |
|
|
|
<if test=" null == sortColumns"> order by id desc </if> |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="findList" parameterType="com.iformall.domain.po.WxFlowModel" resultMap="BaseResultMap"> |
|
|
|
select * from wx_flow_model |
|
|
|
<include refid="dynamicWhereConditions" /> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper> |