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
4db068c2
Commit
4db068c2
authored
Dec 24, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev1.0' into dev1.0
parents
cb7a5cce
92804fb2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
6 deletions
+43
-6
StoreGoodsLogController.java
...bus/storegoodslog/controller/StoreGoodsLogController.java
+1
-0
StoreGoodsLog.java
...a/org/rcisoft/bus/storegoodslog/entity/StoreGoodsLog.java
+22
-0
StoreGoodsLogMapper.xml
...esources/mapper/bus/storeGoodsLog/StoreGoodsLogMapper.xml
+20
-6
No files found.
src/main/java/org/rcisoft/bus/storegoodslog/controller/StoreGoodsLogController.java
View file @
4db068c2
...
...
@@ -121,6 +121,7 @@ public class StoreGoodsLogController extends CyPaginationController<StoreGoodsLo
return
getGridModelResponse
();
}
//@PreAuthorize("@cyPerm.hasPerm('sys:goodsLog:export')")
@CyOpeLogAnno
(
title
=
"system-商品记录表管理-查询商品记录表"
,
businessType
=
CyLogTypeEnum
.
EXPORT
)
@ApiOperation
(
value
=
"导出商品记录表信息"
,
notes
=
"导出商品记录表信息"
)
@GetMapping
(
value
=
"/export"
)
...
...
src/main/java/org/rcisoft/bus/storegoodslog/entity/StoreGoodsLog.java
View file @
4db068c2
package
org
.
rcisoft
.
bus
.
storegoodslog
.
entity
;
import
cn.afterturn.easypoi.excel.annotation.Excel
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
lombok.Data
;
import
org.rcisoft.core.entity.CyIdIncreEntity
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* Created with cy on 2024年5月29日 下午1:21:49.
...
...
@@ -16,7 +20,9 @@ import java.math.BigDecimal;
public
class
StoreGoodsLog
extends
CyIdIncreEntity
<
StoreGoodsLog
>
{
private
String
ioType
;
@Excel
(
name
=
"商品名称"
,
orderNum
=
"1"
,
width
=
20
)
private
String
goodsName
;
@Excel
(
name
=
"商品编码"
,
orderNum
=
"2"
,
width
=
20
)
private
String
goodsCode
;
private
Integer
applyId
;
private
Integer
goodsCounts
;
...
...
@@ -24,9 +30,11 @@ public class StoreGoodsLog extends CyIdIncreEntity<StoreGoodsLog> {
private
Integer
goodsId
;
@TableField
(
exist
=
false
)
@Excel
(
name
=
"销售单号"
,
orderNum
=
"3"
,
width
=
20
)
private
String
appCode
;
@TableField
(
exist
=
false
)
@Excel
(
name
=
"门店"
,
orderNum
=
"0"
,
width
=
20
)
private
String
storeName
;
@TableField
(
exist
=
false
)
...
...
@@ -37,6 +45,7 @@ public class StoreGoodsLog extends CyIdIncreEntity<StoreGoodsLog> {
* @column original_price
* @default
*/
@Excel
(
name
=
"原价"
,
orderNum
=
"4"
,
width
=
20
)
private
BigDecimal
originalPrice
;
/**
...
...
@@ -44,6 +53,7 @@ public class StoreGoodsLog extends CyIdIncreEntity<StoreGoodsLog> {
* @column discount_price
* @default
*/
@Excel
(
name
=
"折扣价"
,
orderNum
=
"5"
,
width
=
20
)
private
BigDecimal
discountPrice
;
/**
...
...
@@ -51,6 +61,7 @@ public class StoreGoodsLog extends CyIdIncreEntity<StoreGoodsLog> {
* @column store_price
* @default
*/
@Excel
(
name
=
"门店价"
,
orderNum
=
"6"
,
width
=
20
)
private
BigDecimal
storePrice
;
/**
...
...
@@ -58,8 +69,19 @@ public class StoreGoodsLog extends CyIdIncreEntity<StoreGoodsLog> {
* @column total_price
* @default
*/
@Excel
(
name
=
"总价"
,
orderNum
=
"7"
,
width
=
20
)
private
BigDecimal
totalPrice
;
/**
* @desc 销售日期
* @column update_date
* @default
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"销售日期"
,
orderNum
=
"8"
,
width
=
20
,
format
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
updateDate
;
/**
* 销售开始时间
*/
...
...
src/main/resources/mapper/bus/storeGoodsLog/StoreGoodsLogMapper.xml
View file @
4db068c2
...
...
@@ -37,11 +37,19 @@
</update>
<!--<cache type="${corePackag!}.util.RedisCache"/>-->
<select
id=
"queryWmsGoodsLogs"
resultMap=
"BaseResultMap"
>
select * from store_goods_log
select *,dept_tb.dept_name as store_name,sga.app_code as app_code
from store_goods_log sgl
left join store_goods_apply sga on sgl.apply_id = sga.business_id
left join sys_dept as dept_tb on sga.store_id = dept_tb.business_id
where 1=1
and del_flag = '0'
and sgl.del_flag = '0'
and sgl.io_type = '1'
and sgl.is_return = '0'
<if
test=
"entity.flag !=null and entity.flag != '' "
>
and flag = #{entity.flag}
and sgl.flag = #{entity.flag}
</if>
<if
test=
"entity.storeId !=null and entity.storeId != '' "
>
and store_id = #{entity.storeId}
</if>
<if
test=
"entity.ioType !=null and entity.ioType != '' "
>
and io_type = #{entity.ioType}
...
...
@@ -55,10 +63,16 @@
<if
test=
"entity.goodsCode !=null and entity.goodsCode != '' "
>
and goods_code like concat('%',#{entity.goodsCode},'%')
</if>
<if
test=
"entity.applyId !=null and entity.applyId != '' "
>
and apply_id = #{entity.applyId}
<if
test=
"entity.appCode !=null and entity.appCode != '' "
>
and app_code like concat('%',#{entity.appCode},'%')
</if>
<if
test=
"entity.startTime !=null and entity.startTime != '' "
>
and sgl.update_date
>
= #{entity.startTime}
</if>
ORDER BY business_id DESC
<if
test=
"entity.finishTime !=null and entity.finishTime != '' "
>
and sgl.update_date
<
= DATE_ADD(#{entity.finishTime}, INTERVAL 1 DAY)
</if>
ORDER BY sgl.business_id DESC
</select>
<select
id=
"queryWmsGoodsLogsPaged"
resultMap=
"BaseResultMap"
>
...
...
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