From 1a2258c4eca2e7514b6096004fa1c3e0036b402b Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期四, 28 三月 2024 14:04:24 +0800 Subject: [PATCH] Merge branch 'master' of http://117.34.109.166:18448/r/mdc_430 into develop --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/StreamMapper.xml | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/StreamMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/StreamMapper.xml index 9745c84..53b58ee 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/StreamMapper.xml +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/StreamMapper.xml @@ -1,5 +1,23 @@ <?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="org.jeecg.modules.eam.mapper.StreamMapper"> + <select id="myPage" resultType="org.jeecg.modules.eam.entity.Stream"> + select t1.* + from mom_eam_stream t1 + left join sys_user t2 on t2.id = t1.create_by + where 1=1 + <if test="num != null and num != ''"> + and t1.num like concat('%',#{num},'%') + </if> + <choose> + <when test="areaId != null and areaId != ''"> + and t2.area_id = #{areaId} + </when> + <otherwise> + and t2.area_id = '-1' + </otherwise> + </choose> + + </select> </mapper> -- Gitblit v1.9.3