shs 1 سال پیش
والد
کامیت
681b5c9882
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      aidex-system/src/main/java/com/aidex/system/service/impl/SysShipServiceImpl.java

+ 3 - 1
aidex-system/src/main/java/com/aidex/system/service/impl/SysShipServiceImpl.java

@@ -88,7 +88,9 @@ public class SysShipServiceImpl extends BaseServiceImpl<SysShipMapper, SysShip>
     public boolean save(SysShip sysShip) {
         ShipVo shipVo = new ShipVo();
         BeanUtils.copyProperties(sysShip,shipVo);
-        if(super.save(sysShip)) {
+        SysShip ship = new SysShip();
+        BeanUtils.copyProperties(sysShip,ship);
+        if(super.save(ship)) {
             SysShipExtend shipExtend = new SysShipExtend();
             shipExtend.setShipId(sysShip.getId());
             shipExtend.setId(sysShip.getId());