记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
6029c94e
Commit
6029c94e
authored
May 17, 2021
by
洪全海
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
f67f9ae3
01320557
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
13 deletions
+15
-13
PerformanceAdminListParam.java
...et/service/kylin/dto/param/PerformanceAdminListParam.java
+6
-4
PerformancePartnerListParam.java
.../service/kylin/dto/param/PerformancePartnerListParam.java
+7
-5
KylinPerformancesMapper.xml
...iquidnet.service.kylin.mapper/KylinPerformancesMapper.xml
+2
-4
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/param/PerformanceAdminListParam.java
View file @
6029c94e
...
@@ -5,6 +5,7 @@ import lombok.Data;
...
@@ -5,6 +5,7 @@ import lombok.Data;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
@Data
@Data
public
class
PerformanceAdminListParam
{
public
class
PerformanceAdminListParam
{
...
@@ -18,10 +19,10 @@ public class PerformanceAdminListParam {
...
@@ -18,10 +19,10 @@ public class PerformanceAdminListParam {
@ApiModelProperty
(
value
=
"-2全部,0审核中,2审核拒绝"
,
example
=
"0"
)
@ApiModelProperty
(
value
=
"-2全部,0审核中,2审核拒绝"
,
example
=
"0"
)
@NotNull
(
message
=
"不能为空"
)
@NotNull
(
message
=
"不能为空"
)
private
int
auditStatus
;
private
int
auditStatus
;
@ApiModelProperty
(
value
=
"停售时间(天)-
1全部"
,
example
=
"-1
"
)
@ApiModelProperty
(
value
=
"停售时间(天)-
2全部"
,
example
=
"-2
"
)
private
L
ong
stopSellDay
;
private
l
ong
stopSellDay
;
@ApiModelProperty
(
value
=
"停售时间"
,
example
=
"2000-01-01 12:00:00"
,
hidden
=
true
)
@ApiModelProperty
(
value
=
"停售时间"
,
example
=
"2000-01-01 12:00:00"
,
hidden
=
true
)
private
LocalDateTime
stopSellTime
;
private
String
stopSellTime
;
@ApiModelProperty
(
value
=
"页数"
,
example
=
"0"
)
@ApiModelProperty
(
value
=
"页数"
,
example
=
"0"
)
@NotNull
(
message
=
"不能为空"
)
@NotNull
(
message
=
"不能为空"
)
private
int
page
;
private
int
page
;
...
@@ -34,7 +35,8 @@ public class PerformanceAdminListParam {
...
@@ -34,7 +35,8 @@ public class PerformanceAdminListParam {
private
String
orderSc
;
private
String
orderSc
;
public
void
setStopSellDay
(
Long
stopSellDay
)
{
public
void
setStopSellDay
(
Long
stopSellDay
)
{
this
.
stopSellDay
=
stopSellDay
;
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
now
=
LocalDateTime
.
now
();
this
.
stopSellTime
=
now
.
plusDays
(-
stopSellDay
);
this
.
stopSellTime
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
now
.
plusDays
(-
stopSellDay
)
);
}
}
}
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/param/PerformancePartnerListParam.java
View file @
6029c94e
...
@@ -5,6 +5,7 @@ import lombok.Data;
...
@@ -5,6 +5,7 @@ import lombok.Data;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
@Data
@Data
public
class
PerformancePartnerListParam
{
public
class
PerformancePartnerListParam
{
...
@@ -23,10 +24,10 @@ public class PerformancePartnerListParam {
...
@@ -23,10 +24,10 @@ public class PerformancePartnerListParam {
@ApiModelProperty
(
value
=
"排序类型 1创建时间倒序 2创建时间正序 3演出时间倒序 4演出时间正序"
,
example
=
"0"
)
@ApiModelProperty
(
value
=
"排序类型 1创建时间倒序 2创建时间正序 3演出时间倒序 4演出时间正序"
,
example
=
"0"
)
@NotNull
(
message
=
"不能为空"
)
@NotNull
(
message
=
"不能为空"
)
private
int
orderType
;
private
int
orderType
;
@ApiModelProperty
(
value
=
"停售时间(单位天
)"
,
example
=
"-1全部
"
)
@ApiModelProperty
(
value
=
"停售时间(单位天
-2全部)"
,
example
=
"-2
"
)
private
L
ong
stopSellDay
;
private
l
ong
stopSellDay
;
@ApiModelProperty
(
value
=
"停售时间(单位天 -
1全部"
,
example
=
"-1
"
,
hidden
=
true
)
@ApiModelProperty
(
value
=
"停售时间(单位天 -
2全部)"
,
example
=
"-2
"
,
hidden
=
true
)
private
LocalDateTime
stopSellTime
;
private
String
stopSellTime
;
@ApiModelProperty
(
value
=
"页数"
,
example
=
"0"
)
@ApiModelProperty
(
value
=
"页数"
,
example
=
"0"
)
@NotNull
(
message
=
"不能为空"
)
@NotNull
(
message
=
"不能为空"
)
private
int
page
;
private
int
page
;
...
@@ -62,7 +63,8 @@ public class PerformancePartnerListParam {
...
@@ -62,7 +63,8 @@ public class PerformancePartnerListParam {
}
}
public
void
setStopSellDay
(
Long
stopSellDay
)
{
public
void
setStopSellDay
(
Long
stopSellDay
)
{
this
.
stopSellDay
=
stopSellDay
;
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
now
=
LocalDateTime
.
now
();
this
.
stopSellTime
=
now
.
plusDays
(-
stopSellDay
);
this
.
stopSellTime
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
now
.
plusDays
(-
stopSellDay
)
);
}
}
}
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-do/src/main/resources/com.liquidnet.service.kylin.mapper/KylinPerformancesMapper.xml
View file @
6029c94e
...
@@ -116,7 +116,6 @@
...
@@ -116,7 +116,6 @@
AND title LIKE concat('%', #{title}, '%')
AND title LIKE concat('%', #{title}, '%')
</if>
</if>
<if
test=
"status !='0'"
>
<if
test=
"status !='0'"
>
AND ps.STATUS = #{status}
<if
test=
"status!='-2'"
>
<if
test=
"status!='-2'"
>
AND ps.STATUS = #{status}
AND ps.STATUS = #{status}
</if>
</if>
...
@@ -126,14 +125,13 @@
...
@@ -126,14 +125,13 @@
<if
test=
"timeStart!=''"
>
<if
test=
"timeStart!=''"
>
AND p.time_start BETWEEN #{timeStart} AND #{timeEnd}
AND p.time_start BETWEEN #{timeStart} AND #{timeEnd}
</if>
</if>
<if
test=
"stopSell
Time!=-1
'"
>
<if
test=
"stopSell
Day!='-2
'"
>
AND p.time_end BETWEEN #{stopSellTime} AND NOW()
AND p.time_end BETWEEN #{stopSellTime} AND NOW()
</if>
</if>
</if>
</if>
<if
test=
"status=='0'"
>
<if
test=
"status=='0'"
>
AND ps.STATUS = #{status}
AND ps.STATUS = #{status}
</if>
</if>
</where>
</where>
ORDER BY #{orderItem} #{orderSc}
ORDER BY #{orderItem} #{orderSc}
</select>
</select>
...
@@ -206,7 +204,7 @@
...
@@ -206,7 +204,7 @@
<if
test=
"auditStatus=='-2'"
>
<if
test=
"auditStatus=='-2'"
>
AND (ps.audit_status = 0 or ps.audit_status = 2)
AND (ps.audit_status = 0 or ps.audit_status = 2)
</if>
</if>
<if
test=
"stopSell
Time!=-1'
"
>
<if
test=
"stopSell
Day!=-2
"
>
AND p.time_end BETWEEN #{stopSellTime} AND NOW()
AND p.time_end BETWEEN #{stopSellTime} AND NOW()
</if>
</if>
</where>
</where>
...
...
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