Browse Source

fix: 编辑分类功能开发问题优化

chenjianhua 4 months ago
parent
commit
715cc99320

+ 1 - 1
service-base/src/main/resources/mapper/daq/FileManageMapper.xml

@@ -30,7 +30,7 @@
         where isvalid=1 and file_id=#{fileId}
     </update>
     <update id="changeFileSourceType">
-        update file_manage set file_type=#{fileType},updater_id=#{userId},updatetime=now() where isvalid =1 and file_id in
+        update file_manage set file_type=#{fileType},updaterid=#{userId},updatetime=now() where isvalid =1 and file_id in
         <foreach collection="idList" index="index" item="id" separator="," open="(" close=")">
             #{id}
         </foreach>

+ 1 - 1
service-manage/src/main/java/com/simuwang/manage/api/file/FileManageController.java

@@ -101,7 +101,7 @@ public class FileManageController {
             return vo;
         } catch (Exception e) {
             logger.error(e.getMessage(),e);
-            vo.setData(ResultCode.SAVE_FAILED);
+            vo.setCode(ResultCode.SAVE_FAILED.getCode());
         }
         return vo;
     }