Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wms_api
Project
Project
Details
Activity
Releases
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
高宇
wms_api
Commits
9ab9de80
Commit
9ab9de80
authored
Jun 06, 2024
by
hubaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品和库存
parent
a7ac9829
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
183 additions
and
130 deletions
+183
-130
WmsGoodsRepository.java
...java/org/rcisoft/bus/wmsgoods/dao/WmsGoodsRepository.java
+1
-1
WmsGoods.java
src/main/java/org/rcisoft/bus/wmsgoods/entity/WmsGoods.java
+34
-27
WmsGoodsServiceImpl.java
...cisoft/bus/wmsgoods/service/impl/WmsGoodsServiceImpl.java
+2
-2
WmsGoodsApplyController.java
...bus/wmsgoodsapply/controller/WmsGoodsApplyController.java
+24
-10
WmsGoodsStockPageResultsDto.java
...ft/bus/wmsgoodsstock/dto/WmsGoodsStockPageResultsDto.java
+13
-6
application-common.yml
src/main/resources/application-common.yml
+9
-3
application-dev-conf.yml
src/main/resources/application-dev-conf.yml
+10
-4
WmsGoodsMapper.xml
src/main/resources/mapper/bus/wmsGoods/WmsGoodsMapper.xml
+68
-61
WmsGoodsStockMapper.xml
...esources/mapper/bus/wmsGoodsStock/WmsGoodsStockMapper.xml
+22
-16
No files found.
src/main/java/org/rcisoft/bus/wmsgoods/dao/WmsGoodsRepository.java
View file @
9ab9de80
...
@@ -18,7 +18,7 @@ import java.util.List;
...
@@ -18,7 +18,7 @@ import java.util.List;
public
interface
WmsGoodsRepository
extends
CyBaseMapper
<
WmsGoods
>
{
public
interface
WmsGoodsRepository
extends
CyBaseMapper
<
WmsGoods
>
{
List
<
WmsGoods
>
queryWmsGoods
s
(
@Param
(
"entity"
)
WmsGoods
wmsGoods
);
List
<
WmsGoods
>
queryWmsGoods
(
@Param
(
"entity"
)
WmsGoods
wmsGoods
);
/**
/**
* 分页查询 wmsGoods
* 分页查询 wmsGoods
...
...
src/main/java/org/rcisoft/bus/wmsgoods/entity/WmsGoods.java
View file @
9ab9de80
...
@@ -19,69 +19,76 @@ public class WmsGoods extends CyIdIncreEntity<WmsGoods> {
...
@@ -19,69 +19,76 @@ public class WmsGoods extends CyIdIncreEntity<WmsGoods> {
/**
/**
* @desc
商品名称
* @desc
品名
* @column goods_name
* @column goods_name
* @default
* @default
*/
*/
@Excel
(
name
=
"
商品名称
"
,
orderNum
=
"0"
,
width
=
20
)
@Excel
(
name
=
"
品名
"
,
orderNum
=
"0"
,
width
=
20
)
private
String
goodsName
;
private
String
goodsName
;
/**
/**
* @desc 商品编码
* @desc 商品编码
* @column goods_code
* @column goods_code
* @default
* @default
*/
*/
@Excel
(
name
=
"商品编码"
,
orderNum
=
"1"
,
width
=
20
)
@Excel
(
name
=
"商品编码"
,
orderNum
=
"1"
,
width
=
20
)
private
String
goodsCode
;
private
String
goodsCode
;
/**
/**
* @desc
商品类型
* @desc
款式
* @column goods_type
* @column goods_type
* @default
* @default
*/
*/
@Excel
(
name
=
"
商品类型
"
,
orderNum
=
"2"
,
width
=
20
)
@Excel
(
name
=
"
款式
"
,
orderNum
=
"2"
,
width
=
20
)
private
String
goods
Typ
e
;
private
String
goods
Styl
e
;
/**
/**
* @desc
商品
货号
* @desc 货号
* @column goods_art
icle
_number
* @column goods_art_number
* @default
* @default
*/
*/
@Excel
(
name
=
"
商品
货号"
,
orderNum
=
"3"
,
width
=
20
)
@Excel
(
name
=
"货号"
,
orderNum
=
"3"
,
width
=
20
)
private
String
goodsArt
icle
Number
;
private
String
goodsArtNumber
;
/**
/**
* @desc
商品小类
* @desc
季节
* @column goods_s
ubclass
* @column goods_s
eason
* @default
* @default
*/
*/
@Excel
(
name
=
"
商品小类
"
,
orderNum
=
"4"
,
width
=
20
)
@Excel
(
name
=
"
季节
"
,
orderNum
=
"4"
,
width
=
20
)
private
String
goodsS
ubclass
;
private
String
goodsS
eason
;
/**
/**
* @desc
商品
颜色
* @desc 颜色
* @column goods_colour
* @column goods_colour
* @default
* @default
*/
*/
@Excel
(
name
=
"
商品
颜色"
,
orderNum
=
"5"
,
width
=
20
)
@Excel
(
name
=
"颜色"
,
orderNum
=
"5"
,
width
=
20
)
private
String
goodsColour
;
private
String
goodsColour
;
/**
/**
* @desc
商品
规格
* @desc 规格
* @column goods_norms
* @column goods_norms
* @default
* @default
*/
*/
@Excel
(
name
=
"
商品
规格"
,
orderNum
=
"6"
,
width
=
20
)
@Excel
(
name
=
"规格"
,
orderNum
=
"6"
,
width
=
20
)
private
String
goodsNorms
;
private
String
goodsNorms
;
/**
/**
* @desc
商品
尺码
* @desc 尺码
* @column goods_size
* @column goods_size
* @default
* @default
*/
*/
@Excel
(
name
=
"
商品
尺码"
,
orderNum
=
"7"
,
width
=
20
)
@Excel
(
name
=
"尺码"
,
orderNum
=
"7"
,
width
=
20
)
private
String
goodsSize
;
private
String
goodsSize
;
/**
* @desc 品牌
* @column goods_size
* @default
*/
@Excel
(
name
=
"品牌"
,
orderNum
=
"8"
,
width
=
20
)
private
String
goodsBrand
;
}
}
src/main/java/org/rcisoft/bus/wmsgoods/service/impl/WmsGoodsServiceImpl.java
View file @
9ab9de80
...
@@ -119,7 +119,7 @@ public class WmsGoodsServiceImpl extends ServiceImpl<WmsGoodsRepository,WmsGoods
...
@@ -119,7 +119,7 @@ public class WmsGoodsServiceImpl extends ServiceImpl<WmsGoodsRepository,WmsGoods
*/
*/
@Override
@Override
public
List
<
WmsGoods
>
findAll
(
WmsGoods
wmsGoods
){
public
List
<
WmsGoods
>
findAll
(
WmsGoods
wmsGoods
){
return
baseMapper
.
queryWmsGoods
s
(
wmsGoods
);
return
baseMapper
.
queryWmsGoods
(
wmsGoods
);
}
}
...
@@ -129,7 +129,7 @@ public class WmsGoodsServiceImpl extends ServiceImpl<WmsGoodsRepository,WmsGoods
...
@@ -129,7 +129,7 @@ public class WmsGoodsServiceImpl extends ServiceImpl<WmsGoodsRepository,WmsGoods
*/
*/
@Override
@Override
public
List
<
WmsGoods
>
export
(
WmsGoods
wmsGoods
)
{
public
List
<
WmsGoods
>
export
(
WmsGoods
wmsGoods
)
{
List
<
WmsGoods
>
wmsGoodsList
=
baseMapper
.
queryWmsGoods
s
(
wmsGoods
);
List
<
WmsGoods
>
wmsGoodsList
=
baseMapper
.
queryWmsGoods
(
wmsGoods
);
return
wmsGoodsList
;
return
wmsGoodsList
;
}
}
...
...
src/main/java/org/rcisoft/bus/wmsgoodsapply/controller/WmsGoodsApplyController.java
View file @
9ab9de80
...
@@ -64,7 +64,7 @@ public class WmsGoodsApplyController extends CyPaginationController<WmsGoodsAppl
...
@@ -64,7 +64,7 @@ public class WmsGoodsApplyController extends CyPaginationController<WmsGoodsAppl
@CyOpeLogAnno
(
title
=
"system-商品申请表管理-新增商品申请表"
,
businessType
=
CyLogTypeEnum
.
INSERT
)
@CyOpeLogAnno
(
title
=
"system-商品申请表管理-新增商品申请表"
,
businessType
=
CyLogTypeEnum
.
INSERT
)
@ApiOperation
(
value
=
"添加商品申请表"
,
notes
=
"添加商品申请表"
)
@ApiOperation
(
value
=
"添加商品申请表"
,
notes
=
"添加商品申请表"
)
@PostMapping
(
value
=
"/add"
)
@PostMapping
(
value
=
"/add"
)
public
CyResult
add
(
@
Valid
WmsGoodsApply
wmsGoodsApply
,
BindingResult
bindingResult
)
{
public
CyResult
add
(
@
RequestBody
WmsGoodsApply
wmsGoodsApply
)
{
CyPersistModel
data
=
wmsGoodsApplyServiceImpl
.
persist
(
wmsGoodsApply
);
CyPersistModel
data
=
wmsGoodsApplyServiceImpl
.
persist
(
wmsGoodsApply
);
return
CyResultGenUtil
.
builder
(
data
,
return
CyResultGenUtil
.
builder
(
data
,
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
...
@@ -176,24 +176,24 @@ public class WmsGoodsApplyController extends CyPaginationController<WmsGoodsAppl
...
@@ -176,24 +176,24 @@ public class WmsGoodsApplyController extends CyPaginationController<WmsGoodsAppl
//数据字典
//数据字典
DictDataDTO
dictData
=
new
DictDataDTO
();
DictDataDTO
dictData
=
new
DictDataDTO
();
dictData
.
setFlag
(
"1"
);
dictData
.
setFlag
(
"1"
);
dictData
.
setDictType
(
"GOODS_
TYP
E"
);
dictData
.
setDictType
(
"GOODS_
STYL
E"
);
List
<
DictData
>
dictDataList
=
dictDataRepository
.
querySysDictDatas
(
dictData
);
List
<
DictData
>
dictDataList
=
dictDataRepository
.
querySysDictDatas
(
dictData
);
String
[]
goods_
typ
e
=
dictDataList
.
stream
().
map
(
DictData:
:
getDictLabel
).
toArray
(
String
[]::
new
);
String
[]
goods_
styl
e
=
dictDataList
.
stream
().
map
(
DictData:
:
getDictLabel
).
toArray
(
String
[]::
new
);
ExportExcelUtil
.
XSSFSetDropDownAndHidden
(
goods_
typ
e
,
workbook
,
sheet
,
1
,
100000
,
1
,
1
);
ExportExcelUtil
.
XSSFSetDropDownAndHidden
(
goods_
styl
e
,
workbook
,
sheet
,
1
,
100000
,
1
,
1
);
DictDataDTO
dictData1
=
new
DictDataDTO
();
DictDataDTO
dictData1
=
new
DictDataDTO
();
dictData1
.
setFlag
(
"1"
);
dictData1
.
setFlag
(
"1"
);
dictData1
.
setDictType
(
"GOODS_ART
ICLE
_NUMBER"
);
dictData1
.
setDictType
(
"GOODS_ART_NUMBER"
);
List
<
DictData
>
dictDataList1
=
dictDataRepository
.
querySysDictDatas
(
dictData1
);
List
<
DictData
>
dictDataList1
=
dictDataRepository
.
querySysDictDatas
(
dictData1
);
String
[]
goodsArt
icle
Number
=
dictDataList1
.
stream
().
map
(
DictData:
:
getDictLabel
).
toArray
(
String
[]::
new
);
String
[]
goodsArtNumber
=
dictDataList1
.
stream
().
map
(
DictData:
:
getDictLabel
).
toArray
(
String
[]::
new
);
ExportExcelUtil
.
XSSFSetDropDownAndHidden
(
goodsArt
icle
Number
,
workbook
,
sheet
,
1
,
100000
,
2
,
2
);
ExportExcelUtil
.
XSSFSetDropDownAndHidden
(
goodsArtNumber
,
workbook
,
sheet
,
1
,
100000
,
2
,
2
);
DictDataDTO
dictData2
=
new
DictDataDTO
();
DictDataDTO
dictData2
=
new
DictDataDTO
();
dictData2
.
setFlag
(
"1"
);
dictData2
.
setFlag
(
"1"
);
dictData2
.
setDictType
(
"GOODS_S
UBCLASS
"
);
dictData2
.
setDictType
(
"GOODS_S
EASON
"
);
List
<
DictData
>
dictDataList2
=
dictDataRepository
.
querySysDictDatas
(
dictData2
);
List
<
DictData
>
dictDataList2
=
dictDataRepository
.
querySysDictDatas
(
dictData2
);
String
[]
goodsS
ubclass
=
dictDataList2
.
stream
().
map
(
DictData:
:
getDictLabel
).
toArray
(
String
[]::
new
);
String
[]
goodsS
eason
=
dictDataList2
.
stream
().
map
(
DictData:
:
getDictLabel
).
toArray
(
String
[]::
new
);
ExportExcelUtil
.
XSSFSetDropDownAndHidden
(
goodsS
ubclass
,
workbook
,
sheet
,
1
,
100000
,
3
,
3
);
ExportExcelUtil
.
XSSFSetDropDownAndHidden
(
goodsS
eason
,
workbook
,
sheet
,
1
,
100000
,
3
,
3
);
DictDataDTO
dictData3
=
new
DictDataDTO
();
DictDataDTO
dictData3
=
new
DictDataDTO
();
dictData3
.
setFlag
(
"1"
);
dictData3
.
setFlag
(
"1"
);
...
@@ -216,6 +216,20 @@ public class WmsGoodsApplyController extends CyPaginationController<WmsGoodsAppl
...
@@ -216,6 +216,20 @@ public class WmsGoodsApplyController extends CyPaginationController<WmsGoodsAppl
String
[]
goodsSize
=
dictDataList5
.
stream
().
map
(
DictData:
:
getDictLabel
).
toArray
(
String
[]::
new
);
String
[]
goodsSize
=
dictDataList5
.
stream
().
map
(
DictData:
:
getDictLabel
).
toArray
(
String
[]::
new
);
ExportExcelUtil
.
XSSFSetDropDownAndHidden
(
goodsSize
,
workbook
,
sheet
,
1
,
100000
,
6
,
6
);
ExportExcelUtil
.
XSSFSetDropDownAndHidden
(
goodsSize
,
workbook
,
sheet
,
1
,
100000
,
6
,
6
);
DictDataDTO
dictData6
=
new
DictDataDTO
();
dictData1
.
setFlag
(
"1"
);
dictData1
.
setDictType
(
"GOODS_NAME"
);
List
<
DictData
>
dictDataList6
=
dictDataRepository
.
querySysDictDatas
(
dictData6
);
String
[]
goodsName
=
dictDataList6
.
stream
().
map
(
DictData:
:
getDictLabel
).
toArray
(
String
[]::
new
);
ExportExcelUtil
.
XSSFSetDropDownAndHidden
(
goodsName
,
workbook
,
sheet
,
1
,
100000
,
7
,
7
);
DictDataDTO
dictData7
=
new
DictDataDTO
();
dictData1
.
setFlag
(
"1"
);
dictData1
.
setDictType
(
"GOODS_BRAND"
);
List
<
DictData
>
dictDataList7
=
dictDataRepository
.
querySysDictDatas
(
dictData7
);
String
[]
goodsBrand
=
dictDataList7
.
stream
().
map
(
DictData:
:
getDictLabel
).
toArray
(
String
[]::
new
);
ExportExcelUtil
.
XSSFSetDropDownAndHidden
(
goodsBrand
,
workbook
,
sheet
,
1
,
100000
,
7
,
7
);
outputStream
=
response
.
getOutputStream
();
outputStream
=
response
.
getOutputStream
();
workbook
.
write
(
outputStream
);
workbook
.
write
(
outputStream
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
...
...
src/main/java/org/rcisoft/bus/wmsgoodsstock/dto/WmsGoodsStockPageResultsDto.java
View file @
9ab9de80
...
@@ -30,24 +30,24 @@ public class WmsGoodsStockPageResultsDto extends WmsGoodsStock {
...
@@ -30,24 +30,24 @@ public class WmsGoodsStockPageResultsDto extends WmsGoodsStock {
/**
/**
* @desc 商品类型
* @desc 商品类型
* @column goods_
typ
e
* @column goods_
styl
e
* @default
* @default
*/
*/
private
String
goods
Typ
e
;
private
String
goods
Styl
e
;
/**
/**
* @desc 商品货号
* @desc 商品货号
* @column goods_article_number
* @column goods_article_number
* @default
* @default
*/
*/
private
String
goodsArt
icle
Number
;
private
String
goodsArtNumber
;
/**
/**
* @desc
商品小类
* @desc
季节
* @column goods_s
ubclass
* @column goods_s
eason
* @default
* @default
*/
*/
private
String
goodsS
ubclass
;
private
String
goodsS
eason
;
/**
/**
* @desc 商品颜色
* @desc 商品颜色
...
@@ -69,4 +69,11 @@ public class WmsGoodsStockPageResultsDto extends WmsGoodsStock {
...
@@ -69,4 +69,11 @@ public class WmsGoodsStockPageResultsDto extends WmsGoodsStock {
* @default
* @default
*/
*/
private
String
goodsSize
;
private
String
goodsSize
;
/**
* @desc 品牌
* @column goods_brand
* @default
*/
private
String
goodsBrand
;
}
}
src/main/resources/application-common.yml
View file @
9ab9de80
...
@@ -115,10 +115,16 @@ spring:
...
@@ -115,10 +115,16 @@ spring:
#---------5.1 MYSQL-------------
#---------5.1 MYSQL-------------
# mysql5.0
# mysql5.0
#driver-class-name: com.mysql.jdbc.Driver
#driver-class-name: com.mysql.jdbc.Driver
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://${cy_db.ip}:${cy_db.port}/${cy_db.db}?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&serverTimezone=GMT%2B8
# username: ${cy_db.username}
# password: ${cy_db.password}
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://${cy_db.ip}:${cy_db.port}/${cy_db.db}?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&serverTimezone=GMT%2B8
url
:
jdbc:mysql://localhost:3306/wms_db?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&serverTimezone=GMT%2B8
username
:
${cy_db.username}
username
:
root
password
:
${cy_db.password}
password
:
mosheng
#----------5.2 POSTGRES------------
#----------5.2 POSTGRES------------
#url: jdbc:postgresql://10.96.131.16:15432/91isoft
#url: jdbc:postgresql://10.96.131.16:15432/91isoft
...
...
src/main/resources/application-dev-conf.yml
View file @
9ab9de80
...
@@ -20,13 +20,19 @@ cy_mq:
...
@@ -20,13 +20,19 @@ cy_mq:
# db: exam
# db: exam
#cy_db:
# ip: 49.232.167.247
# port: 20022
# username: root
# password: cy
# db: wms_db
cy_db
:
cy_db
:
ip
:
49.232.167.247
ip
:
localhost
port
:
20022
port
:
8080
username
:
root
username
:
root
password
:
cy
password
:
mosheng
db
:
wms_db
db
:
wms_db
#cy_db:
#cy_db:
# ip: 127.0.0.1
# ip: 127.0.0.1
# port: 3306
# port: 3306
...
...
src/main/resources/mapper/bus/wmsGoods/WmsGoodsMapper.xml
View file @
9ab9de80
...
@@ -13,80 +13,87 @@
...
@@ -13,80 +13,87 @@
<result
column=
"remarks"
jdbcType=
"VARCHAR"
property=
"remarks"
/>
<result
column=
"remarks"
jdbcType=
"VARCHAR"
property=
"remarks"
/>
<result
column=
"goods_name"
jdbcType=
"VARCHAR"
property=
"goodsName"
/>
<result
column=
"goods_name"
jdbcType=
"VARCHAR"
property=
"goodsName"
/>
<result
column=
"goods_code"
jdbcType=
"VARCHAR"
property=
"goodsCode"
/>
<result
column=
"goods_code"
jdbcType=
"VARCHAR"
property=
"goodsCode"
/>
<result
column=
"goods_
type"
jdbcType=
"VARCHAR"
property=
"goodsTyp
e"
/>
<result
column=
"goods_
style"
jdbcType=
"VARCHAR"
property=
"goodsStyl
e"
/>
<result
column=
"goods_art
icle_number"
jdbcType=
"VARCHAR"
property=
"goodsArticle
Number"
/>
<result
column=
"goods_art
_number"
jdbcType=
"VARCHAR"
property=
"goodsArt
Number"
/>
<result
column=
"goods_s
ubclass"
jdbcType=
"VARCHAR"
property=
"goodsSubclass
"
/>
<result
column=
"goods_s
eason"
jdbcType=
"VARCHAR"
property=
"goodsSeason
"
/>
<result
column=
"goods_colour"
jdbcType=
"VARCHAR"
property=
"goodsColour"
/>
<result
column=
"goods_colour"
jdbcType=
"VARCHAR"
property=
"goodsColour"
/>
<result
column=
"goods_norms"
jdbcType=
"VARCHAR"
property=
"goodsNorms"
/>
<result
column=
"goods_norms"
jdbcType=
"VARCHAR"
property=
"goodsNorms"
/>
<result
column=
"goods_size"
jdbcType=
"VARCHAR"
property=
"goodsSize"
/>
<result
column=
"goods_size"
jdbcType=
"VARCHAR"
property=
"goodsSize"
/>
<result
column=
"goods_brand"
jdbcType=
"VARCHAR"
property=
"goodsBrand"
/>
</resultMap>
</resultMap>
<!--<cache type="${corePackag!}.util.RedisCache"/>-->
<!--<cache type="${corePackag!}.util.RedisCache"/>-->
<select
id=
"queryWmsGoods
s
"
resultMap=
"BaseResultMap"
>
<select
id=
"queryWmsGoods"
resultMap=
"BaseResultMap"
>
select * from wms_goods
select * from wms_goods
where 1=1
where 1=1
and del_flag = '0'
and del_flag = '0'
<if
test=
"entity.flag !=null and entity.flag != '' "
>
<if
test=
"entity.flag !=null and entity.flag != '' "
>
and flag = #{entity.flag}
and flag = #{entity.flag}
</if>
</if>
<if
test=
"entity.goodsName !=null and entity.goodsName != '' "
>
<if
test=
"entity.goodsName !=null and entity.goodsName != '' "
>
and goods_name like concat('%',#{entity.goodsName},'%')
and goods_name like concat('%',#{entity.goodsName},'%')
</if>
</if>
<if
test=
"entity.goodsCode !=null and entity.goodsCode != '' "
>
<if
test=
"entity.goodsCode !=null and entity.goodsCode != '' "
>
and goods_code like concat('%',#{entity.goodsCode},'%')
and goods_code like concat('%',#{entity.goodsCode},'%')
</if>
</if>
<if
test=
"entity.goodsType !=null and entity.goodsType != '' "
>
<if
test=
"entity.goodsStyle !=null and entity.goodsStyle != '' "
>
and goods_type like concat('%',#{entity.goodsType},'%')
and goods_style like concat('%',#{entity.goods_style},'%')
</if>
</if>
<if
test=
"entity.goodsArticleNumber !=null and entity.goodsArticleNumber != '' "
>
<if
test=
"entity.goodsArtNumber !=null and entity.goodsArtNumber != '' "
>
and goods_article_number like concat('%',#{entity.goodsArticleNumber},'%')
and goods_art_number like concat('%',#{entity.goodsArtNumber},'%')
</if>
</if>
<if
test=
"entity.goodsSubclass !=null and entity.goodsSubclass != '' "
>
<if
test=
"entity.goodsSeason !=null and entity.goodsSeason != '' "
>
and goods_subclass like concat('%',#{entity.goodsSubclass},'%')
and goods_season like concat('%',#{entity.goodsSeason},'%')
</if>
</if>
<if
test=
"entity.goodsColour !=null and entity.goodsColour != '' "
>
<if
test=
"entity.goodsColour !=null and entity.goodsColour != '' "
>
and goods_colour like concat('%',#{entity.goodsColour},'%')
and goods_colour like concat('%',#{entity.goodsColour},'%')
</if>
</if>
<if
test=
"entity.goodsNorms !=null and entity.goodsNorms != '' "
>
<if
test=
"entity.goodsNorms !=null and entity.goodsNorms != '' "
>
and goods_norms like concat('%',#{entity.goodsNorms},'%')
and goods_norms like concat('%',#{entity.goodsNorms},'%')
</if>
</if>
<if
test=
"entity.goodsSize !=null and entity.goodsSize != '' "
>
<if
test=
"entity.goodsSize !=null and entity.goodsSize != '' "
>
and goods_size like concat('%',#{entity.goodsSize},'%')
and goods_size like concat('%',#{entity.goodsSize},'%')
</if>
</if>
<if
test=
"entity.goodsBrand !=null and entity.goodsBrand != '' "
>
and goods_brand like concat('%',#{entity.goodsBrand},'%')
</if>
ORDER BY business_id DESC
ORDER BY business_id DESC
</select>
</select>
<select
id=
"queryWmsGoodssPaged"
resultMap=
"BaseResultMap"
>
<select
id=
"queryWmsGoodssPaged"
resultMap=
"BaseResultMap"
>
select * from wms_goods
select * from wms_goods
where 1=1
where 1=1
and del_flag = '0'
and del_flag = '0'
<if
test=
"entity.flag !=null and entity.flag != '' "
>
<if
test=
"entity.flag !=null and entity.flag != '' "
>
and flag = #{entity.flag}
and flag = #{entity.flag}
</if>
</if>
<if
test=
"entity.goodsName !=null and entity.goodsName != '' "
>
<if
test=
"entity.goodsName !=null and entity.goodsName != '' "
>
and goods_name like concat('%',#{entity.goodsName},'%')
and goods_name like concat('%',#{entity.goodsName},'%')
</if>
</if>
<if
test=
"entity.goodsCode !=null and entity.goodsCode != '' "
>
<if
test=
"entity.goodsCode !=null and entity.goodsCode != '' "
>
and goods_code like concat('%',#{entity.goodsCode},'%')
and goods_code like concat('%',#{entity.goodsCode},'%')
</if>
</if>
<if
test=
"entity.goodsType !=null and entity.goodsType != '' "
>
<if
test=
"entity.goodsStyle !=null and entity.goodsStyle != '' "
>
and goods_type like concat('%',#{entity.goodsType},'%')
and goods_style like concat('%',#{entity.goodsStyle},'%')
</if>
</if>
<if
test=
"entity.goodsArticleNumber !=null and entity.goodsArticleNumber != '' "
>
<if
test=
"entity.goodsArtNumber !=null and entity.goodsArtNumber != '' "
>
and goods_article_number like concat('%',#{entity.goodsArticleNumber},'%')
and goods_art_number like concat('%',#{entity.goodsArtNumber},'%')
</if>
</if>
<if
test=
"entity.goodsSubclass !=null and entity.goodsSubclass != '' "
>
<if
test=
"entity.goodsSeason !=null and entity.goodsSeason != '' "
>
and goods_subclass like concat('%',#{entity.goodsSubclass},'%')
and goods_season like concat('%',#{entity.goodsSeason},'%')
</if>
</if>
<if
test=
"entity.goodsColour !=null and entity.goodsColour != '' "
>
<if
test=
"entity.goodsColour !=null and entity.goodsColour != '' "
>
and goods_colour like concat('%',#{entity.goodsColour},'%')
and goods_colour like concat('%',#{entity.goodsColour},'%')
</if>
</if>
<if
test=
"entity.goodsNorms !=null and entity.goodsNorms != '' "
>
<if
test=
"entity.goodsNorms !=null and entity.goodsNorms != '' "
>
and goods_norms like concat('%',#{entity.goodsNorms},'%')
and goods_norms like concat('%',#{entity.goodsNorms},'%')
</if>
</if>
<if
test=
"entity.goodsSize !=null and entity.goodsSize != '' "
>
<if
test=
"entity.goodsSize !=null and entity.goodsSize != '' "
>
and goods_size like concat('%',#{entity.goodsSize},'%')
and goods_size like concat('%',#{entity.goodsSize},'%')
</if>
</if>
<if
test=
"entity.goodsBrand !=null and entity.goodsBrand != '' "
>
and goods_brand like concat('%',#{entity.goodsBrand},'%')
</if>
ORDER BY business_id DESC
ORDER BY business_id DESC
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
src/main/resources/mapper/bus/wmsGoodsStock/WmsGoodsStockMapper.xml
View file @
9ab9de80
...
@@ -28,12 +28,13 @@
...
@@ -28,12 +28,13 @@
<result
column=
"goods_counts"
jdbcType=
"INTEGER"
property=
"goodsCounts"
/>
<result
column=
"goods_counts"
jdbcType=
"INTEGER"
property=
"goodsCounts"
/>
<result
column=
"goods_name"
jdbcType=
"VARCHAR"
property=
"goodsName"
/>
<result
column=
"goods_name"
jdbcType=
"VARCHAR"
property=
"goodsName"
/>
<result
column=
"goods_code"
jdbcType=
"VARCHAR"
property=
"goodsCode"
/>
<result
column=
"goods_code"
jdbcType=
"VARCHAR"
property=
"goodsCode"
/>
<result
column=
"goods_
type"
jdbcType=
"VARCHAR"
property=
"goodsTyp
e"
/>
<result
column=
"goods_
style"
jdbcType=
"VARCHAR"
property=
"goodsStyl
e"
/>
<result
column=
"goods_art
icle_number"
jdbcType=
"VARCHAR"
property=
"goodsArticle
Number"
/>
<result
column=
"goods_art
_number"
jdbcType=
"VARCHAR"
property=
"goodsArt
Number"
/>
<result
column=
"goods_s
ubclass"
jdbcType=
"VARCHAR"
property=
"goodsSubclass
"
/>
<result
column=
"goods_s
eason"
jdbcType=
"VARCHAR"
property=
"goodsSeason
"
/>
<result
column=
"goods_colour"
jdbcType=
"VARCHAR"
property=
"goodsColour"
/>
<result
column=
"goods_colour"
jdbcType=
"VARCHAR"
property=
"goodsColour"
/>
<result
column=
"goods_norms"
jdbcType=
"VARCHAR"
property=
"goodsNorms"
/>
<result
column=
"goods_norms"
jdbcType=
"VARCHAR"
property=
"goodsNorms"
/>
<result
column=
"goods_size"
jdbcType=
"VARCHAR"
property=
"goodsSize"
/>
<result
column=
"goods_size"
jdbcType=
"VARCHAR"
property=
"goodsSize"
/>
<result
column=
"goods_brand"
jdbcType=
"VARCHAR"
property=
"goodsBrand"
/>
</resultMap>
</resultMap>
<!--<cache type="${corePackag!}.util.RedisCache"/>-->
<!--<cache type="${corePackag!}.util.RedisCache"/>-->
...
@@ -41,11 +42,12 @@
...
@@ -41,11 +42,12 @@
select wgs.*,
select wgs.*,
wg.goods_name,
wg.goods_name,
wg.goods_code,
wg.goods_code,
wg.goods_
typ
e,
wg.goods_
styl
e,
wg.goods_art
icle
_number,
wg.goods_art_number,
wg.goods_s
ubclass
,
wg.goods_s
eason
,
wg.goods_colour,
wg.goods_colour,
wg.goods_norms,
wg.goods_norms,
wg.goods_brand,
wg.goods_size
wg.goods_size
from wms_goods_stock wgs left join wms_goods wg on wg.business_id = wgs.goods_id
from wms_goods_stock wgs left join wms_goods wg on wg.business_id = wgs.goods_id
where wgs.del_flag = '0'
where wgs.del_flag = '0'
...
@@ -67,11 +69,12 @@
...
@@ -67,11 +69,12 @@
wgs.*,
wgs.*,
wg.goods_name,
wg.goods_name,
wg.goods_code,
wg.goods_code,
wg.goods_
typ
e,
wg.goods_
styl
e,
wg.goods_art
icle
_number,
wg.goods_art_number,
wg.goods_s
ubclass
,
wg.goods_s
eason
,
wg.goods_colour,
wg.goods_colour,
wg.goods_norms,
wg.goods_norms,
wg.goods_brand,
wg.goods_size
wg.goods_size
FROM
FROM
wms_goods_stock wgs left join wms_goods wg on wg.business_id = wgs.goods_id
wms_goods_stock wgs left join wms_goods wg on wg.business_id = wgs.goods_id
...
@@ -90,14 +93,14 @@
...
@@ -90,14 +93,14 @@
<if
test=
"entity.goodsCode !=null and entity.goodsCode != '' "
>
<if
test=
"entity.goodsCode !=null and entity.goodsCode != '' "
>
and wg.goods_code = #{entity.goodsCode}
and wg.goods_code = #{entity.goodsCode}
</if>
</if>
<if
test=
"entity.goods
Type !=null and entity.goodsTyp
e != '' "
>
<if
test=
"entity.goods
Style !=null and entity.goodsStyl
e != '' "
>
and wg.goods_
type = #{entity.goodsTyp
e}
and wg.goods_
style = #{entity.goods_styl
e}
</if>
</if>
<if
test=
"entity.goodsArt
icleNumber !=null and entity.goodsArticle
Number != '' "
>
<if
test=
"entity.goodsArt
Number !=null and entity.goodsArt
Number != '' "
>
and wg.goods_art
icle_number = #{entity.goodsArticle
Number}
and wg.goods_art
_number = #{entity.goodsArt
Number}
</if>
</if>
<if
test=
"entity.goodsS
ubclass !=null and entity.goodsSubclass
!= '' "
>
<if
test=
"entity.goodsS
eason !=null and entity.goodsSeason
!= '' "
>
and wg.goods_s
ubclass = #{entity.goodsSubclass
}
and wg.goods_s
eason = #{entity.goodsSeason
}
</if>
</if>
<if
test=
"entity.goodsColour !=null and entity.goodsColour != '' "
>
<if
test=
"entity.goodsColour !=null and entity.goodsColour != '' "
>
and wg.goods_colour = #{entity.goodsColour}
and wg.goods_colour = #{entity.goodsColour}
...
@@ -108,6 +111,9 @@
...
@@ -108,6 +111,9 @@
<if
test=
"entity.goodsSize !=null and entity.goodsSize != '' "
>
<if
test=
"entity.goodsSize !=null and entity.goodsSize != '' "
>
and wg.goods_size = #{entity.goodsSize}
and wg.goods_size = #{entity.goodsSize}
</if>
</if>
ORDER BY wgs.business_id DESC
<if
test=
"entity.goodsBrand !=null and entity.goodsBrand != '' "
>
and wg.goods_brand = #{entity.goodsBrand}
</if>
ORDER BY wgs.business_id ASC
</select>
</select>
</mapper>
</mapper>
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