更新0711
This commit is contained in:
commit
21b54c8510
@ -136,6 +136,27 @@ public class Company extends TenantBaseDO {
|
|||||||
*/
|
*/
|
||||||
private BigDecimal lat;
|
private BigDecimal lat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 小程序app_id
|
||||||
|
*/
|
||||||
|
private String appId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 微信商户号
|
||||||
|
*/
|
||||||
|
private String mchId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 微信支付密钥
|
||||||
|
*/
|
||||||
|
private String privateKeyStr;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 回调地址
|
||||||
|
*/
|
||||||
|
private String notifyUrl;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 距离
|
* 距离
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -63,20 +63,23 @@ public interface CompanyService extends IService<Company> {
|
|||||||
/**
|
/**
|
||||||
* 通过服务名称查能提供服务的企业 分页
|
* 通过服务名称查能提供服务的企业 分页
|
||||||
*
|
*
|
||||||
* @param company 企业对象,主要是serverCodes
|
|
||||||
* @author 小李
|
* @author 小李
|
||||||
* @date 14:09 2024/9/23
|
* @date 14:09 2024/9/23
|
||||||
|
* @param company 企业对象,主要是serverCodes
|
||||||
**/
|
**/
|
||||||
IPage<Company> getCompanyPageByServer(Company company, Page<Company> page);
|
IPage<Company> getCompanyPageByServer(Company company, Page<Company> page);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查企业能提供的业务
|
* 查企业能提供的业务
|
||||||
*
|
*
|
||||||
* @param id 企业ID
|
|
||||||
* @author 小李
|
* @author 小李
|
||||||
* @date 10:21 2024/9/24
|
* @date 10:21 2024/9/24
|
||||||
|
* @param id 企业ID
|
||||||
**/
|
**/
|
||||||
CompanyToServerVO getCompanyServerById(String id);
|
CompanyToServerVO getCompanyServerById(String id);
|
||||||
|
Company getCompanyByTenantIdAndSystemCode(String tenantId, String systemCode);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过租户ID和系统编码查询企业信息
|
* 通过租户ID和系统编码查询企业信息
|
||||||
|
|||||||
@ -6,6 +6,9 @@ import cn.hutool.core.util.StrUtil;
|
|||||||
import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
|
import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
|
||||||
import cn.iocoder.yudao.framework.common.exception.ErrorCode;
|
import cn.iocoder.yudao.framework.common.exception.ErrorCode;
|
||||||
import cn.iocoder.yudao.framework.common.exception.ServiceException;
|
import cn.iocoder.yudao.framework.common.exception.ServiceException;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
||||||
|
import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
|
||||||
|
import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;
|
||||||
import cn.iocoder.yudao.module.app.company.vo.CompanyToServerVO;
|
import cn.iocoder.yudao.module.app.company.vo.CompanyToServerVO;
|
||||||
import cn.iocoder.yudao.module.company.entity.Company;
|
import cn.iocoder.yudao.module.company.entity.Company;
|
||||||
import cn.iocoder.yudao.module.company.vo.CompanyRespVO;
|
import cn.iocoder.yudao.module.company.vo.CompanyRespVO;
|
||||||
@ -19,6 +22,7 @@ import cn.iocoder.yudao.module.system.api.user.AdminUserApi;
|
|||||||
import cn.iocoder.yudao.module.system.api.user.dto.AdminUserRespDTO;
|
import cn.iocoder.yudao.module.system.api.user.dto.AdminUserRespDTO;
|
||||||
import cn.iocoder.yudao.module.system.api.user.dto.UserDTO;
|
import cn.iocoder.yudao.module.system.api.user.dto.UserDTO;
|
||||||
import com.baomidou.dynamic.datasource.annotation.DSTransactional;
|
import com.baomidou.dynamic.datasource.annotation.DSTransactional;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import cn.iocoder.yudao.module.company.vo.CompanyReqVO;
|
import cn.iocoder.yudao.module.company.vo.CompanyReqVO;
|
||||||
@ -216,6 +220,18 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@TenantIgnore
|
||||||
|
public Company getCompanyByTenantIdAndSystemCode(String tenantId, String systemCode) {
|
||||||
|
LambdaQueryWrapper<Company> queryWrapper = new LambdaQueryWrapper<Company>()
|
||||||
|
.eq(TenantBaseDO::getTenantId, tenantId)
|
||||||
|
.like(Company::getServiceCodes, systemCode)
|
||||||
|
.orderByDesc(BaseDO::getCreateTime);
|
||||||
|
|
||||||
|
List<Company> list = this.list(queryWrapper);
|
||||||
|
return list.isEmpty() ? null : list.get(0);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过租户ID和系统编码查询企业信息
|
* 通过租户ID和系统编码查询企业信息
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user