Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center
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
吴学德
gdtel-gztel-school-center
Commits
20de7056
Commit
20de7056
authored
May 08, 2020
by
彭祥礼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增院线通订单管理模块
parent
2ae20759
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
272 additions
and
0 deletions
+272
-0
common/src/main/java/com/winsun/bean/YxtAddress.java
+67
-0
common/src/main/java/com/winsun/bean/YxtOrder.java
+103
-0
common/src/main/java/com/winsun/bean/YxtOrderDetail.java
+35
-0
common/src/main/java/com/winsun/mapper/YxtAddressMapper.java
+17
-0
common/src/main/java/com/winsun/mapper/YxtOrderDetailMapper.java
+17
-0
common/src/main/java/com/winsun/mapper/YxtOrderMapper.java
+17
-0
service-manager/src/main/java/com/winsun/controller/YxtOrderController.java
+0
-0
service-manager/src/main/java/com/winsun/utils/ExcelDealUtils.java
+16
-0
No files found.
common/src/main/java/com/winsun/bean/YxtAddress.java
0 → 100644
View file @
20de7056
package
com
.
winsun
.
bean
;
import
com.baomidou.mybatisplus.annotations.TableField
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 〈院线能地址信息〉
*
* @author PXL
* @create 2020/5/7 16:46
*/
@Data
@TableName
(
"hhr_yxt_address"
)
public
class
YxtAddress
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
8075106948609530240L
;
/**
*
*/
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
/**
*
*/
@TableField
(
"user_id"
)
private
String
userId
;
/**
* 地址
*/
@TableField
(
"area"
)
private
String
area
;
/**
* 详细地址
*/
@TableField
(
"detail_address"
)
private
String
detailAddress
;
/**
* 收货人
*/
@TableField
(
"consignee"
)
private
String
consignee
;
/**
* 收货人电话
*/
@TableField
(
"phone"
)
private
String
phone
;
/**
*
*/
@TableField
(
"del_flag"
)
private
Integer
delFlag
;
/**
*
*/
@TableField
(
"update_date"
)
private
Date
updateDate
;
/**
* 是否默认地址 0:否 1:是
*/
@TableField
(
"is_default"
)
private
Integer
isDefault
;
}
common/src/main/java/com/winsun/bean/YxtOrder.java
0 → 100644
View file @
20de7056
package
com
.
winsun
.
bean
;
import
com.baomidou.mybatisplus.annotations.TableField
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 〈院线通订单信息类〉
*
* @author PXL
* @create 2020/5/7 16:21
*/
@Data
@TableName
(
"hhr_yxt_order"
)
public
class
YxtOrder
implements
Serializable
{
private
static
final
long
serialVersionUID
=
4315993781602576770L
;
/**
*
*/
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
/**
*
*/
@TableField
(
"user_id"
)
private
String
userId
;
/**
*订单号
*/
@TableField
(
"order_num"
)
private
String
orderNum
;
/**
*微信支付订单号
*/
@TableField
(
"wx_order_num"
)
private
String
wxOrderNum
;
/**
*金额
*/
@TableField
(
"total_price"
)
private
double
totalPrice
;
/**
*订单状态 (1:未付款 2:付款成功 3:付款失败 4:已取消订单)
*/
@TableField
(
"state"
)
private
Integer
state
;
/**
*创建时间
*/
@TableField
(
"update_date"
)
private
Date
updateDate
;
/**
*是否删除(1.已删除,2.不删除)
*/
@TableField
(
"del_flag"
)
private
Integer
delFlag
;
/**
*兑换券购买数
*/
@TableField
(
"goods_num"
)
private
Integer
goodsNum
;
/**
*兑换券单价
*/
@TableField
(
"unit_price"
)
private
double
unitPrice
;
/**
*订单类型
*/
@TableField
(
"order_type"
)
private
String
orderType
;
/**
*地址id
*/
@TableField
(
"address_id"
)
private
Integer
addressId
;
/**
* 快递状态(0:无须快递,1:寄出,2:已寄出)
*/
@TableField
(
"express_state"
)
private
Integer
expressState
;
/**
*物流公司
*/
@TableField
(
"logistics_company"
)
private
String
logisticsCompany
;
/**
*快递单号
*/
@TableField
(
"express_number"
)
private
String
expressNumber
;
/**
* 信息推送状态(0:未发模板,1:已发订单通知,2:已发发货通知)
*/
@TableField
(
"template_state"
)
private
Integer
templateState
;
}
common/src/main/java/com/winsun/bean/YxtOrderDetail.java
0 → 100644
View file @
20de7056
package
com
.
winsun
.
bean
;
import
com.baomidou.mybatisplus.annotations.TableField
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* 〈院线通订单和兑换券中间表〉
*
* @author PXL
* @create 2020/5/8 11:56
*/
@Data
@TableName
(
"hhr_yxt_order_detail"
)
public
class
YxtOrderDetail
implements
Serializable
{
/**
*
*/
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
/**
*
*/
@TableField
(
"order_id"
)
private
Integer
orderId
;
/**
*
*/
@TableField
(
"yxt_id"
)
private
Integer
yxtId
;
}
common/src/main/java/com/winsun/mapper/YxtAddressMapper.java
0 → 100644
View file @
20de7056
package
com
.
winsun
.
mapper
;
import
com.baomidou.mybatisplus.mapper.BaseMapper
;
import
com.winsun.bean.YxtAddress
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Component
;
/**
* 〈院线能地址表〉
*
* @author PXL
* @create 2020/5/7 16:53
*/
@Mapper
@Component
public
interface
YxtAddressMapper
extends
BaseMapper
<
YxtAddress
>
{
}
common/src/main/java/com/winsun/mapper/YxtOrderDetailMapper.java
0 → 100644
View file @
20de7056
package
com
.
winsun
.
mapper
;
import
com.baomidou.mybatisplus.mapper.BaseMapper
;
import
com.winsun.bean.YxtOrderDetail
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Component
;
/**
* 〈院线通兑换券中间表〉
*
* @author PXL
* @create 2020/5/8 11:59
*/
@Mapper
@Component
public
interface
YxtOrderDetailMapper
extends
BaseMapper
<
YxtOrderDetail
>
{
}
common/src/main/java/com/winsun/mapper/YxtOrderMapper.java
0 → 100644
View file @
20de7056
package
com
.
winsun
.
mapper
;
import
com.baomidou.mybatisplus.mapper.BaseMapper
;
import
com.winsun.bean.YxtOrder
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Component
;
/**
* 〈院线通订单Mapper〉
*
* @author PXL
* @create 2020/5/7 16:22
*/
@Mapper
@Component
public
interface
YxtOrderMapper
extends
BaseMapper
<
YxtOrder
>
{
}
service-manager/src/main/java/com/winsun/controller/YxtOrderController.java
0 → 100644
View file @
20de7056
This diff is collapsed.
Click to expand it.
service-manager/src/main/java/com/winsun/utils/ExcelDealUtils.java
View file @
20de7056
...
...
@@ -98,6 +98,22 @@ public class ExcelDealUtils {
resultMap
.
put
(
"sheetName"
,
sheetName
);
return
resultMap
;
}
// 院线通订单导出excel表头
public
static
Map
<
String
,
Object
>
yxtOrderExcel
(
String
sheetName
){
Map
<
String
,
Object
>
headMap
=
new
LinkedHashMap
<
String
,
Object
>();
headMap
.
put
(
"订单号"
,
"orderNum"
);
headMap
.
put
(
"金额"
,
"totalPrice"
);
headMap
.
put
(
"订单状态"
,
"state"
);
headMap
.
put
(
"订单类型"
,
"orderType"
);
headMap
.
put
(
"账号"
,
"account"
);
headMap
.
put
(
"姓名"
,
"sysuName"
);
headMap
.
put
(
"学校"
,
"schoolName"
);
headMap
.
put
(
"县分"
,
"substName"
);
headMap
.
put
(
"创建时间"
,
"updateDate"
);
Map
<
String
,
Object
>
resultMap
=
dealHeadMap
(
headMap
);
resultMap
.
put
(
"sheetName"
,
sheetName
);
return
resultMap
;
}
// 兑换券导出excel表头
public
static
Map
<
String
,
Object
>
exchangeCouponExcel
(
String
sheetName
){
Map
<
String
,
Object
>
headMap
=
new
LinkedHashMap
<
String
,
Object
>();
...
...
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