Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
shop
Commits
3f81052f
Commit
3f81052f
authored
Nov 13, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
3f701a24
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
102 deletions
+0
-102
DeliverController.java
...ain/java/com/egolm/shop/controller/DeliverController.java
+0
-58
DeliverService.java
src/main/java/com/egolm/shop/service/DeliverService.java
+0
-12
DeliverServiceImpl.java
.../java/com/egolm/shop/service/impl/DeliverServiceImpl.java
+0
-32
No files found.
src/main/java/com/egolm/shop/controller/DeliverController.java
deleted
100644 → 0
View file @
3f701a24
package
com
.
egolm
.
shop
.
controller
;
import
java.util.List
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.shop.config.XException
;
import
com.egolm.shop.service.DeliverService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
@RestController
@RequestMapping
(
"deliver"
)
@Api
(
tags
={
"配送信息相关接口"
})
public
class
DeliverController
{
@Autowired
DeliverService
deliverService
;
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"subOrderId"
,
dataType
=
"String"
,
required
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"langID"
,
dataType
=
"String"
,
required
=
true
,
value
=
"语言"
,
defaultValue
=
"936"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"terminal"
,
dataType
=
"String"
,
required
=
true
,
value
=
"终端标识"
,
defaultValue
=
"wechat"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"sign"
,
dataType
=
"String"
,
required
=
true
,
value
=
"签名"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"timestamp"
,
dataType
=
"String"
,
required
=
true
,
value
=
"时间戳"
,
defaultValue
=
""
)
})
@ApiOperation
(
"查询送货单列表"
)
@GetMapping
(
"getOrderDeliverSubList"
)
public
Object
getOrderDeliverSubList
(
String
subOrderId
)
{
XException
.
assertNotBlank
(
subOrderId
,
"订单ID不能为空"
);
List
<
Map
<
String
,
Object
>>
list
=
deliverService
.
getOrderDeliverSubList
(
subOrderId
);
return
Rjx
.
jsonOk
().
setData
(
list
);
}
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"subOrderId"
,
dataType
=
"String"
,
required
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"langID"
,
dataType
=
"String"
,
required
=
true
,
value
=
"语言"
,
defaultValue
=
"936"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"terminal"
,
dataType
=
"String"
,
required
=
true
,
value
=
"终端标识"
,
defaultValue
=
"wechat"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"sign"
,
dataType
=
"String"
,
required
=
true
,
value
=
"签名"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"timestamp"
,
dataType
=
"String"
,
required
=
true
,
value
=
"时间戳"
,
defaultValue
=
""
)
})
@ApiOperation
(
"查询送货单详情列表"
)
@GetMapping
(
"getOrderDeliverSubDtlList"
)
public
Object
getOrderDeliverSubDtlList
(
String
subOrderId
)
{
XException
.
assertNotBlank
(
subOrderId
,
"订单ID不能为空"
);
List
<
Map
<
String
,
Object
>>
list
=
deliverService
.
getOrderDeliverSubDtlList
(
subOrderId
);
return
Rjx
.
jsonOk
().
setData
(
list
);
}
}
src/main/java/com/egolm/shop/service/DeliverService.java
deleted
100644 → 0
View file @
3f701a24
package
com
.
egolm
.
shop
.
service
;
import
java.util.List
;
import
java.util.Map
;
public
interface
DeliverService
{
List
<
Map
<
String
,
Object
>>
getOrderDeliverSubList
(
String
subOrderId
);
List
<
Map
<
String
,
Object
>>
getOrderDeliverSubDtlList
(
String
subOrderId
);
}
src/main/java/com/egolm/shop/service/impl/DeliverServiceImpl.java
deleted
100644 → 0
View file @
3f701a24
package
com
.
egolm
.
shop
.
service
.
impl
;
import
java.util.List
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.egolm.common.jdbc.JdbcTemplate
;
import
com.egolm.shop.service.DeliverService
;
@Service
public
class
DeliverServiceImpl
implements
DeliverService
{
@Autowired
JdbcTemplate
jdbcTemplate
;
@Override
public
List
<
Map
<
String
,
Object
>>
getOrderDeliverSubList
(
String
subOrderId
)
{
String
sql
=
"select * from tSalesOrderDeliverSub where sSubOrderID = ? and nTag&1 = 0"
;
List
<
Map
<
String
,
Object
>>
list
=
jdbcTemplate
.
queryForList
(
sql
,
subOrderId
);
return
list
;
}
@Override
public
List
<
Map
<
String
,
Object
>>
getOrderDeliverSubDtlList
(
String
subOrderId
)
{
String
sql
=
"select * from tSalesOrderDeliverSubDtl where sSubOrderID = ? and nTag&1 = 0"
;
List
<
Map
<
String
,
Object
>>
list
=
jdbcTemplate
.
queryForList
(
sql
,
subOrderId
);
return
list
;
}
}
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