Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
de8b057e
Commit
de8b057e
authored
Nov 01, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
专场加上视频号跳转
parent
3bbf2879
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
556 additions
and
16 deletions
+556
-16
ch-core/src/main/java/com/wwdz/ch/core/entity/SpecialPerformanceVo.java
...in/java/com/wwdz/ch/core/entity/SpecialPerformanceVo.java
+16
-0
ch-core/src/main/resources/application-dev.yml
ch-core/src/main/resources/application-dev.yml
+2
-0
ch-core/src/main/resources/application-prod.yml
ch-core/src/main/resources/application-prod.yml
+3
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/SpecialPerformance.java
...om/wwdz/ch/db/domain/distribution/SpecialPerformance.java
+30
-3
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/SpecialPerformanceExample.java
.../ch/db/domain/distribution/SpecialPerformanceExample.java
+426
-0
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/SpecialPerformanceRequestDto.java
...to/request/distribution/SpecialPerformanceRequestDto.java
+16
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/SpecialPerformanceMapper.xml
...dz/ch/db/mapper/distribution/SpecialPerformanceMapper.xml
+55
-9
ch-dao/src/main/resources/generatorConfig_new.xml
ch-dao/src/main/resources/generatorConfig_new.xml
+4
-4
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SpecialPerformanceServiceImpl.java
...h/wx/impl/distribution/SpecialPerformanceServiceImpl.java
+4
-0
No files found.
ch-core/src/main/java/com/wwdz/ch/core/entity/SpecialPerformanceVo.java
View file @
de8b057e
...
@@ -64,4 +64,20 @@ public class SpecialPerformanceVo implements Entity {
...
@@ -64,4 +64,20 @@ public class SpecialPerformanceVo implements Entity {
* 专场商品总数
* 专场商品总数
*/
*/
private
Long
itemNum
;
private
Long
itemNum
;
/**
* 视频号id
*/
private
String
videoAppId
;
/**
* 视频id
*/
private
String
videoId
;
/**
* 视频标题
*/
private
String
videoTitle
;
}
}
ch-core/src/main/resources/application-dev.yml
View file @
de8b057e
...
@@ -16,6 +16,8 @@ dts:
...
@@ -16,6 +16,8 @@ dts:
notify-url
:
https://test.dtsshop.com/demo/order/dtsNotify
notify-url
:
https://test.dtsshop.com/demo/order/dtsNotify
get-access-token-url
:
https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s
get-access-token-url
:
https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s
#视频号id
video-app-id
:
sphLqAj9FoEj1JF
#寄售业务,公众号消息点击后跳转到小程序页面的链接
#寄售业务,公众号消息点击后跳转到小程序页面的链接
msg-url
:
pages/consignNodeDetail/index
msg-url
:
pages/consignNodeDetail/index
...
...
ch-core/src/main/resources/application-prod.yml
View file @
de8b057e
...
@@ -14,6 +14,9 @@ dts:
...
@@ -14,6 +14,9 @@ dts:
apikey
:
be9b8745-a47e-4d4d-afba-e55aab4bca74
apikey
:
be9b8745-a47e-4d4d-afba-e55aab4bca74
#视频号id
video-app-id
:
sphLqAj9FoEj1JF
#公众号消息点击后跳转到小程序页面的链接
#公众号消息点击后跳转到小程序页面的链接
msg-url
:
pages/consignNodeDetail/index
msg-url
:
pages/consignNodeDetail/index
#分销业务,公众号消息点击后跳转到小程序页面的链接
#分销业务,公众号消息点击后跳转到小程序页面的链接
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/SpecialPerformance.java
View file @
de8b057e
...
@@ -8,7 +8,7 @@ import lombok.Data;
...
@@ -8,7 +8,7 @@ import lombok.Data;
/**
/**
* @author shiyu
* @author shiyu
* @date 2024/
06/26
* @date 2024/
11/01
*/
*/
@Data
@Data
public
class
SpecialPerformance
implements
Entity
{
public
class
SpecialPerformance
implements
Entity
{
...
@@ -59,6 +59,21 @@ public class SpecialPerformance implements Entity {
...
@@ -59,6 +59,21 @@ public class SpecialPerformance implements Entity {
*/
*/
private
Integer
state
;
private
Integer
state
;
/**
* 视频号id
*/
private
String
videoAppId
;
/**
* 视频id
*/
private
String
videoId
;
/**
* 视频标题
*/
private
String
videoTitle
;
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@Override
@Override
...
@@ -77,6 +92,9 @@ public class SpecialPerformance implements Entity {
...
@@ -77,6 +92,9 @@ public class SpecialPerformance implements Entity {
sb
.
append
(
", itemEndInterval="
).
append
(
itemEndInterval
);
sb
.
append
(
", itemEndInterval="
).
append
(
itemEndInterval
);
sb
.
append
(
", type="
).
append
(
type
);
sb
.
append
(
", type="
).
append
(
type
);
sb
.
append
(
", state="
).
append
(
state
);
sb
.
append
(
", state="
).
append
(
state
);
sb
.
append
(
", videoAppId="
).
append
(
videoAppId
);
sb
.
append
(
", videoId="
).
append
(
videoId
);
sb
.
append
(
", videoTitle="
).
append
(
videoTitle
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
return
sb
.
toString
();
...
@@ -103,7 +121,10 @@ public class SpecialPerformance implements Entity {
...
@@ -103,7 +121,10 @@ public class SpecialPerformance implements Entity {
&&
(
this
.
getEndTime
()
==
null
?
other
.
getEndTime
()
==
null
:
this
.
getEndTime
().
equals
(
other
.
getEndTime
()))
&&
(
this
.
getEndTime
()
==
null
?
other
.
getEndTime
()
==
null
:
this
.
getEndTime
().
equals
(
other
.
getEndTime
()))
&&
(
this
.
getItemEndInterval
()
==
null
?
other
.
getItemEndInterval
()
==
null
:
this
.
getItemEndInterval
().
equals
(
other
.
getItemEndInterval
()))
&&
(
this
.
getItemEndInterval
()
==
null
?
other
.
getItemEndInterval
()
==
null
:
this
.
getItemEndInterval
().
equals
(
other
.
getItemEndInterval
()))
&&
(
this
.
getType
()
==
null
?
other
.
getType
()
==
null
:
this
.
getType
().
equals
(
other
.
getType
()))
&&
(
this
.
getType
()
==
null
?
other
.
getType
()
==
null
:
this
.
getType
().
equals
(
other
.
getType
()))
&&
(
this
.
getState
()
==
null
?
other
.
getState
()
==
null
:
this
.
getState
().
equals
(
other
.
getState
()));
&&
(
this
.
getState
()
==
null
?
other
.
getState
()
==
null
:
this
.
getState
().
equals
(
other
.
getState
()))
&&
(
this
.
getVideoAppId
()
==
null
?
other
.
getVideoAppId
()
==
null
:
this
.
getVideoAppId
().
equals
(
other
.
getVideoAppId
()))
&&
(
this
.
getVideoId
()
==
null
?
other
.
getVideoId
()
==
null
:
this
.
getVideoId
().
equals
(
other
.
getVideoId
()))
&&
(
this
.
getVideoTitle
()
==
null
?
other
.
getVideoTitle
()
==
null
:
this
.
getVideoTitle
().
equals
(
other
.
getVideoTitle
()));
}
}
@Override
@Override
...
@@ -120,6 +141,9 @@ public class SpecialPerformance implements Entity {
...
@@ -120,6 +141,9 @@ public class SpecialPerformance implements Entity {
result
=
prime
*
result
+
((
getItemEndInterval
()
==
null
)
?
0
:
getItemEndInterval
().
hashCode
());
result
=
prime
*
result
+
((
getItemEndInterval
()
==
null
)
?
0
:
getItemEndInterval
().
hashCode
());
result
=
prime
*
result
+
((
getType
()
==
null
)
?
0
:
getType
().
hashCode
());
result
=
prime
*
result
+
((
getType
()
==
null
)
?
0
:
getType
().
hashCode
());
result
=
prime
*
result
+
((
getState
()
==
null
)
?
0
:
getState
().
hashCode
());
result
=
prime
*
result
+
((
getState
()
==
null
)
?
0
:
getState
().
hashCode
());
result
=
prime
*
result
+
((
getVideoAppId
()
==
null
)
?
0
:
getVideoAppId
().
hashCode
());
result
=
prime
*
result
+
((
getVideoId
()
==
null
)
?
0
:
getVideoId
().
hashCode
());
result
=
prime
*
result
+
((
getVideoTitle
()
==
null
)
?
0
:
getVideoTitle
().
hashCode
());
return
result
;
return
result
;
}
}
...
@@ -140,7 +164,10 @@ public class SpecialPerformance implements Entity {
...
@@ -140,7 +164,10 @@ public class SpecialPerformance implements Entity {
endTime
(
"end_time"
,
"endTime"
,
"TIMESTAMP"
,
false
),
endTime
(
"end_time"
,
"endTime"
,
"TIMESTAMP"
,
false
),
itemEndInterval
(
"item_end_interval"
,
"itemEndInterval"
,
"DOUBLE"
,
false
),
itemEndInterval
(
"item_end_interval"
,
"itemEndInterval"
,
"DOUBLE"
,
false
),
type
(
"type"
,
"type"
,
"INTEGER"
,
true
),
type
(
"type"
,
"type"
,
"INTEGER"
,
true
),
state
(
"state"
,
"state"
,
"INTEGER"
,
true
);
state
(
"state"
,
"state"
,
"INTEGER"
,
true
),
videoAppId
(
"video_app_id"
,
"videoAppId"
,
"VARCHAR"
,
false
),
videoId
(
"video_id"
,
"videoId"
,
"VARCHAR"
,
false
),
videoTitle
(
"video_title"
,
"videoTitle"
,
"VARCHAR"
,
false
);
/**
/**
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/SpecialPerformanceExample.java
View file @
de8b057e
...
@@ -1487,6 +1487,432 @@ public class SpecialPerformanceExample {
...
@@ -1487,6 +1487,432 @@ public class SpecialPerformanceExample {
addCriterion
(
"`state` not between"
,
value1
,
value2
,
"state"
);
addCriterion
(
"`state` not between"
,
value1
,
value2
,
"state"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andVideoAppIdIsNull
()
{
addCriterion
(
"video_app_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoAppIdIsNotNull
()
{
addCriterion
(
"video_app_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoAppIdEqualTo
(
String
value
)
{
addCriterion
(
"video_app_id ="
,
value
,
"videoAppId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoAppIdEqualToColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_app_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoAppIdNotEqualTo
(
String
value
)
{
addCriterion
(
"video_app_id <>"
,
value
,
"videoAppId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoAppIdNotEqualToColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_app_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoAppIdGreaterThan
(
String
value
)
{
addCriterion
(
"video_app_id >"
,
value
,
"videoAppId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoAppIdGreaterThanColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_app_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoAppIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"video_app_id >="
,
value
,
"videoAppId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoAppIdGreaterThanOrEqualToColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_app_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoAppIdLessThan
(
String
value
)
{
addCriterion
(
"video_app_id <"
,
value
,
"videoAppId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoAppIdLessThanColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_app_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoAppIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"video_app_id <="
,
value
,
"videoAppId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoAppIdLessThanOrEqualToColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_app_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoAppIdLike
(
String
value
)
{
addCriterion
(
"video_app_id like"
,
value
,
"videoAppId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoAppIdNotLike
(
String
value
)
{
addCriterion
(
"video_app_id not like"
,
value
,
"videoAppId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoAppIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"video_app_id in"
,
values
,
"videoAppId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoAppIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"video_app_id not in"
,
values
,
"videoAppId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoAppIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"video_app_id between"
,
value1
,
value2
,
"videoAppId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoAppIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"video_app_id not between"
,
value1
,
value2
,
"videoAppId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoIdIsNull
()
{
addCriterion
(
"video_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoIdIsNotNull
()
{
addCriterion
(
"video_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoIdEqualTo
(
String
value
)
{
addCriterion
(
"video_id ="
,
value
,
"videoId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoIdEqualToColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoIdNotEqualTo
(
String
value
)
{
addCriterion
(
"video_id <>"
,
value
,
"videoId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoIdNotEqualToColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoIdGreaterThan
(
String
value
)
{
addCriterion
(
"video_id >"
,
value
,
"videoId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoIdGreaterThanColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"video_id >="
,
value
,
"videoId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoIdGreaterThanOrEqualToColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoIdLessThan
(
String
value
)
{
addCriterion
(
"video_id <"
,
value
,
"videoId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoIdLessThanColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"video_id <="
,
value
,
"videoId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoIdLessThanOrEqualToColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoIdLike
(
String
value
)
{
addCriterion
(
"video_id like"
,
value
,
"videoId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoIdNotLike
(
String
value
)
{
addCriterion
(
"video_id not like"
,
value
,
"videoId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"video_id in"
,
values
,
"videoId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"video_id not in"
,
values
,
"videoId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"video_id between"
,
value1
,
value2
,
"videoId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"video_id not between"
,
value1
,
value2
,
"videoId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoTitleIsNull
()
{
addCriterion
(
"video_title is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoTitleIsNotNull
()
{
addCriterion
(
"video_title is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoTitleEqualTo
(
String
value
)
{
addCriterion
(
"video_title ="
,
value
,
"videoTitle"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoTitleEqualToColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_title = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoTitleNotEqualTo
(
String
value
)
{
addCriterion
(
"video_title <>"
,
value
,
"videoTitle"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoTitleNotEqualToColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_title <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoTitleGreaterThan
(
String
value
)
{
addCriterion
(
"video_title >"
,
value
,
"videoTitle"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoTitleGreaterThanColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_title > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoTitleGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"video_title >="
,
value
,
"videoTitle"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoTitleGreaterThanOrEqualToColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_title >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoTitleLessThan
(
String
value
)
{
addCriterion
(
"video_title <"
,
value
,
"videoTitle"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoTitleLessThanColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_title < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoTitleLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"video_title <="
,
value
,
"videoTitle"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andVideoTitleLessThanOrEqualToColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"video_title <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andVideoTitleLike
(
String
value
)
{
addCriterion
(
"video_title like"
,
value
,
"videoTitle"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoTitleNotLike
(
String
value
)
{
addCriterion
(
"video_title not like"
,
value
,
"videoTitle"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoTitleIn
(
List
<
String
>
values
)
{
addCriterion
(
"video_title in"
,
values
,
"videoTitle"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoTitleNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"video_title not in"
,
values
,
"videoTitle"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoTitleBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"video_title between"
,
value1
,
value2
,
"videoTitle"
);
return
(
Criteria
)
this
;
}
public
Criteria
andVideoTitleNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"video_title not between"
,
value1
,
value2
,
"videoTitle"
);
return
(
Criteria
)
this
;
}
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
public
static
class
Criteria
extends
GeneratedCriteria
{
...
...
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/SpecialPerformanceRequestDto.java
View file @
de8b057e
...
@@ -67,6 +67,22 @@ public class SpecialPerformanceRequestDto extends BaseRequestDto implements Enti
...
@@ -67,6 +67,22 @@ public class SpecialPerformanceRequestDto extends BaseRequestDto implements Enti
private
List
<
Integer
>
stateList
;
private
List
<
Integer
>
stateList
;
/**
* 视频号id
*/
private
String
videoAppId
;
/**
* 视频id
*/
private
String
videoId
;
/**
* 视频标题
*/
private
String
videoTitle
;
/**
/**
* 排除的状态
* 排除的状态
*/
*/
...
...
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/SpecialPerformanceMapper.xml
View file @
de8b057e
...
@@ -12,6 +12,9 @@
...
@@ -12,6 +12,9 @@
<result
column=
"item_end_interval"
jdbcType=
"DOUBLE"
property=
"itemEndInterval"
/>
<result
column=
"item_end_interval"
jdbcType=
"DOUBLE"
property=
"itemEndInterval"
/>
<result
column=
"type"
jdbcType=
"INTEGER"
property=
"type"
/>
<result
column=
"type"
jdbcType=
"INTEGER"
property=
"type"
/>
<result
column=
"state"
jdbcType=
"INTEGER"
property=
"state"
/>
<result
column=
"state"
jdbcType=
"INTEGER"
property=
"state"
/>
<result
column=
"video_app_id"
jdbcType=
"VARCHAR"
property=
"videoAppId"
/>
<result
column=
"video_id"
jdbcType=
"VARCHAR"
property=
"videoId"
/>
<result
column=
"video_title"
jdbcType=
"VARCHAR"
property=
"videoTitle"
/>
</resultMap>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<sql
id=
"Example_Where_Clause"
>
<where>
<where>
...
@@ -73,7 +76,7 @@
...
@@ -73,7 +76,7 @@
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, title, background_image, create_time, update_time, start_time, end_time, item_end_interval,
id, title, background_image, create_time, update_time, start_time, end_time, item_end_interval,
`type`, `state`
`type`, `state`
, video_app_id, video_id, video_title
</sql>
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.SpecialPerformanceExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.SpecialPerformanceExample"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -109,7 +112,7 @@
...
@@ -109,7 +112,7 @@
</when>
</when>
<otherwise>
<otherwise>
id, title, background_image, create_time, update_time, start_time, end_time, item_end_interval,
id, title, background_image, create_time, update_time, start_time, end_time, item_end_interval,
`type`, `state`
`type`, `state`
, video_app_id, video_id, video_title
</otherwise>
</otherwise>
</choose>
</choose>
from special_performance
from special_performance
...
@@ -141,7 +144,7 @@
...
@@ -141,7 +144,7 @@
</when>
</when>
<otherwise>
<otherwise>
id, title, background_image, create_time, update_time, start_time, end_time, item_end_interval,
id, title, background_image, create_time, update_time, start_time, end_time, item_end_interval,
`type`, `state`
`type`, `state`
, video_app_id, video_id, video_title
</otherwise>
</otherwise>
</choose>
</choose>
from special_performance
from special_performance
...
@@ -163,11 +166,13 @@
...
@@ -163,11 +166,13 @@
</selectKey>
</selectKey>
insert into special_performance (title, background_image, create_time,
insert into special_performance (title, background_image, create_time,
update_time, start_time, end_time,
update_time, start_time, end_time,
item_end_interval, `type`, `state`
item_end_interval, `type`, `state`,
video_app_id, video_id, video_title
)
)
values (#{title,jdbcType=VARCHAR}, #{backgroundImage,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
values (#{title,jdbcType=VARCHAR}, #{backgroundImage,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
#{itemEndInterval,jdbcType=DOUBLE}, #{type,jdbcType=INTEGER}, #{state,jdbcType=INTEGER}
#{itemEndInterval,jdbcType=DOUBLE}, #{type,jdbcType=INTEGER}, #{state,jdbcType=INTEGER},
#{videoAppId,jdbcType=VARCHAR}, #{videoId,jdbcType=VARCHAR}, #{videoTitle,jdbcType=VARCHAR}
)
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.SpecialPerformance"
>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.SpecialPerformance"
>
...
@@ -203,6 +208,15 @@
...
@@ -203,6 +208,15 @@
<if
test=
"state != null"
>
<if
test=
"state != null"
>
`state`,
`state`,
</if>
</if>
<if
test=
"videoAppId != null"
>
video_app_id,
</if>
<if
test=
"videoId != null"
>
video_id,
</if>
<if
test=
"videoTitle != null"
>
video_title,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"title != null"
>
<if
test=
"title != null"
>
...
@@ -232,6 +246,15 @@
...
@@ -232,6 +246,15 @@
<if
test=
"state != null"
>
<if
test=
"state != null"
>
#{state,jdbcType=INTEGER},
#{state,jdbcType=INTEGER},
</if>
</if>
<if
test=
"videoAppId != null"
>
#{videoAppId,jdbcType=VARCHAR},
</if>
<if
test=
"videoId != null"
>
#{videoId,jdbcType=VARCHAR},
</if>
<if
test=
"videoTitle != null"
>
#{videoTitle,jdbcType=VARCHAR},
</if>
</trim>
</trim>
</insert>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.SpecialPerformanceExample"
resultType=
"java.lang.Long"
>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.SpecialPerformanceExample"
resultType=
"java.lang.Long"
>
...
@@ -273,6 +296,15 @@
...
@@ -273,6 +296,15 @@
<if
test=
"record.state != null"
>
<if
test=
"record.state != null"
>
`state` = #{record.state,jdbcType=INTEGER},
`state` = #{record.state,jdbcType=INTEGER},
</if>
</if>
<if
test=
"record.videoAppId != null"
>
video_app_id = #{record.videoAppId,jdbcType=VARCHAR},
</if>
<if
test=
"record.videoId != null"
>
video_id = #{record.videoId,jdbcType=VARCHAR},
</if>
<if
test=
"record.videoTitle != null"
>
video_title = #{record.videoTitle,jdbcType=VARCHAR},
</if>
</set>
</set>
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -289,7 +321,10 @@
...
@@ -289,7 +321,10 @@
end_time = #{record.endTime,jdbcType=TIMESTAMP},
end_time = #{record.endTime,jdbcType=TIMESTAMP},
item_end_interval = #{record.itemEndInterval,jdbcType=DOUBLE},
item_end_interval = #{record.itemEndInterval,jdbcType=DOUBLE},
`type` = #{record.type,jdbcType=INTEGER},
`type` = #{record.type,jdbcType=INTEGER},
`state` = #{record.state,jdbcType=INTEGER}
`state` = #{record.state,jdbcType=INTEGER},
video_app_id = #{record.videoAppId,jdbcType=VARCHAR},
video_id = #{record.videoId,jdbcType=VARCHAR},
video_title = #{record.videoTitle,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</if>
...
@@ -324,6 +359,15 @@
...
@@ -324,6 +359,15 @@
<if
test=
"state != null"
>
<if
test=
"state != null"
>
`state` = #{state,jdbcType=INTEGER},
`state` = #{state,jdbcType=INTEGER},
</if>
</if>
<if
test=
"videoAppId != null"
>
video_app_id = #{videoAppId,jdbcType=VARCHAR},
</if>
<if
test=
"videoId != null"
>
video_id = #{videoId,jdbcType=VARCHAR},
</if>
<if
test=
"videoTitle != null"
>
video_title = #{videoTitle,jdbcType=VARCHAR},
</if>
</set>
</set>
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
...
@@ -337,7 +381,10 @@
...
@@ -337,7 +381,10 @@
end_time = #{endTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
item_end_interval = #{itemEndInterval,jdbcType=DOUBLE},
item_end_interval = #{itemEndInterval,jdbcType=DOUBLE},
`type` = #{type,jdbcType=INTEGER},
`type` = #{type,jdbcType=INTEGER},
`state` = #{state,jdbcType=INTEGER}
`state` = #{state,jdbcType=INTEGER},
video_app_id = #{videoAppId,jdbcType=VARCHAR},
video_id = #{videoId,jdbcType=VARCHAR},
video_title = #{videoTitle,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.SpecialPerformanceExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.SpecialPerformanceExample"
resultMap=
"BaseResultMap"
>
...
@@ -374,7 +421,7 @@
...
@@ -374,7 +421,7 @@
</when>
</when>
<otherwise>
<otherwise>
id, title, background_image, create_time, update_time, start_time, end_time, item_end_interval,
id, title, background_image, create_time, update_time, start_time, end_time, item_end_interval,
`type`, `state`
`type`, `state`
, video_app_id, video_id, video_title
</otherwise>
</otherwise>
</choose>
</choose>
from special_performance
from special_performance
...
@@ -386,5 +433,4 @@
...
@@ -386,5 +433,4 @@
</if>
</if>
limit 1
limit 1
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
ch-dao/src/main/resources/generatorConfig_new.xml
View file @
de8b057e
...
@@ -63,16 +63,16 @@
...
@@ -63,16 +63,16 @@
<!--生成Model类存放位置-->
<!--生成Model类存放位置-->
<javaModelGenerator
targetPackage=
"com.wwdz.ch.db.domain.
openShop
"
targetProject=
"ch-dao/src/main/java"
>
<javaModelGenerator
targetPackage=
"com.wwdz.ch.db.domain.
distribution
"
targetProject=
"ch-dao/src/main/java"
>
<property
name=
"enableSubPackages"
value=
"true"
/>
<property
name=
"enableSubPackages"
value=
"true"
/>
<property
name=
"trimStrings"
value=
"true"
/>
<property
name=
"trimStrings"
value=
"true"
/>
</javaModelGenerator>
</javaModelGenerator>
<sqlMapGenerator
targetPackage=
"com.wwdz.ch.db.mapper.
openShop
"
targetProject=
"ch-dao/src/main/resources"
/>
<sqlMapGenerator
targetPackage=
"com.wwdz.ch.db.mapper.
distribution
"
targetProject=
"ch-dao/src/main/resources"
/>
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"com.wwdz.ch.db.mapper.
openShop
"
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"com.wwdz.ch.db.mapper.
distribution
"
targetProject=
"ch-dao/src/main/java"
/>
targetProject=
"ch-dao/src/main/java"
/>
<table
tableName=
"
open_shop_cost_config
"
enableCountByExample=
"true"
enableUpdateByExample=
"true"
enableDeleteByExample=
"true"
enableSelectByExample=
"true"
selectByExampleQueryId=
"true"
>
<table
tableName=
"
special_performance
"
enableCountByExample=
"true"
enableUpdateByExample=
"true"
enableDeleteByExample=
"true"
enableSelectByExample=
"true"
selectByExampleQueryId=
"true"
>
<generatedKey
column=
"id"
sqlStatement=
"Mysql"
identity=
"true"
/>
<generatedKey
column=
"id"
sqlStatement=
"Mysql"
identity=
"true"
/>
</table>
</table>
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SpecialPerformanceServiceImpl.java
View file @
de8b057e
...
@@ -483,6 +483,10 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
...
@@ -483,6 +483,10 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
resultMap
.
put
(
"endTime"
,
specialPerformance
.
getEndTime
());
resultMap
.
put
(
"endTime"
,
specialPerformance
.
getEndTime
());
resultMap
.
put
(
"title"
,
specialPerformance
.
getTitle
());
resultMap
.
put
(
"title"
,
specialPerformance
.
getTitle
());
resultMap
.
put
(
"specialPerformanceId"
,
specialPerformance
.
getId
());
resultMap
.
put
(
"specialPerformanceId"
,
specialPerformance
.
getId
());
//视频号链接
resultMap
.
put
(
"videoAppId"
,
specialPerformance
.
getVideoAppId
());
resultMap
.
put
(
"videoId"
,
specialPerformance
.
getVideoId
());
resultMap
.
put
(
"videoTitle"
,
specialPerformance
.
getVideoTitle
());
//判断用户是否订阅过消息
//判断用户是否订阅过消息
if
(
dto
.
getUserId
()
!=
null
)
{
if
(
dto
.
getUserId
()
!=
null
)
{
...
...
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