|
@@ -95,7 +95,7 @@ module.exports = app => {
|
|
if (listStatus === 'manage') {
|
|
if (listStatus === 'manage') {
|
|
const userFilter = getAll ? '' : this.db.format(' And t.user_id = ? ', [session.sessionUser.accountId]);
|
|
const userFilter = getAll ? '' : this.db.format(' And t.user_id = ? ', [session.sessionUser.accountId]);
|
|
// 管理页面只取属于自己创建的标段
|
|
// 管理页面只取属于自己创建的标段
|
|
- sql = 'SELECT t.`id`, t.`project_id`, t.`name`, t.`status`, t.`category`, t.`ledger_times`, t.`ledger_status`, t.`measure_type`, t.`user_id`, t.`create_time`, t.`total_price`, t.`deal_tp`, t.`spid`, t.filter_budget, t.filter_fund' +
|
|
|
|
|
|
+ sql = 'SELECT t.`id`, t.`project_id`, t.`name`, t.`status`, t.`category`, t.`ledger_times`, t.`ledger_status`, t.`measure_type`, t.`user_id`, t.`create_time`, t.`total_price`, t.`deal_tp`, t.`spid`, t.filter_budget, t.filter_fund,' +
|
|
' pa.`name` As `user_name`, pa.`role` As `user_role`, pa.`company` As `user_company` ' +
|
|
' pa.`name` As `user_name`, pa.`role` As `user_role`, pa.`company` As `user_company` ' +
|
|
' FROM ?? As t ' +
|
|
' FROM ?? As t ' +
|
|
' Left Join ?? As pa ' +
|
|
' Left Join ?? As pa ' +
|