|
@@ -9,10 +9,7 @@ import com.yh.saas.plugin.yiliangyiyun.constant.StatusEnum;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.entity.*;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.exception.ServiceException;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.mapper.SettledCompanyInfoMapper;
|
|
|
-import com.yh.saas.plugin.yiliangyiyun.service.ICommonUserService;
|
|
|
-import com.yh.saas.plugin.yiliangyiyun.service.ISettledCompanyContactsService;
|
|
|
-import com.yh.saas.plugin.yiliangyiyun.service.ISettledCompanyErrorService;
|
|
|
-import com.yh.saas.plugin.yiliangyiyun.service.ISettledCompanyInfoService;
|
|
|
+import com.yh.saas.plugin.yiliangyiyun.service.*;
|
|
|
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.util.GeTuiUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -49,6 +46,8 @@ public class SettledCompanyInfoServiceImpl extends ServiceImpl<SettledCompanyInf
|
|
|
private GeTuiUtils geTuiUtils;
|
|
|
@Autowired
|
|
|
private ICommonUserService commonUserService;
|
|
|
+ @Autowired
|
|
|
+ private ICollectionCompanyService collectionCompanyService;
|
|
|
|
|
|
/**
|
|
|
* 添加入住公司信息
|
|
@@ -227,7 +226,7 @@ public class SettledCompanyInfoServiceImpl extends ServiceImpl<SettledCompanyInf
|
|
|
settledCompanyInfo1.setStatus(StatusEnum.ORDER_REJECTED.getName());
|
|
|
geTuiUtils.pushByCid("审核通知", "您的公司入住申请已被驳回", commonUser.getId());
|
|
|
}
|
|
|
- //更改销售计划信息
|
|
|
+ //更改信息
|
|
|
this.updateById(settledCompanyInfo1);
|
|
|
return "OK";
|
|
|
}
|
|
@@ -235,4 +234,57 @@ public class SettledCompanyInfoServiceImpl extends ServiceImpl<SettledCompanyInf
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 显示隐藏
|
|
|
+ *
|
|
|
+ * @param id
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public void showHidden(String id) {
|
|
|
+ //查询销售计划信息
|
|
|
+ SettledCompanyInfo settledCompanyInfo = this.selectById(id);
|
|
|
+ if (settledCompanyInfo != null) {
|
|
|
+ if ("2".equals(settledCompanyInfo.getShowFlag())) {
|
|
|
+ settledCompanyInfo.setShowFlag("1");
|
|
|
+ } else {
|
|
|
+ settledCompanyInfo.setShowFlag("2");
|
|
|
+ }
|
|
|
+ this.updateById(settledCompanyInfo);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 收藏
|
|
|
+ *
|
|
|
+ * @param settledCompanyInfo
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public String collection(SettledCompanyInfo settledCompanyInfo) {
|
|
|
+ CollectionCompany collectionCompany = new CollectionCompany();
|
|
|
+ collectionCompany.setId(IdGenerator.generateUUID());
|
|
|
+ collectionCompany.setInfoId(settledCompanyInfo.getId());
|
|
|
+ collectionCompany.setCompName(settledCompanyInfo.getCompName());
|
|
|
+ collectionCompany.setPhone(settledCompanyInfo.getLoginPhone());
|
|
|
+ collectionCompanyService.insert(collectionCompany);
|
|
|
+ return "OK";
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 取消收藏
|
|
|
+ *
|
|
|
+ * @param settledCompanyInfo
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public String collectionNot(SettledCompanyInfo settledCompanyInfo) {
|
|
|
+ collectionCompanyService.delete(new EntityWrapper<CollectionCompany>()
|
|
|
+ .eq("info_id", settledCompanyInfo.getId())
|
|
|
+ .eq("phone", settledCompanyInfo.getLoginPhone()));
|
|
|
+ return "OK";
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|