大屏:租赁需求分析
This commit is contained in:
parent
8c5a13fa16
commit
a94d150c5a
|
|
@ -7,6 +7,7 @@ import com.bonus.material.device.mapper.DevInfoMapper;
|
||||||
import com.bonus.material.device.service.DevInfoService;
|
import com.bonus.material.device.service.DevInfoService;
|
||||||
import com.bonus.material.largeScreen.entity.OrderData;
|
import com.bonus.material.largeScreen.entity.OrderData;
|
||||||
import com.bonus.material.largeScreen.entity.OrderDto;
|
import com.bonus.material.largeScreen.entity.OrderDto;
|
||||||
|
import com.bonus.material.lease.domain.MaLeaseInfo;
|
||||||
import com.bonus.material.lease.mapper.MaLeaseInfoMapper;
|
import com.bonus.material.lease.mapper.MaLeaseInfoMapper;
|
||||||
import com.bonus.material.order.domain.OrderDetailDto;
|
import com.bonus.material.order.domain.OrderDetailDto;
|
||||||
import com.bonus.material.order.domain.OrderInfoDto;
|
import com.bonus.material.order.domain.OrderInfoDto;
|
||||||
|
|
@ -79,52 +80,6 @@ public class LargeScreenController {
|
||||||
return AjaxResult.success(groupedList.get(randomValue));
|
return AjaxResult.success(groupedList.get(randomValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("装备共享排名")
|
|
||||||
@GetMapping("/getDeviceShareRanking")
|
|
||||||
public AjaxResult getDeviceShareRanking() {
|
|
||||||
List<DevInfo> list = devInfoMapper.getDeviceShareRanking();
|
|
||||||
return AjaxResult.success(list);
|
|
||||||
}
|
|
||||||
|
|
||||||
@ApiOperation("租赁跟踪")
|
|
||||||
@GetMapping("/getOrderTracking")
|
|
||||||
public AjaxResult getOrderTracking() {
|
|
||||||
List<OrderInfoDto> list = orderMapper.getOrderStatusCount(new OrderDetailDto());
|
|
||||||
return AjaxResult.success(list);
|
|
||||||
}
|
|
||||||
|
|
||||||
@ApiOperation("订单数据")
|
|
||||||
@GetMapping("/orderData")
|
|
||||||
public AjaxResult getOrderData() {
|
|
||||||
return AjaxResult.success(orderService.getOrderData());
|
|
||||||
}
|
|
||||||
|
|
||||||
@ApiOperation("各单位租金排行")
|
|
||||||
@GetMapping("/comCost")
|
|
||||||
public AjaxResult getCompanysCost() {
|
|
||||||
return AjaxResult.success(orderService.getCompanysCost());
|
|
||||||
}
|
|
||||||
|
|
||||||
@ApiOperation("今日装备入驻数、今日订单成交数、今日成交金额数、今日需求发布数、今日需求接单数")
|
|
||||||
@GetMapping("/todayCount")
|
|
||||||
public AjaxResult getTodayCount() {
|
|
||||||
//今日装备入驻数
|
|
||||||
Integer devCount = devInfoMapper.getTodayDevCount();
|
|
||||||
OrderData orderData = new OrderData();
|
|
||||||
//今日订单成交数、今日成交金额数
|
|
||||||
OrderDto orderDto = orderMapper.getTodayOrderCount();
|
|
||||||
// 今日需求发布数
|
|
||||||
Integer leaseNum = leaseInfoMapper.getTodayLeaseCount();
|
|
||||||
//今日需求接单数
|
|
||||||
Integer leaseOrderNum = leaseInfoMapper.getTodayLeaseOrderCount();
|
|
||||||
orderData.setTodayDevNum(devCount);
|
|
||||||
orderData.setTodayOrderNum(orderDto.getOrderNum());
|
|
||||||
orderData.setTodayCost(orderDto.getCost());
|
|
||||||
orderData.setTodayLeaseNum(leaseNum);
|
|
||||||
orderData.setTodayLeaseOrderNum(leaseOrderNum);
|
|
||||||
return AjaxResult.success(orderData);
|
|
||||||
}
|
|
||||||
|
|
||||||
@ApiOperation("装备上架统计")
|
@ApiOperation("装备上架统计")
|
||||||
@GetMapping("/devCount")
|
@GetMapping("/devCount")
|
||||||
public AjaxResult devCount() {
|
public AjaxResult devCount() {
|
||||||
|
|
@ -168,4 +123,57 @@ public class LargeScreenController {
|
||||||
return AjaxResult.success(orderData);
|
return AjaxResult.success(orderData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("装备共享排名")
|
||||||
|
@GetMapping("/getDeviceShareRanking")
|
||||||
|
public AjaxResult getDeviceShareRanking() {
|
||||||
|
List<DevInfo> list = devInfoMapper.getDeviceShareRanking();
|
||||||
|
return AjaxResult.success(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("租赁跟踪")
|
||||||
|
@GetMapping("/getOrderTracking")
|
||||||
|
public AjaxResult getOrderTracking() {
|
||||||
|
List<OrderInfoDto> list = orderMapper.getOrderStatusCount(new OrderDetailDto());
|
||||||
|
return AjaxResult.success(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("租赁需求分析")
|
||||||
|
@GetMapping("/getLeaseCountByPublishCompany")
|
||||||
|
public AjaxResult getLeaseCountByPublishCompany() {
|
||||||
|
List<MaLeaseInfo> list = leaseInfoMapper.getLeaseCountByPublishCompany();
|
||||||
|
return AjaxResult.success(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
// @ApiOperation("订单数据")
|
||||||
|
// @GetMapping("/orderData")
|
||||||
|
// public AjaxResult getOrderData() {
|
||||||
|
// return AjaxResult.success(orderService.getOrderData());
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// @ApiOperation("各单位租金排行")
|
||||||
|
// @GetMapping("/comCost")
|
||||||
|
// public AjaxResult getCompanysCost() {
|
||||||
|
// return AjaxResult.success(orderService.getCompanysCost());
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// @ApiOperation("今日装备入驻数、今日订单成交数、今日成交金额数、今日需求发布数、今日需求接单数")
|
||||||
|
// @GetMapping("/todayCount")
|
||||||
|
// public AjaxResult getTodayCount() {
|
||||||
|
// //今日装备入驻数
|
||||||
|
// Integer devCount = devInfoMapper.getTodayDevCount();
|
||||||
|
// OrderData orderData = new OrderData();
|
||||||
|
// //今日订单成交数、今日成交金额数
|
||||||
|
// OrderDto orderDto = orderMapper.getTodayOrderCount();
|
||||||
|
// // 今日需求发布数
|
||||||
|
// Integer leaseNum = leaseInfoMapper.getTodayLeaseCount();
|
||||||
|
// //今日需求接单数
|
||||||
|
// Integer leaseOrderNum = leaseInfoMapper.getTodayLeaseOrderCount();
|
||||||
|
// orderData.setTodayDevNum(devCount);
|
||||||
|
// orderData.setTodayOrderNum(orderDto.getOrderNum());
|
||||||
|
// orderData.setTodayCost(orderDto.getCost());
|
||||||
|
// orderData.setTodayLeaseNum(leaseNum);
|
||||||
|
// orderData.setTodayLeaseOrderNum(leaseOrderNum);
|
||||||
|
// return AjaxResult.success(orderData);
|
||||||
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -127,4 +127,6 @@ public interface MaLeaseInfoMapper {
|
||||||
MaLeaseInfo getDevInfoById(Integer id);
|
MaLeaseInfo getDevInfoById(Integer id);
|
||||||
|
|
||||||
List<MaLeaseInfo> getLeaseStatusCount(MaLeaseInfo info);
|
List<MaLeaseInfo> getLeaseStatusCount(MaLeaseInfo info);
|
||||||
|
|
||||||
|
List<MaLeaseInfo> getLeaseCountByPublishCompany();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -487,4 +487,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
) a
|
) a
|
||||||
group by a.lease_status
|
group by a.lease_status
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="getLeaseCountByPublishCompany" resultType="com.bonus.material.lease.domain.MaLeaseInfo">
|
||||||
|
SELECT
|
||||||
|
sd.dept_name as publish_company,
|
||||||
|
COUNT( 1 ) AS lease_count
|
||||||
|
FROM
|
||||||
|
ma_lease_info mli
|
||||||
|
LEFT JOIN sys_dept sd on sd.dept_id=mli.publish_company
|
||||||
|
GROUP BY
|
||||||
|
mli.publish_company
|
||||||
|
ORDER BY
|
||||||
|
lease_count DESC
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Loading…
Reference in New Issue