修改文件名
This commit is contained in:
parent
78ed074cbd
commit
6a4ce0a7f6
|
|
@ -14,7 +14,7 @@
|
|||
<module>zlpt-job</module>
|
||||
<module>zlpt-file</module>
|
||||
<module>zlpt-home</module>
|
||||
|
||||
<module>zlpt-bigScreen</module>
|
||||
</modules>
|
||||
|
||||
<artifactId>zlpt-modules</artifactId>
|
||||
|
|
@ -28,5 +28,33 @@
|
|||
<groupId>com.bonus.zlpt</groupId>
|
||||
<artifactId>zlpt-api-system</artifactId>
|
||||
</dependency>
|
||||
<!-- nacos 服务发现-->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
<!-- nacos 配置中心-->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- dynamic-datasource 多数据源-->
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
|
||||
<version>3.5.2</version>
|
||||
</dependency>
|
||||
|
||||
<!--驱动配置-->
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
<!--数据库连接池配置-->
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>druid-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,93 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>zlpt-modules</artifactId>
|
||||
<groupId>com.bonus.zlpt</groupId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>zlpt-bigScreen</artifactId>
|
||||
<dependencies>
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos Config -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Alibaba Sentinel -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringBoot Actuator -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- FastDFS -->
|
||||
<dependency>
|
||||
<groupId>com.github.tobato</groupId>
|
||||
<artifactId>fastdfs-client</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- Minio -->
|
||||
<dependency>
|
||||
<groupId>io.minio</groupId>
|
||||
<artifactId>minio</artifactId>
|
||||
<version>${minio.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- RuoYi Api System -->
|
||||
<dependency>
|
||||
<groupId>com.bonus.zlpt</groupId>
|
||||
<artifactId>zlpt-api-system</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- RuoYi Common Swagger -->
|
||||
<dependency>
|
||||
<groupId>com.bonus.zlpt</groupId>
|
||||
<artifactId>zlpt-common-swagger</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.bonus.zlpt</groupId>
|
||||
<artifactId>zlpt-common-swagger</artifactId>
|
||||
<version>3.6.3</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.bonus.zlpt</groupId>
|
||||
<artifactId>zlpt-common-core</artifactId>
|
||||
<version>3.6.3</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.bonus.zlpt</groupId>
|
||||
<artifactId>zlpt-api-system</artifactId>
|
||||
<version>3.6.3</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.bonus.zlpt</groupId>
|
||||
<artifactId>zlpt-common-security</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
</project>
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.bonus.zlpt.bigscreen;
|
||||
|
||||
import com.bonus.zlpt.common.security.annotation.EnableCustomConfig;
|
||||
import com.bonus.zlpt.common.security.annotation.EnableRyFeignClients;
|
||||
import com.bonus.zlpt.common.swagger.annotation.EnableCustomSwagger2;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
||||
|
||||
/**
|
||||
* 大屏模块
|
||||
*/
|
||||
@EnableCustomConfig
|
||||
@EnableCustomSwagger2
|
||||
@EnableRyFeignClients
|
||||
@SpringBootApplication
|
||||
//
|
||||
//
|
||||
// @MapperScan("com.bonus.zlpt.bigscreen.mapper")
|
||||
public class ZlptBigScreenApplication
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
SpringApplication.run(ZlptBigScreenApplication.class, args);
|
||||
System.out.println("(♥◠‿◠)ノ゙ 大屏模块启动成功 ლ(´ڡ`ლ)゙ \n" );
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
package com.bonus.zlpt.bigscreen.controller;
|
||||
|
||||
import com.bonus.zlpt.common.core.web.controller.BaseController;
|
||||
import com.bonus.zlpt.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.zlpt.bigscreen.domain.BmCompanyInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.MaDevInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.CoTypeVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.ColtdTypeVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.TypeVo;
|
||||
import com.bonus.zlpt.bigscreen.service.BmCompanyInfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业信息表(BmCompanyInfo)表控制层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 15:01:48
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("bmCompanyInfo")
|
||||
public class BmCompanyInfoController extends BaseController {
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Autowired
|
||||
private BmCompanyInfoService bmCompanyInfoService;
|
||||
|
||||
/**
|
||||
* 查询平台入驻单位
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public AjaxResult List()
|
||||
{
|
||||
return toAjax(bmCompanyInfoService.selectList());
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据企业类型查询对应数量
|
||||
* @param bmCompanyInfo
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/type-list")
|
||||
public AjaxResult typeList(BmCompanyInfo bmCompanyInfo)
|
||||
{
|
||||
List<CoTypeVo> list = bmCompanyInfoService.selectTypeList(bmCompanyInfo);
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据企业类型所属查询设备类型数量及经纬度
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/coltd-list")
|
||||
public AjaxResult coltdList()
|
||||
{
|
||||
List<ColtdTypeVo> list = bmCompanyInfoService.selectColtdList();
|
||||
return success(list);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
package com.bonus.zlpt.bigscreen.controller;
|
||||
|
||||
import com.bonus.zlpt.common.core.web.controller.BaseController;
|
||||
import com.bonus.zlpt.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.zlpt.system.api.domain.SysDept;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.CompanyInfoVo;
|
||||
import com.bonus.zlpt.bigscreen.service.BmMachinistInfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 机手信息表(BmMachinistInfo)表控制层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 12:06:56
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("bmMachinistInfo")
|
||||
public class BmMachinistInfoController extends BaseController {
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Autowired
|
||||
private BmMachinistInfoService bmMachinistInfoService;
|
||||
|
||||
/**
|
||||
* 获取企业所属对应的机手数量
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list()
|
||||
{
|
||||
List<CompanyInfoVo> machinistInfos = bmMachinistInfoService.selectMachinistInfoList();
|
||||
return success(machinistInfos);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取企业所属对应的机手总人数
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/total-list")
|
||||
public AjaxResult totalList()
|
||||
{
|
||||
List<CompanyInfoVo> machinistInfos = bmMachinistInfoService.selectMachinistInfoList();
|
||||
int totalCount = 0;
|
||||
for (CompanyInfoVo companyInfo : machinistInfos) {
|
||||
totalCount += companyInfo.getCount();
|
||||
}
|
||||
return toAjax(totalCount);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
package com.bonus.zlpt.bigscreen.controller;
|
||||
|
||||
import com.bonus.zlpt.common.core.web.controller.BaseController;
|
||||
import com.bonus.zlpt.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.zlpt.bigscreen.domain.MaDevInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.CoTypeVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.CompanyInfoVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.TypeVo;
|
||||
import com.bonus.zlpt.bigscreen.service.MaDevInfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备信息表(MaDevInfo)表控制层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 12:57:58
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("maDevInfo")
|
||||
public class MaDevInfoController extends BaseController {
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Autowired
|
||||
private MaDevInfoService maDevInfoService;
|
||||
|
||||
/**
|
||||
* 查询平台入驻设备总数
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public AjaxResult List()
|
||||
{
|
||||
return toAjax(maDevInfoService.selectList());
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据类型查询设备总数
|
||||
* @param maDevInfo
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/type-list")
|
||||
public AjaxResult typeList(MaDevInfo maDevInfo)
|
||||
{
|
||||
List<TypeVo> list = maDevInfoService.selectTypeList(maDevInfo);
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据设备类型查询数量
|
||||
* @param maDevInfo
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/matype-list")
|
||||
public AjaxResult maTypeList(MaDevInfo maDevInfo)
|
||||
{
|
||||
List<TypeVo> list = maDevInfoService.selectMaTypeList(maDevInfo);
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取企业所属设备状态为自有的设备数量
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/company-list")
|
||||
public AjaxResult companyList()
|
||||
{
|
||||
List<CoTypeVo> maDevInfos = maDevInfoService.selectMaDevInfoList();
|
||||
return success(maDevInfos);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备状态为在租的设备名称及数量
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/ma-list")
|
||||
public AjaxResult maList(MaDevInfo maDevInfo)
|
||||
{
|
||||
List<CompanyInfoVo> maDevInfos = maDevInfoService.selectmaList(maDevInfo);
|
||||
return success(maDevInfos);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询公司对应的热门设备数量
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/hot-list")
|
||||
public AjaxResult maList()
|
||||
{
|
||||
List<CompanyInfoVo> maHotInfos = maDevInfoService.selecthotList();
|
||||
return success(maHotInfos);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
package com.bonus.zlpt.bigscreen.controller;
|
||||
|
||||
import com.bonus.zlpt.common.core.web.controller.BaseController;
|
||||
import com.bonus.zlpt.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.zlpt.bigscreen.domain.MaDevInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.MaLeaseInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.MaLeaseInfoVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.TypeVo;
|
||||
import com.bonus.zlpt.bigscreen.service.MaLeaseInfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 租赁信息表(MaLeaseInfo)表控制层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 15:55:23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("maLeaseInfo")
|
||||
public class MaLeaseInfoController extends BaseController {
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Autowired
|
||||
private MaLeaseInfoService maLeaseInfoService;
|
||||
|
||||
/**
|
||||
* 根据求出租信息查询对应的数量
|
||||
* @param maLeaseInfo
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/type-list")
|
||||
public AjaxResult typeList(MaLeaseInfo maLeaseInfo)
|
||||
{
|
||||
List<MaLeaseInfoVo> list = maLeaseInfoService.selectTypeList(maLeaseInfo);
|
||||
return success(list);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
package com.bonus.zlpt.bigscreen.controller;
|
||||
|
||||
import com.bonus.zlpt.common.core.web.controller.BaseController;
|
||||
import com.bonus.zlpt.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.zlpt.bigscreen.domain.MaOrderInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.CompanyInfoVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.MaOrderInfoVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.MaOrderVo;
|
||||
import com.bonus.zlpt.bigscreen.service.MaOrderInfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单信息表(MaOrderInfo)表控制层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 13:14:19
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("maOrderInfo")
|
||||
public class MaOrderInfoController extends BaseController {
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Autowired
|
||||
private MaOrderInfoService maOrderInfoService;
|
||||
|
||||
/**
|
||||
* 获取每个月对应的订单数量
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(MaOrderInfo maOrderInfo)
|
||||
{
|
||||
List<MaOrderInfoVo> machinistInfos = maOrderInfoService.selectMaOrderInfoList(maOrderInfo);
|
||||
return success(machinistInfos);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询今日订单额以及订单数量
|
||||
* @param maOrderInfo
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/today-list")
|
||||
public AjaxResult todayList(MaOrderInfo maOrderInfo)
|
||||
{
|
||||
List<MaOrderVo> maOrderInfos = maOrderInfoService.selectTodayList(maOrderInfo);
|
||||
return success(maOrderInfos);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.bonus.zlpt.bigscreen.domain;
|
||||
|
||||
|
||||
/**
|
||||
* 企业信息表(BmCompanyInfo)表实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 15:01:48
|
||||
*/
|
||||
public class BmCompanyInfo {
|
||||
//企业id
|
||||
private Integer coId;
|
||||
|
||||
//企业名称
|
||||
private String coName;
|
||||
|
||||
//企业类型(社会企业,南网集团企业,南网控股企业)
|
||||
private String coType;
|
||||
|
||||
//企业所属(广东电网、广西电网、贵州电网、云南电网、海南电网、储能公司、深圳供电局、超高压公司)
|
||||
private String coLtd;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.bonus.zlpt.bigscreen.domain;
|
||||
|
||||
import com.bonus.zlpt.common.core.annotation.Excel;
|
||||
|
||||
/**
|
||||
* 机手信息表(BmMachinistInfo)表实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 12:06:56
|
||||
*/
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class BmMachinistInfo {
|
||||
//机手ID
|
||||
@Excel(name = "机手ID")
|
||||
private Integer stId;
|
||||
|
||||
//机手名称
|
||||
@Excel(name = "机手名称")
|
||||
private String stName;
|
||||
|
||||
//性别
|
||||
@Excel(name = "性别")
|
||||
private String sex;
|
||||
|
||||
//身份证
|
||||
@Excel(name = "身份证")
|
||||
private String idNumber;
|
||||
|
||||
//联系方式
|
||||
@Excel(name = "联系方式")
|
||||
private String telphone;
|
||||
|
||||
//所属企业
|
||||
@Excel(name = "所属企业")
|
||||
private String ownCo;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
package com.bonus.zlpt.bigscreen.domain;
|
||||
|
||||
import com.bonus.zlpt.common.core.annotation.Excel;
|
||||
|
||||
public class GpsRealInfo {
|
||||
|
||||
//gps_id
|
||||
@Excel(name = "gps_id")
|
||||
private Integer gpsId;
|
||||
|
||||
//gps编号
|
||||
@Excel(name = "gps编号")
|
||||
private String gpsCode;
|
||||
|
||||
//经度
|
||||
@Excel(name = "经度")
|
||||
private String lon;
|
||||
|
||||
//维度
|
||||
@Excel(name = "维度")
|
||||
private String lat;
|
||||
|
||||
//电量
|
||||
@Excel(name = "电量")
|
||||
private String elec;
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package com.bonus.zlpt.bigscreen.domain;
|
||||
|
||||
import com.bonus.zlpt.common.core.annotation.Excel;
|
||||
|
||||
/**
|
||||
* 设备信息表(MaDevInfo)表实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 12:57:58
|
||||
*/
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class MaDevInfo {
|
||||
|
||||
//设备id
|
||||
@Excel(name = "设备id")
|
||||
private Integer maId;
|
||||
|
||||
//类型id
|
||||
@Excel(name = "类型id")
|
||||
private Integer typeId;
|
||||
|
||||
//gps编号
|
||||
@Excel(name = "gps编号")
|
||||
private String gpsCode;
|
||||
|
||||
//设备所属公司
|
||||
@Excel(name = "设备所属公司")
|
||||
private String ownCo;
|
||||
|
||||
//设备状态
|
||||
@Excel(name = "设备状态")
|
||||
private String maStatus;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
package com.bonus.zlpt.bigscreen.domain;
|
||||
|
||||
import com.bonus.zlpt.common.core.annotation.Excel;
|
||||
|
||||
public class MaHotSearch {
|
||||
|
||||
//热搜id
|
||||
@Excel(name = "热搜id")
|
||||
private int id;
|
||||
|
||||
//设备id
|
||||
@Excel(name = "设备id")
|
||||
private String maId;
|
||||
|
||||
//浏览次数
|
||||
@Excel(name = "浏览次数")
|
||||
private String searchNum;
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.bonus.zlpt.bigscreen.domain;
|
||||
|
||||
import com.bonus.zlpt.common.core.annotation.Excel;
|
||||
|
||||
/**
|
||||
* 租赁信息表(MaLeaseInfo)表实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 15:55:24
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class MaLeaseInfo {
|
||||
|
||||
//租赁id
|
||||
@Excel(name = "租赁id")
|
||||
private Integer id;
|
||||
|
||||
//出租信息
|
||||
@Excel(name = "出租信息")
|
||||
private Integer czNum;
|
||||
|
||||
//求租信息
|
||||
@Excel(name = "求租信息")
|
||||
private Integer qzNum;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.bonus.zlpt.bigscreen.domain;
|
||||
|
||||
import com.bonus.zlpt.common.core.annotation.Excel;
|
||||
|
||||
/**
|
||||
* 订单信息表(MaOrderInfo)表实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 13:14:19
|
||||
*/
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class MaOrderInfo {
|
||||
//订单id
|
||||
@Excel(name = "订单id")
|
||||
private Integer id;
|
||||
|
||||
//订单编号
|
||||
@Excel(name = "订单编号")
|
||||
private String code;
|
||||
|
||||
//订单日期
|
||||
@Excel(name = "订单日期")
|
||||
private String time;
|
||||
|
||||
//订单金额
|
||||
@Excel(name = "订单金额")
|
||||
private String money;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
package com.bonus.zlpt.bigscreen.domain;
|
||||
|
||||
import com.bonus.zlpt.common.core.annotation.Excel;
|
||||
|
||||
public class MaTypeInfo {
|
||||
|
||||
//类型id
|
||||
@Excel(name = "类型id")
|
||||
private String typeId;
|
||||
|
||||
//父级id
|
||||
@Excel(name = "父级id")
|
||||
private String parentId;
|
||||
|
||||
//设备名称
|
||||
@Excel(name = "设备名称")
|
||||
private String typeName;
|
||||
|
||||
//层级
|
||||
@Excel(name = "层级")
|
||||
private String level;
|
||||
|
||||
//设备名称
|
||||
@Excel(name = "排序")
|
||||
private String sort;
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package com.bonus.zlpt.bigscreen.domain.vo;
|
||||
|
||||
|
||||
public class CoTypeVo
|
||||
{
|
||||
//企业类型
|
||||
private String coType;
|
||||
|
||||
//类型数量
|
||||
private int count;
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
package com.bonus.zlpt.bigscreen.domain.vo;
|
||||
|
||||
/**
|
||||
* 企业所属返回类
|
||||
*/
|
||||
|
||||
public class ColtdTypeVo {
|
||||
//设备id
|
||||
private String maId;
|
||||
|
||||
//企业类型所属
|
||||
private String companyType;
|
||||
|
||||
//设备状态
|
||||
private String maStatus;
|
||||
|
||||
//数量
|
||||
private String count;
|
||||
|
||||
//经度
|
||||
private String lon;
|
||||
|
||||
//维度
|
||||
private String lat;
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.bonus.zlpt.bigscreen.domain.vo;
|
||||
|
||||
|
||||
/**
|
||||
* 企业机手返回类
|
||||
*/
|
||||
|
||||
public class CompanyInfoVo {
|
||||
|
||||
//所属企业名称
|
||||
private String ownCo;
|
||||
|
||||
//机手数量
|
||||
private int count;
|
||||
|
||||
public String getOwnCo() {
|
||||
return ownCo;
|
||||
}
|
||||
|
||||
public void setOwnCo(String ownCo) {
|
||||
this.ownCo = ownCo;
|
||||
}
|
||||
|
||||
public int getCount() {
|
||||
return count;
|
||||
}
|
||||
|
||||
public void setCount(int count) {
|
||||
this.count = count;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
package com.bonus.zlpt.bigscreen.domain.vo;
|
||||
|
||||
public class MaDevVo {
|
||||
|
||||
//设备名称
|
||||
private String maName;
|
||||
|
||||
//设备数量
|
||||
private int count;
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
package com.bonus.zlpt.bigscreen.domain.vo;
|
||||
|
||||
public class MaLeaseInfoVo {
|
||||
|
||||
//租赁类型
|
||||
private String type;
|
||||
|
||||
//类型数量
|
||||
private int count;
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package com.bonus.zlpt.bigscreen.domain.vo;
|
||||
|
||||
/**
|
||||
* 月份订单返回类
|
||||
*/
|
||||
|
||||
public class MaOrderInfoVo {
|
||||
|
||||
//所属月份
|
||||
private String month;
|
||||
|
||||
//订单数量
|
||||
private int count;
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
package com.bonus.zlpt.bigscreen.domain.vo;
|
||||
|
||||
public class MaOrderVo
|
||||
{
|
||||
//今日订单数量
|
||||
private int count;
|
||||
|
||||
//累计订单金额
|
||||
private String money;
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
package com.bonus.zlpt.bigscreen.domain.vo;
|
||||
|
||||
public class TypeVo {
|
||||
|
||||
//设备状态
|
||||
private String maStatus;
|
||||
|
||||
//设备数量
|
||||
private int count;
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.bonus.zlpt.bigscreen.mapper;
|
||||
|
||||
import com.bonus.zlpt.bigscreen.domain.BmCompanyInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.CoTypeVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.ColtdTypeVo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业信息表(BmCompanyInfo)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 15:01:48
|
||||
*/
|
||||
@Mapper
|
||||
public interface BmCompanyInfoMapper {
|
||||
|
||||
/**
|
||||
* 查询平台入驻单位
|
||||
* @return
|
||||
*/
|
||||
int selectList();
|
||||
|
||||
/**
|
||||
* 根据企业类型查询对应数量
|
||||
* @param bmCompanyInfo
|
||||
* @return
|
||||
*/
|
||||
List<CoTypeVo> selectTypeList(BmCompanyInfo bmCompanyInfo);
|
||||
|
||||
/**
|
||||
* 根据企业类型所属查询设备类型数量及经纬度
|
||||
* @return
|
||||
*/
|
||||
List<ColtdTypeVo> selectColtdList();
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.bonus.zlpt.bigscreen.mapper;
|
||||
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.CompanyInfoVo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 机手信息表(BmMachinistInfo)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 12:06:56
|
||||
*/
|
||||
@Mapper
|
||||
public interface BmMachinistInfoMapper {
|
||||
|
||||
/**
|
||||
* 获取企业对应的机手数量
|
||||
* @return
|
||||
*/
|
||||
List<CompanyInfoVo> selectMachinistInfoList();
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.bonus.zlpt.bigscreen.mapper;
|
||||
|
||||
import com.bonus.zlpt.bigscreen.domain.MaDevInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.CoTypeVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.ColtdTypeVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.CompanyInfoVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.TypeVo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备信息表(MaDevInfo)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 12:57:58
|
||||
*/
|
||||
@Mapper
|
||||
public interface MaDevInfoMapper {
|
||||
|
||||
/**
|
||||
* 获取企业所属设备状态为自有的设备数量
|
||||
* @return
|
||||
*/
|
||||
List<CoTypeVo> selectMaDevInfoList();
|
||||
|
||||
/**
|
||||
* 查询设备状态为在租的设备名称及数量
|
||||
* @param maDevInfo
|
||||
* @return
|
||||
*/
|
||||
List<CompanyInfoVo> selectmaList(MaDevInfo maDevInfo);
|
||||
|
||||
/**
|
||||
* 查询平台入驻设备总数
|
||||
* @return
|
||||
*/
|
||||
int selectList();
|
||||
|
||||
/**
|
||||
* 根据类型查询设备总数
|
||||
* @param maDevInfo
|
||||
* @return
|
||||
*/
|
||||
List<TypeVo> selectTypeList(MaDevInfo maDevInfo);
|
||||
|
||||
/**
|
||||
* 根据设备类型查询数量
|
||||
* @param maDevInfo
|
||||
* @return
|
||||
*/
|
||||
List<TypeVo> selectMaTypeList(MaDevInfo maDevInfo);
|
||||
|
||||
/**
|
||||
* 查询公司对应的热门设备数量
|
||||
* @return
|
||||
*/
|
||||
List<CompanyInfoVo> selecthotList();
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
package com.bonus.zlpt.bigscreen.mapper;
|
||||
|
||||
import com.bonus.zlpt.bigscreen.domain.MaLeaseInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.MaLeaseInfoVo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 租赁信息表(MaLeaseInfo)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 15:55:23
|
||||
*/
|
||||
@Mapper
|
||||
public interface MaLeaseInfoMapper {
|
||||
|
||||
/**
|
||||
* 根据求出租信息查询对应的数量
|
||||
* @param maLeaseInfo
|
||||
* @return
|
||||
*/
|
||||
List<MaLeaseInfoVo> selectTypeList(MaLeaseInfo maLeaseInfo);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package com.bonus.zlpt.bigscreen.mapper;
|
||||
|
||||
import com.bonus.zlpt.bigscreen.domain.MaOrderInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.MaOrderInfoVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.MaOrderVo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单信息表(MaOrderInfo)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 13:14:19
|
||||
*/
|
||||
@Mapper
|
||||
public interface MaOrderInfoMapper {
|
||||
|
||||
/**
|
||||
* 获取每个月对应的订单数量
|
||||
* @param maOrderInfo
|
||||
* @return
|
||||
*/
|
||||
List<MaOrderInfoVo> selectMaOrderInfoList(MaOrderInfo maOrderInfo);
|
||||
|
||||
/**
|
||||
* 查询今日订单额以及订单数量
|
||||
* @param maOrderInfo
|
||||
* @return
|
||||
*/
|
||||
List<MaOrderVo> selecttodayList(MaOrderInfo maOrderInfo);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
package com.bonus.zlpt.bigscreen.service;
|
||||
|
||||
|
||||
import com.bonus.zlpt.bigscreen.domain.BmCompanyInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.CoTypeVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.ColtdTypeVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业信息表(BmCompanyInfo)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 15:01:48
|
||||
*/
|
||||
public interface BmCompanyInfoService {
|
||||
|
||||
/**
|
||||
* 查询平台入驻单位
|
||||
* @return
|
||||
*/
|
||||
int selectList();
|
||||
|
||||
/**
|
||||
* 根据企业类型查询对应数量
|
||||
* @param bmCompanyInfo
|
||||
* @return
|
||||
*/
|
||||
List<CoTypeVo> selectTypeList(BmCompanyInfo bmCompanyInfo);
|
||||
|
||||
/**
|
||||
* 根据企业类型所属查询设备类型数量及经纬度
|
||||
* @return
|
||||
*/
|
||||
List<ColtdTypeVo> selectColtdList();
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
package com.bonus.zlpt.bigscreen.service;
|
||||
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.CompanyInfoVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 机手信息表(BmMachinistInfo)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 12:06:58
|
||||
*/
|
||||
public interface BmMachinistInfoService {
|
||||
|
||||
/**
|
||||
* 获取企业对应的机手数量
|
||||
* @return
|
||||
*/
|
||||
List<CompanyInfoVo> selectMachinistInfoList();
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.bonus.zlpt.bigscreen.service;
|
||||
|
||||
import com.bonus.zlpt.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.zlpt.bigscreen.domain.MaDevInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.CoTypeVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.CompanyInfoVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.TypeVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备信息表(MaDevInfo)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 12:57:59
|
||||
*/
|
||||
public interface MaDevInfoService {
|
||||
|
||||
/**
|
||||
* 获取企业所属设备状态为自有的设备数量
|
||||
* @return
|
||||
*/
|
||||
List<CoTypeVo> selectMaDevInfoList();
|
||||
|
||||
/**
|
||||
* 查询设备状态为在租的设备名称及数量
|
||||
* @param maDevInfo
|
||||
* @return
|
||||
*/
|
||||
List<CompanyInfoVo> selectmaList(MaDevInfo maDevInfo);
|
||||
|
||||
/**
|
||||
* 查询平台入驻设备总数
|
||||
* @return
|
||||
*/
|
||||
int selectList();
|
||||
|
||||
/**
|
||||
* 根据类型查询设备总数
|
||||
* @param maDevInfo
|
||||
* @return
|
||||
*/
|
||||
List<TypeVo> selectTypeList(MaDevInfo maDevInfo);
|
||||
|
||||
/**
|
||||
* 根据设备类型查询数量
|
||||
* @param maDevInfo
|
||||
* @return
|
||||
*/
|
||||
List<TypeVo> selectMaTypeList(MaDevInfo maDevInfo);
|
||||
|
||||
/**
|
||||
* 查询公司对应的热门设备数量
|
||||
* @return
|
||||
*/
|
||||
List<CompanyInfoVo> selecthotList();
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.bonus.zlpt.bigscreen.service;
|
||||
|
||||
import com.bonus.zlpt.bigscreen.domain.MaLeaseInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.MaLeaseInfoVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 租赁信息表(MaLeaseInfo)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 15:55:24
|
||||
*/
|
||||
public interface MaLeaseInfoService {
|
||||
|
||||
/**
|
||||
* 根据求出租信息查询对应的数量
|
||||
* @param maLeaseInfo
|
||||
* @return
|
||||
*/
|
||||
List<MaLeaseInfoVo> selectTypeList(MaLeaseInfo maLeaseInfo);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.bonus.zlpt.bigscreen.service;
|
||||
|
||||
import com.bonus.zlpt.bigscreen.domain.MaOrderInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.MaOrderInfoVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.MaOrderVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单信息表(MaOrderInfo)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 13:14:19
|
||||
*/
|
||||
public interface MaOrderInfoService {
|
||||
|
||||
/**
|
||||
* 获取每个月对应的订单数量
|
||||
* @param maOrderInfo
|
||||
* @return
|
||||
*/
|
||||
List<MaOrderInfoVo> selectMaOrderInfoList(MaOrderInfo maOrderInfo);
|
||||
|
||||
/**
|
||||
* 查询今日订单额以及订单数量
|
||||
* @param maOrderInfo
|
||||
* @return
|
||||
*/
|
||||
List<MaOrderVo> selectTodayList(MaOrderInfo maOrderInfo);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
package com.bonus.zlpt.bigscreen.service.impl;
|
||||
|
||||
import com.bonus.zlpt.bigscreen.domain.BmCompanyInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.CoTypeVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.ColtdTypeVo;
|
||||
import com.bonus.zlpt.bigscreen.mapper.BmCompanyInfoMapper;
|
||||
import com.bonus.zlpt.bigscreen.service.BmCompanyInfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业信息表(BmCompanyInfo)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 15:01:48
|
||||
*/
|
||||
@Service("bmCompanyInfoService")
|
||||
public class BmCompanyInfoServiceImpl implements BmCompanyInfoService {
|
||||
|
||||
@Autowired
|
||||
private BmCompanyInfoMapper bmCompanyInfoMapper;
|
||||
/**
|
||||
* 查询平台入驻单位
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int selectList() {
|
||||
return bmCompanyInfoMapper.selectList();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据企业类型查询对应数量
|
||||
* @param bmCompanyInfo
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<CoTypeVo> selectTypeList(BmCompanyInfo bmCompanyInfo) {
|
||||
return bmCompanyInfoMapper.selectTypeList(bmCompanyInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据企业类型所属查询设备类型数量及经纬度
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<ColtdTypeVo> selectColtdList() {
|
||||
return bmCompanyInfoMapper.selectColtdList();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
package com.bonus.zlpt.bigscreen.service.impl;
|
||||
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.CompanyInfoVo;
|
||||
import com.bonus.zlpt.bigscreen.mapper.BmMachinistInfoMapper;
|
||||
import com.bonus.zlpt.bigscreen.service.BmMachinistInfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 机手信息表(BmMachinistInfo)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 12:06:58
|
||||
*/
|
||||
@Service("bmMachinistInfoService")
|
||||
public class BmMachinistInfoServiceImpl implements BmMachinistInfoService {
|
||||
|
||||
@Autowired
|
||||
private BmMachinistInfoMapper infoMapper;
|
||||
|
||||
/**
|
||||
* 获取企业对应的机手数量
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<CompanyInfoVo> selectMachinistInfoList() {
|
||||
return infoMapper.selectMachinistInfoList();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
package com.bonus.zlpt.bigscreen.service.impl;
|
||||
|
||||
import com.bonus.zlpt.bigscreen.domain.MaDevInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.CoTypeVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.CompanyInfoVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.TypeVo;
|
||||
import com.bonus.zlpt.bigscreen.mapper.MaDevInfoMapper;
|
||||
import com.bonus.zlpt.bigscreen.service.MaDevInfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备信息表(MaDevInfo)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 12:57:59
|
||||
*/
|
||||
@Service("maDevInfoService")
|
||||
public class MaDevInfoServiceImpl implements MaDevInfoService {
|
||||
|
||||
@Autowired
|
||||
private MaDevInfoMapper maDevInfoMapper;
|
||||
|
||||
/**
|
||||
* 获取企业所属设备状态为自有的设备数量
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<CoTypeVo> selectMaDevInfoList() {
|
||||
return maDevInfoMapper.selectMaDevInfoList();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备状态为在租的设备名称及数量
|
||||
* @param maDevInfo
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<CompanyInfoVo> selectmaList(MaDevInfo maDevInfo) {
|
||||
return maDevInfoMapper.selectmaList(maDevInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询平台入驻设备总数
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int selectList() {
|
||||
return maDevInfoMapper.selectList();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据类型查询设备总数
|
||||
* @param maDevInfo
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<TypeVo> selectTypeList(MaDevInfo maDevInfo) {
|
||||
return maDevInfoMapper.selectTypeList(maDevInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据设备类型查询数量
|
||||
* @param maDevInfo
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<TypeVo> selectMaTypeList(MaDevInfo maDevInfo) {
|
||||
return maDevInfoMapper.selectMaTypeList(maDevInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询公司对应的热门设备数量
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<CompanyInfoVo> selecthotList() {
|
||||
return maDevInfoMapper.selecthotList();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package com.bonus.zlpt.bigscreen.service.impl;
|
||||
|
||||
import com.bonus.zlpt.bigscreen.domain.MaLeaseInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.MaLeaseInfoVo;
|
||||
import com.bonus.zlpt.bigscreen.mapper.MaLeaseInfoMapper;
|
||||
import com.bonus.zlpt.bigscreen.service.MaLeaseInfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 租赁信息表(MaLeaseInfo)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 15:55:24
|
||||
*/
|
||||
@Service("maLeaseInfoService")
|
||||
public class MaLeaseInfoServiceImpl implements MaLeaseInfoService {
|
||||
|
||||
@Autowired
|
||||
private MaLeaseInfoMapper leaseInfoMapper;
|
||||
/**
|
||||
* 根据求出租信息查询对应的数量
|
||||
* @param maLeaseInfo
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<MaLeaseInfoVo> selectTypeList(MaLeaseInfo maLeaseInfo) {
|
||||
return leaseInfoMapper.selectTypeList(maLeaseInfo);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
package com.bonus.zlpt.bigscreen.service.impl;
|
||||
|
||||
import com.bonus.zlpt.bigscreen.domain.MaOrderInfo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.MaOrderInfoVo;
|
||||
import com.bonus.zlpt.bigscreen.domain.vo.MaOrderVo;
|
||||
import com.bonus.zlpt.bigscreen.mapper.MaOrderInfoMapper;
|
||||
import com.bonus.zlpt.bigscreen.service.MaOrderInfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单信息表(MaOrderInfo)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-30 13:14:19
|
||||
*/
|
||||
@Service("maOrderInfoService")
|
||||
public class MaOrderInfoServiceImpl implements MaOrderInfoService {
|
||||
|
||||
@Autowired
|
||||
private MaOrderInfoMapper maOrderInfoMapper;
|
||||
/**
|
||||
* 获取每个月对应的订单数量
|
||||
* @param maOrderInfo
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<MaOrderInfoVo> selectMaOrderInfoList(MaOrderInfo maOrderInfo) {
|
||||
return maOrderInfoMapper.selectMaOrderInfoList(maOrderInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询今日订单额以及订单数量
|
||||
* @param maOrderInfo
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<MaOrderVo> selectTodayList(MaOrderInfo maOrderInfo) {
|
||||
return maOrderInfoMapper.selecttodayList(maOrderInfo);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
Spring Boot Version: ${spring-boot.version}
|
||||
Spring Application Name: ${spring.application.name}
|
||||
_ _
|
||||
(_) | |
|
||||
_ __ _ _ ___ _ _ _ ______ ___ _ _ ___ | |_ ___ _ __ ___
|
||||
| '__|| | | | / _ \ | | | || ||______|/ __|| | | |/ __|| __| / _ \| '_ ` _ \
|
||||
| | | |_| || (_) || |_| || | \__ \| |_| |\__ \| |_ | __/| | | | | |
|
||||
|_| \__,_| \___/ \__, ||_| |___/ \__, ||___/ \__| \___||_| |_| |_|
|
||||
__/ | __/ |
|
||||
|___/ |___/
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 9501
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
datasource:
|
||||
# 主库数据源
|
||||
master:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://192.168.0.14:2009/ma_zlpt?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
||||
username: root
|
||||
password: Bonus@admin123!
|
||||
application:
|
||||
# 应用名称
|
||||
name: zlpt-bigScreen
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: zlpt_cloud_dev
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: zlpt_cloud_dev
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: zlpt_cloud_dev
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
||||
<!-- 日志存放路径 -->
|
||||
<property name="log.path" value="logs/sgzb-system" />
|
||||
<!-- 日志输出格式 -->
|
||||
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
|
||||
|
||||
<!-- 控制台输出 -->
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- 系统日志输出 -->
|
||||
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/info.log</file>
|
||||
<!-- 循环政策:基于时间创建日志文件 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 日志文件名格式 -->
|
||||
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<!-- 过滤的级别 -->
|
||||
<level>INFO</level>
|
||||
<!-- 匹配时的操作:接收(记录) -->
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/error.log</file>
|
||||
<!-- 循环政策:基于时间创建日志文件 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 日志文件名格式 -->
|
||||
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<!-- 过滤的级别 -->
|
||||
<level>ERROR</level>
|
||||
<!-- 匹配时的操作:接收(记录) -->
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<!-- 系统模块日志级别控制 -->
|
||||
<logger name="com.bonus.sgzb" level="info" />
|
||||
<!-- Spring日志级别控制 -->
|
||||
<logger name="org.springframework" level="warn" />
|
||||
|
||||
<root level="info">
|
||||
<appender-ref ref="console" />
|
||||
</root>
|
||||
|
||||
<!--系统操作日志-->
|
||||
<root level="info">
|
||||
<appender-ref ref="file_info" />
|
||||
<appender-ref ref="file_error" />
|
||||
</root>
|
||||
</configuration>
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.zlpt.bigscreen.mapper.BmCompanyInfoMapper">
|
||||
|
||||
<select id="selectList" resultType="java.lang.Integer">
|
||||
SELECT COUNT(*) AS count FROM bm_company_info
|
||||
</select>
|
||||
|
||||
<select id="selectTypeList" resultType="com.bonus.zlpt.bigscreen.domain.vo.CoTypeVo">
|
||||
SELECT co_type as coType, COUNT(*) AS count
|
||||
FROM bm_company_info
|
||||
WHERE co_type IN ('社会企业', '南网集团企业', '南网控股企业')
|
||||
GROUP BY co_type
|
||||
</select>
|
||||
|
||||
<select id="selectColtdList" resultType="com.bonus.zlpt.bigscreen.domain.vo.ColtdTypeVo">
|
||||
SELECT
|
||||
c.company_ltd AS companyType,
|
||||
m.ma_status AS maStatus,
|
||||
COUNT(m.ma_id) AS count,
|
||||
g.lon AS lon,
|
||||
g.lat AS lat
|
||||
FROM ma_dev_info m
|
||||
JOIN bm_company_info c ON m.own_co = c.company_id
|
||||
JOIN gps_real_info g ON m.gps_code = g.gps_code
|
||||
WHERE
|
||||
m.ma_status IN ('在租', '自用', '待租')
|
||||
GROUP BY
|
||||
c.company_ltd, m.ma_status, g.lon, g.lat
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.zlpt.bigscreen.mapper.BmMachinistInfoMapper">
|
||||
|
||||
<select id="selectMachinistInfoList" resultType="com.bonus.zlpt.bigscreen.domain.vo.CompanyInfoVo">
|
||||
SELECT c.co_ltd AS ownCo, COUNT(*) AS count
|
||||
FROM bm_company_info c
|
||||
LEFT JOIN bm_machinist_info m ON c.co_name = m.own_co
|
||||
GROUP BY c.co_ltd
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.zlpt.bigscreen.mapper.MaDevInfoMapper">
|
||||
|
||||
<select id="selectMaDevInfoList" resultType="com.bonus.zlpt.bigscreen.domain.vo.CoTypeVo">
|
||||
|
||||
SELECT bc.co_ltd AS title, COUNT(*) AS Count
|
||||
FROM ma_dev_info md
|
||||
JOIN bm_company_info bc ON md.own_co = bc.co_name
|
||||
WHERE md.ma_status = '自有'
|
||||
GROUP BY bc.co_ltd
|
||||
|
||||
</select>
|
||||
|
||||
<select id="selectmaList" resultType="com.bonus.zlpt.bigscreen.domain.vo.CompanyInfoVo">
|
||||
|
||||
SELECT mti.type_name as maName, COUNT(*) as count
|
||||
FROM ma_type_info mti
|
||||
INNER JOIN ma_dev_info mdi ON mti.type_id = mdi.type_id
|
||||
WHERE mdi.ma_status = '在租'
|
||||
GROUP BY mti.type_name
|
||||
ORDER BY count DESC
|
||||
</select>
|
||||
|
||||
<select id="selectList" resultType="java.lang.Integer">
|
||||
SELECT COUNT(*) AS count FROM ma_dev_info
|
||||
</select>
|
||||
|
||||
<select id="selectTypeList" resultType="com.bonus.zlpt.bigscreen.domain.vo.TypeVo">
|
||||
SELECT ma_status as maStatus, COUNT(*) AS count
|
||||
FROM ma_dev_info
|
||||
WHERE ma_status IN ('自有', '待租')
|
||||
GROUP BY ma_status
|
||||
</select>
|
||||
|
||||
<select id="selectMaTypeList" resultType="com.bonus.zlpt.bigscreen.domain.vo.TypeVo">
|
||||
SELECT ma_status as maStatus, COUNT(*) AS count
|
||||
FROM ma_dev_info
|
||||
WHERE ma_status IN ('在租', '待租')
|
||||
GROUP BY ma_status
|
||||
</select>
|
||||
|
||||
<select id="selecthotList" resultType="com.bonus.zlpt.bigscreen.domain.vo.CompanyInfoVo">
|
||||
SELECT md.own_co AS ownCo, COUNT(*) AS count
|
||||
FROM ma_hot_search hs
|
||||
LEFT JOIN ma_dev_info md ON hs.ma_id = CAST(md.ma_id AS VARCHAR)
|
||||
GROUP BY md.own_co
|
||||
ORDER BY count DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.zlpt.bigscreen.mapper.MaLeaseInfoMapper">
|
||||
|
||||
|
||||
<select id="selectTypeList" resultType="com.bonus.zlpt.bigscreen.domain.vo.MaLeaseInfoVo">
|
||||
SELECT '出租' AS type, SUM(cz_num) AS count FROM ma_lease_info WHERE cz_num > 0
|
||||
UNION ALL
|
||||
SELECT '求租' AS type, SUM(qz_num) AS count FROM ma_lease_info WHERE qz_num > 0
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.zlpt.bigscreen.mapper.MaOrderInfoMapper">
|
||||
|
||||
<select id="selectMaOrderInfoList" resultType="com.bonus.zlpt.bigscreen.domain.vo.MaOrderInfoVo">
|
||||
SELECT
|
||||
CASE
|
||||
WHEN MONTH(STR_TO_DATE(time, '%Y-%m-%d')) = 1 THEN '一月'
|
||||
WHEN MONTH(STR_TO_DATE(time, '%Y-%m-%d')) = 2 THEN '二月'
|
||||
WHEN MONTH(STR_TO_DATE(time, '%Y-%m-%d')) = 3 THEN '三月'
|
||||
WHEN MONTH(STR_TO_DATE(time, '%Y-%m-%d')) = 4 THEN '四月'
|
||||
WHEN MONTH(STR_TO_DATE(time, '%Y-%m-%d')) = 5 THEN '五月'
|
||||
WHEN MONTH(STR_TO_DATE(time, '%Y-%m-%d')) = 6 THEN '六月'
|
||||
WHEN MONTH(STR_TO_DATE(time, '%Y-%m-%d')) = 7 THEN '七月'
|
||||
WHEN MONTH(STR_TO_DATE(time, '%Y-%m-%d')) = 8 THEN '八月'
|
||||
WHEN MONTH(STR_TO_DATE(time, '%Y-%m-%d')) = 9 THEN '九月'
|
||||
WHEN MONTH(STR_TO_DATE(time, '%Y-%m-%d')) = 10 THEN '十月'
|
||||
WHEN MONTH(STR_TO_DATE(time, '%Y-%m-%d')) = 11 THEN '十一月'
|
||||
WHEN MONTH(STR_TO_DATE(time, '%Y-%m-%d')) = 12 THEN '十二月'
|
||||
END AS month,
|
||||
COUNT(*) AS count
|
||||
FROM ma_order_info
|
||||
GROUP BY month
|
||||
ORDER BY month
|
||||
</select>
|
||||
|
||||
<select id="selecttodayList" resultType="com.bonus.zlpt.bigscreen.domain.vo.MaOrderVo">
|
||||
SELECT COUNT(*) AS count,
|
||||
SUM(money) AS money
|
||||
FROM ma_order_info
|
||||
WHERE DATE(time) = CURDATE()
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue