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
7cf3b1e0
Commit
7cf3b1e0
authored
Jun 04, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增专场背景图
parent
569d7acb
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
193 additions
and
12 deletions
+193
-12
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/SpecialPerformance.java
...om/wwdz/ch/db/domain/distribution/SpecialPerformance.java
+10
-1
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/SpecialPerformanceExample.java
.../ch/db/domain/distribution/SpecialPerformanceExample.java
+142
-0
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/SpecialPerformanceRequestDto.java
...to/request/distribution/SpecialPerformanceRequestDto.java
+5
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/SpecialPerformanceMapper.xml
...dz/ch/db/mapper/distribution/SpecialPerformanceMapper.xml
+29
-10
ch-wx-api/src/main/java/com/wwdz/ch/wx/entity/vo/distribution/SpecialPerformanceVo.java
...dz/ch/wx/entity/vo/distribution/SpecialPerformanceVo.java
+5
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SpecialPerformanceServiceImpl.java
...h/wx/impl/distribution/SpecialPerformanceServiceImpl.java
+2
-1
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/SpecialPerformance.java
View file @
7cf3b1e0
...
...
@@ -10,7 +10,7 @@ import lombok.Data;
/**
* @author shiyu
* @date 2024/0
5/31
* @date 2024/0
6/04
*/
@Data
public
class
SpecialPerformance
implements
Entity
{
...
...
@@ -21,6 +21,11 @@ public class SpecialPerformance implements Entity {
*/
private
String
title
;
/**
* 背景图
*/
private
String
backgroundImage
;
/**
* 创建时间
*/
...
...
@@ -61,6 +66,7 @@ public class SpecialPerformance implements Entity {
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", title="
).
append
(
title
);
sb
.
append
(
", backgroundImage="
).
append
(
backgroundImage
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", startTime="
).
append
(
startTime
);
...
...
@@ -86,6 +92,7 @@ public class SpecialPerformance implements Entity {
SpecialPerformance
other
=
(
SpecialPerformance
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getTitle
()
==
null
?
other
.
getTitle
()
==
null
:
this
.
getTitle
().
equals
(
other
.
getTitle
()))
&&
(
this
.
getBackgroundImage
()
==
null
?
other
.
getBackgroundImage
()
==
null
:
this
.
getBackgroundImage
().
equals
(
other
.
getBackgroundImage
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getStartTime
()
==
null
?
other
.
getStartTime
()
==
null
:
this
.
getStartTime
().
equals
(
other
.
getStartTime
()))
...
...
@@ -100,6 +107,7 @@ public class SpecialPerformance implements Entity {
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getTitle
()
==
null
)
?
0
:
getTitle
().
hashCode
());
result
=
prime
*
result
+
((
getBackgroundImage
()
==
null
)
?
0
:
getBackgroundImage
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getStartTime
()
==
null
)
?
0
:
getStartTime
().
hashCode
());
...
...
@@ -119,6 +127,7 @@ public class SpecialPerformance implements Entity {
public
enum
Column
{
id
(
"id"
,
"id"
,
"INTEGER"
,
false
),
title
(
"title"
,
"title"
,
"VARCHAR"
,
false
),
backgroundImage
(
"background_image"
,
"backgroundImage"
,
"VARCHAR"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
startTime
(
"start_time"
,
"startTime"
,
"TIMESTAMP"
,
false
),
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/SpecialPerformanceExample.java
View file @
7cf3b1e0
...
...
@@ -422,6 +422,148 @@ public class SpecialPerformanceExample {
return
(
Criteria
)
this
;
}
public
Criteria
andBackgroundImageIsNull
()
{
addCriterion
(
"background_image is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackgroundImageIsNotNull
()
{
addCriterion
(
"background_image is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackgroundImageEqualTo
(
String
value
)
{
addCriterion
(
"background_image ="
,
value
,
"backgroundImage"
);
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
andBackgroundImageEqualToColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"background_image = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBackgroundImageNotEqualTo
(
String
value
)
{
addCriterion
(
"background_image <>"
,
value
,
"backgroundImage"
);
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
andBackgroundImageNotEqualToColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"background_image <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBackgroundImageGreaterThan
(
String
value
)
{
addCriterion
(
"background_image >"
,
value
,
"backgroundImage"
);
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
andBackgroundImageGreaterThanColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"background_image > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBackgroundImageGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"background_image >="
,
value
,
"backgroundImage"
);
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
andBackgroundImageGreaterThanOrEqualToColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"background_image >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBackgroundImageLessThan
(
String
value
)
{
addCriterion
(
"background_image <"
,
value
,
"backgroundImage"
);
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
andBackgroundImageLessThanColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"background_image < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBackgroundImageLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"background_image <="
,
value
,
"backgroundImage"
);
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
andBackgroundImageLessThanOrEqualToColumn
(
SpecialPerformance
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"background_image <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBackgroundImageLike
(
String
value
)
{
addCriterion
(
"background_image like"
,
value
,
"backgroundImage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackgroundImageNotLike
(
String
value
)
{
addCriterion
(
"background_image not like"
,
value
,
"backgroundImage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackgroundImageIn
(
List
<
String
>
values
)
{
addCriterion
(
"background_image in"
,
values
,
"backgroundImage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackgroundImageNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"background_image not in"
,
values
,
"backgroundImage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackgroundImageBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"background_image between"
,
value1
,
value2
,
"backgroundImage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackgroundImageNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"background_image not between"
,
value1
,
value2
,
"backgroundImage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIsNull
()
{
addCriterion
(
"create_time is null"
);
return
(
Criteria
)
this
;
...
...
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/SpecialPerformanceRequestDto.java
View file @
7cf3b1e0
...
...
@@ -16,6 +16,11 @@ public class SpecialPerformanceRequestDto extends BaseRequestDto implements Enti
*/
private
Integer
specialPerformanceId
;
/**
* 背景图
*/
private
String
backgroundImage
;
/**
* 专场名称
*/
...
...
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/SpecialPerformanceMapper.xml
View file @
7cf3b1e0
...
...
@@ -4,6 +4,7 @@
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.distribution.SpecialPerformance"
>
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"title"
jdbcType=
"VARCHAR"
property=
"title"
/>
<result
column=
"background_image"
jdbcType=
"VARCHAR"
property=
"backgroundImage"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"start_time"
jdbcType=
"TIMESTAMP"
property=
"startTime"
/>
...
...
@@ -70,7 +71,8 @@
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, title, create_time, update_time, start_time, end_time, `type`, `state`
id, title, background_image, create_time, update_time, start_time, end_time, `type`,
`state`
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.SpecialPerformanceExample"
resultMap=
"BaseResultMap"
>
select
...
...
@@ -105,7 +107,8 @@
</foreach>
</when>
<otherwise>
id, title, create_time, update_time, start_time, end_time, `type`, `state`
id, title, background_image, create_time, update_time, start_time, end_time, `type`,
`state`
</otherwise>
</choose>
from special_performance
...
...
@@ -136,7 +139,8 @@
</foreach>
</when>
<otherwise>
id, title, create_time, update_time, start_time, end_time, `type`, `state`
id, title, background_image, create_time, update_time, start_time, end_time, `type`,
`state`
</otherwise>
</choose>
from special_performance
...
...
@@ -156,12 +160,12 @@
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into special_performance (title,
create_time, upd
ate_time,
start_time, end_time, `type`
,
`state`)
values (#{title,jdbcType=VARCHAR}, #{
createTime,jdbcType=TIMESTAMP}, #{upd
ateTime,jdbcType=TIMESTAMP},
#{
startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{type,jdbcType=INTEGER
},
#{state,jdbcType=INTEGER})
insert into special_performance (title,
background_image, cre
ate_time,
update_time, start_time, end_time
,
`
type`, `
state`)
values (#{title,jdbcType=VARCHAR}, #{
backgroundImage,jdbcType=VARCHAR}, #{cre
ateTime,jdbcType=TIMESTAMP},
#{
updateTime,jdbcType=TIMESTAMP}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP
},
#{
type,jdbcType=INTEGER}, #{
state,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.SpecialPerformance"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
...
...
@@ -172,6 +176,9 @@
<if
test=
"title != null"
>
title,
</if>
<if
test=
"backgroundImage != null"
>
background_image,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
...
...
@@ -195,6 +202,9 @@
<if
test=
"title != null"
>
#{title,jdbcType=VARCHAR},
</if>
<if
test=
"backgroundImage != null"
>
#{backgroundImage,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
...
...
@@ -230,6 +240,9 @@
<if
test=
"record.title != null"
>
title = #{record.title,jdbcType=VARCHAR},
</if>
<if
test=
"record.backgroundImage != null"
>
background_image = #{record.backgroundImage,jdbcType=VARCHAR},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
...
...
@@ -257,6 +270,7 @@
update special_performance
set id = #{record.id,jdbcType=INTEGER},
title = #{record.title,jdbcType=VARCHAR},
background_image = #{record.backgroundImage,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
start_time = #{record.startTime,jdbcType=TIMESTAMP},
...
...
@@ -273,6 +287,9 @@
<if
test=
"title != null"
>
title = #{title,jdbcType=VARCHAR},
</if>
<if
test=
"backgroundImage != null"
>
background_image = #{backgroundImage,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
...
...
@@ -297,6 +314,7 @@
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.distribution.SpecialPerformance"
>
update special_performance
set title = #{title,jdbcType=VARCHAR},
background_image = #{backgroundImage,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
start_time = #{startTime,jdbcType=TIMESTAMP},
...
...
@@ -338,7 +356,8 @@
</foreach>
</when>
<otherwise>
id, title, create_time, update_time, start_time, end_time, `type`, `state`
id, title, background_image, create_time, update_time, start_time, end_time, `type`,
`state`
</otherwise>
</choose>
from special_performance
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/entity/vo/distribution/SpecialPerformanceVo.java
View file @
7cf3b1e0
...
...
@@ -15,6 +15,11 @@ public class SpecialPerformanceVo implements Entity {
*/
private
Integer
specialPerformanceId
;
/**
* 背景图
*/
private
String
backgroundImage
;
/**
* 专场总围观次数
*/
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SpecialPerformanceServiceImpl.java
View file @
7cf3b1e0
...
...
@@ -106,8 +106,9 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
specialPerformanceConfigRequestDto
.
setLimit
(
dto
.
getLimit
());
specialPerformanceConfigRequestDto
.
setSpecialPerformanceId
(
dto
.
getSpecialPerformanceId
());
List
<
SpecialPerformanceConfig
>
list
=
specialPerformanceConfigDao
.
findList
(
specialPerformanceConfigRequestDto
);
PageInfo
<
SupplierItem
>
pageInfo
=
new
PageInfo
(
list
);
resultMap
.
put
(
"backgroundImage"
,
specialPerformance
.
getBackgroundImage
());
//商品总数
resultMap
.
put
(
"totalItemNum"
,
pageInfo
.
getTotal
());
//围观总数
...
...
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