|
|
@@ -4431,13 +4431,12 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
|
|
|
.eq(StoreInfo::getCreatedUserId, aiApproveStoreInfo.getUserId()).eq(StoreInfo::getStoreApplicationStatus, 0).eq(StoreInfo::getDeleteFlag, 0));
|
|
|
for (StoreInfo storeInfo : storeInfos) {
|
|
|
if ("approved".equals(data.getString("status"))) {
|
|
|
- storeInfo.setStoreApplicationStatus(1);
|
|
|
+ approveStoreInfo(storeInfo.getId().toString(),1, "审核通过");
|
|
|
} else if ("rejected".equals(data.getString("status"))) {
|
|
|
- storeInfo.setStoreApplicationStatus(2);
|
|
|
+ approveStoreInfo(storeInfo.getId().toString(),2, data.getString("audit_summary"));
|
|
|
} else {
|
|
|
System.out.println("未知状态");
|
|
|
}
|
|
|
- storeInfoMapper.updateById(storeInfo);
|
|
|
}
|
|
|
} else {
|
|
|
throw new RuntimeException("AI门店审核接口调用失败 code:" + jsonObject.getInteger("code"));
|