记得上下班打卡 | 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
6df7f06f
Commit
6df7f06f
authored
Jul 29, 2022
by
GaoHu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug:新增修改组合购
parent
309ac069
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
4 deletions
+11
-4
GoblinMixDetailsVo.java
...m/liquidnet/service/goblin/dto/vo/GoblinMixDetailsVo.java
+1
-0
IGoblinGoodsAnticipateMgService.java
...oblin/service/manage/IGoblinGoodsAnticipateMgService.java
+5
-0
GoblinMixAppController.java
...net/service/goblin/controller/GoblinMixAppController.java
+1
-1
GoblinMixServiceImpl.java
...vice/goblin/service/impl/manage/GoblinMixServiceImpl.java
+2
-1
sqlmap.properties
...-service-goblin-impl/src/main/resources/sqlmap.properties
+2
-2
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/vo/GoblinMixDetailsVo.java
View file @
6df7f06f
...
@@ -116,6 +116,7 @@ public class GoblinMixDetailsVo implements Serializable, Cloneable {
...
@@ -116,6 +116,7 @@ public class GoblinMixDetailsVo implements Serializable, Cloneable {
this
.
setXlsName
(
source
.
getXlsName
());
this
.
setXlsName
(
source
.
getXlsName
());
this
.
setStoreId
(
source
.
getStoreId
());
this
.
setStoreId
(
source
.
getStoreId
());
this
.
setShelvesTime
(
source
.
getShelvesTime
());
this
.
setShelvesTime
(
source
.
getShelvesTime
());
this
.
setReserve
(
source
.
getReserve
());
return
this
;
return
this
;
}
}
...
...
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/service/manage/IGoblinGoodsAnticipateMgService.java
View file @
6df7f06f
...
@@ -63,5 +63,10 @@ public interface IGoblinGoodsAnticipateMgService {
...
@@ -63,5 +63,10 @@ public interface IGoblinGoodsAnticipateMgService {
*/
*/
ResponseDto
<
Boolean
>
reserveByMix
(
String
mixId
);
ResponseDto
<
Boolean
>
reserveByMix
(
String
mixId
);
/**
* 根据mixId查询用户是否预约该混合购
* @param mixId 组合购id
* @return Boolean
*/
ResponseDto
<
Boolean
>
reserveMixByUid
(
String
mixId
);
ResponseDto
<
Boolean
>
reserveMixByUid
(
String
mixId
);
}
}
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/GoblinMixAppController.java
View file @
6df7f06f
...
@@ -94,7 +94,7 @@ public class GoblinMixAppController {
...
@@ -94,7 +94,7 @@ public class GoblinMixAppController {
}
}
@ApiOperationSupport
(
order
=
7
)
@ApiOperationSupport
(
order
=
7
)
@ApiOperation
(
value
=
"
用户是否预约Mix
"
)
@ApiOperation
(
value
=
"
根据mixId查询用户是否预约该混合购
"
)
@GetMapping
(
"reserveMixByUid"
)
@GetMapping
(
"reserveMixByUid"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"mixId"
,
value
=
"混合售id"
),
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"mixId"
,
value
=
"混合售id"
),
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinMixServiceImpl.java
View file @
6df7f06f
...
@@ -236,6 +236,7 @@ public class GoblinMixServiceImpl implements IGoblinMixService {
...
@@ -236,6 +236,7 @@ public class GoblinMixServiceImpl implements IGoblinMixService {
vo
.
setWhiteUrl
(
param
.
getWhiteUrl
());
vo
.
setWhiteUrl
(
param
.
getWhiteUrl
());
vo
.
setXlsName
(
param
.
getXlsName
());
vo
.
setXlsName
(
param
.
getXlsName
());
vo
.
setShelvesTime
(
param
.
getShelvesTime
());
vo
.
setShelvesTime
(
param
.
getShelvesTime
());
vo
.
setReserve
(
param
.
getReserve
());
//redis
//redis
redisUtils
.
setMixDetails
(
param
.
getMixId
(),
vo
);
redisUtils
.
setMixDetails
(
param
.
getMixId
(),
vo
);
redisList
(
vo
.
getShowPosition
(),
vo
.
getMixId
(),
vo
.
getStatus
());
redisList
(
vo
.
getShowPosition
(),
vo
.
getMixId
(),
vo
.
getStatus
());
...
@@ -246,7 +247,7 @@ public class GoblinMixServiceImpl implements IGoblinMixService {
...
@@ -246,7 +247,7 @@ public class GoblinMixServiceImpl implements IGoblinMixService {
mongoUtils
.
changeGoblinMixDetailsVo
(
vo
);
mongoUtils
.
changeGoblinMixDetailsVo
(
vo
);
//sql入库
//sql入库
queueUtils
.
sendMsgByRedis
(
MQConst
.
GoblinQueue
.
GOBLIN_STORE_MARKET
.
getKey
(),
queueUtils
.
sendMsgByRedis
(
MQConst
.
GoblinQueue
.
GOBLIN_STORE_MARKET
.
getKey
(),
SqlMapping
.
get
(
"goblin_mix_update"
,
vo
.
getShowPosition
(),
vo
.
getLimit
(),
vo
.
getWhiteType
(),
vo
.
getWhiteUrl
(),
LocalDateTime
.
now
(),
vo
.
getShelvesTime
(),
param
.
getMixId
()));
SqlMapping
.
get
(
"goblin_mix_update"
,
vo
.
getShowPosition
(),
vo
.
getLimit
(),
vo
.
getWhiteType
(),
vo
.
getWhiteUrl
(),
LocalDateTime
.
now
(),
vo
.
getShelvesTime
(),
vo
.
getReserve
(),
param
.
getMixId
()));
return
ResponseDto
.
success
();
return
ResponseDto
.
success
();
}
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/resources/sqlmap.properties
View file @
6df7f06f
...
@@ -151,7 +151,7 @@ goblin_list_detail_insert=INSERT INTO goblin_list_details (`list_id`,`spu_id`,`s
...
@@ -151,7 +151,7 @@ goblin_list_detail_insert=INSERT INTO goblin_list_details (`list_id`,`spu_id`,`s
goblin_list_update
=
UPDATE goblin_list SET white_url = ? ,white_type = ? , black_url = ? , updated_at = ? WHERE list_id = ?
goblin_list_update
=
UPDATE goblin_list SET white_url = ? ,white_type = ? , black_url = ? , updated_at = ? WHERE list_id = ?
goblin_list_remove
=
UPDATE goblin_list set del_tag = 1 , updated_at = ? WHERE list_id = ?
goblin_list_remove
=
UPDATE goblin_list set del_tag = 1 , updated_at = ? WHERE list_id = ?
#---- \u6DF7\u5408\u552E\u5356 ----
#---- \u6DF7\u5408\u552E\u5356 ----
goblin_mix_insert
=
INSERT INTO goblin_mix (`mix_id`,`uid`,`name`,`time_start`,`time_end`,`status`,`show_position`,`sell_name`,`express_price`,`intro`,`watch_type`,`cover_pic`,`video`,`detail_url`,`details`,`stock`,`stock_lock`,`is_lock`,`limit`,`white_type`,`white_url`,`pay_type`,`store_id`,`created_at`,
shelves_time,reserve
) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
goblin_mix_insert
=
INSERT INTO goblin_mix (`mix_id`,`uid`,`name`,`time_start`,`time_end`,`status`,`show_position`,`sell_name`,`express_price`,`intro`,`watch_type`,`cover_pic`,`video`,`detail_url`,`details`,`stock`,`stock_lock`,`is_lock`,`limit`,`white_type`,`white_url`,`pay_type`,`store_id`,`created_at`,
`shelves_time`,`reserve`
) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
goblin_mix_details_insert
=
INSERT INTO goblin_mix_details (`mix_id`,`position`,`spu_id`,`sku_id`,`price`,`price_v`,`product_id`,`count`,`created_at`) VALUES (?,?,?,?,?,?,?,?,?)
goblin_mix_details_insert
=
INSERT INTO goblin_mix_details (`mix_id`,`position`,`spu_id`,`sku_id`,`price`,`price_v`,`product_id`,`count`,`created_at`) VALUES (?,?,?,?,?,?,?,?,?)
goblin_mix_status_update
=
UPDATE goblin_mix SET status = ? , updated_at = ? WHERE mix_id = ?
goblin_mix_status_update
=
UPDATE goblin_mix SET status = ? , updated_at = ? WHERE mix_id = ?
goblin_mix_update
=
UPDATE goblin_mix SET show_position = ? , `limit`=?,white_type=?,white_url=? , updated_at = ?,shelves_time = ? WHERE mix_id = ?
goblin_mix_update
=
UPDATE goblin_mix SET show_position = ? , `limit`=?,white_type=?,white_url=? , updated_at = ?,shelves_time = ?,reserve = ? WHERE mix_id = ?
\ No newline at end of file
\ No newline at end of file
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