gao.qiang hai 1 ano
pai
achega
3e08ac88bf

+ 6 - 0
business-service/src/main/java/com/ozs/entity/BaseVehicle.java

@@ -76,6 +76,12 @@ public class BaseVehicle implements Serializable {
     @Excel(name = "车载终端")
     private String terminalName;
 
+    /**
+     * 挂载终端名称
+     */
+    @TableField(exist = false)
+    private String terminalCode;
+
     /**
      * 备注
      */

+ 1 - 0
business-service/src/main/java/com/ozs/service/impl/BaseVehicleServiceImpl.java

@@ -80,6 +80,7 @@ public class BaseVehicleServiceImpl extends ServiceImpl<BaseVehicleMapper, BaseV
                     BaseTerminal baseTerminal1 = baseTerminalMapper.selectOne(wrapperBaseTerminal);
                     if (!StringUtils.isEmptySunhh(baseTerminal1) && !StringUtils.isEmptySunhh(baseTerminal1.getTerminalName())) {
                         o.setTerminalName(baseTerminal1.getTerminalName());
+                        o.setTerminalCode(baseTerminal1.getTerminalCode());
                     }
                 }
                 return o;