Browse Source

资料审核

change 3 years ago
parent
commit
59b9e88659

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/service/impl/UserProfileServiceImpl.java

@@ -183,7 +183,7 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
         FileInputStream fileInputStream = new FileInputStream(touch);
         MultipartFile multipartFile = new MockMultipartFile(touch.getName(), touch.getName(),
                 ContentType.APPLICATION_OCTET_STREAM.toString(), fileInputStream);
-        ossRequest.setFile((MultipartFile) touch);
+        ossRequest.setFile(multipartFile);
         ossRequest.setImageStatus(6);
         String upload = ossService.upload(ossRequest);
         return upload;

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/base/UserProfileMapper.xml

@@ -153,7 +153,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         FROM
         user_profile up
         where 1=1
-        and up.current_status = 2
+        and up.status != 2
         <if test="typeStatus != null and typeStatus !='' ">
             and up.type_status = #{typeStatus}
         </if>