Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
T
tcm-system
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
TCM
tcm-system
Commits
8900d2aa
Commit
8900d2aa
authored
Jul 10, 2019
by
zjy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user/role/tright 7.10
parent
1d36dbb2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
3 deletions
+62
-3
ComputerRegisterController.java
.../web/authority/controller/ComputerRegisterController.java
+8
-0
RegisterService.java
...a/com/pangding/web/authority/service/RegisterService.java
+4
-0
DataServiceImpl.java
.../pangding/web/authority/service/impl/DataServiceImpl.java
+36
-0
RegisterServiceImpl.java
...gding/web/authority/service/impl/RegisterServiceImpl.java
+11
-0
TyyOrderVo.java
src/main/java/com/pangding/web/authority/vo/TyyOrderVo.java
+3
-3
No files found.
src/main/java/com/pangding/web/authority/controller/ComputerRegisterController.java
View file @
8900d2aa
...
...
@@ -6,6 +6,7 @@ import com.pangding.web.authority.service.UserService;
import
com.pangding.web.authority.vo.CompanyVo
;
import
com.pangding.web.authority.vo.resvo.SaveCompanyResVo
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.FileHelper
;
import
com.yanzuoguang.util.vo.ResponseResult
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
...
...
@@ -13,6 +14,9 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.multipart.commons.CommonsMultipartFile
;
import
java.io.IOException
;
/**
* @Author zhangjinyao
...
...
@@ -140,4 +144,8 @@ public class ComputerRegisterController {
return
ResponseResult
.
result
(
verifyCode
);
}
@RequestMapping
(
value
=
"/fileUpload"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
ResponseResult
<
String
>
fileUpload
(
@RequestBody
CommonsMultipartFile
file
)
throws
IOException
{
return
ResponseResult
.
result
(
registerServiceImpl
.
fileUpload
(
file
));
}
}
src/main/java/com/pangding/web/authority/service/RegisterService.java
View file @
8900d2aa
...
...
@@ -6,9 +6,11 @@ import com.pangding.web.authority.vo.cloudvo.LoginResVo;
import
com.pangding.web.authority.vo.reqvo.*
;
import
com.pangding.web.authority.vo.CompanyVo
;
import
com.pangding.web.authority.vo.resvo.SaveCompanyResVo
;
import
org.springframework.web.multipart.commons.CommonsMultipartFile
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpSession
;
import
java.io.IOException
;
/**
* @Author zhangjinyao
...
...
@@ -79,4 +81,6 @@ public interface RegisterService {
* @return
*/
String
enterpriceSubmit
(
EnterpriceSubmitReqVo
reqVo
);
String
fileUpload
(
CommonsMultipartFile
file
)
throws
IOException
;
}
src/main/java/com/pangding/web/authority/service/impl/DataServiceImpl.java
View file @
8900d2aa
...
...
@@ -357,7 +357,43 @@ public class DataServiceImpl implements DataService {
@Override
public
void
saveOrderStepOne
(
OrderStepOneResVo
reqVo
)
{
TyyOrderVo
tyyOrderVo
=
reqVo
.
getTyyOrderVo
();
TyyOrderMixVo
tyyOrderMixVo
=
reqVo
.
getTyyOrderMixVo
();
List
<
TyyOrderbackVo
>
tyyOrderbackVoList
=
reqVo
.
getTyyOrderbackVoList
();
TyyOrderdetailsVo
tyyOrderdetailsVo
=
reqVo
.
getTyyOrderdetailsVo
();
TyyTouristVo
tyyTouristVo
=
reqVo
.
getTyyTouristVo
();
OrderVo
orderVo
=
new
OrderVo
();
OrderStatusVo
orderStatusVo
=
new
OrderStatusVo
();
OrderRefundVo
orderRefundVo
=
new
OrderRefundVo
();
OrderExtendVo
orderExtendVo
=
new
OrderExtendVo
();
DiscountDetailVo
discountDetailVo
=
new
DiscountDetailVo
();
OrderTicketDetailVo
orderTicketDetailVo
=
new
OrderTicketDetailVo
();
OrderTouristVo
orderTouristVo
=
new
OrderTouristVo
();
if
(
null
!=
tyyOrderVo
){
/*pd_order*/
orderVo
.
setId
(
tyyOrderVo
.
getId
());
orderVo
.
setPid
(
tyyOrderVo
.
getPid
());
orderVo
.
setOrder_type
(
tyyOrderVo
.
getOrder_type
());
orderVo
.
setSub_order_type
(
tyyOrderVo
.
getSub_order_type
());
orderVo
.
setProduct_name
(
tyyOrderVo
.
getProduct_name
());
orderVo
.
setPlay_date
(
tyyOrderVo
.
getPlay_date
());
orderVo
.
setUnit_price
(
tyyOrderVo
.
getPrice
());
orderVo
.
setOrder_num
(
tyyOrderVo
.
getOrder_num
());
orderVo
.
setTotal_money
(
tyyOrderVo
.
getSale_price
());
orderVo
.
setDiscount_money
(
tyyOrderVo
.
getDiscount_price
());
orderVo
.
setPd_discount_money
(
tyyOrderVo
.
getDiscount_price
());
orderVo
.
setPd_order_money
(
tyyOrderVo
.
getReal_price
());
orderVo
.
setCost_price
(
tyyOrderVo
.
getSettlement_price
());
orderVo
.
setCost_total_money
(
tyyOrderVo
.
getCost_price
());
orderVo
.
setOrder_money
(
orderVo
.
getCost_total_money
()-
orderVo
.
getDiscount_money
());
orderVo
.
setOrder_fee
(
tyyOrderVo
.
getOrder_poundage_price
());
orderVo
.
setRefund_num
(
tyyOrderVo
.
getReturn_num
());
orderVo
.
setRefund_money
(
tyyOrderVo
.
getReturn_money
());
orderVo
.
setPd_refund_money
(
tyyOrderVo
.
getReturn_money
());
orderVo
.
setOrder_time
(
tyyOrderVo
.
getCreate_date
());
}
}
}
src/main/java/com/pangding/web/authority/service/impl/RegisterServiceImpl.java
View file @
8900d2aa
...
...
@@ -22,10 +22,13 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.multipart.commons.CommonsMultipartFile
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpSession
;
import
java.io.File
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.List
;
...
...
@@ -543,4 +546,12 @@ public class RegisterServiceImpl implements RegisterService {
companyBankCardDaoImpl
.
update
(
companyBankCardVo
);
return
reqVo
.
getVerifyCode
();
}
@Override
public
String
fileUpload
(
CommonsMultipartFile
file
)
throws
IOException
{
String
path
=
"C:/"
+
DateHelper
.
getNow
()
+
file
.
getOriginalFilename
();
File
newFile
=
new
File
(
path
);
file
.
transferTo
(
newFile
);
return
path
;
}
}
src/main/java/com/pangding/web/authority/vo/TyyOrderVo.java
View file @
8900d2aa
...
...
@@ -35,7 +35,7 @@ public class TyyOrderVo {
/**
* 订单子类型: 1、扫码购票,2、网络购票,3、自助机购票,4、扫码支付,5、预约
*/
private
Integer
sub_order_type
;
private
String
sub_order_type
;
private
String
product_id
;
/**
* 产品名称
...
...
@@ -171,11 +171,11 @@ public class TyyOrderVo {
this
.
order_type
=
order_type
;
}
public
Integer
getSub_order_type
()
{
public
String
getSub_order_type
()
{
return
sub_order_type
;
}
public
void
setSub_order_type
(
Integer
sub_order_type
)
{
public
void
setSub_order_type
(
String
sub_order_type
)
{
this
.
sub_order_type
=
sub_order_type
;
}
...
...
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