feat():完善我的api查询接口
parent
69003a9895
commit
a3e17f8143
|
@ -24,4 +24,8 @@ public class MyApiReq {
|
||||||
* 产品名称
|
* 产品名称
|
||||||
*/
|
*/
|
||||||
private String productName;
|
private String productName;
|
||||||
|
/**
|
||||||
|
* 状态
|
||||||
|
*/
|
||||||
|
private Integer productState;
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,14 @@
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectMyApiList" resultType="com.muyu.cloud.market.domin.MyApi" resultMap="MyApiResult">
|
<select id="selectMyApiList" resultType="com.muyu.cloud.market.domin.MyApi" resultMap="MyApiResult">
|
||||||
<include refid="selectmyapi"></include>
|
<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>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue