记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
67c20ab9
Commit
67c20ab9
authored
Jul 30, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sweet
parent
737425f6
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
28 deletions
+52
-28
KylinRefundsStatusServiceImpl.java
...ice/kylin/service/impl/KylinRefundsStatusServiceImpl.java
+8
-8
db_sweetsugar_structure.sql
.../liquidnet-service-sweet/docu/db_sweetsugar_structure.sql
+2
-2
SweetManualShopController.java
...t/service/sweet/controller/SweetManualShopController.java
+21
-10
SweetManualShop.java
...a/com/liquidnet/service/sweet/entity/SweetManualShop.java
+1
-1
ISweetManualShopService.java
...uidnet/service/sweet/service/ISweetManualShopService.java
+3
-1
SweetManualShopServiceImpl.java
...ervice/sweet/service/impl/SweetManualShopServiceImpl.java
+17
-6
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinRefundsStatusServiceImpl.java
View file @
67c20ab9
...
...
@@ -234,18 +234,18 @@ public class KylinRefundsStatusServiceImpl {
entitiesTable
.
setIsPayment
(
KylinTableStatusConst
.
ENTITIES_IS_PAYMENT2
);
entitiesTable
.
setUpdatedAt
(
time
);
BigDecimal
oldRefundPrice
=
BigDecimal
.
valueOf
(
0
);
for
(
KylinOrderTicketEntitiesVo
item
:
orderInfo
.
getEntitiesVoList
())
{
if
(
item
.
getOrderTicketEntitiesId
().
equalsIgnoreCase
(
orderEntitiesId
)){
oldRefundPrice
=
item
.
getRefundPrice
();
break
;
}
}
//
BigDecimal oldRefundPrice = BigDecimal.valueOf(0);
//
for (KylinOrderTicketEntitiesVo item :orderInfo.getEntitiesVoList()) {
//
if(item.getOrderTicketEntitiesId().equalsIgnoreCase(orderEntitiesId)){
//
oldRefundPrice = item.getRefundPrice();
//
break;
//
}
//
}
KylinOrderTicketEntitiesVo
kylinOrderTicketEntitiesVo
=
KylinOrderTicketEntitiesVo
.
getNew
();
kylinOrderTicketEntitiesVo
.
setIsPayment
(
KylinTableStatusConst
.
ENTITIES_IS_PAYMENT2
);
kylinOrderTicketEntitiesVo
.
setRefundPrice
(
oldRefundPrice
.
add
(
BigDecimal
.
valueOf
(
refundPrice
)));
//
kylinOrderTicketEntitiesVo.setRefundPrice(oldRefundPrice.add(BigDecimal.valueOf(refundPrice)));
kylinOrderTicketEntitiesVo
.
setUpdatedAt
(
strTime
);
BasicDBObject
entitiesObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
kylinOrderTicketEntitiesVo
)));
mongoTemplate
.
getCollection
(
KylinOrderTicketEntitiesVo
.
class
.
getSimpleName
()).
updateOne
(
...
...
liquidnet-bus-service/liquidnet-service-sweet/docu/db_sweetsugar_structure.sql
View file @
67c20ab9
...
...
@@ -167,7 +167,7 @@ CREATE TABLE `sweet_manual_shop`
`manual_id`
varchar
(
200
)
NOT
NULL
DEFAULT
''
COMMENT
'电子宣传手册id'
,
`title`
varchar
(
200
)
NOT
NULL
DEFAULT
''
COMMENT
'商家名称'
,
`pic_url`
varchar
(
200
)
NOT
NULL
DEFAULT
''
COMMENT
'商家图片'
,
`describe`
longtext
NULL
COMMENT
'商家介绍'
,
`describe
s
`
longtext
NULL
COMMENT
'商家介绍'
,
`type`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'1吃喝 2玩乐'
,
`is_recommend`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'0不推荐 1推荐'
,
`sort`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'排序字段 数字越大越靠前'
,
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/SweetManualShopController.java
View file @
67c20ab9
...
...
@@ -36,13 +36,24 @@ public class SweetManualShopController {
@ApiOperation
(
"列表"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"手册id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"type"
,
value
=
"类型 1吃喝 2玩乐"
,
required
=
true
),
})
public
ResponseDto
<
List
<
SweetManualShop
>>
getList
(
@RequestParam
String
manualId
,
@RequestParam
Integer
type
)
{
return
sweetManualShopService
.
getList
(
manualId
,
type
);
}
@GetMapping
(
"details"
)
@ApiOperation
(
"详情"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualShopId"
,
value
=
"商铺id"
,
required
=
true
),
})
public
ResponseDto
<
List
<
SweetManualShop
>>
getList
(
@RequestParam
()
String
manual
Id
)
{
return
sweetManualShopService
.
getList
(
manual
Id
);
public
ResponseDto
<
SweetManualShop
>
details
(
@RequestParam
String
manualShop
Id
)
{
return
sweetManualShopService
.
details
(
manualShop
Id
);
}
@PostMapping
(
"add"
)
@ApiOperation
(
"添加
列表
"
)
@ApiOperation
(
"添加"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"手册iid"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"title"
,
value
=
"标题"
,
required
=
true
),
...
...
@@ -63,7 +74,7 @@ public class SweetManualShopController {
}
@PostMapping
(
"change"
)
@ApiOperation
(
"
通知列表
"
)
@ApiOperation
(
"
修改
"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualShopId"
,
value
=
"商铺id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"title"
,
value
=
"标题"
,
required
=
true
),
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/entity/SweetManualShop.java
View file @
67c20ab9
...
...
@@ -47,7 +47,7 @@ public class SweetManualShop implements Serializable,Cloneable {
/**
* 商家介绍
*/
private
String
describe
;
private
String
describe
s
;
/**
* 1吃喝 2玩乐
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/ISweetManualShopService.java
View file @
67c20ab9
...
...
@@ -16,7 +16,9 @@ import java.util.List;
*/
public
interface
ISweetManualShopService
extends
IService
<
SweetManualShop
>
{
ResponseDto
<
List
<
SweetManualShop
>>
getList
(
String
manualId
);
ResponseDto
<
List
<
SweetManualShop
>>
getList
(
String
manualId
,
Integer
type
);
ResponseDto
<
SweetManualShop
>
details
(
String
manualShopId
);
ResponseDto
<
Boolean
>
add
(
String
manualId
,
String
title
,
String
picUrl
,
String
describe
,
Integer
type
,
Integer
isRecommend
,
Integer
sort
);
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/SweetManualShopServiceImpl.java
View file @
67c20ab9
...
...
@@ -31,9 +31,19 @@ public class SweetManualShopServiceImpl extends ServiceImpl<SweetManualShopMappe
private
SweetManualShopMapper
sweetManualShopMapper
;
@Override
public
ResponseDto
<
List
<
SweetManualShop
>>
getList
(
String
manualId
)
{
public
ResponseDto
<
List
<
SweetManualShop
>>
getList
(
String
manualId
,
Integer
type
)
{
try
{
List
<
SweetManualShop
>
data
=
sweetManualShopMapper
.
selectList
(
Wrappers
.
lambdaQuery
(
SweetManualShop
.
class
).
eq
(
SweetManualShop:
:
getManualId
,
manualId
).
eq
(
SweetManualShop:
:
getStatus
,
1
));
List
<
SweetManualShop
>
data
=
sweetManualShopMapper
.
selectList
(
Wrappers
.
lambdaQuery
(
SweetManualShop
.
class
).
eq
(
SweetManualShop:
:
getManualId
,
manualId
).
eq
(
SweetManualShop:
:
getType
,
type
).
eq
(
SweetManualShop:
:
getStatus
,
1
));
return
ResponseDto
.
success
(
data
);
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
}
@Override
public
ResponseDto
<
SweetManualShop
>
details
(
String
manualShopId
)
{
try
{
SweetManualShop
data
=
sweetManualShopMapper
.
selectOne
(
Wrappers
.
lambdaQuery
(
SweetManualShop
.
class
).
eq
(
SweetManualShop:
:
getManualShopId
,
manualShopId
).
eq
(
SweetManualShop:
:
getStatus
,
1
));
return
ResponseDto
.
success
(
data
);
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
...
...
@@ -48,7 +58,7 @@ public class SweetManualShopServiceImpl extends ServiceImpl<SweetManualShopMappe
sweetManualShop
.
setManualId
(
manualId
);
sweetManualShop
.
setTitle
(
title
);
sweetManualShop
.
setPicUrl
(
picUrl
);
sweetManualShop
.
setDescribe
(
describe
);
sweetManualShop
.
setDescribe
s
(
describe
);
sweetManualShop
.
setType
(
type
);
sweetManualShop
.
setIsRecommend
(
isRecommend
);
sweetManualShop
.
setSort
(
sort
);
...
...
@@ -56,6 +66,7 @@ public class SweetManualShopServiceImpl extends ServiceImpl<SweetManualShopMappe
sweetManualShopMapper
.
insert
(
sweetManualShop
);
return
ResponseDto
.
success
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
ResponseDto
.
failure
();
}
}
...
...
@@ -66,11 +77,11 @@ public class SweetManualShopServiceImpl extends ServiceImpl<SweetManualShopMappe
SweetManualShop
sweetManualShop
=
SweetManualShop
.
getNew
();
sweetManualShop
.
setTitle
(
title
);
sweetManualShop
.
setPicUrl
(
picUrl
);
sweetManualShop
.
setDescribe
(
describe
);
sweetManualShop
.
setDescribe
s
(
describe
);
sweetManualShop
.
setType
(
type
);
sweetManualShop
.
setIsRecommend
(
isRecommend
);
sweetManualShop
.
setSort
(
sort
);
sweetManualShopMapper
.
update
(
sweetManualShop
,
Wrappers
.
lambdaUpdate
(
SweetManualShop
.
class
).
eq
(
SweetManualShop:
:
getManualShopId
,
manualShopId
));
sweetManualShopMapper
.
update
(
sweetManualShop
,
Wrappers
.
lambdaUpdate
(
SweetManualShop
.
class
).
eq
(
SweetManualShop:
:
getManualShopId
,
manualShopId
));
return
ResponseDto
.
success
();
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
...
...
@@ -82,7 +93,7 @@ public class SweetManualShopServiceImpl extends ServiceImpl<SweetManualShopMappe
try
{
SweetManualShop
sweetManualShop
=
SweetManualShop
.
getNew
();
sweetManualShop
.
setStatus
(
0
);
sweetManualShopMapper
.
update
(
sweetManualShop
,
Wrappers
.
lambdaUpdate
(
SweetManualShop
.
class
).
eq
(
SweetManualShop:
:
getManualShopId
,
manualShopId
));
sweetManualShopMapper
.
update
(
sweetManualShop
,
Wrappers
.
lambdaUpdate
(
SweetManualShop
.
class
).
eq
(
SweetManualShop:
:
getManualShopId
,
manualShopId
));
return
ResponseDto
.
success
();
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
...
...
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