shs 1 tahun lalu
induk
melakukan
681b5c9882

+ 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());