|
|
@ -54,13 +54,12 @@ public class SaveCurrentShopMoveSettingService extends SPIBaseService implements
|
|
|
|
moveShopSettings.setReduceType(fields.getReduceType());
|
|
|
|
moveShopSettings.setReduceType(fields.getReduceType());
|
|
|
|
moveShopSettings.setSupply7dayReturn(fields.getSupply7dayReturn());
|
|
|
|
moveShopSettings.setSupply7dayReturn(fields.getSupply7dayReturn());
|
|
|
|
|
|
|
|
|
|
|
|
int moveShopConfigId = fields.getMoveShopConfigId();
|
|
|
|
MoveShopSetting moveShopSettingsInfo = moveShopSettingService.getDetailByShopId(shopId);
|
|
|
|
if (moveShopConfigId == 0) {
|
|
|
|
|
|
|
|
moveShopSettingService.insertSelective(moveShopSettings);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
moveShopSettings.setMoveShopSettingId(moveShopSettingsInfo.getMoveShopSettingId());
|
|
|
|
moveShopSettings.setMoveShopSettingId(fields.getMoveShopConfigId());
|
|
|
|
|
|
|
|
moveShopSettingService.updateByPrimaryKeySelective(moveShopSettings);
|
|
|
|
moveShopSettingService.updateByPrimaryKeySelective(moveShopSettings);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return R.ok();
|
|
|
|
return R.ok();
|
|
|
|
}
|
|
|
|
}
|
|
|
|