Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SiEn
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
SiEn
Commits
2f53483d
Commit
2f53483d
authored
Oct 16, 2020
by
giaogiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://119.28.51.83/hewei/Jumeirah
into future/sys/userLogin
parents
9fb787b4
0b77f538
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
113 additions
and
13 deletions
+113
-13
api-merchant/src/main/java/com/jumeirah/api/merchant/controller/order/McStrokeController.java
+36
-10
api-merchant/src/main/java/com/jumeirah/api/merchant/entity/param/StrokeConfirmPaymentParam.java
+33
-0
api-merchant/src/main/java/com/jumeirah/api/merchant/entity/param/StrokeDiscountCheckParam.java
+33
-0
common/src/main/java/com/jumeirah/common/entity/StrokeDiscount.java
+3
-0
common/src/main/java/com/jumeirah/common/vo/StrokeDiscountQueryVo.java
+4
-1
common/src/main/resources/mapper/StrokeDiscountMapper.xml
+2
-2
config/src/main/resources/config/application.yml
+2
-0
No files found.
api-merchant/src/main/java/com/jumeirah/api/merchant/controller/order/McStrokeController.java
View file @
2f53483d
package
com
.
jumeirah
.
api
.
merchant
.
controller
.
order
;
package
com
.
jumeirah
.
api
.
merchant
.
controller
.
order
;
import
com.jumeirah.api.merchant.entity.param.StrokeConfirmPaymentParam
;
import
com.jumeirah.api.merchant.entity.param.StrokeDiscountCheckParam
;
import
com.jumeirah.api.merchant.entity.param.StrokeQuotedPriceParam
;
import
com.jumeirah.api.merchant.entity.param.StrokeQuotedPriceParam
;
import
com.jumeirah.common.entity.Stroke
;
import
com.jumeirah.common.entity.Stroke
;
import
com.jumeirah.common.param.McStrokePageParam
;
import
com.jumeirah.common.param.McStrokePageParam
;
import
com.jumeirah.common.service.StrokeService
;
import
com.jumeirah.common.service.StrokeService
;
import
com.jumeirah.common.vo.McStrokeQueryVo
;
import
com.jumeirah.common.vo.McStrokeQueryVo
;
import
com.jumeirah.common.vo.StrokeDetailVo
;
import
io.geekidea.springbootplus.framework.common.api.ApiResult
;
import
io.geekidea.springbootplus.framework.common.api.ApiResult
;
import
io.geekidea.springbootplus.framework.common.controller.BaseController
;
import
io.geekidea.springbootplus.framework.common.controller.BaseController
;
import
io.geekidea.springbootplus.framework.core.pagination.Paging
;
import
io.geekidea.springbootplus.framework.core.pagination.Paging
;
import
io.geekidea.springbootplus.framework.core.validator.groups.Update
;
import
io.geekidea.springbootplus.framework.log.annotation.OperationLog
;
import
io.geekidea.springbootplus.framework.log.annotation.OperationLog
;
import
io.geekidea.springbootplus.framework.log.enums.OperationLogType
;
import
io.geekidea.springbootplus.framework.log.enums.OperationLogType
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -18,8 +18,6 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -18,8 +18,6 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
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.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -65,8 +63,36 @@ public class McStrokeController extends BaseController {
...
@@ -65,8 +63,36 @@ public class McStrokeController extends BaseController {
}
}
/**
/**
* 修改行程表
* 优惠调机审核接口
*/
@PostMapping
(
"/discount/check"
)
@OperationLog
(
name
=
"优惠调机审核接口"
,
type
=
OperationLogType
.
UPDATE
)
@ApiOperation
(
value
=
"优惠调机审核接口"
,
response
=
ApiResult
.
class
)
public
ApiResult
<
Boolean
>
checkStrokeDiscount
(
@Validated
@RequestBody
StrokeDiscountCheckParam
strokeDiscountCheckParam
)
throws
Exception
{
Stroke
stroke
=
new
Stroke
();
stroke
.
setId
(
strokeDiscountCheckParam
.
getId
())
.
setAuditStatus
(
strokeDiscountCheckParam
.
getAuditStatus
());
boolean
flag
=
strokeService
.
updateStroke
(
stroke
);
return
ApiResult
.
result
(
flag
);
}
/**
* 行程订单确认付款接口
*/
*/
@PostMapping
(
"/confirmPayment"
)
@OperationLog
(
name
=
"优惠调机审核接口"
,
type
=
OperationLogType
.
UPDATE
)
@ApiOperation
(
value
=
"优惠调机审核接口"
,
response
=
ApiResult
.
class
)
public
ApiResult
<
Boolean
>
confirmPaymentStroke
(
@Validated
@RequestBody
StrokeConfirmPaymentParam
strokeConfirmPaymentParam
)
throws
Exception
{
Stroke
stroke
=
new
Stroke
();
stroke
.
setId
(
strokeConfirmPaymentParam
.
getId
())
.
setPaymentStatus
(
strokeConfirmPaymentParam
.
getPaymentStatus
());
boolean
flag
=
strokeService
.
updateStroke
(
stroke
);
return
ApiResult
.
result
(
flag
);
}
/* *//**
* 修改行程表
*//*
@PostMapping("/update")
@PostMapping("/update")
@OperationLog(name = "修改行程表", type = OperationLogType.UPDATE)
@OperationLog(name = "修改行程表", type = OperationLogType.UPDATE)
@ApiOperation(value = "修改行程表", response = ApiResult.class)
@ApiOperation(value = "修改行程表", response = ApiResult.class)
...
@@ -75,9 +101,9 @@ public class McStrokeController extends BaseController {
...
@@ -75,9 +101,9 @@ public class McStrokeController extends BaseController {
return ApiResult.result(flag);
return ApiResult.result(flag);
}
}
/**
*/
/**
* 删除行程表
* 删除行程表
*/
*/
/*
@PostMapping("/delete/{id}")
@PostMapping("/delete/{id}")
@OperationLog(name = "删除行程表", type = OperationLogType.DELETE)
@OperationLog(name = "删除行程表", type = OperationLogType.DELETE)
@ApiOperation(value = "删除行程表", response = ApiResult.class)
@ApiOperation(value = "删除行程表", response = ApiResult.class)
...
@@ -86,16 +112,16 @@ public class McStrokeController extends BaseController {
...
@@ -86,16 +112,16 @@ public class McStrokeController extends BaseController {
return ApiResult.result(flag);
return ApiResult.result(flag);
}
}
/**
*/
/**
* 获取行程表详情
* 获取行程表详情
*/
*/
/*
@GetMapping("/info/{id}")
@GetMapping("/info/{id}")
@OperationLog(name = "行程表详情", type = OperationLogType.INFO)
@OperationLog(name = "行程表详情", type = OperationLogType.INFO)
@ApiOperation(value = "行程表详情", response = StrokeDetailVo.class)
@ApiOperation(value = "行程表详情", response = StrokeDetailVo.class)
public ApiResult<StrokeDetailVo> getStroke(@PathVariable("id") Long id) throws Exception {
public ApiResult<StrokeDetailVo> getStroke(@PathVariable("id") Long id) throws Exception {
StrokeDetailVo strokeQueryVo = strokeService.getStrokeById(id);
StrokeDetailVo strokeQueryVo = strokeService.getStrokeById(id);
return ApiResult.ok(strokeQueryVo);
return ApiResult.ok(strokeQueryVo);
}
}
*/
}
}
api-merchant/src/main/java/com/jumeirah/api/merchant/entity/param/StrokeConfirmPaymentParam.java
0 → 100644
View file @
2f53483d
package
com
.
jumeirah
.
api
.
merchant
.
entity
.
param
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
javax.validation.constraints.NotNull
;
/**
* 行程表
*
* @author wei
* @since 2020-09-29
*/
@Data
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"Stroke确认付款对象"
)
public
class
StrokeConfirmPaymentParam
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@NotNull
(
message
=
"id不能为空"
)
@ApiModelProperty
(
"主键ID"
)
private
Long
id
;
@NotNull
(
message
=
"付款状态不能为空"
)
@ApiModelProperty
(
"付款状态,0-未付款,1-付款中,2-已付款,3-退款中,99-已退款"
)
private
Integer
paymentStatus
;
}
api-merchant/src/main/java/com/jumeirah/api/merchant/entity/param/StrokeDiscountCheckParam.java
0 → 100644
View file @
2f53483d
package
com
.
jumeirah
.
api
.
merchant
.
entity
.
param
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
javax.validation.constraints.NotNull
;
/**
* 行程表
*
* @author wei
* @since 2020-09-29
*/
@Data
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"Stroke优惠调机审核对象"
)
public
class
StrokeDiscountCheckParam
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@NotNull
(
message
=
"id不能为空"
)
@ApiModelProperty
(
"主键ID"
)
private
Long
id
;
@NotNull
(
message
=
"审核状态不能为空"
)
@ApiModelProperty
(
"审核状态,0审核中,1审核通过,2审核未通过"
)
private
Integer
auditStatus
;
}
common/src/main/java/com/jumeirah/common/entity/StrokeDiscount.java
View file @
2f53483d
...
@@ -57,6 +57,9 @@ public class StrokeDiscount extends BaseEntity {
...
@@ -57,6 +57,9 @@ public class StrokeDiscount extends BaseEntity {
@ApiModelProperty
(
"飞机型号ID"
)
@ApiModelProperty
(
"飞机型号ID"
)
private
Long
plainTypeId
;
private
Long
plainTypeId
;
@ApiModelProperty
(
"飞机型号名称"
)
private
String
plainTypeName
;
@NotNull
(
message
=
"出发时间不能为空"
)
@NotNull
(
message
=
"出发时间不能为空"
)
@ApiModelProperty
(
"出发时间"
)
@ApiModelProperty
(
"出发时间"
)
private
Timestamp
outsetTime
;
private
Timestamp
outsetTime
;
...
...
common/src/main/java/com/jumeirah/common/vo/StrokeDiscountQueryVo.java
View file @
2f53483d
...
@@ -39,11 +39,14 @@ public class StrokeDiscountQueryVo implements Serializable {
...
@@ -39,11 +39,14 @@ public class StrokeDiscountQueryVo implements Serializable {
private
String
cityArriveName
;
private
String
cityArriveName
;
@ApiModelProperty
(
"座位数"
)
@ApiModelProperty
(
"座位数"
)
private
Integer
seat
Mun
;
private
Integer
seat
Num
;
@ApiModelProperty
(
"飞机型号ID"
)
@ApiModelProperty
(
"飞机型号ID"
)
private
Long
plainTypeId
;
private
Long
plainTypeId
;
@ApiModelProperty
(
"飞机型号名称"
)
private
String
plainTypeName
;
@ApiModelProperty
(
"出发时间"
)
@ApiModelProperty
(
"出发时间"
)
private
Timestamp
outsetTime
;
private
Timestamp
outsetTime
;
...
...
common/src/main/resources/mapper/StrokeDiscountMapper.xml
View file @
2f53483d
...
@@ -9,8 +9,9 @@
...
@@ -9,8 +9,9 @@
city_outset_name,
city_outset_name,
city_arrive_id,
city_arrive_id,
city_arrive_name,
city_arrive_name,
seat_
mun
,
seat_
num
,
plain_type_id,
plain_type_id,
plain_type_name,
outset_time,
outset_time,
return_time,
return_time,
status,
status,
...
@@ -36,7 +37,6 @@
...
@@ -36,7 +37,6 @@
from stroke_discount sd
from stroke_discount sd
INNER JOIN city_three_code ctco ON ctco.id = sd.city_outset_id
INNER JOIN city_three_code ctco ON ctco.id = sd.city_outset_id
INNER JOIN city_three_code ctca ON ctca.id = sd.city_arrive_id
INNER JOIN city_three_code ctca ON ctca.id = sd.city_arrive_id
</select>
</select>
</mapper>
</mapper>
config/src/main/resources/config/application.yml
View file @
2f53483d
...
@@ -202,6 +202,8 @@ spring-boot-plus:
...
@@ -202,6 +202,8 @@ spring-boot-plus:
-
/app/businessPlain/getPageList
-
/app/businessPlain/getPageList
# 包机介绍分页列表
# 包机介绍分页列表
-
/app/charterIntroduction/getPageList
-
/app/charterIntroduction/getPageList
# 优惠调机列表分页查询
-
/app/strokeDiscount/getPageList
# 多行字符串权限配置
# 多行字符串权限配置
filter-chain-definitions
:
|
filter-chain-definitions
:
|
...
...
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