Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rym-util
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengqiuyun
rym-util
Commits
d93a2fb4
Commit
d93a2fb4
authored
Oct 17, 2022
by
zhengqiuyun86
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数组包含封装
parent
aff676f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
SqlOp.go
sqlOp/SqlOp.go
+1
-0
ArrayUtil_test.go
util/ArrayUtil_test.go
+3
-3
No files found.
sqlOp/SqlOp.go
View file @
d93a2fb4
...
...
@@ -2,6 +2,7 @@ package sqlOp
const
Equal
=
"="
const
Like
=
"like"
const
IN
=
"in"
const
LessThan
=
"<"
const
GreatThan
=
">"
const
LessThanOrEqual
=
"<="
...
...
util/ArrayUtil_test.go
View file @
d93a2fb4
...
...
@@ -8,8 +8,8 @@ import (
func
TestArrayContainsInterface
(
t
*
testing
.
T
)
{
var
areaIds
[]
time
.
Time
areaIds
=
append
(
areaIds
,
PareDateTime
(
"2022-02-09 22:09:12"
))
areaIds
=
append
(
areaIds
,
PareDateTime
(
"2022-03-09 22:09:12"
))
areaIds
=
append
(
areaIds
,
PareDateTime
(
"2022-12-09 22:09:12"
))
//
areaIds = append(areaIds, PareDateTime("2022-02-09 22:09:12"))
//
areaIds = append(areaIds, PareDateTime("2022-03-09 22:09:12"))
//
areaIds = append(areaIds, PareDateTime("2022-12-09 22:09:12"))
fmt
.
Println
(
ArrayContainsTime
(
areaIds
,
PareDateTime
(
"2022-02-10 22:09:12"
)))
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment