优化导入

This commit is contained in:
wuyibo
2023-07-11 16:22:24 +08:00
parent 21ffc29a9f
commit 88b7816220
12 changed files with 99 additions and 16 deletions

View File

@@ -41,7 +41,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where ID = #{id}
</select>
<select id="getMyBasketBallTeam" resultType="com.ruoyi.system.domain.WxBasketballTeam">
select * from basketball_team t where t.is_deleted=0
<if test="createdId != null ">
AND t.created_id=#{createdId}
</if>
<if test="teamName != null and teamName != ''">
AND t.team_name like CONCAT('%',#{teamName},'%')
</if>
<if test="teamDes != null and teamDes != ''">
AND t.team_des like CONCAT('%',#{teamDes},'%')
</if>
<if test="buildId != null ">
AND t.build_id=#{buildId}
</if>
<if test="id != null ">
AND t.id=#{id}
</if>
order by t.created_time desc
</select>
<insert id="insertWxBasketballTeam" parameterType="WxBasketballTeam" useGeneratedKeys="true" keyProperty="id">

View File

@@ -98,8 +98,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND created_id=#{createdId}
</if>
</select>
<select id="getAuditPage" resultType="com.ruoyi.system.domain.WxBuildingInfo">
SELECT * FROM `building_info` where 1=1
<select id="getAuditPage" parameterType="WxBuildingInfo" resultMap="WxBuildingInfoResult">
SELECT * FROM building_info where 1=1
<if test="status != null and status != ''">
AND status=#{status}
</if>