| | |
| | | from resource_store t |
| | | where 1 =1 |
| | | <if test="resName !=null and resName != ''"> |
| | | and t.res_name= #{resName} |
| | | and t.res_name like concat('%',#{resName},'%') |
| | | </if> |
| | | <if test="price !=null and price != ''"> |
| | | and t.price= #{price} |
| | |
| | | </if> |
| | | <if test="resId !=null and resId != ''"> |
| | | and t.res_id= #{resId} |
| | | </if> |
| | | <if test="resOrderType == '20000'"> |
| | | and t.stock > 0 |
| | | </if> |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | |
| | | from resource_store t |
| | | where 1 =1 |
| | | <if test="resName !=null and resName != ''"> |
| | | and t.res_name= #{resName} |
| | | and t.res_name like concat('%',#{resName},'%') |
| | | </if> |
| | | <if test="price !=null and price != ''"> |
| | | and t.price= #{price} |
| | |
| | | <if test="resId !=null and resId != ''"> |
| | | and t.res_id= #{resId} |
| | | </if> |
| | | <if test="resOrderType == '20000'"> |
| | | and t.stock > 0 |
| | | </if> |
| | | |
| | | |
| | | </select> |