|
@@ -84,50 +84,50 @@ public class ProductOrderController {
|
|
|
List<UserAndProdutDTO> UserAndProdutData = openedProductsFacade.getInformationAvailableByUserId(userId);
|
|
|
return RespDTO.onSuc(UserAndProdutData);
|
|
|
}
|
|
|
-
|
|
|
- @ApiOperation(value = "根据用户id和产品id,启用和停用功能", notes = "开通信息")
|
|
|
- @PostMapping("/startAndendByuserId")
|
|
|
- @SysLogger("startAndendByuserId")
|
|
|
- public RespDTO<StartAndendByUserIdVO> startAndendByuserId(StartAndendByUserIdVO startAndendByUserIdVO){
|
|
|
- OpenedProducts openedProducts = new OpenedProducts();
|
|
|
- openedProducts.setUserId(startAndendByUserIdVO.getUserId());
|
|
|
- openedProducts.setProductId(startAndendByUserIdVO.getProductId());
|
|
|
- openedProducts.setCreator("");
|
|
|
- openedProducts.setGmtCreate(DateUtil.now());
|
|
|
- openedProducts.setServiceStatus(startAndendByUserIdVO.getServiceStatus());
|
|
|
- openedProductsFacade.startAndendByuserId(openedProducts);
|
|
|
- return RespDTO.onSuc("");
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- //TODO
|
|
|
- @ApiOperation(value = "根据用户id和产品id,删除开通信息", notes = "删除开通信息")
|
|
|
- @PostMapping("/delInformationAvailable")
|
|
|
- @SysLogger("delInformationAvailable")
|
|
|
- public RespDTO delInformationAvailable(Long userId , Long productId){
|
|
|
- OpenedProducts openedProducts = new OpenedProducts();
|
|
|
- openedProducts.setUserId(userId);
|
|
|
- openedProducts.setProductId(productId);
|
|
|
- openedProducts.setCreator("");
|
|
|
- openedProducts.setGmtCreate(DateUtil.now());
|
|
|
- openedProductsFacade.delInformationAvailable(openedProducts);
|
|
|
- return RespDTO.onSuc("");
|
|
|
- }
|
|
|
- //TODO
|
|
|
- @ApiOperation(value = "根据用户id和产品id,修改开通时间", notes = "修改开通时间")
|
|
|
- @PostMapping("/modifyOpeningTime")
|
|
|
- @SysLogger("modifyOpeningTime")
|
|
|
- public RespDTO<ModifyOpeningTimeVO> modifyOpeningTime(ModifyOpeningTimeVO modifyOpeningTimeVO){
|
|
|
- OpenedProducts openedProducts = new OpenedProducts();
|
|
|
- openedProducts.setUserId(modifyOpeningTimeVO.getUserId());
|
|
|
- openedProducts.setProductId(modifyOpeningTimeVO.getProductId());
|
|
|
- openedProducts.setStartTime(modifyOpeningTimeVO.getStartTime());
|
|
|
- openedProducts.setEndTime(modifyOpeningTimeVO.getEndTime());
|
|
|
- openedProducts.setCreator("");
|
|
|
- openedProducts.setGmtCreate(DateUtil.now());
|
|
|
- openedProductsFacade.modifyOpeningTime(openedProducts);
|
|
|
- return RespDTO.onSuc("");
|
|
|
- }
|
|
|
+
|
|
|
+ @ApiOperation(value = "根据用户id和产品id,启用和停用功能", notes = "开通信息")
|
|
|
+ @PostMapping("/startAndendByuserId")
|
|
|
+ @SysLogger("startAndendByuserId")
|
|
|
+ public RespDTO<StartAndendByUserIdVO> startAndendByuserId(StartAndendByUserIdVO startAndendByUserIdVO) {
|
|
|
+ OpenedProducts openedProducts = new OpenedProducts();
|
|
|
+ openedProducts.setUserId(startAndendByUserIdVO.getUserId());
|
|
|
+ openedProducts.setProductId(startAndendByUserIdVO.getProductId());
|
|
|
+ openedProducts.setCreator("");
|
|
|
+ openedProducts.setGmtCreate(DateUtil.now());
|
|
|
+ openedProducts.setServiceStatus(startAndendByUserIdVO.getServiceStatus());
|
|
|
+ openedProductsFacade.startAndendByuserId(openedProducts);
|
|
|
+ return RespDTO.onSuc("");
|
|
|
+ }
|
|
|
+
|
|
|
+ // TODO
|
|
|
+ @ApiOperation(value = "根据用户id和产品id,删除开通信息", notes = "删除开通信息")
|
|
|
+ @PostMapping("/delInformationAvailable")
|
|
|
+ @SysLogger("delInformationAvailable")
|
|
|
+ public RespDTO delInformationAvailable(Long userId, Long productId) {
|
|
|
+ OpenedProducts openedProducts = new OpenedProducts();
|
|
|
+ openedProducts.setUserId(userId);
|
|
|
+ openedProducts.setProductId(productId);
|
|
|
+ openedProducts.setCreator("");
|
|
|
+ openedProducts.setGmtCreate(DateUtil.now());
|
|
|
+ openedProductsFacade.delInformationAvailable(openedProducts);
|
|
|
+ return RespDTO.onSuc("");
|
|
|
+ }
|
|
|
+
|
|
|
+ // TODO
|
|
|
+ @ApiOperation(value = "根据用户id和产品id,修改开通时间", notes = "修改开通时间")
|
|
|
+ @PostMapping("/modifyOpeningTime")
|
|
|
+ @SysLogger("modifyOpeningTime")
|
|
|
+ public RespDTO<ModifyOpeningTimeVO> modifyOpeningTime(ModifyOpeningTimeVO modifyOpeningTimeVO) {
|
|
|
+ OpenedProducts openedProducts = new OpenedProducts();
|
|
|
+ openedProducts.setUserId(modifyOpeningTimeVO.getUserId());
|
|
|
+ openedProducts.setProductId(modifyOpeningTimeVO.getProductId());
|
|
|
+ openedProducts.setStartTime(modifyOpeningTimeVO.getStartTime());
|
|
|
+ openedProducts.setEndTime(modifyOpeningTimeVO.getEndTime());
|
|
|
+ openedProducts.setCreator("");
|
|
|
+ openedProducts.setGmtCreate(DateUtil.now());
|
|
|
+ openedProductsFacade.modifyOpeningTime(openedProducts);
|
|
|
+ return RespDTO.onSuc("");
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|