|
@@ -2,7 +2,7 @@
|
|
* @description: 安全巡检数据库操作相关
|
|
* @description: 安全巡检数据库操作相关
|
|
* @Author: LanJianRong
|
|
* @Author: LanJianRong
|
|
* @Date: 2020-11-20
|
|
* @Date: 2020-11-20
|
|
- * @FilePath: \construction_management\dao\safe_audit_dao.go
|
|
|
|
|
|
+ * @FilePath: \construction_management\dao\safe_dao.go
|
|
*/
|
|
*/
|
|
|
|
|
|
package dao
|
|
package dao
|
|
@@ -70,7 +70,7 @@ func (d *SafeAuditDao) GetAuditorsWithOwner(id int, times int, cur_uid int) []vi
|
|
fmt.Println(err)
|
|
fmt.Println(err)
|
|
}
|
|
}
|
|
auditors = append(auditors, auditor)
|
|
auditors = append(auditors, auditor)
|
|
- d.engine.Sql("select pa.`name`,pa.`account_group`, pa.`position`,ca.`audit_id`, ca.`progress` from `cm_project_account` as pa, `cm_safe_audit` as ca where ca.`safe_id` = ? and ca.`times` = ? and ca.audit_id = pa.id order by `audit_order`", id, times).Find(&auditors)
|
|
|
|
|
|
+ d.engine.Sql("select pa.`name`, pa.`position`,ca.`audit_id`, ca.`audit_order`, ca.`progress` from `cm_project_account` as pa, `cm_safe_audit` as ca where ca.`safe_id` = ? and ca.`times` = ? and ca.audit_id = pa.id order by `audit_order`", id, times).Find(&auditors)
|
|
|
|
|
|
return auditors
|
|
return auditors
|
|
}
|
|
}
|