he2802 преди 2 години
родител
ревизия
4a38ae09a0
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/service/impl/UserPeriodServiceImpl.java

+ 4 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/service/impl/UserPeriodServiceImpl.java

@@ -65,6 +65,7 @@ import com.zhongzheng.modules.user.service.IUserService;
 import com.zhongzheng.modules.user.service.IUserStudyRecordPhotoService;
 import com.zhongzheng.modules.user.vo.UserVo;
 import com.zhongzheng.modules.wx.service.IWxLoginService;
+import org.apache.commons.lang3.StringUtils;
 import org.apache.commons.lang3.time.DateFormatUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -843,6 +844,9 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
             respone = HttpUtils.postFormBody(SYNC_PATH, params);
             log.info("学时推送业务系统结果"+respone,"");
             if (!respone.contains("\"Status\":true")) {
+                if(Validator.isNotEmpty(respone)){
+                    respone = StringUtils.left(respone,300);
+                }
                 objectLambdaUpdateWrapper.set(ClassGradeUser::getToOldResult, respone);
                 objectLambdaUpdateWrapper.set(ClassGradeUser::getToOldStatus, -1);
                 iClassGradeUserService.update(null, objectLambdaUpdateWrapper);