feat():完善我的api查询接口

dev2
WeiRan 2024-08-25 11:21:27 +08:00
parent 69003a9895
commit a3e17f8143
2 changed files with 12 additions and 0 deletions

View File

@ -24,4 +24,8 @@ public class MyApiReq {
*
*/
private String productName;
/**
*
*/
private Integer productState;
}

View File

@ -35,6 +35,14 @@
</sql>
<select id="selectMyApiList" resultType="com.muyu.cloud.market.domin.MyApi" resultMap="MyApiResult">
<include refid="selectmyapi"></include>
<where>
<if test="productName!=null and productName!=''">
and product_name like '%${productName}%'
</if>
<if test="productState!=null and productState!=''">
and product_state =#{productState}
</if>
</where>
</select>