Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
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
周健威
rs-cloud-platform
Commits
3146a155
Commit
3146a155
authored
Dec 17, 2020
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改支付信息
parent
98fd3953
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
219 additions
and
154 deletions
+219
-154
AppUserManageDTO.java
...m/github/wxiaoqi/security/admin/dto/AppUserManageDTO.java
+5
-0
AppUserManageBiz.java
...m/github/wxiaoqi/security/admin/biz/AppUserManageBiz.java
+20
-0
AppUsersManageController.java
...wxiaoqi/security/admin/rest/AppUsersManageController.java
+5
-0
AppUserDetailMapper.xml
...e-admin/src/main/resources/mapper/AppUserDetailMapper.xml
+3
-0
ItemInfoDto.java
.../java/com/upyuns/platform/rs/website/dto/ItemInfoDto.java
+1
-1
OrderInfoDto.java
...java/com/upyuns/platform/rs/website/dto/OrderInfoDto.java
+5
-1
OrderInfo.java
...java/com/upyuns/platform/rs/website/entity/OrderInfo.java
+148
-137
OrderItem.java
...java/com/upyuns/platform/rs/website/entity/OrderItem.java
+1
-1
ShoppingCartInfo.java
...m/upyuns/platform/rs/website/entity/ShoppingCartInfo.java
+1
-1
ItemInfoVo.java
...in/java/com/upyuns/platform/rs/website/vo/ItemInfoVo.java
+1
-1
OrderInfoBiz.java
...java/com/upyuns/platform/rs/website/biz/OrderInfoBiz.java
+8
-5
OrderItemBiz.java
...java/com/upyuns/platform/rs/website/biz/OrderItemBiz.java
+14
-0
ShoppingCartInfoBiz.java
...m/upyuns/platform/rs/website/biz/ShoppingCartInfoBiz.java
+2
-2
ConfirmOrderService.java
...yuns/platform/rs/website/service/ConfirmOrderService.java
+5
-5
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/dto/AppUserManageDTO.java
View file @
3146a155
...
@@ -73,6 +73,11 @@ public class AppUserManageDTO {
...
@@ -73,6 +73,11 @@ public class AppUserManageDTO {
* 真实姓名
* 真实姓名
*/
*/
private
String
realName
;
private
String
realName
;
/**
* 状态:0-启用,1-禁用
*/
private
Integer
status
;
// /**
// /**
// * 接收前台时间范围
// * 接收前台时间范围
// */
// */
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserManageBiz.java
View file @
3146a155
...
@@ -12,6 +12,7 @@ import com.github.wxiaoqi.security.admin.vo.AppUserVo;
...
@@ -12,6 +12,7 @@ import com.github.wxiaoqi.security.admin.vo.AppUserVo;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.exception.BaseException
;
import
com.github.wxiaoqi.security.common.exception.BaseException
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.util.process.ResultCode
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.beanutils.BeanUtilsBean
;
import
org.apache.commons.beanutils.BeanUtilsBean
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
...
@@ -98,6 +99,25 @@ public class AppUserManageBiz extends BaseBiz<AppUserDetailMapper, AppUserDetail
...
@@ -98,6 +99,25 @@ public class AppUserManageBiz extends BaseBiz<AppUserDetailMapper, AppUserDetail
return
mapper
.
getUserInfo
(
id
);
return
mapper
.
getUserInfo
(
id
);
}
}
/**
* 启用禁用
* @param appUserLogin
* @return
*/
public
ObjectRestResponse
updateStatus
(
AppUserLogin
appUserLogin
)
{
if
(
appUserLogin
==
null
||
appUserLogin
.
getId
()
==
null
||
appUserLogin
.
getStatus
()
==
null
)
{
return
ObjectRestResponse
.
paramIsEmpty
();
}
AppUserLogin
old
=
appUserLoginMapper
.
selectByPrimaryKey
(
appUserLogin
.
getId
());
if
(
old
==
null
||
old
.
getIsdel
()
==
1
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NOTEXIST_CODE
,
ResultCode
.
getMsg
(
ResultCode
.
NOTEXIST_CODE
));
}
old
.
setStatus
(
appUserLogin
.
getStatus
());
appUserLoginMapper
.
updateByPrimaryKeySelective
(
old
);
return
ObjectRestResponse
.
succ
();
}
/**
/**
*保存
*保存
* @param appUserVo
* @param appUserVo
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/AppUsersManageController.java
View file @
3146a155
...
@@ -74,6 +74,11 @@ public class AppUsersManageController extends BaseController<AppUserManageBiz,Ap
...
@@ -74,6 +74,11 @@ public class AppUsersManageController extends BaseController<AppUserManageBiz,Ap
// }
// }
}
}
@PostMapping
(
value
=
"updateStatus"
)
public
ObjectRestResponse
updateStatus
(
@RequestBody
AppUserLogin
appUserLogin
)
{
return
baseBiz
.
updateStatus
(
appUserLogin
);
}
/**
/**
* 根据用户id获取用户详情
* 根据用户id获取用户详情
* @param userId
* @param userId
...
...
ace-modules/ace-admin/src/main/resources/mapper/AppUserDetailMapper.xml
View file @
3146a155
...
@@ -217,6 +217,9 @@
...
@@ -217,6 +217,9 @@
<if
test=
"userId!=null"
>
<if
test=
"userId!=null"
>
and l.id=#{userId}
and l.id=#{userId}
</if>
</if>
<if
test=
"status != null"
>
and l.status = #{status}
</if>
<if
test=
"postionState != null"
>
<if
test=
"postionState != null"
>
<choose>
<choose>
<when
test=
"postionState == 6"
>
<when
test=
"postionState == 6"
>
...
...
rs-website/rs-website-api/src/main/java/com/upyuns/platform/rs/website/dto/ItemInfoDto.java
View file @
3146a155
...
@@ -11,7 +11,7 @@ import lombok.Data;
...
@@ -11,7 +11,7 @@ import lombok.Data;
@Data
@Data
public
class
ItemInfoDto
{
public
class
ItemInfoDto
{
Integer
id
;
Long
id
;
Integer
number
;
Integer
number
;
...
...
rs-website/rs-website-api/src/main/java/com/upyuns/platform/rs/website/dto/OrderInfoDto.java
View file @
3146a155
...
@@ -42,9 +42,13 @@ public class OrderInfoDto extends PageParam {
...
@@ -42,9 +42,13 @@ public class OrderInfoDto extends PageParam {
*/
*/
private
List
<
ItemInfoDto
>
itemInfoDtoList
;
private
List
<
ItemInfoDto
>
itemInfoDtoList
;
/**
* 发票内容
*/
private
String
invoiceContent
;
//详情ID
//详情ID
Integer
detailId
;
Long
detailId
;
//1、标准数据,2、影像图库,3、行业应用信息
//1、标准数据,2、影像图库,3、行业应用信息
Integer
type
;
Integer
type
;
...
...
rs-website/rs-website-api/src/main/java/com/upyuns/platform/rs/website/entity/OrderInfo.java
View file @
3146a155
...
@@ -4,6 +4,7 @@ import java.io.Serializable;
...
@@ -4,6 +4,7 @@ import java.io.Serializable;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -50,14 +51,19 @@ public class OrderInfo implements Serializable {
...
@@ -50,14 +51,19 @@ public class OrderInfo implements Serializable {
private
Integer
number
;
private
Integer
number
;
/**
/**
* 订单状态:1--创建订单,2--待付款,3--已支付,4--已发货,5--已完成 -1、删除,-2、取消
* 订单状态:0、定制订单无价格 1--创建订单,2--待付款,3--已支付,4--已发货, 5--已收货, 6、已完成 -1、删除,-2、取消, -3 退款
*/
*/
@Column
(
name
=
"status"
)
@Column
(
name
=
"status"
)
@ApiModelProperty
(
value
=
" 订单状态:
1--创建订单,2--待付款,3--已支付,4--已发货,5--已完成 -1、删除,-2、取消
"
)
@ApiModelProperty
(
value
=
" 订单状态:
0、定制订单无价格 1--创建订单,2--待付款,3--已支付,4--已发货, 5--已收货, 6、已完成 -1、删除,-2、取消, -3 退款
"
)
private
Integer
status
;
private
Integer
status
;
/**
/**
* 支付状态:1--未支付,2--已支付
* 发货状态0待发货,1已发货,2收货,3退货,
*/
private
Integer
shippingStatus
;
/**
* 1待付款,2已付款,3已退款
*/
*/
private
Integer
payStatus
;
private
Integer
payStatus
;
...
@@ -107,7 +113,7 @@ public class OrderInfo implements Serializable {
...
@@ -107,7 +113,7 @@ public class OrderInfo implements Serializable {
* 下单时间
* 下单时间
*/
*/
@Column
(
name
=
"crt_time"
)
@Column
(
name
=
"crt_time"
)
@ApiModelProperty
(
value
=
"下单时间"
,
hidden
=
true
)
@ApiModelProperty
(
value
=
"下单时间"
,
hidden
=
true
)
private
Date
crtTime
;
private
Date
crtTime
;
/**
/**
...
@@ -121,7 +127,7 @@ public class OrderInfo implements Serializable {
...
@@ -121,7 +127,7 @@ public class OrderInfo implements Serializable {
*
*
*/
*/
@Column
(
name
=
"upd_time"
)
@Column
(
name
=
"upd_time"
)
@ApiModelProperty
(
value
=
""
,
hidden
=
true
)
@ApiModelProperty
(
value
=
""
,
hidden
=
true
)
private
Date
updTime
;
private
Date
updTime
;
/**
/**
...
@@ -167,18 +173,23 @@ public class OrderInfo implements Serializable {
...
@@ -167,18 +173,23 @@ public class OrderInfo implements Serializable {
private
String
receiveAddress
;
private
String
receiveAddress
;
/**
/**
*
* 总金额
*/
*/
@Column
(
name
=
"total_amount"
)
@Column
(
name
=
"total_amount"
)
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
private
BigDecimal
totalAmount
;
private
BigDecimal
totalAmount
;
/**
/**
*
* 1、普通订单,2、定制订单
*/
*/
@Column
(
name
=
"type"
)
@Column
(
name
=
"type"
)
@ApiModelProperty
(
value
=
"1、普通订单,2、定制订单"
)
@ApiModelProperty
(
value
=
"1、普通订单,2、定制订单"
)
private
Integer
type
;
private
Integer
type
;
/**
* 发票状态: 1、未开发票,2、已开发票, 3、已发货, 4、已收货、5、退回, 6、已完成
*/
private
Integer
invoiceStatus
;
}
}
rs-website/rs-website-api/src/main/java/com/upyuns/platform/rs/website/entity/OrderItem.java
View file @
3146a155
...
@@ -47,7 +47,7 @@ public class OrderItem implements Serializable {
...
@@ -47,7 +47,7 @@ public class OrderItem implements Serializable {
*/
*/
@Column
(
name
=
"detail_id"
)
@Column
(
name
=
"detail_id"
)
@ApiModelProperty
(
value
=
"详情id"
)
@ApiModelProperty
(
value
=
"详情id"
)
private
Integer
detailId
;
private
Long
detailId
;
/**
/**
* 详情json信息
* 详情json信息
...
...
rs-website/rs-website-api/src/main/java/com/upyuns/platform/rs/website/entity/ShoppingCartInfo.java
View file @
3146a155
...
@@ -40,7 +40,7 @@ public class ShoppingCartInfo implements Serializable {
...
@@ -40,7 +40,7 @@ public class ShoppingCartInfo implements Serializable {
*/
*/
@Column
(
name
=
"detail_id"
)
@Column
(
name
=
"detail_id"
)
@ApiModelProperty
(
value
=
"详情id"
)
@ApiModelProperty
(
value
=
"详情id"
)
private
Integer
detailId
;
private
Long
detailId
;
/**
/**
* 详情json信息
* 详情json信息
...
...
rs-website/rs-website-api/src/main/java/com/upyuns/platform/rs/website/vo/ItemInfoVo.java
View file @
3146a155
...
@@ -12,7 +12,7 @@ import java.math.BigDecimal;
...
@@ -12,7 +12,7 @@ import java.math.BigDecimal;
*/
*/
@Data
@Data
public
class
ItemInfoVo
{
public
class
ItemInfoVo
{
private
Integer
id
;
private
Long
id
;
private
String
detailJson
;
private
String
detailJson
;
private
Integer
number
;
private
Integer
number
;
private
BigDecimal
price
;
private
BigDecimal
price
;
...
...
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/OrderInfoBiz.java
View file @
3146a155
...
@@ -182,7 +182,7 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
...
@@ -182,7 +182,7 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
break
;
break
;
//行业应用
//行业应用
case
INDUSTRY_INFO:
case
INDUSTRY_INFO:
IndustryApplicationInfo
industryApplicationInfo
=
industryApplicationInfoBiz
.
getOneById
(
itemInfoDto
.
getId
()).
getData
();
IndustryApplicationInfo
industryApplicationInfo
=
industryApplicationInfoBiz
.
getOneById
(
itemInfoDto
.
getId
()
.
intValue
()
).
getData
();
if
(
industryApplicationInfo
!=
null
)
{
if
(
industryApplicationInfo
!=
null
)
{
OrderItem
orderItem
=
new
OrderItem
();
OrderItem
orderItem
=
new
OrderItem
();
orderItem
.
setType
(
itemInfoDto
.
getType
());
orderItem
.
setType
(
itemInfoDto
.
getType
());
...
@@ -192,7 +192,7 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
...
@@ -192,7 +192,7 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
orderItem
.
setName
(
industryApplicationInfo
.
getTitle
());
orderItem
.
setName
(
industryApplicationInfo
.
getTitle
());
orderItem
.
setItemPic
(
industryApplicationInfo
.
getCoverImg
());
orderItem
.
setItemPic
(
industryApplicationInfo
.
getCoverImg
());
orderItem
.
setDetailJson
(
JSONObject
.
toJSONString
(
industryApplicationInfo
));
orderItem
.
setDetailJson
(
JSONObject
.
toJSONString
(
industryApplicationInfo
));
orderItem
.
setDetailId
(
industryApplicationInfo
.
getId
(
));
orderItem
.
setDetailId
(
Long
.
valueOf
(
industryApplicationInfo
.
getId
()
));
orderItemList
.
add
(
orderItem
);
orderItemList
.
add
(
orderItem
);
//总数量
//总数量
number
.
updateAndGet
(
v
->
v
+
itemInfoDto
.
getNumber
());
number
.
updateAndGet
(
v
->
v
+
itemInfoDto
.
getNumber
());
...
@@ -204,7 +204,7 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
...
@@ -204,7 +204,7 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
case
IMAGE_STORAGE:
case
IMAGE_STORAGE:
ImageInfoRelation
imageInfoRelation
=
imageInfoRelationBiz
.
selectById
(
itemInfoDto
.
getId
());
ImageInfoRelation
imageInfoRelation
=
imageInfoRelationBiz
.
selectById
(
itemInfoDto
.
getId
());
if
(
imageInfoRelation
!=
null
)
{
if
(
imageInfoRelation
!=
null
)
{
ImageImgStorage
imageImgStorage
=
imageImgStorageBiz
.
getDetail
(
itemInfoDto
.
getId
()).
getData
();
ImageImgStorage
imageImgStorage
=
imageImgStorageBiz
.
getDetail
(
itemInfoDto
.
getId
()
.
intValue
()
).
getData
();
if
(
imageImgStorage
!=
null
)
{
if
(
imageImgStorage
!=
null
)
{
List
<
ImageInfoRelation
>
imageInfoRelationList
=
new
ArrayList
<>();
List
<
ImageInfoRelation
>
imageInfoRelationList
=
new
ArrayList
<>();
imageInfoRelationList
.
add
(
imageInfoRelation
);
imageInfoRelationList
.
add
(
imageInfoRelation
);
...
@@ -217,7 +217,7 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
...
@@ -217,7 +217,7 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
orderItem
.
setName
(
imageImgStorage
.
getName
());
orderItem
.
setName
(
imageImgStorage
.
getName
());
orderItem
.
setItemPic
(
imageImgStorage
.
getCoverImg
());
orderItem
.
setItemPic
(
imageImgStorage
.
getCoverImg
());
orderItem
.
setDetailJson
(
JSONObject
.
toJSONString
(
imageImgStorage
));
orderItem
.
setDetailJson
(
JSONObject
.
toJSONString
(
imageImgStorage
));
orderItem
.
setDetailId
(
imageImgStorage
.
getId
(
));
orderItem
.
setDetailId
(
Long
.
valueOf
(
imageImgStorage
.
getId
()
));
orderItemList
.
add
(
orderItem
);
orderItemList
.
add
(
orderItem
);
//总数量
//总数量
number
.
updateAndGet
(
v
->
v
+
itemInfoDto
.
getNumber
());
number
.
updateAndGet
(
v
->
v
+
itemInfoDto
.
getNumber
());
...
@@ -269,6 +269,7 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
...
@@ -269,6 +269,7 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
}
}
orderInfo
.
setRemark
(
orderInfoDto
.
getRemark
());
orderInfo
.
setRemark
(
orderInfoDto
.
getRemark
());
orderInfo
.
setAmount
(
new
BigDecimal
(
amount
.
get
()));
orderInfo
.
setAmount
(
new
BigDecimal
(
amount
.
get
()));
orderInfo
.
setNumber
(
number
.
get
());
Dictionary
dictionary
=
thirdFeign
.
findDictionaryByTypeAndCode
(
DictionaryKey
.
APP_ORDER
,
DictionaryKey
.
SEND_FEE
);
Dictionary
dictionary
=
thirdFeign
.
findDictionaryByTypeAndCode
(
DictionaryKey
.
APP_ORDER
,
DictionaryKey
.
SEND_FEE
);
if
(
dictionary
!=
null
&&
StringUtils
.
isNotBlank
(
dictionary
.
getDetail
()))
{
if
(
dictionary
!=
null
&&
StringUtils
.
isNotBlank
(
dictionary
.
getDetail
()))
{
orderInfo
.
setFee
(
new
BigDecimal
(
dictionary
.
getDetail
()));
orderInfo
.
setFee
(
new
BigDecimal
(
dictionary
.
getDetail
()));
...
@@ -305,7 +306,9 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
...
@@ -305,7 +306,9 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
orderEInvoice
.
setContentAccount
(
userInvoice
.
getOpenBank
()
+
" "
+
userInvoice
.
getAccount
());
orderEInvoice
.
setContentAccount
(
userInvoice
.
getOpenBank
()
+
" "
+
userInvoice
.
getAccount
());
orderEInvoice
.
setContentContact
(
orderInfo
.
getReceiveAddress
()
+
" "
+
orderInfo
.
getReceiveName
()
+
" "
+
orderInfo
.
getReceivePhone
());
orderEInvoice
.
setContentContact
(
orderInfo
.
getReceiveAddress
()
+
" "
+
orderInfo
.
getReceiveName
()
+
" "
+
orderInfo
.
getReceivePhone
());
//发票内容
//发票内容
orderEInvoice
.
setContentTitle
(
""
);
if
(
StringUtils
.
isNotBlank
(
orderInfoDto
.
getInvoiceContent
()))
{
orderEInvoice
.
setContentTitle
(
orderInfoDto
.
getInvoiceContent
());
}
orderEInvoiceBiz
.
addUpdate
(
orderEInvoice
);
orderEInvoiceBiz
.
addUpdate
(
orderEInvoice
);
}
}
}
}
...
...
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/OrderItemBiz.java
View file @
3146a155
...
@@ -5,6 +5,9 @@ import org.springframework.stereotype.Service;
...
@@ -5,6 +5,9 @@ import org.springframework.stereotype.Service;
import
com.upyuns.platform.rs.website.entity.OrderItem
;
import
com.upyuns.platform.rs.website.entity.OrderItem
;
import
com.upyuns.platform.rs.website.mapper.OrderItemMapper
;
import
com.upyuns.platform.rs.website.mapper.OrderItemMapper
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
tk.mybatis.mapper.entity.Example
;
import
java.util.List
;
/**
/**
* 订单商品信息
* 订单商品信息
...
@@ -16,4 +19,15 @@ import com.github.wxiaoqi.security.common.biz.BaseBiz;
...
@@ -16,4 +19,15 @@ import com.github.wxiaoqi.security.common.biz.BaseBiz;
@Service
@Service
public
class
OrderItemBiz
extends
BaseBiz
<
OrderItemMapper
,
OrderItem
>
{
public
class
OrderItemBiz
extends
BaseBiz
<
OrderItemMapper
,
OrderItem
>
{
/**
* 根据订单号查询所有订单商品
* @param orderIdList
* @return
*/
public
List
<
OrderItem
>
getAllByOrderId
(
List
<
Long
>
orderIdList
)
{
Example
example
=
new
Example
(
OrderItem
.
class
);
example
.
createCriteria
().
andIn
(
"orderId"
,
orderIdList
);
return
mapper
.
selectByExample
(
example
);
}
}
}
\ No newline at end of file
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/ShoppingCartInfoBiz.java
View file @
3146a155
...
@@ -126,7 +126,7 @@ public class ShoppingCartInfoBiz extends BaseBiz<ShoppingCartInfoMapper, Shoppin
...
@@ -126,7 +126,7 @@ public class ShoppingCartInfoBiz extends BaseBiz<ShoppingCartInfoMapper, Shoppin
updateSelectiveByIdRe
(
old
);
updateSelectiveByIdRe
(
old
);
}
else
{
}
else
{
ShoppingCartInfo
shoppingCartInfo
=
new
ShoppingCartInfo
();
ShoppingCartInfo
shoppingCartInfo
=
new
ShoppingCartInfo
();
shoppingCartInfo
.
setDetailId
(
imageImgStorage
.
getId
(
));
shoppingCartInfo
.
setDetailId
(
Long
.
valueOf
(
imageImgStorage
.
getId
()
));
shoppingCartInfo
.
setDetailJson
(
JSONObject
.
toJSONString
(
imageImgStorage
));
shoppingCartInfo
.
setDetailJson
(
JSONObject
.
toJSONString
(
imageImgStorage
));
shoppingCartInfo
.
setPrice
(
orderInfoDto
.
getPrice
());
shoppingCartInfo
.
setPrice
(
orderInfoDto
.
getPrice
());
shoppingCartInfo
.
setFilePath
(
orderInfoDto
.
getFilePath
());
shoppingCartInfo
.
setFilePath
(
orderInfoDto
.
getFilePath
());
...
@@ -159,7 +159,7 @@ public class ShoppingCartInfoBiz extends BaseBiz<ShoppingCartInfoMapper, Shoppin
...
@@ -159,7 +159,7 @@ public class ShoppingCartInfoBiz extends BaseBiz<ShoppingCartInfoMapper, Shoppin
updateSelectiveByIdRe
(
old
);
updateSelectiveByIdRe
(
old
);
}
else
{
}
else
{
ShoppingCartInfo
shoppingCartInfo
=
new
ShoppingCartInfo
();
ShoppingCartInfo
shoppingCartInfo
=
new
ShoppingCartInfo
();
shoppingCartInfo
.
setDetailId
(
industryApplicationInfo
.
getId
(
));
shoppingCartInfo
.
setDetailId
(
Long
.
valueOf
(
industryApplicationInfo
.
getId
()
));
shoppingCartInfo
.
setDetailJson
(
JSONObject
.
toJSONString
(
industryApplicationInfo
));
shoppingCartInfo
.
setDetailJson
(
JSONObject
.
toJSONString
(
industryApplicationInfo
));
shoppingCartInfo
.
setPrice
(
orderInfoDto
.
getPrice
());
shoppingCartInfo
.
setPrice
(
orderInfoDto
.
getPrice
());
shoppingCartInfo
.
setFilePath
(
orderInfoDto
.
getFilePath
());
shoppingCartInfo
.
setFilePath
(
orderInfoDto
.
getFilePath
());
...
...
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/service/ConfirmOrderService.java
View file @
3146a155
...
@@ -70,10 +70,10 @@ public class ConfirmOrderService {
...
@@ -70,10 +70,10 @@ public class ConfirmOrderService {
break
;
break
;
//行业应用
//行业应用
case
INDUSTRY_INFO:
case
INDUSTRY_INFO:
IndustryApplicationInfo
industryApplicationInfo
=
industryApplicationInfoBiz
.
getOneById
(
itemInfoDto
.
getId
()).
getData
();
IndustryApplicationInfo
industryApplicationInfo
=
industryApplicationInfoBiz
.
getOneById
(
itemInfoDto
.
getId
()
.
intValue
()
).
getData
();
if
(
industryApplicationInfo
!=
null
)
{
if
(
industryApplicationInfo
!=
null
)
{
ItemInfoVo
itemInfoVo
=
new
ItemInfoVo
();
ItemInfoVo
itemInfoVo
=
new
ItemInfoVo
();
itemInfoVo
.
setId
(
industryApplicationInfo
.
getId
(
));
itemInfoVo
.
setId
(
Long
.
valueOf
(
industryApplicationInfo
.
getId
()
));
itemInfoVo
.
setDetailJson
(
JSONObject
.
toJSONString
(
industryApplicationInfo
));
itemInfoVo
.
setDetailJson
(
JSONObject
.
toJSONString
(
industryApplicationInfo
));
itemInfoVo
.
setImg
(
industryApplicationInfo
.
getCoverImg
());
itemInfoVo
.
setImg
(
industryApplicationInfo
.
getCoverImg
());
itemInfoVo
.
setNumber
(
itemInfoDto
.
getNumber
());
itemInfoVo
.
setNumber
(
itemInfoDto
.
getNumber
());
...
@@ -91,13 +91,13 @@ public class ConfirmOrderService {
...
@@ -91,13 +91,13 @@ public class ConfirmOrderService {
case
IMAGE_STORAGE:
case
IMAGE_STORAGE:
ImageInfoRelation
imageInfoRelation
=
imageInfoRelationBiz
.
selectById
(
itemInfoDto
.
getId
());
ImageInfoRelation
imageInfoRelation
=
imageInfoRelationBiz
.
selectById
(
itemInfoDto
.
getId
());
if
(
imageInfoRelation
!=
null
)
{
if
(
imageInfoRelation
!=
null
)
{
ImageImgStorage
imageImgStorage
=
imageImgStorageBiz
.
getDetail
(
itemInfoDto
.
getId
()).
getData
();
ImageImgStorage
imageImgStorage
=
imageImgStorageBiz
.
getDetail
(
itemInfoDto
.
getId
()
.
intValue
()
).
getData
();
if
(
imageImgStorage
!=
null
)
{
if
(
imageImgStorage
!=
null
)
{
List
<
ImageInfoRelation
>
imageInfoRelationList
=
new
ArrayList
<>();
List
<
ImageInfoRelation
>
imageInfoRelationList
=
new
ArrayList
<>();
imageInfoRelationList
.
add
(
imageInfoRelation
);
imageInfoRelationList
.
add
(
imageInfoRelation
);
imageImgStorage
.
setImageInfoRelationList
(
imageInfoRelationList
);
imageImgStorage
.
setImageInfoRelationList
(
imageInfoRelationList
);
ItemInfoVo
itemInfoVo
=
new
ItemInfoVo
();
ItemInfoVo
itemInfoVo
=
new
ItemInfoVo
();
itemInfoVo
.
setId
(
imageImgStorage
.
getId
(
));
itemInfoVo
.
setId
(
Long
.
valueOf
(
imageImgStorage
.
getId
()
));
itemInfoVo
.
setPrice
(
imageInfoRelation
.
getPrice
());
itemInfoVo
.
setPrice
(
imageInfoRelation
.
getPrice
());
itemInfoVo
.
setType
(
itemInfoDto
.
getType
());
itemInfoVo
.
setType
(
itemInfoDto
.
getType
());
itemInfoVo
.
setNumber
(
itemInfoDto
.
getNumber
());
itemInfoVo
.
setNumber
(
itemInfoDto
.
getNumber
());
...
@@ -117,7 +117,7 @@ public class ConfirmOrderService {
...
@@ -117,7 +117,7 @@ public class ConfirmOrderService {
ShoppingCartInfo
shoppingCartInfo
=
shoppingCartInfoBiz
.
selectById
(
itemInfoDto
.
getId
());
ShoppingCartInfo
shoppingCartInfo
=
shoppingCartInfoBiz
.
selectById
(
itemInfoDto
.
getId
());
if
(
shoppingCartInfo
!=
null
)
{
if
(
shoppingCartInfo
!=
null
)
{
ItemInfoVo
itemInfoVo
=
new
ItemInfoVo
();
ItemInfoVo
itemInfoVo
=
new
ItemInfoVo
();
itemInfoVo
.
setId
(
shoppingCartInfo
.
getCartId
()
.
intValue
()
);
itemInfoVo
.
setId
(
shoppingCartInfo
.
getCartId
());
itemInfoVo
.
setPrice
(
shoppingCartInfo
.
getPrice
());
itemInfoVo
.
setPrice
(
shoppingCartInfo
.
getPrice
());
itemInfoVo
.
setType
(
shoppingCartInfo
.
getType
());
itemInfoVo
.
setType
(
shoppingCartInfo
.
getType
());
itemInfoVo
.
setNumber
(
itemInfoDto
.
getNumber
());
itemInfoVo
.
setNumber
(
itemInfoDto
.
getNumber
());
...
...
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