Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
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
hooloo
ms
soss
Commits
a0410832
Commit
a0410832
authored
2 years ago
by
张新旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前进前进,继续上代码
parent
62c4ae79
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
soss-framework/src/main/java/com/soss/framework/web/service/WeixinServiceImpl.java
+3
-3
soss-system/src/main/java/com/soss/system/service/impl/AppServiceImpl.java
+3
-3
soss-system/src/main/java/com/soss/system/service/impl/SpecServiceImpl.java
+2
-2
No files found.
soss-framework/src/main/java/com/soss/framework/web/service/WeixinServiceImpl.java
View file @
a0410832
...
...
@@ -554,9 +554,9 @@ public class WeixinServiceImpl {
}
public
List
<
JSONObject
>
getArea
(
String
lng
,
String
lat
)
{
String
provinceString
=
"[value ='%s'][0].
name
"
;
String
cityString
=
"[value='%s'][0].children[value='%s'][0].
name
"
;
String
zoneString
=
"[value='%s'][0].children[value='%s'][0].children[value='%s'][0].
name
"
;
String
provinceString
=
"[value ='%s'][0].
label
"
;
String
cityString
=
"[value='%s'][0].children[value='%s'][0].
label
"
;
String
zoneString
=
"[value='%s'][0].children[value='%s'][0].children[value='%s'][0].
label
"
;
Shop
shop
=
new
Shop
();
List
<
Shop
>
shops
=
shopMapper
.
selectShopList
(
shop
);
...
...
This diff is collapsed.
Click to expand it.
soss-system/src/main/java/com/soss/system/service/impl/AppServiceImpl.java
View file @
a0410832
...
...
@@ -57,16 +57,16 @@ public class AppServiceImpl {
if
(
s
>
1000
&&
s
<
10000
){
DecimalFormat
df
=
new
DecimalFormat
(
"######0.0"
);
distance
=
df
.
format
(
s
/
1000
);
return
distance
+
"
公里
"
;
return
distance
+
"
km
"
;
}
else
if
(
s
>=
10000
){
Double
aDouble
=
s
/
10000
;
return
aDouble
.
intValue
()+
"
公里
"
;
return
aDouble
.
intValue
()+
"
km
"
;
}
else
{
Double
aDouble
=
s
;
return
aDouble
.
intValue
()+
"
米
"
;
return
aDouble
.
intValue
()+
"
m
"
;
}
}
...
...
This diff is collapsed.
Click to expand it.
soss-system/src/main/java/com/soss/system/service/impl/SpecServiceImpl.java
View file @
a0410832
...
...
@@ -144,7 +144,7 @@ public class SpecServiceImpl implements ISpecService
String
query
=
"\"specId\":"
+
spec
.
getId
();
List
<
Goods
>
goods
=
goodsMapper
.
selectSpec
(
query
);
if
(!
goods
.
isEmpty
()){
throw
new
ServiceException
(
"当前还有商品使用,请先
删除
商品"
);
throw
new
ServiceException
(
"当前还有商品使用,请先
下架
商品"
);
}
spec
.
setIsDeleted
(
0
);
spec
.
setUpdatedAt
(
new
Date
());
...
...
@@ -209,7 +209,7 @@ public class SpecServiceImpl implements ISpecService
String
query
=
"\"specId\":"
+
id
;
List
<
Goods
>
goods
=
goodsMapper
.
selectSpec
(
query
);
if
(!
goods
.
isEmpty
()){
throw
new
ServiceException
(
"当前还有商品使用,请先
删除
商品"
);
throw
new
ServiceException
(
"当前还有商品使用,请先
下架
商品"
);
}
long
specId
=
Long
.
parseLong
(
id
);
specRuleMapper
.
deleteSpecRuleBySpecId
(
specId
);
...
...
This diff is collapsed.
Click to expand it.
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