Browse Source

钉钉消息username转为nickname

陈长荣 2 weeks ago
parent
commit
5705243ea0

+ 1 - 1
jfcloud-gene-biz/src/main/java/com/github/jfcloud/gene/sample/service/biz/CommonSampleEditServiceImpl.java

@@ -84,7 +84,7 @@ public class CommonSampleEditServiceImpl implements SampleEditService {
                 break;
                 break;
             case DEPART_LEADER:
             case DEPART_LEADER:
                 userId = sampleInfo.getDepartLeaderId();
                 userId = sampleInfo.getDepartLeaderId();
-                dingMsg = String.format("【%s】【%s】%s提交,请进行审查", projectType, userIdNameCache.getNicknameByUserId(sampleInfo.getCreateBy()), now);
+                dingMsg = String.format("【%s】【%s】%s提交,请进行审查", projectType, userIdNameCache.username2Nickname(sampleInfo.getCreateBy()), now);
                 break;
                 break;
             case PROJECT_MANAGEMENT:
             case PROJECT_MANAGEMENT:
                 userId = sampleInfo.getProjectManageId();
                 userId = sampleInfo.getProjectManageId();

+ 1 - 0
jfcloud-gene-biz/src/main/java/com/github/jfcloud/gene/sample/service/impl/SampleInfoServiceImpl.java

@@ -147,6 +147,7 @@ public class SampleInfoServiceImpl extends ServiceImpl<SampleInfoMapper, SampleI
         getServiceByType(sampleInfo.getType()).generate(id);
         getServiceByType(sampleInfo.getType()).generate(id);
     }
     }
 
 
+    @Transactional(rollbackFor = Exception.class)
     @Override
     @Override
     public void submit(Long id) {
     public void submit(Long id) {
         SampleInfo sampleInfo = getById(id);
         SampleInfo sampleInfo = getById(id);