|
|
@@ -271,7 +271,10 @@ public class LicenseAuditAsyncService {
|
|
|
.set(StoreLicenseHistory::getReasonRefusal, rejectReason);
|
|
|
licenseHistoryMapper.update(null, updateWrapper);
|
|
|
log.info("{}AI审核拒绝,门店ID:{},图片URL:{},拒绝原因:{}", licenseTypeName, storeId, imageUrl, rejectReason);
|
|
|
-
|
|
|
+ storeInfoMapper.update(null, new LambdaUpdateWrapper<StoreInfo>()
|
|
|
+ .eq(StoreInfo::getId, storeId)
|
|
|
+ .set(StoreInfo::getBusinessLicenseStatus, 2)
|
|
|
+ );
|
|
|
// 审核拒绝时,删除store_img表中的记录(逻辑删除),避免前端展示审核拒绝的图片
|
|
|
LambdaUpdateWrapper<StoreImg> deleteImgWrapper = new LambdaUpdateWrapper<>();
|
|
|
deleteImgWrapper.eq(StoreImg::getStoreId, storeId)
|
|
|
@@ -286,7 +289,10 @@ public class LicenseAuditAsyncService {
|
|
|
updateWrapper.set(StoreLicenseHistory::getLicenseExecuteStatus, 1); // 1-审核通过
|
|
|
licenseHistoryMapper.update(null, updateWrapper);
|
|
|
log.info("{}AI审核通过,门店ID:{},图片URL:{}", licenseTypeName, storeId, imageUrl);
|
|
|
-
|
|
|
+ storeInfoMapper.update(null, new LambdaUpdateWrapper<StoreInfo>()
|
|
|
+ .eq(StoreInfo::getId, storeId)
|
|
|
+ .set(StoreInfo::getBusinessLicenseStatus, 1)
|
|
|
+ );
|
|
|
// 审核通过后,插入store_img表(检查是否已存在,避免重复插入)
|
|
|
StoreImg existingImg = storeImgMapper.selectOne(
|
|
|
new LambdaQueryWrapper<StoreImg>()
|