记得上下班打卡 | git大法好,push需谨慎

Commit 6876d3a2 authored by Administrator's avatar Administrator 🎨

Merge branch 'pre' into 'master'

修改 志愿者列表sql

See merge request !260
parents 910b1824 568d09bb
...@@ -63,8 +63,11 @@ ...@@ -63,8 +63,11 @@
}, },
{ {
field: 'all', field: 'unAudit',
title: '报名人数' title: '报名人数',
formatter: function (value, row, index) {
return row.unAudit + row.audit + row.refuse
}
}, },
{ {
field: 'unAudit', field: 'unAudit',
...@@ -90,16 +93,16 @@ ...@@ -90,16 +93,16 @@
field: 'timeStart', field: 'timeStart',
title: '活动时间', title: '活动时间',
formatter: function (value, row, index) { formatter: function (value, row, index) {
return row.timeStart.split("T")[0] +" 至 "+row.timeEnd.split("T")[0] return row.timeStart.split("T")[0] + " 至 " + row.timeEnd.split("T")[0]
} }
}, },
{ {
field: 'timeStatus', field: 'timeStatus',
title: '活动状态', title: '活动状态',
formatter: function (value, row, index) { formatter: function (value, row, index) {
if(value===1){ if (value === 1) {
return "活动中" return "活动中"
}else{ } else {
return "已结束"; return "已结束";
} }
} }
...@@ -133,7 +136,7 @@ ...@@ -133,7 +136,7 @@
}); });
function f(a1, a2) { function f(a1, a2) {
$.post(smilePrefix +"/project/status", {projectId: a1, status: a2}, function (res) { $.post(smilePrefix + "/project/status", {projectId: a1, status: a2}, function (res) {
alert(res.msg); alert(res.msg);
location.reload(); location.reload();
}); });
......
...@@ -37,14 +37,14 @@ ...@@ -37,14 +37,14 @@
a.created_at, a.created_at,
a.status, a.status,
IF(now() >time_end,2,1) as 'time_status', IF(now() >time_end,2,1) as 'time_status',
count(b0.project_id) + count(b1.project_id) + count(b2.project_id) as 'all', -- count(b0.project_id) + count(b1.project_id) + count(b2.project_id) as 'all',
count(b0.project_id) as 'un_audit', (select count(0) as 'count'from smile_volunteers as b0 where a.project_id = b0.project_id and b0.status = 0) as 'un_audit',
count(b1.project_id) as 'audit', (select count(0) as 'count'from smile_volunteers as b0 where a.project_id = b0.project_id and b0.status = 1) as 'audit',
count(b2.project_id) as 'refuse' (select count(0) as 'count'from smile_volunteers as b0 where a.project_id = b0.project_id and b0.status = 2) as 'refuse'
from smile_volunteers_project as a from smile_volunteers_project as a
LEFT JOIN smile_volunteers as b0 on a.project_id = b0.project_id and b0.status = 0 -- LEFT JOIN smile_volunteers as b0 on a.project_id = b0.project_id and b0.status = 0
LEFT JOIN smile_volunteers as b1 on a.project_id = b1.project_id and b1.status = 1 -- LEFT JOIN smile_volunteers as b1 on a.project_id = b1.project_id and b1.status = 1
LEFT JOIN smile_volunteers as b2 on a.project_id = b2.project_id and b2.status = 2 -- LEFT JOIN smile_volunteers as b2 on a.project_id = b2.project_id and b2.status = 2
<where> <where>
<if test="title!='' and title !=null"> <if test="title!='' and title !=null">
AND title Like concat('%',#{title},'%') AND title Like concat('%',#{title},'%')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment