搬家配置

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.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();
} }

Loading…
Cancel
Save