搬家配置

20230922-ljl-fixBug
laolin 1 year ago
parent 4da93c3e73
commit 647d84ee62

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

Loading…
Cancel
Save