|
|
@@ -479,7 +479,20 @@ public class FsStoreScrmServiceImpl implements IFsStoreScrmService {
|
|
|
|
|
|
@Override
|
|
|
public R qualificationReminder(Long storeId) {
|
|
|
- return R.ok().put("check",fsStoreMapper.qualificationReminder(storeId) != null);
|
|
|
+ boolean check = false;
|
|
|
+ FsStoreScrm storeScrm = fsStoreMapper.qualificationReminder(storeId);
|
|
|
+ if (storeScrm != null) {
|
|
|
+ check = true;
|
|
|
+
|
|
|
+ if(storeScrm.getStatus().equals(1)){
|
|
|
+ //更新店铺状态
|
|
|
+ FsStoreScrm fsStoreScrm =new FsStoreScrm();
|
|
|
+ fsStoreScrm.setStoreId(storeId);
|
|
|
+ fsStoreScrm.setStatus(0);
|
|
|
+ fsStoreMapper.updateFsStore(fsStoreScrm);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return R.ok().put("check",check);
|
|
|
}
|
|
|
|
|
|
/**
|