|
@@ -83,7 +83,7 @@ func (d *SafeAuditDao) FindById(id int) (*models.CmSafeAudit, error) {
|
|
// 查找最新的整改单列表
|
|
// 查找最新的整改单列表
|
|
func (d *SafeAuditDao) GetRectifications(bid int, pid int, dataId int, dataType int) ([]viewmodels.CheckOrderVM, error) {
|
|
func (d *SafeAuditDao) GetRectifications(bid int, pid int, dataId int, dataType int) ([]viewmodels.CheckOrderVM, error) {
|
|
data := make([]viewmodels.CheckOrderVM, 0)
|
|
data := make([]viewmodels.CheckOrderVM, 0)
|
|
- err := d.engine.Sql("select cm.`content` as opinion, cm.`rectified_time` as `create_time`, pa.`name` from `cm_rectification` as cm left join `cm_project_account` as pa on pa.`id` = cm.`account_id` cm.`bidsection_id` = ? and cm.`project_id` = ? and cm.`data_id` = ? and cm.`data_type` = ? ", bid, pid, dataId, dataType).Find(&data)
|
|
|
|
|
|
+ err := d.engine.Sql("select cm.`content` as opinion, cm.`rectified_time` as `create_time`, pa.`name` from `cm_rectification` as cm left join `cm_project_account` as pa on pa.`id` = cm.`account_id` where cm.`bidsection_id` = ? and cm.`project_id` = ? and cm.`data_id` = ? and cm.`data_type` = ? ", bid, pid, dataId, dataType).Find(&data)
|
|
return data, err
|
|
return data, err
|
|
}
|
|
}
|
|
|
|
|