记得上下班打卡 | git大法好,push需谨慎

Commit 6df7f06f authored by GaoHu's avatar GaoHu

bug:新增修改组合购

parent 309ac069
...@@ -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;
} }
......
...@@ -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);
} }
...@@ -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"),
......
...@@ -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();
} }
......
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment