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
e56115f5
Commit
e56115f5
authored
Nov 11, 2024
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需求 #17586
parent
f863c8ef
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
6 deletions
+21
-6
OrderController.java
src/main/java/com/egolm/shop/api/OrderController.java
+8
-3
OrderServiceImpl.java
...ava/com/egolm/shop/api/service/impl/OrderServiceImpl.java
+11
-2
redmine.html
src/main/resources/templates/redmine.html
+2
-1
No files found.
src/main/java/com/egolm/shop/api/OrderController.java
View file @
e56115f5
...
@@ -12,6 +12,7 @@ import java.util.TreeMap;
...
@@ -12,6 +12,7 @@ import java.util.TreeMap;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -19,7 +20,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -19,7 +20,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.egolm.common.Base64Util
;
import
com.egolm.common.DateUtil
;
import
com.egolm.common.DateUtil
;
import
com.egolm.common.FileUtil
;
import
com.egolm.common.FileUtil
;
import
com.egolm.common.HttpUtil
;
import
com.egolm.common.HttpUtil
;
...
@@ -28,11 +31,13 @@ import com.egolm.common.bean.Rjx;
...
@@ -28,11 +31,13 @@ import com.egolm.common.bean.Rjx;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.common.web.ServletUtil
;
import
com.egolm.common.web.ServletUtil
;
import
com.egolm.shop.api.service.OrderService
;
import
com.egolm.shop.api.service.OrderService
;
import
com.egolm.shop.api.service.impl.OrderServiceImpl
;
import
com.egolm.shop.bean.RespObject
;
import
com.egolm.shop.bean.RespObject
;
import
com.egolm.shop.common.XException
;
import
com.egolm.shop.common.XException
;
import
com.egolm.shop.common.component.IDCLogResource
;
import
com.egolm.shop.common.component.IDCLogResource
;
import
com.egolm.shop.common.utils.I18NUtils
;
import
com.egolm.shop.common.utils.I18NUtils
;
import
com.egolm.shop.common.utils.XmlUtil
;
import
com.egolm.shop.common.utils.XmlUtil
;
import
com.jcraft.jsch.Logger
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParam
;
...
@@ -43,7 +48,6 @@ import io.swagger.annotations.ApiOperation;
...
@@ -43,7 +48,6 @@ import io.swagger.annotations.ApiOperation;
@RestController
@RestController
@RequestMapping
(
"order"
)
@RequestMapping
(
"order"
)
public
class
OrderController
{
public
class
OrderController
{
@Autowired
@Autowired
private
OrderService
orderService
;
private
OrderService
orderService
;
...
@@ -104,7 +108,7 @@ public class OrderController {
...
@@ -104,7 +108,7 @@ public class OrderController {
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"orderMemo"
,
dataType
=
"String"
,
required
=
true
,
value
=
"订单备注"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"orderMemo"
,
dataType
=
"String"
,
required
=
true
,
value
=
"订单备注"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"cargoTypeID"
,
dataType
=
"String"
,
required
=
false
,
value
=
"货站ID"
,
defaultValue
=
"需求 #17557"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"cargoTypeID"
,
dataType
=
"String"
,
required
=
false
,
value
=
"货站ID"
,
defaultValue
=
"需求 #17557"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"balanceAmount"
,
dataType
=
"String"
,
required
=
false
,
value
=
"分账余额"
,
defaultValue
=
"需求 #17203"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"balanceAmount"
,
dataType
=
"String"
,
required
=
false
,
value
=
"分账余额"
,
defaultValue
=
"需求 #17203"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"payDetails"
,
dataType
=
"String"
,
required
=
false
,
value
=
"付款详情JSON格式 [{\"PayTypeID\" : \"120\",\"PayType\" : \"微信支付\",\"PayAmount\" : 100.00,\"PayPoint\" : 0.00,\"PayCardNO\" : \"800001000184\"},{\"PayTypeID\" : \"81\",\"PayType\" : \"优惠券\",\"PayAmount\" : 100.00,\"PayPoint\" : 0.00,\"PayCardNO\" : \"800001000184\"}]"
,
defaultValue
=
"需求 #17402"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"payDetails"
,
dataType
=
"String"
,
required
=
false
,
value
=
"付款详情JSON格式 [{\"PayTypeID\" : \"120\",\"PayType\" : \"微信支付\",\"PayAmount\" : 100.00,\"PayPoint\" : 0.00,\"PayCardNO\" : \"800001000184\"},{\"PayTypeID\" : \"81\",\"PayType\" : \"优惠券\",\"PayAmount\" : 100.00,\"PayPoint\" : 0.00,\"PayCardNO\" : \"800001000184\"}]"
,
defaultValue
=
"需求 #17402
需求 #17586 base64
"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"langID"
,
dataType
=
"String"
,
required
=
false
,
value
=
"语言"
,
defaultValue
=
"936"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"langID"
,
dataType
=
"String"
,
required
=
false
,
value
=
"语言"
,
defaultValue
=
"936"
),
...
@@ -128,6 +132,7 @@ public class OrderController {
...
@@ -128,6 +132,7 @@ public class OrderController {
}
else
{
}
else
{
balanceAmount
=
"0"
;
balanceAmount
=
"0"
;
}
}
if
(!
StringUtil
.
isNotEmpty
(
shopNO
,
payTypeID
,
addrID
))
{
if
(!
StringUtil
.
isNotEmpty
(
shopNO
,
payTypeID
,
addrID
))
{
return
Rjx
.
json
().
setCode
(-
1
).
setMessage
(
I18NUtils
.
getMessage
(
langID
,
"Msg_Parameter_empty"
)).
toJson
();
return
Rjx
.
json
().
setCode
(-
1
).
setMessage
(
I18NUtils
.
getMessage
(
langID
,
"Msg_Parameter_empty"
)).
toJson
();
}
}
...
...
src/main/java/com/egolm/shop/api/service/impl/OrderServiceImpl.java
View file @
e56115f5
...
@@ -29,6 +29,7 @@ import org.springframework.transaction.support.DefaultTransactionDefinition;
...
@@ -29,6 +29,7 @@ import org.springframework.transaction.support.DefaultTransactionDefinition;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.egolm.common.Base64Util
;
import
com.egolm.common.DateUtil
;
import
com.egolm.common.DateUtil
;
import
com.egolm.common.FileUtil
;
import
com.egolm.common.FileUtil
;
import
com.egolm.common.GsonUtil
;
import
com.egolm.common.GsonUtil
;
...
@@ -1589,6 +1590,15 @@ public class OrderServiceImpl implements OrderService {
...
@@ -1589,6 +1590,15 @@ public class OrderServiceImpl implements OrderService {
PlatformTransactionManager transactionManager = new DataSourceTransactionManager(dataSource);
PlatformTransactionManager transactionManager = new DataSourceTransactionManager(dataSource);
TransactionStatus status = transactionManager.getTransaction(def);*/
TransactionStatus status = transactionManager.getTransaction(def);*/
String
payDetails
=
map
.
get
(
"payDetails"
)+
""
;
//付款详情
try
{
JSONArray
.
parse
(
payDetails
);
}
catch
(
Exception
e
)
{
payDetails
=
Base64Util
.
decode
(
payDetails
);
logger
.
info
(
"付款详情base64解密后: {} "
,
payDetails
);
}
String
LangID
=
""
+
map
.
get
(
"langID"
);
String
LangID
=
""
+
map
.
get
(
"langID"
);
try
{
try
{
String
shopNO
=
""
+
map
.
get
(
"shopNO"
);
String
shopNO
=
""
+
map
.
get
(
"shopNO"
);
...
@@ -1601,7 +1611,6 @@ public class OrderServiceImpl implements OrderService {
...
@@ -1601,7 +1611,6 @@ public class OrderServiceImpl implements OrderService {
String
cargoTypeID
=
map
.
containsKey
(
"cargoTypeID"
)?
map
.
get
(
"cargoTypeID"
)+
""
:
""
;
// 货站ID
String
cargoTypeID
=
map
.
containsKey
(
"cargoTypeID"
)?
map
.
get
(
"cargoTypeID"
)+
""
:
""
;
// 货站ID
String
payDetails
=
map
.
get
(
"payDetails"
)+
""
;
//付款详情
String
sql
=
"exec up_NewCreatetSalesOrder '"
+
shopNO
+
"','', '"
+
payID
+
"', '"
+
terminalTypeID
String
sql
=
"exec up_NewCreatetSalesOrder '"
+
shopNO
+
"','', '"
+
payID
+
"', '"
+
terminalTypeID
+
"', '"
+
addrID
+
"', '"
+
orderMemo
+
"', '','', '', '1', '', '', '', '', '', '','0','','' ,'','"
+
balanceAmount
+
"','"
+
cargoTypeID
+
"' "
;
+
"', '"
+
addrID
+
"', '"
+
orderMemo
+
"', '','', '', '1', '', '', '', '', '', '','0','','' ,'','"
+
balanceAmount
+
"','"
+
cargoTypeID
+
"' "
;
...
...
src/main/resources/templates/redmine.html
View file @
e56115f5
...
@@ -27,7 +27,8 @@
...
@@ -27,7 +27,8 @@
<el-divider
content-position=
"left"
>
V1.1.7.8.7 2024-11-11
</el-divider>
<el-divider
content-position=
"left"
>
V1.1.7.8.7 2024-11-11
</el-divider>
<p
class=
"title"
>
1.订货端-订单详情展示【物流电话】、确认订单页-增加【货站】返回-服务 需求 #17557
</p>
<p
class=
"title"
>
1.订货端-订单详情展示【物流电话】、确认订单页-增加【货站】返回-服务 需求 #17557
</p>
<p
class=
"title"
>
2.card接口调用主库
</p>
<p
class=
"title"
>
2.card接口调用主库
</p>
<p
class=
"title"
>
2.card query再调一次过程
</p>
<p
class=
"title"
>
3.card query再调一次过程
</p>
<p
class=
"title"
>
4. submitV2 中payDetails改为base64传参,需求 #17586
</p>
<el-divider
content-position=
"left"
>
V1.1.7.8.6 2024-10-15
</el-divider>
<el-divider
content-position=
"left"
>
V1.1.7.8.6 2024-10-15
</el-divider>
<p
class=
"title"
>
1.订货端-售后/退款:AgentID参数过滤 需求 #17488
</p>
<p
class=
"title"
>
1.订货端-售后/退款:AgentID参数过滤 需求 #17488
</p>
<el-divider
content-position=
"left"
>
V1.1.7.8.5 2024-9-25
</el-divider>
<el-divider
content-position=
"left"
>
V1.1.7.8.5 2024-9-25
</el-divider>
...
...
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