Commit 5005ab82 authored by chenyan's avatar chenyan

2024/04/28_模型接口修改

parent 9ee59f9d
...@@ -72,10 +72,11 @@ ...@@ -72,10 +72,11 @@
t.is_del = 0 t.is_del = 0
<if test="modelCn != null and modelCn != ''"> <if test="modelCn != null and modelCn != ''">
AND t.model_cn like concat('%',#{modelCn},'%') AND t.model_cn like concat('%',#{modelCn},'%')
OR t.model_en like concat('%',#{modelCn},'%')
</if> </if>
<if test="modelEn != null and modelEn != ''"> <!-- <if test="modelEn != null and modelEn != ''">-->
AND t.model_en like concat('%',#{modelEn},'%') <!-- AND t.model_en like concat('%',#{modelEn},'%')-->
</if> <!-- </if>-->
<if test="releasedBy != null and releasedBy != ''"> <if test="releasedBy != null and releasedBy != ''">
AND t.released_by like concat('%',#{releasedBy},'%') AND t.released_by like concat('%',#{releasedBy},'%')
</if> </if>
...@@ -100,7 +101,7 @@ ...@@ -100,7 +101,7 @@
GROUP BY t.`id` GROUP BY t.`id`
<choose> <choose>
<when test="orderBy == 1"> <when test="orderBy == 1">
ORDER BY t.`views`,t.`id` desc ORDER BY t.`views` desc
</when> </when>
<when test="orderBy == 2"> <when test="orderBy == 2">
ORDER BY t.create_time,t.id desc ORDER BY t.create_time,t.id desc
...@@ -109,7 +110,7 @@ ...@@ -109,7 +110,7 @@
ORDER BY ttr.`model_type_id`,t.id desc ORDER BY ttr.`model_type_id`,t.id desc
</when> </when>
<when test="orderBy == 4"> <when test="orderBy == 4">
ORDER BY t.released_by,t.id desc ORDER BY t.released_by desc
</when> </when>
</choose> </choose>
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment