Browse Source

日报填写 一次调用2个环境,从token取用户信息异常问题处理

wangmiaomiao 9 months ago
parent
commit
09d2563879

+ 3 - 3
slibra-system/src/main/java/com/slibra/business/service/impl/TXinyiDailyServiceImpl.java

@@ -82,7 +82,7 @@ public class TXinyiDailyServiceImpl implements ITXinyiDailyService
         String testDate = tXinyiDaily.getTestDate();
         if(StringUtils.isBlank(testDate))
             throw new ServiceException("日报填写必须要填写日期!");
-        String username = SecurityUtils.getUsername();
+//        String username = SecurityUtils.getUsername();
         Date nowDate = DateUtils.getNowDate();
         if(Objects.isNull(id)){//新增
             //检查日期是否已经填写过了
@@ -90,11 +90,11 @@ public class TXinyiDailyServiceImpl implements ITXinyiDailyService
             if(!Objects.isNull(detailByDay))
                 throw new ServiceException("该日期对应的日报已经填写过了,不可重复填写!");
             tXinyiDaily.setTestTime(testDate);
-            tXinyiDaily.setCreateBy(username);
+//            tXinyiDaily.setCreateBy(username);
             tXinyiDaily.setCreateTime(nowDate);
             tXinyiDaily.setCreatedTime(nowDate);
         }else{//编辑
-            tXinyiDaily.setUpdateBy(username);
+//            tXinyiDaily.setUpdateBy(username);
             tXinyiDaily.setUpdateTime(nowDate);
         }