Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dm_project
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姚本章
dm_project
Commits
02e4baa8
Commit
02e4baa8
authored
Dec 01, 2020
by
machengbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
2775c7d9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
113 additions
and
12 deletions
+113
-12
OrderController.java
...m/jz/dm/mall/moduls/controller/order/OrderController.java
+8
-8
OrderDto.java
...com/jz/dm/mall/moduls/controller/order/bean/OrderDto.java
+24
-2
OrderRequest.java
...jz/dm/mall/moduls/controller/order/bean/OrderRequest.java
+77
-0
OrderService.java
...main/java/com/jz/dm/mall/moduls/service/OrderService.java
+2
-1
OrderServiceImpl.java
.../com/jz/dm/mall/moduls/service/impl/OrderServiceImpl.java
+2
-1
No files found.
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/controller/order/OrderController.java
View file @
02e4baa8
...
@@ -3,11 +3,15 @@ package com.jz.dm.mall.moduls.controller.order;
...
@@ -3,11 +3,15 @@ package com.jz.dm.mall.moduls.controller.order;
import
com.jz.common.bean.PageInfoResponse
;
import
com.jz.common.bean.PageInfoResponse
;
import
com.jz.common.constant.Constants
;
import
com.jz.common.constant.Constants
;
import
com.jz.dm.mall.moduls.controller.order.bean.OrderDto
;
import
com.jz.dm.mall.moduls.controller.order.bean.OrderDto
;
import
com.jz.dm.mall.moduls.controller.order.bean.OrderRequest
;
import
com.jz.dm.mall.moduls.service.OrderService
;
import
com.jz.dm.mall.moduls.service.OrderService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
...
@@ -20,7 +24,7 @@ import javax.servlet.http.HttpServletRequest;
...
@@ -20,7 +24,7 @@ import javax.servlet.http.HttpServletRequest;
@RestController
@RestController
@RequestMapping
(
"/order"
)
@RequestMapping
(
"/order"
)
@Api
(
tags
=
"订单管理"
)
@Api
(
tags
=
"订单管理"
)
public
class
OrderController
{
public
class
OrderController
{
/**
/**
* 服务对象
* 服务对象
*/
*/
...
@@ -29,19 +33,15 @@ public class OrderController{
...
@@ -29,19 +33,15 @@ public class OrderController{
@PostMapping
(
value
=
"/list"
)
@PostMapping
(
value
=
"/list"
)
@ApiOperation
(
value
=
"订单管理列表(分页查询)"
,
notes
=
"订单列表(分页查询)"
)
@ApiOperation
(
value
=
"订单管理列表(分页查询)"
,
notes
=
"订单列表(分页查询)"
)
public
PageInfoResponse
<
OrderDto
>
queryPageList
(
@RequestBody
Order
Dto
OrderDto
,
HttpServletRequest
req
)
throws
Exception
{
public
PageInfoResponse
<
OrderDto
>
queryPageList
(
@RequestBody
Order
Request
orderRequest
,
HttpServletRequest
req
)
throws
Exception
{
PageInfoResponse
<
OrderDto
>
pageInfo
=
new
PageInfoResponse
<
OrderDto
>();
PageInfoResponse
<
OrderDto
>
pageInfo
=
new
PageInfoResponse
<
OrderDto
>();
try
{
try
{
pageInfo
=
tOrderService
.
findList
(
OrderDto
,
req
);
pageInfo
=
tOrderService
.
findList
(
orderRequest
,
req
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
pageInfo
.
setMessage
(
"查询失败"
);
pageInfo
.
setMessage
(
"查询失败"
);
pageInfo
.
setCode
(
Constants
.
FAILURE_CODE
);
pageInfo
.
setCode
(
Constants
.
FAILURE_CODE
);
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
/* Result<IPage<OrderDto>> result = new Result<IPage<OrderDto>>();
IPage<OrderDto> pageList = tOrderService.queryPage(new Page<OrderDto>(1, 2), order);
result.setSuccess(true);
result.setResult(pageList);*/
return
pageInfo
;
return
pageInfo
;
}
}
}
}
\ No newline at end of file
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/controller/order/bean/OrderDto.java
View file @
02e4baa8
package
com
.
jz
.
dm
.
mall
.
moduls
.
controller
.
order
.
bean
;
package
com
.
jz
.
dm
.
mall
.
moduls
.
controller
.
order
.
bean
;
import
com.jz.common.bean.BasePageBean
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -13,7 +12,7 @@ import java.util.Date;
...
@@ -13,7 +12,7 @@ import java.util.Date;
*/
*/
@ApiModel
@ApiModel
public
class
OrderDto
extends
BasePageBean
{
public
class
OrderDto
{
private
static
final
long
serialVersionUID
=
651546246975691600L
;
private
static
final
long
serialVersionUID
=
651546246975691600L
;
/**
/**
* 订单id
* 订单id
...
@@ -107,6 +106,14 @@ public class OrderDto extends BasePageBean {
...
@@ -107,6 +106,14 @@ public class OrderDto extends BasePageBean {
* 删除标识
* 删除标识
*/
*/
private
String
delFlag
;
private
String
delFlag
;
/**
* 数据名称
*/
private
String
dataName
;
/**
* 数据分类
*/
private
String
dataType
;
public
Long
getOrderId
()
{
public
Long
getOrderId
()
{
...
@@ -293,4 +300,19 @@ public class OrderDto extends BasePageBean {
...
@@ -293,4 +300,19 @@ public class OrderDto extends BasePageBean {
this
.
delFlag
=
delFlag
;
this
.
delFlag
=
delFlag
;
}
}
public
String
getDataName
()
{
return
dataName
;
}
public
void
setDataName
(
String
dataName
)
{
this
.
dataName
=
dataName
;
}
public
String
getDataType
()
{
return
dataType
;
}
public
void
setDataType
(
String
dataType
)
{
this
.
dataType
=
dataType
;
}
}
}
\ No newline at end of file
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/controller/order/bean/OrderRequest.java
0 → 100644
View file @
02e4baa8
package
com
.
jz
.
dm
.
mall
.
moduls
.
controller
.
order
.
bean
;
import
com.jz.common.bean.BasePageBean
;
import
io.swagger.annotations.ApiModel
;
/**
* 订单表(TOrder)实体类
*
* @author makejava
* @since 2020-12-01 10:41:40
*/
@ApiModel
public
class
OrderRequest
extends
BasePageBean
{
private
static
final
long
serialVersionUID
=
651546246975691600L
;
/**
* 订单编号
*/
private
String
orderNumber
;
/**
* 数据行业
*/
private
String
categoryId
;
/**
* 购买方式:01年,02季,03月,04次(服务类型)
*/
private
String
purchaseMethod
;
/**
* 数据名称
*/
private
String
dataName
;
/**
* 数据分类
*/
private
String
dataType
;
public
String
getDataName
()
{
return
dataName
;
}
public
void
setDataName
(
String
dataName
)
{
this
.
dataName
=
dataName
;
}
public
String
getDataType
()
{
return
dataType
;
}
public
void
setDataType
(
String
dataType
)
{
this
.
dataType
=
dataType
;
}
public
String
getOrderNumber
()
{
return
orderNumber
;
}
public
void
setOrderNumber
(
String
orderNumber
)
{
this
.
orderNumber
=
orderNumber
;
}
public
String
getCategoryId
()
{
return
categoryId
;
}
public
void
setCategoryId
(
String
categoryId
)
{
this
.
categoryId
=
categoryId
;
}
public
String
getPurchaseMethod
()
{
return
purchaseMethod
;
}
public
void
setPurchaseMethod
(
String
purchaseMethod
)
{
this
.
purchaseMethod
=
purchaseMethod
;
}
}
\ No newline at end of file
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/service/OrderService.java
View file @
02e4baa8
...
@@ -2,6 +2,7 @@ package com.jz.dm.mall.moduls.service;
...
@@ -2,6 +2,7 @@ package com.jz.dm.mall.moduls.service;
import
com.jz.common.bean.PageInfoResponse
;
import
com.jz.common.bean.PageInfoResponse
;
import
com.jz.dm.mall.moduls.controller.order.bean.OrderDto
;
import
com.jz.dm.mall.moduls.controller.order.bean.OrderDto
;
import
com.jz.dm.mall.moduls.controller.order.bean.OrderRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
...
@@ -14,5 +15,5 @@ import javax.servlet.http.HttpServletRequest;
...
@@ -14,5 +15,5 @@ import javax.servlet.http.HttpServletRequest;
public
interface
OrderService
{
public
interface
OrderService
{
PageInfoResponse
<
OrderDto
>
findList
(
Order
Dto
order
,
HttpServletRequest
req
)
throws
Exception
;
PageInfoResponse
<
OrderDto
>
findList
(
Order
Request
order
,
HttpServletRequest
req
)
throws
Exception
;
}
}
\ No newline at end of file
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/service/impl/OrderServiceImpl.java
View file @
02e4baa8
...
@@ -5,6 +5,7 @@ import com.github.pagehelper.PageInfo;
...
@@ -5,6 +5,7 @@ import com.github.pagehelper.PageInfo;
import
com.jz.common.bean.PageInfoResponse
;
import
com.jz.common.bean.PageInfoResponse
;
import
com.jz.common.constant.Constants
;
import
com.jz.common.constant.Constants
;
import
com.jz.dm.mall.moduls.controller.order.bean.OrderDto
;
import
com.jz.dm.mall.moduls.controller.order.bean.OrderDto
;
import
com.jz.dm.mall.moduls.controller.order.bean.OrderRequest
;
import
com.jz.dm.mall.moduls.mapper.OrderDao
;
import
com.jz.dm.mall.moduls.mapper.OrderDao
;
import
com.jz.dm.mall.moduls.service.OrderService
;
import
com.jz.dm.mall.moduls.service.OrderService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -30,7 +31,7 @@ public class OrderServiceImpl implements OrderService {
...
@@ -30,7 +31,7 @@ public class OrderServiceImpl implements OrderService {
private
OrderDao
tOrderDao
;
private
OrderDao
tOrderDao
;
@Override
@Override
public
PageInfoResponse
<
OrderDto
>
findList
(
Order
Dto
order
,
HttpServletRequest
req
)
throws
Exception
{
public
PageInfoResponse
<
OrderDto
>
findList
(
Order
Request
order
,
HttpServletRequest
req
)
throws
Exception
{
PageInfoResponse
<
OrderDto
>
pageInfoResponse
=
new
PageInfoResponse
<>();
PageInfoResponse
<
OrderDto
>
pageInfoResponse
=
new
PageInfoResponse
<>();
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
...
...
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