Skip to content

Commit

Permalink
Exclude ID_T_PD_CMS=null
Browse files Browse the repository at this point in the history
  • Loading branch information
berejant committed Sep 27, 2024
1 parent 817b72a commit 2b986d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion importer.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ const ScoreQuery = `SELECT ID, ID_OBJ AS STUDENT_ID,
when 'Так' then case COALESCE(XR_1, XS10_4, 'NULL') when 'NULL' then 1 else 0 end
else 1 end ) AS IS_DELETED
FROM T_EV_9
WHERE REGDATE BETWEEN ? AND ?
WHERE REGDATE BETWEEN ? AND ?
AND ID_T_PD_CMS IS NOT NULL
ORDER BY ID_OBJ, XI_2, XI_4 ASC`

func (importer *ScoresImporter) execute(startDatetime time.Time, endDatetime time.Time, year int) (err error) {
Expand Down

0 comments on commit 2b986d8

Please sign in to comment.