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