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
46d566c3
Commit
46d566c3
authored
Apr 15, 2024
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5ee66e11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
GoodsServiceImpl.java
...ava/com/egolm/shop/api/service/impl/GoodsServiceImpl.java
+2
-2
No files found.
src/main/java/com/egolm/shop/api/service/impl/GoodsServiceImpl.java
View file @
46d566c3
...
...
@@ -477,7 +477,7 @@ public class GoodsServiceImpl implements GoodsService {
if
(
IsGoodsUnit
==
1
)
{
//查询多单位
String
GoodsUnitSql
=
" select sUnitTypeID = 'SaleMin', sUnitType = '销售小单位', nConvertRate = 1, "
+
String
GoodsUnitSql
=
" select
t.nGoodsID,
sUnitTypeID = 'SaleMin', sUnitType = '销售小单位', nConvertRate = 1, "
+
" t.sUnit, t.nRealSalePrice, t.nSalePrice, "
+
" t.sSpec, t.nMinSaleQty, t.nSaleUnits, t.nStockQty, t.sStockTag, "
+
" sShowUnit = convert(varchar,convert(numeric(12,2),t.nRealSalePrice)) + '元/' + t.sUnit + ' (1' + t.sUnit + ')' "
+
...
...
@@ -487,7 +487,7 @@ public class GoodsServiceImpl implements GoodsService {
" and t.nGoodsID = ?"
+
" and t.nAgentID = ?"
+
" union "
+
" select gu.sUnitTypeID, gu.sUnitType, gu.nConvertRate, "
+
" select
t.nGoodsID,
gu.sUnitTypeID, gu.sUnitType, gu.nConvertRate, "
+
" gu.sUnit, nRealSalePrice = gu.nSalePrice, gu.nSalePrice, "
+
" t.sSpec + '*' + dbo.fn_GetConvertDec(gu.nConvertRate), nMinSaleQty = 1, nSaleUnits = 1, nStockQty = cast(t.nStockQty/gu.nConvertRate as int), t.sStockTag, "
+
" sShowUnit = convert(varchar,gu.nSalePrice) + '元/' + gu.sUnit + ' (' + dbo.fn_GetConvertDec(gu.nConvertRate) + t.sUnit + ')' "
+
...
...
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