소스 검색

添加站点名称

夏文涛 1 년 전
부모
커밋
314ef4f7d7
2개의 변경된 파일8개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 0
      src/main/java/com/sqx/SecureApiTest.java
  2. 5 3
      src/main/java/com/sqx/modules/errand/service/impl/TbIndentServiceImpl.java

+ 3 - 0
src/main/java/com/sqx/SecureApiTest.java

@@ -1,5 +1,8 @@
 package com.sqx;
 
+import com.google.gson.Gson;
+import com.sqx.modules.errand.entity.TransferRecordEntity;
+import com.sqx.modules.riderStation.entity.RiderStation;
 import icu.xuyijie.secureapi.cipher.CipherAlgorithmEnum;
 import icu.xuyijie.secureapi.cipher.CipherUtils;
 

+ 5 - 3
src/main/java/com/sqx/modules/errand/service/impl/TbIndentServiceImpl.java

@@ -711,7 +711,8 @@ public class TbIndentServiceImpl extends ServiceImpl<TbIndentDao, TbIndent> impl
                     log.error("第一次接单station1:" + new Gson().toJson(station));
                     if(station != null){
                         log.error("第一次接单station2:" + new Gson().toJson(station));
-                        tr.setStationName(userEntity1.getStationName());
+                        tr.setStationName(station.getStationName());
+                        log.error("第一次接单station3:" + new Gson().toJson(tr));
                     }
                     tr.setDeleteFlag(0);
                     transferRecordDao.insert(tr);
@@ -733,7 +734,8 @@ public class TbIndentServiceImpl extends ServiceImpl<TbIndentDao, TbIndent> impl
                     log.error("第一次接单station:" + new Gson().toJson(station));
                     if(station != null){
                         log.error("第一次接单station2:" + new Gson().toJson(station));
-                        tr.setStationName(userEntity1.getStationName());
+                        tr.setStationName(station.getStationName());
+                        log.error("第一次接单station3:" + new Gson().toJson(tr));
                     }
                     tr.setDeleteFlag(0);
                     transferRecordDao.insert(tr);
@@ -855,7 +857,7 @@ public class TbIndentServiceImpl extends ServiceImpl<TbIndentDao, TbIndent> impl
                             //获取站点内容
                             RiderStation station = riderStationService.stationById(userEntity1.getRiderStationId());
                             if(station != null){
-                                tr.setStationName(userEntity1.getStationName());
+                                tr.setStationName(station.getStationName());
                             }
                             tr.setDeleteFlag(0);
                             transferRecordDao.insert(tr);