diff options
author | Murali-P <murali.p@huawei.com> | 2018-03-23 10:41:55 +0530 |
---|---|---|
committer | Murali-P <murali.p@huawei.com> | 2018-03-23 10:41:55 +0530 |
commit | f59211026374d757fa307614e2e10f62637cf9f1 (patch) | |
tree | eb46f7b580a8c22444b9cdfe1e79336fa124391a /vnfmarket-be/vnf-sdk-marketplace/src/main/resources | |
parent | 1e6ddf46e8188585200ec746d21f2b3a27b93449 (diff) |
Csar subset query
Merging issue fixed by Moshe
Issue-ID: VNFSDK-126
Change-Id: I441cd14e24867bf3d2a65bd3d1c1f35dbf9a5ffb
Signed-off-by: Murali-P <murali.p@huawei.com>
Diffstat (limited to 'vnfmarket-be/vnf-sdk-marketplace/src/main/resources')
-rw-r--r-- | vnfmarket-be/vnf-sdk-marketplace/src/main/resources/mybatis/sql/MarketplaceMapper.xml | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/vnfmarket-be/vnf-sdk-marketplace/src/main/resources/mybatis/sql/MarketplaceMapper.xml b/vnfmarket-be/vnf-sdk-marketplace/src/main/resources/mybatis/sql/MarketplaceMapper.xml index aeaa4a47..7d76b998 100644 --- a/vnfmarket-be/vnf-sdk-marketplace/src/main/resources/mybatis/sql/MarketplaceMapper.xml +++ b/vnfmarket-be/vnf-sdk-marketplace/src/main/resources/mybatis/sql/MarketplaceMapper.xml @@ -32,7 +32,28 @@ WHERE CSARID=#{csarId} </select> - + + <select id="getPackageDataSubset" resultType="org.onap.vnfsdk.marketplace.db.entity.PackageData" parameterType="java.util.Map"> + SELECT * FROM CSAR_PACKAGE_TABLE + <where> + <if test="name != null"> + NAME like #{name} + </if> + <if test="version != null"> + AND VERSION like #{version} + </if> + <if test="deletionPending != null"> + AND DELETIONPENDING like #{deletionPending} + </if> + <if test="type != null"> + AND TYPE like #{type} + </if> + <if test="provider != null"> + AND PROVIDER like #{provider} + </if> + </where> + </select> + <insert id="savePackageData" parameterType="org.onap.vnfsdk.marketplace.db.entity.PackageData"> INSERT INTO CSAR_PACKAGE_TABLE |