This commit is contained in:
guohb
2024-05-15 16:18:53 +08:00
parent 9032c6c60d
commit 342d52a9f5

View File

@@ -407,8 +407,10 @@ public class SysStoreAppServiceImpl implements SysStoreAppService, AuditResultSe
try {
//删除上次提交数据
ShopAuditInfoDO deleteShopAuditDo = shopAuditInfoMapper.selectBykeyAndType(shopId);
deleteShopAuditDo.setDeleted(false);
shopAuditInfoMapper.updateByPrimaryKeySelective(deleteShopAuditDo);
if (Objects.nonNull(deleteShopAuditDo)){
deleteShopAuditDo.setDeleted(false);
shopAuditInfoMapper.updateByPrimaryKeySelective(deleteShopAuditDo);
}
//新增本次数据
shopAuditInfoDO.setShopId(shopId);
shopAuditInfoDO.setAuditType(AuditTypeEnum.SYS_BUILD.getCode());