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
aeefd973
Commit
aeefd973
authored
Dec 10, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://key@gitlab.egolm.com/key/shop.git
parents
d6fe724a
e40da28b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
451 additions
and
426 deletions
+451
-426
UserController.java
src/main/java/com/egolm/shop/controller/UserController.java
+389
-372
UserService.java
src/main/java/com/egolm/shop/service/UserService.java
+56
-54
UserServiceImpl.java
...ain/java/com/egolm/shop/service/impl/UserServiceImpl.java
+6
-0
No files found.
src/main/java/com/egolm/shop/controller/UserController.java
View file @
aeefd973
This diff is collapsed.
Click to expand it.
src/main/java/com/egolm/shop/service/UserService.java
View file @
aeefd973
package
com
.
egolm
.
shop
.
service
;
import
java.util.List
;
import
java.util.Map
;
import
com.egolm.shop.pojo.TCustomer
;
import
com.egolm.shop.pojo.TShop
;
public
interface
UserService
{
public
TCustomer
getCustomer
(
String
custNO
,
String
shopNO
);
public
TCustomer
getCustomer
(
String
mobile
);
public
TShop
getShop
(
String
shopNO
);
public
Map
<
String
,
Object
>
createGuest
(
Map
<
String
,
Object
>
params
);
public
String
login
(
Map
<
String
,
Object
>
params
)
;
public
String
modifyPwd
(
Map
<
String
,
Object
>
params
);
public
String
sendSms
(
Map
<
String
,
Object
>
params
);
public
boolean
checkShopExists
(
String
custNO
,
String
shopNO
);
public
String
modifyShopAuthInfo
(
Map
<
String
,
Object
>
parameters
);
public
Map
<
String
,
Object
>
queryCustomerByOpenId
(
String
openId
);
public
Map
<
String
,
Object
>
queryCustomerByMobile
(
String
mobile
);
public
Map
<
String
,
Object
>
createCustomer
(
String
orgNo
,
String
openId
,
String
mobile
);
public
List
<
Map
<
String
,
Object
>>
queryShopList
(
String
orgNo
,
String
custNo
);
public
Map
<
String
,
Object
>
createShop
(
String
orgNo
,
Map
<
String
,
Object
>
customerMap
);
public
void
deleteOpenId
(
String
openId
);
public
void
saveOpenId
(
String
string
,
String
openId
);
public
String
queryShopAuthInfo
(
String
shopNo
,
String
langID
);
public
Map
<
String
,
Object
>
getSalesmanByShopNo
(
String
shopNo
);
public
Map
<
String
,
Object
>
getCustomerByNO
(
String
custNo
);
public
void
updateCustomerEmail
(
String
custNo
,
String
email
);
public
List
<
Map
<
String
,
Object
>>
queryBankList
(
String
sCustNO
);
public
Map
<
String
,
Object
>
loginByOpenId
(
String
orgNo
,
String
openId
,
String
mobile
,
String
name
);
}
package
com
.
egolm
.
shop
.
service
;
import
java.util.List
;
import
java.util.Map
;
import
com.egolm.shop.pojo.TCustomer
;
import
com.egolm.shop.pojo.TShop
;
public
interface
UserService
{
public
TCustomer
getCustomer
(
String
custNO
,
String
shopNO
);
public
TCustomer
getCustomer
(
String
mobile
);
public
TShop
getShop
(
String
shopNO
);
public
Map
<
String
,
Object
>
createGuest
(
Map
<
String
,
Object
>
params
);
public
String
login
(
Map
<
String
,
Object
>
params
)
;
public
String
modifyPwd
(
Map
<
String
,
Object
>
params
);
public
String
sendSms
(
Map
<
String
,
Object
>
params
);
public
boolean
checkShopExists
(
String
custNO
,
String
shopNO
);
public
String
modifyShopAuthInfo
(
Map
<
String
,
Object
>
parameters
);
public
Map
<
String
,
Object
>
queryCustomerByOpenId
(
String
openId
);
public
Map
<
String
,
Object
>
queryCustomerByMobile
(
String
mobile
);
public
Map
<
String
,
Object
>
createCustomer
(
String
orgNo
,
String
openId
,
String
mobile
);
public
List
<
Map
<
String
,
Object
>>
queryShopList
(
String
orgNo
,
String
custNo
);
public
Map
<
String
,
Object
>
createShop
(
String
orgNo
,
Map
<
String
,
Object
>
customerMap
);
public
void
deleteOpenId
(
String
openId
);
public
void
saveOpenId
(
String
string
,
String
openId
);
public
String
queryShopAuthInfo
(
String
shopNo
,
String
langID
);
public
Map
<
String
,
Object
>
getSalesmanByShopNo
(
String
shopNo
);
public
Map
<
String
,
Object
>
getCustomerByNO
(
String
custNo
);
public
void
updateCustomerEmail
(
String
custNo
,
String
email
);
public
List
<
Map
<
String
,
Object
>>
queryBankList
(
String
sCustNO
);
public
Map
<
String
,
Object
>
loginByOpenId
(
String
orgNo
,
String
openId
,
String
mobile
,
String
name
);
public
void
updateB2BUnionID
(
String
UserNO
,
String
UnionID
);
}
src/main/java/com/egolm/shop/service/impl/UserServiceImpl.java
View file @
aeefd973
...
...
@@ -847,4 +847,10 @@ public class UserServiceImpl implements UserService {
}
return
new
XException
((
String
)
errorMsg
);
}
@Override
public
void
updateB2BUnionID
(
String
UserNO
,
String
UnionID
)
{
jdbcTemplate
.
update
(
"update tB2BUser set sUnionID = ? ,dLastUpdateTime = getdate() where sUserNO = ?"
,
UnionID
,
UserNO
);
}
}
\ No newline at end of file
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