数据大屏统计修改

wushunjie
杜函宇 2 months ago
parent 5ebaee19a5
commit 9e29e2b043

@ -39,7 +39,7 @@ public class JHeadQuartersRevenueController {
* @param js * @param js
* @return * @return
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,sightseer')")
@ApiOperation(value = "分页查询总部企业", response = JHeadQuartersRevenue.class) @ApiOperation(value = "分页查询总部企业", response = JHeadQuartersRevenue.class)
@GetMapping @GetMapping
public AjaxResult page(Page<JHeadQuartersRevenue> page, JHeadQuartersRevenueRequest js) { public AjaxResult page(Page<JHeadQuartersRevenue> page, JHeadQuartersRevenueRequest js) {
@ -49,7 +49,7 @@ public class JHeadQuartersRevenueController {
/** /**
* *
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,sightseer')")
@ApiOperation(value = "查询总部企业数量", response = JHqCountResponse.class) @ApiOperation(value = "查询总部企业数量", response = JHqCountResponse.class)
@GetMapping("/selectZbCount") @GetMapping("/selectZbCount")
public AjaxResult selectZbCount() { public AjaxResult selectZbCount() {

@ -38,7 +38,8 @@
where status = 5 where status = 5
GROUP BY project_middle_type) AS ys ON b.dict_value = ys.project_middle_type GROUP BY project_middle_type) AS ys ON b.dict_value = ys.project_middle_type
LEFT JOIN (SELECT project_small_type, LEFT JOIN (SELECT project_small_type,
IF(project_small_type = 14, COUNT(DISTINCT credit_code), COUNT(*)) AS count IF(project_small_type = 14 or project_small_type = 1 or project_small_type = 2
or project_small_type = 3 , COUNT(DISTINCT credit_code), COUNT(*)) AS count
FROM j_project FROM j_project
where status = 5 where status = 5
GROUP BY project_small_type) AS us ON c.dict_value = us.project_small_type GROUP BY project_small_type) AS us ON c.dict_value = us.project_small_type
@ -53,13 +54,22 @@
ORDER BY CAST(c.dict_value AS UNSIGNED); ORDER BY CAST(c.dict_value AS UNSIGNED);
</select> </select>
<select id="getProjectTracking" resultType="com.ruoyi.jjh.ent.entity.response.ProjectTrackingResponse"> <select id="getProjectTracking" resultType="com.ruoyi.jjh.ent.entity.response.ProjectTrackingResponse">
SELECT a.alert_time, SELECT b.enterprise_directory,
a.alert_content, b.start_time,
b.project_small_type b.end_time,
FROM j_smart_reminders a COUNT(*) as count
left JOIN j_project b on a.project_id = b.id FROM bms_declaration_records a
where a.alert_type = 4 and NOW() > a.alert_time INNER JOIN bms_template_record b ON a.template_record_id = b.id
order by a.alert_time desc WHERE a.status != 0
GROUP BY a.template_record_id
order by count desc
# SELECT a.alert_time,
# a.alert_content,
# b.project_small_type
# FROM j_smart_reminders a
# left JOIN j_project b on a.project_id = b.id
# where a.alert_type = 4 and NOW() > a.alert_time
# order by a.alert_time desc
</select> </select>
<select id="servicesDevelop" resultType="com.ruoyi.jjh.ent.entity.response.JServicesDevelopResponse"> <select id="servicesDevelop" resultType="com.ruoyi.jjh.ent.entity.response.JServicesDevelopResponse">
SELECT SELECT

Loading…
Cancel
Save