|
@@ -5,9 +5,12 @@ import com.zanxiang.erp.security.annotation.PreAuthorize;
|
|
|
import com.zanxiang.game.back.serve.pojo.dto.GameTencentOrderDTO;
|
|
|
import com.zanxiang.game.back.serve.pojo.dto.GameTencentUserDTO;
|
|
|
import com.zanxiang.game.back.serve.pojo.dto.OrderReportDTO;
|
|
|
+import com.zanxiang.game.back.serve.pojo.vo.GameOceanengineOrderSplitLogVO;
|
|
|
+import com.zanxiang.game.back.serve.pojo.vo.GameTencentOrderSplitLogVO;
|
|
|
import com.zanxiang.game.back.serve.pojo.vo.GameTencentOrderVO;
|
|
|
import com.zanxiang.game.back.serve.pojo.vo.GameTencentUserVO;
|
|
|
import com.zanxiang.game.back.serve.service.IGameTencentOrderService;
|
|
|
+import com.zanxiang.game.back.serve.service.IGameTencentOrderSplitLogService;
|
|
|
import com.zanxiang.game.back.serve.service.IGameTencentUserService;
|
|
|
import com.zanxiang.module.util.NumberUtil;
|
|
|
import com.zanxiang.module.util.exception.BaseException;
|
|
@@ -17,6 +20,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -24,6 +28,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
|
|
|
@RestController
|
|
@@ -34,6 +39,8 @@ public class TencentLogController {
|
|
|
private IGameTencentUserService tencentUserService;
|
|
|
@Autowired
|
|
|
private IGameTencentOrderService tencentOrderService;
|
|
|
+ @Autowired
|
|
|
+ private IGameTencentOrderSplitLogService gameTencentOrderSplitLogService;
|
|
|
|
|
|
@PreAuthorize(permissionKey = "gameBack:tencent:orderLogs")
|
|
|
@PostMapping("/orderLogs")
|
|
@@ -42,6 +49,12 @@ public class TencentLogController {
|
|
|
return ResultVO.ok(tencentOrderService.tencentOrderLogList(dto));
|
|
|
}
|
|
|
|
|
|
+ @PreAuthorize(permissionKey = "gameBack:tencent:orderLogs")
|
|
|
+ @GetMapping("/orderSplitList/{orderId}")
|
|
|
+ public ResultVO<List<GameTencentOrderSplitLogVO>> orderSplitList(@PathVariable("orderId") String orderId) {
|
|
|
+ return ResultVO.ok(gameTencentOrderSplitLogService.listByOrderNo(Collections.singletonList(orderId)));
|
|
|
+ }
|
|
|
+
|
|
|
@PreAuthorize(permissionKey = "gameBack:tencent:orderReport")
|
|
|
@PostMapping("/orderReport/{ids}/{backMoney}")
|
|
|
@ApiOperation(value = "腾讯订单手动上报")
|
|
@@ -69,6 +82,11 @@ public class TencentLogController {
|
|
|
throw new BaseException("回传金额错误!");
|
|
|
}
|
|
|
});
|
|
|
+ if (dto.getBetweenMinuteMin() == null || dto.getBetweenMinuteMax() == null
|
|
|
+ || dto.getBetweenMinuteMin() < 1 || dto.getBetweenMinuteMax() < 1
|
|
|
+ || dto.getBetweenMinuteMin().compareTo(dto.getBetweenMinuteMax()) >= 0) {
|
|
|
+ throw new BaseException("回传间隔时间错误!");
|
|
|
+ }
|
|
|
} else {
|
|
|
if (dto.getBackMoney().compareTo(BigDecimal.ZERO) <= 0) {
|
|
|
throw new BaseException("回传金额错误!");
|