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

Commit 82c004a1 authored by GaoHu's avatar GaoHu

exit文档

parent 1ecb29c3
...@@ -20,7 +20,7 @@ public interface IGoblinGoodsAnticipateService { ...@@ -20,7 +20,7 @@ public interface IGoblinGoodsAnticipateService {
/** /**
* 用户预约 * 用户预约
*/ */
ResponseDto<Object> userAbout(String skuId); ResponseDto<Boolean> userAbout(String skuId);
ResponseDto<Boolean> selectAnticipate(String skuId); ResponseDto<Boolean> selectAnticipate(String skuId);
......
...@@ -32,12 +32,12 @@ public interface IGoblinGoodsAnticipateMgService { ...@@ -32,12 +32,12 @@ public interface IGoblinGoodsAnticipateMgService {
/** /**
* 修改预约人数 * 修改预约人数
*/ */
ResponseDto<Object> updatePeople(String antId, BigInteger people); ResponseDto<Boolean> updatePeople(String antId, BigInteger people);
/** /**
* 删除预约 * 删除预约
*/ */
ResponseDto<Object> delete(String skuId); ResponseDto<Boolean> delete(String skuId);
AnticipateValueVo getAnticipateValueBySkuId(String skuId,int hasHead); AnticipateValueVo getAnticipateValueBySkuId(String skuId,int hasHead);
} }
...@@ -25,7 +25,7 @@ import java.util.List; ...@@ -25,7 +25,7 @@ import java.util.List;
*/ */
@Slf4j @Slf4j
@RestController @RestController
@Api(tags = "预约相关") @Api(tags = "预约相关(前)")
@RequestMapping("/anticipate") @RequestMapping("/anticipate")
public class GoblinGoodsAnticipateController { public class GoblinGoodsAnticipateController {
...@@ -37,11 +37,11 @@ public class GoblinGoodsAnticipateController { ...@@ -37,11 +37,11 @@ public class GoblinGoodsAnticipateController {
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "skuId", value = "skuId", example = ""), @ApiImplicitParam(type = "query", dataType = "String", name = "skuId", value = "skuId", example = ""),
}) })
public ResponseDto<Object> userAbout(@RequestParam(name = "skuId", required = true) String skuId) { public ResponseDto<Boolean> userAbout(@RequestParam(name = "skuId", required = true) String skuId) {
return goblinGoodsAnticipateService.userAbout(skuId); return goblinGoodsAnticipateService.userAbout(skuId);
} }
@ApiOperation("根据skuId和uid查询") @ApiOperation("根据skuId和uid查询是否预约")
@GetMapping("/selectAnticipateBySkuIdAndUid") @GetMapping("/selectAnticipateBySkuIdAndUid")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "skuId", value = "skuId", example = ""), @ApiImplicitParam(type = "query", dataType = "String", name = "skuId", value = "skuId", example = ""),
......
...@@ -28,7 +28,7 @@ import java.math.BigInteger; ...@@ -28,7 +28,7 @@ import java.math.BigInteger;
*/ */
@Slf4j @Slf4j
@RestController @RestController
@Api(tags = "预约相关") @Api(tags = "预约相关(后)")
@RequestMapping("/goblin/anticipate") @RequestMapping("/goblin/anticipate")
public class GoblinGoodsAnticipateMgController { public class GoblinGoodsAnticipateMgController {
...@@ -53,7 +53,7 @@ public class GoblinGoodsAnticipateMgController { ...@@ -53,7 +53,7 @@ public class GoblinGoodsAnticipateMgController {
@ApiImplicitParam(type = "query", dataType = "String", name = "skuId", value = "skuId", example = ""), @ApiImplicitParam(type = "query", dataType = "String", name = "skuId", value = "skuId", example = ""),
@ApiImplicitParam(type = "query", dataType = "BigInteger", name = "people", value = "要修改的人数", example = "") @ApiImplicitParam(type = "query", dataType = "BigInteger", name = "people", value = "要修改的人数", example = "")
}) })
public ResponseDto<Object> updatePeople(@RequestParam(name = "skuId", required = true) String skuId, @RequestParam(name = "people", required = true) BigInteger people) { public ResponseDto<Boolean> updatePeople(@RequestParam(name = "skuId", required = true) String skuId, @RequestParam(name = "people", required = true) BigInteger people) {
return goblinGoodsAnticipateMgService.updatePeople(skuId, people); return goblinGoodsAnticipateMgService.updatePeople(skuId, people);
} }
...@@ -62,7 +62,7 @@ public class GoblinGoodsAnticipateMgController { ...@@ -62,7 +62,7 @@ public class GoblinGoodsAnticipateMgController {
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "skuId", value = "skuId", example = ""), @ApiImplicitParam(type = "query", dataType = "String", name = "skuId", value = "skuId", example = ""),
}) })
public ResponseDto<Object> delete(@RequestParam(name = "skuId") String skuId) { public ResponseDto<Boolean> delete(@RequestParam(name = "skuId") String skuId) {
return goblinGoodsAnticipateMgService.delete(skuId); return goblinGoodsAnticipateMgService.delete(skuId);
} }
......
...@@ -52,7 +52,7 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS ...@@ -52,7 +52,7 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
GoblinMongoUtils goblinMongoUtils; GoblinMongoUtils goblinMongoUtils;
@Override @Override
public ResponseDto<Object> userAbout(String skuId) { public ResponseDto<Boolean> userAbout(String skuId) {
//查询该skuId是否能被预约 //查询该skuId是否能被预约
GoblinGoodsAnticipateValueVo anticipateValueVo = goblinRedisUtils.getValueBySkuId(skuId); GoblinGoodsAnticipateValueVo anticipateValueVo = goblinRedisUtils.getValueBySkuId(skuId);
if (anticipateValueVo != null) { if (anticipateValueVo != null) {
......
...@@ -13,7 +13,6 @@ import com.liquidnet.service.goblin.dto.manage.GoblinGoodsAnticipateValueAddPara ...@@ -13,7 +13,6 @@ import com.liquidnet.service.goblin.dto.manage.GoblinGoodsAnticipateValueAddPara
import com.liquidnet.service.goblin.dto.manage.GoblinGoodsAnticipateValueParam; import com.liquidnet.service.goblin.dto.manage.GoblinGoodsAnticipateValueParam;
import com.liquidnet.service.goblin.dto.manage.vo.AnticipateValueVo; import com.liquidnet.service.goblin.dto.manage.vo.AnticipateValueVo;
import com.liquidnet.service.goblin.dto.manage.vo.GoblinGoodsAnticipateValueVo; import com.liquidnet.service.goblin.dto.manage.vo.GoblinGoodsAnticipateValueVo;
import com.liquidnet.service.goblin.dto.vo.GoblinGoodsAnticipateHelp;
import com.liquidnet.service.goblin.dto.vo.GoblinGoodsAnticipateVo; import com.liquidnet.service.goblin.dto.vo.GoblinGoodsAnticipateVo;
import com.liquidnet.service.goblin.service.manage.IGoblinGoodsAnticipateMgService; import com.liquidnet.service.goblin.service.manage.IGoblinGoodsAnticipateMgService;
import com.liquidnet.service.goblin.util.GoblinAnticipateUtils; import com.liquidnet.service.goblin.util.GoblinAnticipateUtils;
...@@ -24,7 +23,6 @@ import lombok.extern.slf4j.Slf4j; ...@@ -24,7 +23,6 @@ import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;
import java.math.BigInteger; import java.math.BigInteger;
import java.time.LocalDateTime; import java.time.LocalDateTime;
...@@ -166,7 +164,7 @@ public class GoblinGoodsAnticipateMgServiceImpl implements IGoblinGoodsAnticipat ...@@ -166,7 +164,7 @@ public class GoblinGoodsAnticipateMgServiceImpl implements IGoblinGoodsAnticipat
} }
@Override @Override
public ResponseDto<Object> updatePeople(String skuId, BigInteger people) { public ResponseDto<Boolean> updatePeople(String skuId, BigInteger people) {
//修改Mongodb //修改Mongodb
goblinMongoUtils.updateGoblinGoodsAnticipateValueVoPeople(skuId, people); goblinMongoUtils.updateGoblinGoodsAnticipateValueVoPeople(skuId, people);
//修改redis //修改redis
...@@ -184,7 +182,7 @@ public class GoblinGoodsAnticipateMgServiceImpl implements IGoblinGoodsAnticipat ...@@ -184,7 +182,7 @@ public class GoblinGoodsAnticipateMgServiceImpl implements IGoblinGoodsAnticipat
} }
@Override @Override
public ResponseDto<Object> delete(String skuId) { public ResponseDto<Boolean> delete(String skuId) {
//更具skuId查询 //更具skuId查询
GoblinGoodsAnticipateValueVo goodsAnticipateValueVo = goblinRedisUtils.getValueBySkuId(skuId); GoblinGoodsAnticipateValueVo goodsAnticipateValueVo = goblinRedisUtils.getValueBySkuId(skuId);
String uid = CurrentUtil.getCurrentUid(); String uid = CurrentUtil.getCurrentUid();
......
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