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
d77daa33
Commit
d77daa33
authored
Oct 14, 2020
by
lanpingxiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev/lanpingxiong' into 'master'
Dev/lanpingxiong See merge request hewei/Jumeirah!22
parents
cf7e82e7
61296735
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
277 additions
and
158 deletions
+277
-158
api-app/src/main/java/com/jumeirah/api/app/controller/StrokeController.java
+40
-13
api-app/src/main/java/com/jumeirah/api/app/controller/StrokeDiscountController.java
+0
-14
api-app/src/main/java/com/jumeirah/api/app/entity/param/StrokeAddBackAndForthParam.java
+2
-2
api-app/src/main/java/com/jumeirah/api/app/entity/param/StrokeAddFreightParam.java
+2
-2
api-app/src/main/java/com/jumeirah/api/app/entity/param/StrokeAddMedicalTreatmentParam.java
+2
-2
api-app/src/main/java/com/jumeirah/api/app/entity/param/StrokeAddOneWayParam.java
+2
-2
api-app/src/main/java/com/jumeirah/api/app/entity/param/StrokeDiscountParam.java
+38
-0
common/src/main/java/com/jumeirah/common/entity/Stroke.java
+1
-1
common/src/main/java/com/jumeirah/common/entity/StrokeDiscount.java
+49
-49
common/src/main/java/com/jumeirah/common/mapper/StrokeMapper.java
+8
-2
common/src/main/java/com/jumeirah/common/service/impl/StrokeDiscountServiceImpl.java
+32
-32
common/src/main/java/com/jumeirah/common/service/impl/StrokeServiceImpl.java
+2
-7
common/src/main/java/com/jumeirah/common/vo/StrokeDiscountQueryVo.java
+9
-8
common/src/main/resources/mapper/StrokeDiscountMapper.xml
+33
-13
common/src/main/resources/mapper/StrokeMapper.xml
+56
-10
generator/src/main/java/io/geekidea/springbootplus/generator/constant/GeneratorConstant.java
+1
-1
No files found.
api-app/src/main/java/com/jumeirah/api/app/controller/StrokeController.java
View file @
d77daa33
package
com
.
jumeirah
.
api
.
app
.
controller
;
package
com
.
jumeirah
.
api
.
app
.
controller
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.jumeirah.api.app.entity.vo.StrokeAddBackAndForthVo
;
import
com.jumeirah.api.app.entity.param.StrokeAddBackAndForthParam
;
import
com.jumeirah.api.app.entity.vo.StrokeAddFreightVo
;
import
com.jumeirah.api.app.entity.param.StrokeAddFreightParam
;
import
com.jumeirah.api.app.entity.vo.StrokeAddMedicalTreatmentVo
;
import
com.jumeirah.api.app.entity.param.StrokeAddMedicalTreatmentParam
;
import
com.jumeirah.api.app.entity.vo.StrokeAddOneWayVo
;
import
com.jumeirah.api.app.entity.param.StrokeAddOneWayParam
;
import
com.jumeirah.api.app.entity.param.StrokeDiscountParam
;
import
com.jumeirah.common.constant.Constant
;
import
com.jumeirah.common.constant.Constant
;
import
com.jumeirah.common.entity.Stroke
;
import
com.jumeirah.common.entity.Stroke
;
import
com.jumeirah.common.enums.StatePaymentStatusEnum
;
import
com.jumeirah.common.enums.StatePaymentStatusEnum
;
import
com.jumeirah.common.param.StrokePageParam
;
import
com.jumeirah.common.param.StrokePageParam
;
import
com.jumeirah.common.param.app.StrokePaymentInfoParam
;
import
com.jumeirah.common.param.app.StrokePaymentInfoParam
;
import
com.jumeirah.common.service.StrokeDiscountService
;
import
com.jumeirah.common.service.StrokeService
;
import
com.jumeirah.common.service.StrokeService
;
import
com.jumeirah.common.vo.StrokeDetailVo
;
import
com.jumeirah.common.vo.StrokeDetailVo
;
import
com.jumeirah.common.vo.StrokeDiscountQueryVo
;
import
com.jumeirah.common.vo.StrokeQueryVo
;
import
com.jumeirah.common.vo.StrokeQueryVo
;
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
;
...
@@ -49,7 +52,8 @@ public class StrokeController extends BaseController {
...
@@ -49,7 +52,8 @@ public class StrokeController extends BaseController {
@Autowired
@Autowired
private
StrokeService
strokeService
;
private
StrokeService
strokeService
;
@Autowired
private
StrokeDiscountService
strokeDiscountService
;
/**
/**
* 填写付款信息
* 填写付款信息
*/
*/
...
@@ -75,10 +79,10 @@ public class StrokeController extends BaseController {
...
@@ -75,10 +79,10 @@ public class StrokeController extends BaseController {
@PostMapping
(
"/add/oneWay"
)
@PostMapping
(
"/add/oneWay"
)
@OperationLog
(
name
=
"添加单程行程表"
,
type
=
OperationLogType
.
ADD
)
@OperationLog
(
name
=
"添加单程行程表"
,
type
=
OperationLogType
.
ADD
)
@ApiOperation
(
value
=
"添加单程行程表"
,
response
=
ApiResult
.
class
)
@ApiOperation
(
value
=
"添加单程行程表"
,
response
=
ApiResult
.
class
)
public
ApiResult
<
Boolean
>
addOneWayStroke
(
@Validated
@RequestBody
StrokeAddOneWay
Vo
strokeAddOneWayVo
)
throws
Exception
{
public
ApiResult
<
Boolean
>
addOneWayStroke
(
@Validated
@RequestBody
StrokeAddOneWay
Param
strokeAddOneWayParam
)
throws
Exception
{
JwtToken
jwtToken
=
(
JwtToken
)
SecurityUtils
.
getSubject
().
getPrincipal
();
JwtToken
jwtToken
=
(
JwtToken
)
SecurityUtils
.
getSubject
().
getPrincipal
();
Stroke
stroke
=
new
Stroke
();
Stroke
stroke
=
new
Stroke
();
BeanUtils
.
copyProperties
(
strokeAddOneWay
Vo
,
stroke
);
BeanUtils
.
copyProperties
(
strokeAddOneWay
Param
,
stroke
);
stroke
.
setType
(
0
)
stroke
.
setType
(
0
)
.
setMoney
(
new
BigDecimal
(
"0"
))
.
setMoney
(
new
BigDecimal
(
"0"
))
.
setMcId
(
Constant
.
MC_ID
)
.
setMcId
(
Constant
.
MC_ID
)
...
@@ -93,10 +97,10 @@ public class StrokeController extends BaseController {
...
@@ -93,10 +97,10 @@ public class StrokeController extends BaseController {
@PostMapping
(
"/add/backAndForth"
)
@PostMapping
(
"/add/backAndForth"
)
@OperationLog
(
name
=
"添加往返行程表"
,
type
=
OperationLogType
.
ADD
)
@OperationLog
(
name
=
"添加往返行程表"
,
type
=
OperationLogType
.
ADD
)
@ApiOperation
(
value
=
"添加往返行程表"
,
response
=
ApiResult
.
class
)
@ApiOperation
(
value
=
"添加往返行程表"
,
response
=
ApiResult
.
class
)
public
ApiResult
<
Boolean
>
addBackAndForthStroke
(
@Validated
@RequestBody
StrokeAddBackAndForth
Vo
strokeAddBackAndForthVo
)
throws
Exception
{
public
ApiResult
<
Boolean
>
addBackAndForthStroke
(
@Validated
@RequestBody
StrokeAddBackAndForth
Param
strokeAddBackAndForthParam
)
throws
Exception
{
JwtToken
jwtToken
=
(
JwtToken
)
SecurityUtils
.
getSubject
().
getPrincipal
();
JwtToken
jwtToken
=
(
JwtToken
)
SecurityUtils
.
getSubject
().
getPrincipal
();
Stroke
stroke
=
new
Stroke
();
Stroke
stroke
=
new
Stroke
();
BeanUtils
.
copyProperties
(
strokeAddBackAndForth
Vo
,
stroke
);
BeanUtils
.
copyProperties
(
strokeAddBackAndForth
Param
,
stroke
);
stroke
.
setType
(
1
)
stroke
.
setType
(
1
)
.
setMoney
(
new
BigDecimal
(
"0"
))
.
setMoney
(
new
BigDecimal
(
"0"
))
.
setMcId
(
Constant
.
MC_ID
)
.
setMcId
(
Constant
.
MC_ID
)
...
@@ -111,10 +115,10 @@ public class StrokeController extends BaseController {
...
@@ -111,10 +115,10 @@ public class StrokeController extends BaseController {
@PostMapping
(
"/add/freight"
)
@PostMapping
(
"/add/freight"
)
@OperationLog
(
name
=
"添加货运行程表"
,
type
=
OperationLogType
.
ADD
)
@OperationLog
(
name
=
"添加货运行程表"
,
type
=
OperationLogType
.
ADD
)
@ApiOperation
(
value
=
"添加货运行程表"
,
response
=
ApiResult
.
class
)
@ApiOperation
(
value
=
"添加货运行程表"
,
response
=
ApiResult
.
class
)
public
ApiResult
<
Boolean
>
addFreightStroke
(
@Validated
@RequestBody
StrokeAddFreight
Vo
strokeAddFreightVo
)
throws
Exception
{
public
ApiResult
<
Boolean
>
addFreightStroke
(
@Validated
@RequestBody
StrokeAddFreight
Param
strokeAddFreightParam
)
throws
Exception
{
JwtToken
jwtToken
=
(
JwtToken
)
SecurityUtils
.
getSubject
().
getPrincipal
();
JwtToken
jwtToken
=
(
JwtToken
)
SecurityUtils
.
getSubject
().
getPrincipal
();
Stroke
stroke
=
new
Stroke
();
Stroke
stroke
=
new
Stroke
();
BeanUtils
.
copyProperties
(
strokeAddFreight
Vo
,
stroke
);
BeanUtils
.
copyProperties
(
strokeAddFreight
Param
,
stroke
);
stroke
.
setType
(
2
)
stroke
.
setType
(
2
)
.
setMoney
(
new
BigDecimal
(
"0"
))
.
setMoney
(
new
BigDecimal
(
"0"
))
.
setMcId
(
Constant
.
MC_ID
)
.
setMcId
(
Constant
.
MC_ID
)
...
@@ -130,10 +134,10 @@ public class StrokeController extends BaseController {
...
@@ -130,10 +134,10 @@ public class StrokeController extends BaseController {
@OperationLog
(
name
=
"添加医疗行程表"
,
type
=
OperationLogType
.
ADD
)
@OperationLog
(
name
=
"添加医疗行程表"
,
type
=
OperationLogType
.
ADD
)
@ApiOperation
(
value
=
"添加医疗行程表"
,
response
=
ApiResult
.
class
)
@ApiOperation
(
value
=
"添加医疗行程表"
,
response
=
ApiResult
.
class
)
public
ApiResult
<
Boolean
>
addMedicalTreatmentStroke
(
public
ApiResult
<
Boolean
>
addMedicalTreatmentStroke
(
@Validated
@RequestBody
StrokeAddMedicalTreatment
Vo
strokeAddMedicalTreatmentVo
)
throws
Exception
{
@Validated
@RequestBody
StrokeAddMedicalTreatment
Param
strokeAddMedicalTreatmentParam
)
throws
Exception
{
JwtToken
jwtToken
=
(
JwtToken
)
SecurityUtils
.
getSubject
().
getPrincipal
();
JwtToken
jwtToken
=
(
JwtToken
)
SecurityUtils
.
getSubject
().
getPrincipal
();
Stroke
stroke
=
new
Stroke
();
Stroke
stroke
=
new
Stroke
();
BeanUtils
.
copyProperties
(
strokeAddMedicalTreatment
Vo
,
stroke
);
BeanUtils
.
copyProperties
(
strokeAddMedicalTreatment
Param
,
stroke
);
stroke
.
setType
(
3
)
stroke
.
setType
(
3
)
.
setMoney
(
new
BigDecimal
(
"0"
))
.
setMoney
(
new
BigDecimal
(
"0"
))
.
setMcId
(
Constant
.
MC_ID
)
.
setMcId
(
Constant
.
MC_ID
)
...
@@ -142,6 +146,29 @@ public class StrokeController extends BaseController {
...
@@ -142,6 +146,29 @@ public class StrokeController extends BaseController {
return
ApiResult
.
result
(
flag
);
return
ApiResult
.
result
(
flag
);
}
}
/**
* 添加优惠调机行程
*/
@PostMapping
(
"/add/discount"
)
@OperationLog
(
name
=
"添加优惠调机行程"
,
type
=
OperationLogType
.
ADD
)
@ApiOperation
(
value
=
"添加优惠调机行程"
,
response
=
ApiResult
.
class
)
public
ApiResult
<
Boolean
>
addOneWayStroke
(
@Validated
@RequestBody
StrokeDiscountParam
strokeDiscountParam
)
throws
Exception
{
JwtToken
jwtToken
=
(
JwtToken
)
SecurityUtils
.
getSubject
().
getPrincipal
();
StrokeDiscountQueryVo
strokeDiscountQueryVo
=
strokeDiscountService
.
getStrokeDiscountById
(
strokeDiscountParam
.
getSdId
());
Stroke
stroke
=
new
Stroke
();
stroke
.
setType
(
4
)
.
setCityOutsetId
(
strokeDiscountQueryVo
.
getCityOutsetId
())
.
setCityArriveId
(
strokeDiscountQueryVo
.
getCityArriveId
())
.
setPeopleNum
(
strokeDiscountParam
.
getPeopleNum
())
.
setPlainTypeId
(
strokeDiscountQueryVo
.
getPlainTypeId
())
.
setOutsetTime
(
strokeDiscountParam
.
getOutsetTime
())
.
setMoney
(
strokeDiscountQueryVo
.
getMoney
())
.
setMcId
(
strokeDiscountQueryVo
.
getMcId
())
.
setUserId
(
jwtToken
.
getUserId
());
boolean
flag
=
strokeService
.
saveStroke
(
stroke
);
return
ApiResult
.
result
(
flag
);
}
// /**
// /**
// * 修改行程表
// * 修改行程表
...
...
api-app/src/main/java/com/jumeirah/api/app/controller/StrokeDiscountController.java
View file @
d77daa33
package
com
.
jumeirah
.
api
.
app
.
controller
;
package
com
.
jumeirah
.
api
.
app
.
controller
;
import
com.jumeirah.common.entity.StrokeDiscount
;
import
com.jumeirah.common.param.StrokeDiscountPageParam
;
import
com.jumeirah.common.param.StrokeDiscountPageParam
;
import
com.jumeirah.common.service.StrokeDiscountService
;
import
com.jumeirah.common.service.StrokeDiscountService
;
import
com.jumeirah.common.vo.StrokeDiscountQueryVo
;
import
com.jumeirah.common.vo.StrokeDiscountQueryVo
;
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.Add
;
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
;
...
@@ -36,18 +34,6 @@ public class StrokeDiscountController extends BaseController {
...
@@ -36,18 +34,6 @@ public class StrokeDiscountController extends BaseController {
private
StrokeDiscountService
strokeDiscountService
;
private
StrokeDiscountService
strokeDiscountService
;
/**
/**
* 添加优惠行程表
*/
@PostMapping
(
"/add"
)
@OperationLog
(
name
=
"添加优惠行程表"
,
type
=
OperationLogType
.
ADD
)
@ApiOperation
(
value
=
"添加优惠行程表"
)
public
ApiResult
<
Boolean
>
addStrokeDiscount
(
@Validated
(
Add
.
class
)
@RequestBody
StrokeDiscount
strokeDiscount
)
throws
Exception
{
boolean
flag
=
strokeDiscountService
.
saveStrokeDiscount
(
strokeDiscount
);
return
ApiResult
.
result
(
flag
);
}
/**
* 优惠行程表分页列表
* 优惠行程表分页列表
*/
*/
@PostMapping
(
"/getPageList"
)
@PostMapping
(
"/getPageList"
)
...
...
api-app/src/main/java/com/jumeirah/api/app/entity/
vo/StrokeAddBackAndForthVo
.java
→
api-app/src/main/java/com/jumeirah/api/app/entity/
param/StrokeAddBackAndForthParam
.java
View file @
d77daa33
package
com
.
jumeirah
.
api
.
app
.
entity
.
vo
;
package
com
.
jumeirah
.
api
.
app
.
entity
.
param
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
...
@@ -20,7 +20,7 @@ import java.sql.Timestamp;
...
@@ -20,7 +20,7 @@ import java.sql.Timestamp;
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"添加返程行程入参对象"
)
@ApiModel
(
value
=
"添加返程行程入参对象"
)
public
class
StrokeAddBackAndForth
Vo
extends
BaseEntity
{
public
class
StrokeAddBackAndForth
Param
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@NotNull
(
message
=
"出发城市id不能为空"
)
@NotNull
(
message
=
"出发城市id不能为空"
)
...
...
api-app/src/main/java/com/jumeirah/api/app/entity/
vo/StrokeAddFreightVo
.java
→
api-app/src/main/java/com/jumeirah/api/app/entity/
param/StrokeAddFreightParam
.java
View file @
d77daa33
package
com
.
jumeirah
.
api
.
app
.
entity
.
vo
;
package
com
.
jumeirah
.
api
.
app
.
entity
.
param
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
...
@@ -21,7 +21,7 @@ import java.sql.Timestamp;
...
@@ -21,7 +21,7 @@ import java.sql.Timestamp;
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"添加货运行程入参对象"
)
@ApiModel
(
value
=
"添加货运行程入参对象"
)
public
class
StrokeAddFreight
Vo
extends
BaseEntity
{
public
class
StrokeAddFreight
Param
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@NotNull
(
message
=
"出发城市id不能为空"
)
@NotNull
(
message
=
"出发城市id不能为空"
)
...
...
api-app/src/main/java/com/jumeirah/api/app/entity/
vo/StrokeAddMedicalTreatmentVo
.java
→
api-app/src/main/java/com/jumeirah/api/app/entity/
param/StrokeAddMedicalTreatmentParam
.java
View file @
d77daa33
package
com
.
jumeirah
.
api
.
app
.
entity
.
vo
;
package
com
.
jumeirah
.
api
.
app
.
entity
.
param
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
...
@@ -21,7 +21,7 @@ import java.sql.Timestamp;
...
@@ -21,7 +21,7 @@ import java.sql.Timestamp;
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"添加医疗行程入参对象"
)
@ApiModel
(
value
=
"添加医疗行程入参对象"
)
public
class
StrokeAddMedicalTreatment
Vo
extends
BaseEntity
{
public
class
StrokeAddMedicalTreatment
Param
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@NotNull
(
message
=
"出发城市id不能为空"
)
@NotNull
(
message
=
"出发城市id不能为空"
)
...
...
api-app/src/main/java/com/jumeirah/api/app/entity/
vo/StrokeAddOneWayVo
.java
→
api-app/src/main/java/com/jumeirah/api/app/entity/
param/StrokeAddOneWayParam
.java
View file @
d77daa33
package
com
.
jumeirah
.
api
.
app
.
entity
.
vo
;
package
com
.
jumeirah
.
api
.
app
.
entity
.
param
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
...
@@ -20,7 +20,7 @@ import java.sql.Timestamp;
...
@@ -20,7 +20,7 @@ import java.sql.Timestamp;
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"添加单程行程入参对象"
)
@ApiModel
(
value
=
"添加单程行程入参对象"
)
public
class
StrokeAddOneWay
Vo
extends
BaseEntity
{
public
class
StrokeAddOneWay
Param
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@NotNull
(
message
=
"出发城市id不能为空"
)
@NotNull
(
message
=
"出发城市id不能为空"
)
...
...
api-app/src/main/java/com/jumeirah/api/app/entity/param/StrokeDiscountParam.java
0 → 100644
View file @
d77daa33
package
com
.
jumeirah
.
api
.
app
.
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
;
import
java.sql.Timestamp
;
/**
* 优惠行程表
*
* @author xxx
* @since 2020-10-14
*/
@Data
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"StrokeDiscount对象"
)
public
class
StrokeDiscountParam
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@NotNull
(
message
=
"优惠行程id不能为空"
)
@ApiModelProperty
(
"优惠行程ID"
)
private
Long
sdId
;
@NotNull
(
message
=
"人数不能为空"
)
@ApiModelProperty
(
"人数"
)
private
Integer
peopleNum
;
@NotNull
(
message
=
"出发时间不能为空"
)
@ApiModelProperty
(
"出发时间"
)
private
Timestamp
outsetTime
;
}
common/src/main/java/com/jumeirah/common/entity/Stroke.java
View file @
d77daa33
...
@@ -67,7 +67,7 @@ public class Stroke extends BaseEntity {
...
@@ -67,7 +67,7 @@ public class Stroke extends BaseEntity {
private
Timestamp
returnTime
;
private
Timestamp
returnTime
;
@NotNull
(
message
=
"行程类型,0-单程,1-往返行程,2-货运,3-医疗不能为空"
)
@NotNull
(
message
=
"行程类型,0-单程,1-往返行程,2-货运,3-医疗不能为空"
)
@ApiModelProperty
(
"行程类型,0-单程,1-往返行程,2-货运,3-医疗"
)
@ApiModelProperty
(
"行程类型,0-单程,1-往返行程,2-货运,3-医疗
,4-优惠调机
"
)
private
Integer
type
;
private
Integer
type
;
@NotNull
(
message
=
"状态,0-审核中,1-进行中,2-已完成,99-取消不能为空"
)
@NotNull
(
message
=
"状态,0-审核中,1-进行中,2-已完成,99-取消不能为空"
)
...
...
common/src/main/java/com/jumeirah/common/entity/StrokeDiscount.java
View file @
d77daa33
package
com
.
jumeirah
.
common
.
entity
;
package
com
.
jumeirah
.
common
.
entity
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotation.Version
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
io.geekidea.springbootplus.framework.core.validator.groups.Update
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
java.math.BigDecimal
;
import
io.geekidea.springbootplus.framework.core.validator.groups.Update
;
import
java.sql.Timestamp
;
/**
/**
* 优惠行程表
* 优惠行程表
...
@@ -23,66 +23,66 @@ import io.geekidea.springbootplus.framework.core.validator.groups.Update;
...
@@ -23,66 +23,66 @@ import io.geekidea.springbootplus.framework.core.validator.groups.Update;
*/
*/
@Data
@Data
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"StrokeDiscount对象"
)
@ApiModel
(
value
=
"StrokeDiscount对象"
)
public
class
StrokeDiscount
extends
BaseEntity
{
public
class
StrokeDiscount
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@NotNull
(
message
=
"id不能为空"
,
groups
=
{
Update
.
class
})
@NotNull
(
message
=
"id不能为空"
,
groups
=
{
Update
.
class
})
@ApiModelProperty
(
"主键ID"
)
@ApiModelProperty
(
"主键ID"
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Long
id
;
private
Long
id
;
@NotNull
(
message
=
"出发城市id不能为空"
)
@NotNull
(
message
=
"出发城市id不能为空"
)
@ApiModelProperty
(
"出发城市id"
)
@ApiModelProperty
(
"出发城市id"
)
private
Long
cityOutsetId
;
private
Long
cityOutsetId
;
@NotBlank
(
message
=
"出发城市名称不能为空"
)
@NotBlank
(
message
=
"出发城市名称不能为空"
)
@ApiModelProperty
(
"出发城市名称"
)
@ApiModelProperty
(
"出发城市名称"
)
private
String
cityOutsetName
;
private
String
cityOutsetName
;
@NotNull
(
message
=
"到达城市id不能为空"
)
@NotNull
(
message
=
"到达城市id不能为空"
)
@ApiModelProperty
(
"到达城市id"
)
@ApiModelProperty
(
"到达城市id"
)
private
Long
cityArriveId
;
private
Long
cityArriveId
;
@NotBlank
(
message
=
"到达城市名称不能为空"
)
@NotBlank
(
message
=
"到达城市名称不能为空"
)
@ApiModelProperty
(
"到达城市名称"
)
@ApiModelProperty
(
"到达城市名称"
)
private
String
cityArriveName
;
private
String
cityArriveName
;
@NotNull
(
message
=
"座位数不能为空"
)
@NotNull
(
message
=
"座位数不能为空"
)
@ApiModelProperty
(
"座位数"
)
@ApiModelProperty
(
"座位数"
)
private
Integer
seatMun
;
private
Integer
seatNum
;
@NotNull
(
message
=
"飞机型号ID不能为空"
)
@NotNull
(
message
=
"飞机型号ID不能为空"
)
@ApiModelProperty
(
"飞机型号ID"
)
@ApiModelProperty
(
"飞机型号ID"
)
private
Long
plainTypeId
;
private
Long
plainTypeId
;
@NotNull
(
message
=
"出发时间不能为空"
)
@NotNull
(
message
=
"出发时间不能为空"
)
@ApiModelProperty
(
"出发时间"
)
@ApiModelProperty
(
"出发时间"
)
private
Date
outsetTime
;
private
Timestamp
outsetTime
;
@ApiModelProperty
(
"返程时间"
)
@ApiModelProperty
(
"返程时间"
)
private
Date
returnTime
;
private
Timestamp
returnTime
;
@NotNull
(
message
=
"状态,0-正常,1-完成,99-删除不能为空"
)
@NotNull
(
message
=
"状态,0-正常,1-完成,99-删除不能为空"
)
@ApiModelProperty
(
"状态,0-正常,1-完成,99-删除"
)
@ApiModelProperty
(
"状态,0-正常,1-完成,99-删除"
)
private
Integer
status
;
private
Integer
status
;
@NotNull
(
message
=
"创建时间不能为空"
)
@NotNull
(
message
=
"创建时间不能为空"
)
@ApiModelProperty
(
"创建时间"
)
@ApiModelProperty
(
"创建时间"
)
private
Long
createTime
;
private
Timestamp
createTime
;
@ApiModelProperty
(
"更新时间"
)
@ApiModelProperty
(
"更新时间"
)
private
Long
updateTime
;
private
Timestamp
updateTime
;
@ApiModelProperty
(
"备注"
)
@ApiModelProperty
(
"备注"
)
private
String
remarks
;
private
String
remarks
;
@ApiModelProperty
(
"价格,单位:分
"
)
@ApiModelProperty
(
"价格
"
)
private
Long
money
;
private
BigDecimal
money
;
@NotNull
(
message
=
"商家ID不能为空"
)
@NotNull
(
message
=
"商家ID不能为空"
)
@ApiModelProperty
(
"商家ID"
)
@ApiModelProperty
(
"商家ID"
)
private
Long
mcu
Id
;
private
Long
mc
Id
;
}
}
common/src/main/java/com/jumeirah/common/mapper/StrokeMapper.java
View file @
d77daa33
...
@@ -39,9 +39,15 @@ public interface StrokeMapper extends BaseMapper<Stroke> {
...
@@ -39,9 +39,15 @@ public interface StrokeMapper extends BaseMapper<Stroke> {
* @return
* @return
*/
*/
IPage
<
StrokeQueryVo
>
getStrokePageList
(
@Param
(
"page"
)
Page
page
,
@Param
(
"param"
)
StrokePageParam
strokePageParam
,
@Param
(
"userId"
)
Long
userId
);
IPage
<
StrokeQueryVo
>
getStrokePageList
(
@Param
(
"page"
)
Page
page
,
@Param
(
"param"
)
StrokePageParam
strokePageParam
,
@Param
(
"userId"
)
Long
userId
);
IPage
<
StrokeQueryVo
>
getStrokePageListWithFinsh
(
@Param
(
"page"
)
Page
page
,
@Param
(
"param"
)
StrokePageParam
strokePageParam
,
@Param
(
"userId"
)
Long
userId
);
/**
* 查询已完成行程
* @param page
* @param strokePageParam
* @param userId
* @return
*/
IPage
<
StrokeQueryVo
>
getStrokePageListWithFinish
(
@Param
(
"page"
)
Page
page
,
@Param
(
"param"
)
StrokePageParam
strokePageParam
,
@Param
(
"userId"
)
Long
userId
);
/**
/**
* 商家端 获取行程分页对象
* 商家端 获取行程分页对象
...
...
common/src/main/java/com/jumeirah/common/service/impl/StrokeDiscountServiceImpl.java
View file @
d77daa33
...
@@ -3,15 +3,15 @@ package com.jumeirah.common.service.impl;
...
@@ -3,15 +3,15 @@ package com.jumeirah.common.service.impl;
import
com.jumeirah.common.entity.StrokeDiscount
;
import
com.jumeirah.common.entity.StrokeDiscount
;
import
com.jumeirah.common.mapper.StrokeDiscountMapper
;
import
com.jumeirah.common.mapper.StrokeDiscountMapper
;
import
com.jumeirah.common.service.StrokeDiscountService
;
import
com.jumeirah.common.service.StrokeDiscountService
;
import
com.jumeirah.common.param.StrokeDiscountPageParam
;
import
com.jumeirah.common.param.StrokeDiscountPageParam
;
import
com.jumeirah.common.vo.StrokeDiscountQueryVo
;
import
com.jumeirah.common.vo.StrokeDiscountQueryVo
;
import
io.geekidea.springbootplus.framework.common.service.impl.BaseServiceImpl
;
import
io.geekidea.springbootplus.framework.common.service.impl.BaseServiceImpl
;
import
io.geekidea.springbootplus.framework.core.pagination.Paging
;
import
io.geekidea.springbootplus.framework.core.pagination.Paging
;
import
io.geekidea.springbootplus.framework.core.pagination.PageInfo
;
import
io.geekidea.springbootplus.framework.core.pagination.PageInfo
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.OrderItem
;
import
com.baomidou.mybatisplus.core.metadata.OrderItem
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -26,37 +26,37 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -26,37 +26,37 @@ import org.springframework.beans.factory.annotation.Autowired;
@Service
@Service
public
class
StrokeDiscountServiceImpl
extends
BaseServiceImpl
<
StrokeDiscountMapper
,
StrokeDiscount
>
implements
StrokeDiscountService
{
public
class
StrokeDiscountServiceImpl
extends
BaseServiceImpl
<
StrokeDiscountMapper
,
StrokeDiscount
>
implements
StrokeDiscountService
{
@Autowired
@Autowired
private
StrokeDiscountMapper
strokeDiscountMapper
;
private
StrokeDiscountMapper
strokeDiscountMapper
;
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
boolean
saveStrokeDiscount
(
StrokeDiscount
strokeDiscount
)
throws
Exception
{
public
boolean
saveStrokeDiscount
(
StrokeDiscount
strokeDiscount
)
throws
Exception
{
return
super
.
save
(
strokeDiscount
);
return
super
.
save
(
strokeDiscount
);
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
boolean
updateStrokeDiscount
(
StrokeDiscount
strokeDiscount
)
throws
Exception
{
public
boolean
updateStrokeDiscount
(
StrokeDiscount
strokeDiscount
)
throws
Exception
{
return
super
.
updateById
(
strokeDiscount
);
return
super
.
updateById
(
strokeDiscount
);
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
boolean
deleteStrokeDiscount
(
Long
id
)
throws
Exception
{
public
boolean
deleteStrokeDiscount
(
Long
id
)
throws
Exception
{
return
super
.
removeById
(
id
);
return
super
.
removeById
(
id
);
}
}
@Override
public
StrokeDiscountQueryVo
getStrokeDiscountById
(
Long
id
)
throws
Exception
{
return
strokeDiscountMapper
.
getStrokeDiscountById
(
id
);
}
@Override
@Override
public
StrokeDiscountQueryVo
getStrokeDiscountById
(
Long
id
)
throws
Exception
{
public
Paging
<
StrokeDiscountQueryVo
>
getStrokeDiscountPageList
(
StrokeDiscountPageParam
strokeDiscountPageParam
)
throws
Exception
{
return
strokeDiscountMapper
.
getStrokeDiscountById
(
id
);
Page
<
StrokeDiscountQueryVo
>
page
=
new
PageInfo
<>(
strokeDiscountPageParam
,
OrderItem
.
desc
(
getLambdaColumn
(
StrokeDiscount:
:
getCreateTime
)));
}
IPage
<
StrokeDiscountQueryVo
>
iPage
=
strokeDiscountMapper
.
getStrokeDiscountPageList
(
page
,
strokeDiscountPageParam
);
@Override
public
Paging
<
StrokeDiscountQueryVo
>
getStrokeDiscountPageList
(
StrokeDiscountPageParam
strokeDiscountPageParam
)
throws
Exception
{
Page
<
StrokeDiscountQueryVo
>
page
=
new
PageInfo
<>(
strokeDiscountPageParam
,
OrderItem
.
desc
(
getLambdaColumn
(
StrokeDiscount:
:
getCreateTime
)));
IPage
<
StrokeDiscountQueryVo
>
iPage
=
strokeDiscountMapper
.
getStrokeDiscountPageList
(
page
,
strokeDiscountPageParam
);
return
new
Paging
<
StrokeDiscountQueryVo
>(
iPage
);
return
new
Paging
<
StrokeDiscountQueryVo
>(
iPage
);
}
}
}
}
common/src/main/java/com/jumeirah/common/service/impl/StrokeServiceImpl.java
View file @
d77daa33
...
@@ -88,19 +88,14 @@ public class StrokeServiceImpl extends BaseServiceImpl<StrokeMapper, Stroke> imp
...
@@ -88,19 +88,14 @@ public class StrokeServiceImpl extends BaseServiceImpl<StrokeMapper, Stroke> imp
@Override
@Override
public
Paging
<
StrokeQueryVo
>
getStrokePageList
(
StrokePageParam
strokePageParam
)
throws
Exception
{
public
Paging
<
StrokeQueryVo
>
getStrokePageList
(
StrokePageParam
strokePageParam
)
throws
Exception
{
// Page<StrokeQueryVo> page = new PageInfo<>(strokePageParam, OrderItem.asc(getLambdaColumn(Stroke::getCreateTime)));
// Page<StrokeQueryVo> page = new PageInfo<>(strokePageParam, OrderItem.asc(getLambdaColumn(Stroke::getCreateTime)));
Page
<
StrokeQueryVo
>
page
=
new
PageInfo
<>(
strokePageParam
,
OrderItem
.
asc
(
"s.create_time"
));
Page
<
StrokeQueryVo
>
page
=
new
PageInfo
<>(
strokePageParam
,
OrderItem
.
desc
(
"s.create_time"
));
JwtToken
jwtToken
=
(
JwtToken
)
SecurityUtils
.
getSubject
().
getPrincipal
();
JwtToken
jwtToken
=
(
JwtToken
)
SecurityUtils
.
getSubject
().
getPrincipal
();
// 查询已完成 需要额外查询已取消状态
// 查询已完成 需要额外查询已取消状态
if
(
strokePageParam
.
getStatus
().
equals
(
StrokeStatusEnum
.
COMPLETED
.
getCode
())){
if
(
strokePageParam
.
getStatus
().
equals
(
StrokeStatusEnum
.
COMPLETED
.
getCode
())){
IPage
<
StrokeQueryVo
>
iPage
=
strokeMapper
.
getStrokePageListWithFinsh
(
page
,
strokePageParam
,
jwtToken
.
getUserId
());
IPage
<
StrokeQueryVo
>
iPage
=
strokeMapper
.
getStrokePageListWithFin
i
sh
(
page
,
strokePageParam
,
jwtToken
.
getUserId
());
return
new
Paging
<
StrokeQueryVo
>(
iPage
);
return
new
Paging
<
StrokeQueryVo
>(
iPage
);
}
}
IPage
<
StrokeQueryVo
>
iPage
=
strokeMapper
.
getStrokePageList
(
page
,
strokePageParam
,
jwtToken
.
getUserId
());
IPage
<
StrokeQueryVo
>
iPage
=
strokeMapper
.
getStrokePageList
(
page
,
strokePageParam
,
jwtToken
.
getUserId
());
return
new
Paging
<
StrokeQueryVo
>(
iPage
);
return
new
Paging
<
StrokeQueryVo
>(
iPage
);
}
}
...
...
common/src/main/java/com/jumeirah/common/vo/StrokeDiscountQueryVo.java
View file @
d77daa33
...
@@ -6,7 +6,8 @@ import lombok.Data;
...
@@ -6,7 +6,8 @@ import lombok.Data;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.math.BigDecimal
;
import
java.sql.Timestamp
;
/**
/**
* <pre>
* <pre>
...
@@ -44,26 +45,26 @@ public class StrokeDiscountQueryVo implements Serializable {
...
@@ -44,26 +45,26 @@ public class StrokeDiscountQueryVo implements Serializable {
private
Long
plainTypeId
;
private
Long
plainTypeId
;
@ApiModelProperty
(
"出发时间"
)
@ApiModelProperty
(
"出发时间"
)
private
Date
outsetTime
;
private
Timestamp
outsetTime
;
@ApiModelProperty
(
"返程时间"
)
@ApiModelProperty
(
"返程时间"
)
private
Date
returnTime
;
private
Timestamp
returnTime
;
@ApiModelProperty
(
"状态,0-正常,1-完成,99-删除"
)
@ApiModelProperty
(
"状态,0-正常,1-完成,99-删除"
)
private
Integer
status
;
private
Integer
status
;
@ApiModelProperty
(
"创建时间"
)
@ApiModelProperty
(
"创建时间"
)
private
Long
createTime
;
private
Timestamp
createTime
;
@ApiModelProperty
(
"更新时间"
)
@ApiModelProperty
(
"更新时间"
)
private
Long
updateTime
;
private
Timestamp
updateTime
;
@ApiModelProperty
(
"备注"
)
@ApiModelProperty
(
"备注"
)
private
String
remarks
;
private
String
remarks
;
@ApiModelProperty
(
"价格
,单位:分
"
)
@ApiModelProperty
(
"价格"
)
private
Long
money
;
private
BigDecimal
money
;
@ApiModelProperty
(
"商家ID"
)
@ApiModelProperty
(
"商家ID"
)
private
Long
mc
u
Id
;
private
Long
mcId
;
}
}
common/src/main/resources/mapper/StrokeDiscountMapper.xml
View file @
d77daa33
...
@@ -2,21 +2,41 @@
...
@@ -2,21 +2,41 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.jumeirah.common.mapper.StrokeDiscountMapper"
>
<mapper
namespace=
"com.jumeirah.common.mapper.StrokeDiscountMapper"
>
<!-- 通用查询结果列 -->
<!-- 通用查询结果列 -->
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, city_outset_id, city_outset_name, city_arrive_id, city_arrive_name, seat_mun, plain_type_id, outset_time, return_time, status, create_time, update_time, remarks, money, mcu_id
id,
city_outset_id,
city_outset_name,
city_arrive_id,
city_arrive_name,
seat_mun,
plain_type_id,
outset_time,
return_time,
status,
create_time,
update_time,
remarks,
money,
mc_id
</sql>
</sql>
<select
id=
"getStrokeDiscountById"
resultType=
"com.jumeirah.common.vo.StrokeDiscountQueryVo"
>
<select
id=
"getStrokeDiscountById"
resultType=
"com.jumeirah.common.vo.StrokeDiscountQueryVo"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from stroke_discount where id = #{id}
from stroke_discount where id = #{id}
</select>
</select>
<select
id=
"getStrokeDiscountPageList"
parameterType=
"com.jumeirah.common.param.StrokeDiscountPageParam"
resultType=
"com.jumeirah.common.vo.StrokeDiscountQueryVo"
>
<select
id=
"getStrokeDiscountPageList"
parameterType=
"com.jumeirah.common.param.StrokeDiscountPageParam"
select
resultType=
"com.jumeirah.common.vo.StrokeDiscountQueryVo"
>
<include
refid=
"Base_Column_List"
/>
select
from stroke_discount
ctco.city_name_cn as city_outset_name,
</select>
ctca.city_name_cn as city_arrive_name,
sd.*
from stroke_discount sd
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
</select>
</mapper>
</mapper>
common/src/main/resources/mapper/StrokeMapper.xml
View file @
d77daa33
...
@@ -7,9 +7,7 @@
...
@@ -7,9 +7,7 @@
s.id,
s.id,
mu.id as merchantId,
mu.id as merchantId,
city_outset_id,
city_outset_id,
city_outset_name,
city_arrive_id,
city_arrive_id,
city_arrive_name,
people_num,
people_num,
plain_type_id,
plain_type_id,
outset_time,
outset_time,
...
@@ -19,16 +17,52 @@
...
@@ -19,16 +17,52 @@
money,
money,
user_id,
user_id,
mu.username AS merchantName,
mu.username AS merchantName,
outset_airport_name,arrive_airport_name,arrive_plain_type_id,back_outset_airport_name,back_arrive_airport_name,
arrive_plain_type_id,
payment_status,audit_status,user_recharge_bank,user_recharge_name,user_recharge_bank_number
back_outset_airport_name,
back_arrive_airport_name,
payment_status,
audit_status,
user_recharge_bank,
user_recharge_name,
user_recharge_bank_number
</sql>
</sql>
<!-- 通用查询结果列 -->
<!-- 通用查询结果列 -->
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, city_outset_id, deleted, city_outset_name, city_arrive_id, city_arrive_name, people_num, plain_type_id, outset_time, return_time, type, status, create_time, update_time, goods_name, goods_size, goods_weight, disease_name, instruments, medical_persons, remarks, money, user_id
id,
,outset_airport_name,arrive_airport_name,arrive_plain_type_id,back_outset_airport_name,back_arrive_airport_name,payment_status,audit_status, user_recharge_money,user_recharge_bank,user_recharge_name,
city_outset_id,
user_recharge_bank_number,user_recharge_credentials_url
deleted,
city_outset_name,
city_arrive_id,
city_arrive_name,
people_num,
plain_type_id,
outset_time,
return_time,
type,
status,
create_time,
update_time,
goods_name,
goods_size,
goods_weight,
disease_name,
instruments,
medical_persons,
remarks, money,
user_id,
outset_airport_name,
arrive_airport_name,
arrive_plain_type_id,
back_outset_airport_name,
back_arrive_airport_name,
payment_status,audit_status,
user_recharge_money,
user_recharge_bank,
user_recharge_name,
user_recharge_bank_number,
user_recharge_credentials_url
</sql>
</sql>
<select
id=
"getStrokeById"
resultType=
"com.jumeirah.common.vo.StrokeDetailVo"
>
<select
id=
"getStrokeById"
resultType=
"com.jumeirah.common.vo.StrokeDetailVo"
>
...
@@ -40,9 +74,15 @@
...
@@ -40,9 +74,15 @@
<select
id=
"getStrokePageList"
parameterType=
"com.jumeirah.common.param.StrokePageParam"
<select
id=
"getStrokePageList"
parameterType=
"com.jumeirah.common.param.StrokePageParam"
resultType=
"com.jumeirah.common.vo.StrokeQueryVo"
>
resultType=
"com.jumeirah.common.vo.StrokeQueryVo"
>
select
select
<include
refid=
"Page_Column_List"
/>
ctco.city_name_cn as city_outset_name,
ctco.airport_name_cn as outset_airport_name,
ctca.city_name_cn as city_arrive_name,
ctca.airport_name_cn as arrive_airport_name,
<include
refid=
"Page_Column_List"
/>
from stroke s
from stroke s
INNER JOIN merchant_user mu ON mu.id = s.mc_id
INNER JOIN merchant_user mu ON mu.id = s.mc_id
INNER JOIN city_three_code ctco ON ctco.id = s.city_outset_id
INNER JOIN city_three_code ctca ON ctca.id = s.city_arrive_id
<where>
<where>
and s.user_id = #{userId}
and s.user_id = #{userId}
and s.deleted = 0
and s.deleted = 0
...
@@ -56,12 +96,18 @@
...
@@ -56,12 +96,18 @@
</select>
</select>
<!-- 已完成订单-->
<!-- 已完成订单-->
<select
id=
"getStrokePageListWithFinsh"
parameterType=
"com.jumeirah.common.param.StrokePageParam"
<select
id=
"getStrokePageListWithFin
i
sh"
parameterType=
"com.jumeirah.common.param.StrokePageParam"
resultType=
"com.jumeirah.common.vo.StrokeQueryVo"
>
resultType=
"com.jumeirah.common.vo.StrokeQueryVo"
>
select
select
<include
refid=
"Page_Column_List"
/>
ctco.city_name_cn as city_outset_name,
ctco.airport_name_cn as outset_airport_name,
ctca.city_name_cn as city_arrive_name,
ctca.airport_name_cn as arrive_airport_name,
<include
refid=
"Page_Column_List"
/>
from stroke s
from stroke s
INNER JOIN merchant_user mu ON mu.id = s.mc_id
INNER JOIN merchant_user mu ON mu.id = s.mc_id
INNER JOIN city_three_code ctco ON ctco.id = s.city_outset_id
INNER JOIN city_three_code ctca ON ctca.id = s.city_arrive_id
<where>
<where>
and s.user_id = #{userId}
and s.user_id = #{userId}
and s.deleted = 0
and s.deleted = 0
...
...
generator/src/main/java/io/geekidea/springbootplus/generator/constant/GeneratorConstant.java
View file @
d77daa33
...
@@ -53,7 +53,7 @@ public interface GeneratorConstant {
...
@@ -53,7 +53,7 @@ public interface GeneratorConstant {
/**
/**
* VO
* VO
*/
*/
String
VO
=
"
vo
"
;
String
VO
=
"
param
"
;
/**
/**
* 查询VO
* 查询VO
*/
*/
...
...
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