huianan 2 years ago
parent
commit
663a4dc792

+ 2 - 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/post/PostCollectionController.java

@@ -77,7 +77,7 @@ public class PostCollectionController extends BaseController
      */
     @PreAuthorize("@ss.hasPermi('system:collection:add')")
     @Log(title = "邮贝藏品信息; ", businessType = BusinessType.INSERT)
-    @PostMapping
+    @PostMapping("/add")
     public AjaxResult add(@RequestBody PostCollection postCollection)
     {
         if(UserConstants.NOT_UNIQUE.equals(postCollectionService.checkName(postCollection)))
@@ -93,7 +93,7 @@ public class PostCollectionController extends BaseController
      */
     @PreAuthorize("@ss.hasPermi('system:collection:edit')")
     @Log(title = "邮贝藏品信息; ", businessType = BusinessType.UPDATE)
-    @PutMapping
+    @PutMapping("/edit")
     public AjaxResult edit(@RequestBody PostCollection postCollection)
     {
         return toAjax(postCollectionService.updatePostCollection(postCollection));

+ 2 - 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/post/PostPublisherController.java

@@ -67,7 +67,7 @@ public class PostPublisherController extends BaseController
      */
     @PreAuthorize("@ss.hasPermi('system:publisher:add')")
     @Log(title = "邮贝发行方信息;", businessType = BusinessType.INSERT)
-    @PostMapping
+    @PostMapping("/add")
     public AjaxResult add(@RequestBody PostPublisher postPublisher)
     {
         if(UserConstants.NOT_UNIQUE.equals(postPublisherService.checkPublisherName(postPublisher)))
@@ -87,7 +87,7 @@ public class PostPublisherController extends BaseController
      */
     @PreAuthorize("@ss.hasPermi('system:publisher:edit')")
     @Log(title = "邮贝发行方信息;", businessType = BusinessType.UPDATE)
-    @PutMapping
+    @PutMapping("/edit")
     public AjaxResult edit(@RequestBody PostPublisher postPublisher)
     {
         if(UserConstants.NOT_UNIQUE.equals(postPublisherService.checkPublisherName(postPublisher)))

+ 2 - 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/post/PostSeriesController.java

@@ -76,7 +76,7 @@ public class PostSeriesController extends BaseController
      */
     @PreAuthorize("@ss.hasPermi('system:series:add')")
     @Log(title = "邮贝套系信息; ", businessType = BusinessType.INSERT)
-    @PostMapping
+    @PostMapping("/add")
     public AjaxResult add(@RequestBody PostSeries postSeries)
     {
         if(UserConstants.NOT_UNIQUE.equals(postSeriesService.checkSeriesNameUnique(postSeries)))
@@ -92,7 +92,7 @@ public class PostSeriesController extends BaseController
      */
     @PreAuthorize("@ss.hasPermi('system:series:edit')")
     @Log(title = "邮贝套系信息; ", businessType = BusinessType.UPDATE)
-    @PutMapping
+    @PutMapping("/edit")
     public AjaxResult edit(@RequestBody PostSeries postSeries)
     {
         return toAjax(postSeriesService.updatePostSeries(postSeries));

+ 0 - 2
ruoyi-post/src/main/resources/mapper/PostCollectionMapper.xml

@@ -47,7 +47,6 @@
     <!--查询藏品列表-->
     <select id="selectPostCollectionList" parameterType="PostCollection" resultMap="PostCollectionResult">
         <include refid="selectPostCollectionVo"/>
-        <where>
             <if test="collectionName != null  and collectionName != ''">and collection_name like concat('%',
                 #{collectionName}, '%')
             </if>
@@ -71,7 +70,6 @@
             <if test="endTime != null ">and end_time = #{endTime}</if>
             <if test="seriesName != null  and seriesName != ''">and series_name like concat('%', #{seriesName}, '%')
             </if>
-        </where>
     </select>
     <!--    ID查询藏品-->
     <select id="selectPostCollectionByCollectionId" parameterType="Long" resultMap="PostCollectionResult">

+ 0 - 2
ruoyi-post/src/main/resources/mapper/PostPublisherMapper.xml

@@ -37,7 +37,6 @@
     <!--查询发行方列表-->
     <select id="selectPostPublisherList" parameterType="PostPublisher" resultMap="PostPublisherResult">
         <include refid="selectPostPublisherVo"/>
-        <where>
             <if test="publisherImage != null  and publisherImage != ''">and publisher_image = #{publisherImage}</if>
             <if test="publisherName != null  and publisherName != ''">and publisher_name like concat('%',
                 #{publisherName}, '%')
@@ -51,7 +50,6 @@
             <if test="publisherAddress != null  and publisherAddress != ''">and publisher_address =
                 #{publisherAddress}
             </if>
-        </where>
     </select>
     <!--查询单个用户-->
     <select id="selectPostPublisherByPublisherId" parameterType="Long" resultMap="PostPublisherResult">

+ 0 - 2
ruoyi-post/src/main/resources/mapper/PostSeriesMapper.xml

@@ -37,7 +37,6 @@
     <!--查询套系列表-->
     <select id="selectPostSeriesList" parameterType="PostSeries" resultMap="PostSeriesResult">
         <include refid="selectPostSeriesVo"/>
-        <where>
             <if test="seriesName != null  and seriesName != ''">and series_name like concat('%', #{seriesName}, '%') </if>
             <if test="seriesImage != null  and seriesImage != ''"> and series_image = #{seriesImage}</if>
             <if test="collectionCounts != null ">and collection_counts = #{collectionCounts}</if>
@@ -45,7 +44,6 @@
             <if test="exchangeStatus != null  and exchangeStatus != ''">and exchange_status = #{exchangeStatus}</if>
             <if test="startTime != null ">and start_time = #{startTime}</if>
             <if test="endTime != null ">and end_time = #{endTime}</if>
-        </where>
     </select>
     <!--套系ID查询-->
     <select id="selectPostSeriesBySeriesId" parameterType="Long" resultMap="PostSeriesResult">