修改机构用户统计

This commit is contained in:
yuyang 2022-02-08 18:15:28 +08:00
parent 7e8c386880
commit 6168747570
2 changed files with 3 additions and 4 deletions

View File

@ -240,7 +240,7 @@ public class XhpcStatisticsController extends BaseController {
* @return * @return
*/ */
@GetMapping("/getMechanismPage") @GetMapping("/getMechanismPage")
public TableDataInfo getMechanismPage(HttpServletRequest request,String chargingStationIds,Long internetUserId, Long operatorId,String startTime, String endTime, @RequestParam("userId") Long userId, @RequestParam("type")Integer type,@RequestParam("source")Integer source) public TableDataInfo getMechanismPage(HttpServletRequest request,String chargingStationIds,Long internetUserId, Long operatorId,String startTime, String endTime, @RequestParam("userId") Long userId, @RequestParam("type")Integer type,Integer source)
{ {
List<Map<String, Object>> list = xhpcStatisticsService.getMechanismPage(request,chargingStationIds,internetUserId,operatorId,startTime,endTime,userId,type,source); List<Map<String, Object>> list = xhpcStatisticsService.getMechanismPage(request,chargingStationIds,internetUserId,operatorId,startTime,endTime,userId,type,source);
return getDataTable(list); return getDataTable(list);

View File

@ -448,7 +448,7 @@
"B端用户" "B端用户"
ELSE ELSE
"未知用户" "未知用户"
END typeName END sourceName
from xhpc_statistics_station from xhpc_statistics_station
where del_flag=0 and type=2 where del_flag=0 and type=2
<if test="source !=null"> <if test="source !=null">
@ -478,8 +478,7 @@
<if test="tenantId !=null and tenantId !=''"> <if test="tenantId !=null and tenantId !=''">
and tenant_id = #{tenantId} and tenant_id = #{tenantId}
</if> </if>
group by DATE_FORMAT(create_time,'%Y-%m-%d') group by source
order by DATE_FORMAT(create_time,'%Y-%m-%d') desc
</select> </select>
<insert id="addStatisticsTime"> <insert id="addStatisticsTime">