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
0259ba52
Commit
0259ba52
authored
Oct 10, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
3e436e08
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
+16
-17
AddressServiceImpl.java
.../java/com/egolm/shop/service/impl/AddressServiceImpl.java
+16
-17
No files found.
src/main/java/com/egolm/shop/service/impl/AddressServiceImpl.java
View file @
0259ba52
...
@@ -10,7 +10,6 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -10,7 +10,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.egolm.common.StringUtil
;
import
com.egolm.common.StringUtil
;
import
com.egolm.common.Util
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.common.jdbc.JdbcTemplate
;
import
com.egolm.common.jdbc.JdbcTemplate
;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.common.jdbc.Page
;
...
@@ -235,22 +234,22 @@ public class AddressServiceImpl implements AddressService {
...
@@ -235,22 +234,22 @@ public class AddressServiceImpl implements AddressService {
public
Map
<
String
,
Object
>
getDefaultAddress
(
String
custNo
,
String
shopNo
)
{
public
Map
<
String
,
Object
>
getDefaultAddress
(
String
custNo
,
String
shopNo
)
{
String
sql
=
""
String
sql
=
""
+
"select "
+
"select "
+
"addrID=
t.
sAddrID, "
+
"addrID=sAddrID, "
+
"addrName=
t.
sAddrName, "
+
"addrName=sAddrName, "
+
"contacts=
t.
sContacts, "
+
"contacts=sContacts, "
+
"mobile=
t.
sMobile, "
+
"mobile=sMobile, "
+
"tel=
t.
sTel, "
+
"tel=sTel, "
+
"province=
t.
sProvince, "
+
"province=sProvince, "
+
"city=
t.
sCity, "
+
"city=sCity, "
+
"districtID=
t.
sDistrictID, "
+
"districtID=sDistrictID, "
+
"provinceID=
t.
sProvinceID, "
+
"provinceID=sProvinceID, "
+
"cityID=
t.
sCityID, "
+
"cityID=sCityID, "
+
"district=
t.
sDistrict, "
+
"district=sDistrict, "
+
"address=
t.
sAddress, "
+
"address=sAddress, "
+
"street=
t.
sStreet, "
+
"street=sStreet, "
+
"postalcode=
t.
sPostalcode, "
+
"postalcode=sPostalcode, "
+
"tag=
t.
nTag, "
+
"tag=nTag, "
+
"lastUpdateTime =
t.
dLastUpdateTime "
+
"lastUpdateTime = dLastUpdateTime "
+
" from tCustAddress where nTag&1 = 0 and sCustNO = ? and (sShopNO = ? or sShopNO is null or sShopNO = '') order by nTag desc"
;
+
" from tCustAddress where nTag&1 = 0 and sCustNO = ? and (sShopNO = ? or sShopNO is null or sShopNO = '') order by nTag desc"
;
List
<
Map
<
String
,
Object
>>
list
=
jdbcTemplate
.
queryForList
(
sql
,
custNo
,
shopNo
);
List
<
Map
<
String
,
Object
>>
list
=
jdbcTemplate
.
queryForList
(
sql
,
custNo
,
shopNo
);
Map
<
String
,
Object
>
defMap
=
null
;
Map
<
String
,
Object
>
defMap
=
null
;
...
...
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