|
|
|
@ -38,7 +38,8 @@
|
|
|
|
|
where status = 5
|
|
|
|
|
GROUP BY project_middle_type) AS ys ON b.dict_value = ys.project_middle_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
|
|
|
|
|
where status = 5
|
|
|
|
|
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);
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getProjectTracking" resultType="com.ruoyi.jjh.ent.entity.response.ProjectTrackingResponse">
|
|
|
|
|
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 b.enterprise_directory,
|
|
|
|
|
b.start_time,
|
|
|
|
|
b.end_time,
|
|
|
|
|
COUNT(*) as count
|
|
|
|
|
FROM bms_declaration_records a
|
|
|
|
|
INNER JOIN bms_template_record b ON a.template_record_id = b.id
|
|
|
|
|
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 id="servicesDevelop" resultType="com.ruoyi.jjh.ent.entity.response.JServicesDevelopResponse">
|
|
|
|
|
SELECT
|
|
|
|
|