Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
pseer
gxpt_ht
Commits
31a83c3e
Commit
31a83c3e
authored
Oct 22, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保洁管理增加时间查询,修改保洁导出
parent
31c45b8f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
74 additions
and
188 deletions
+74
-188
SCleanRecords.java
...stem/src/main/java/share/system/domain/SCleanRecords.java
+49
-175
SCleanRecordsServiceImpl.java
...a/share/system/service/impl/SCleanRecordsServiceImpl.java
+6
-6
SCleanRecordsMapper.xml
.../src/main/resources/mapper/system/SCleanRecordsMapper.xml
+18
-6
SOrderMapper.xml
...-system/src/main/resources/mapper/system/SOrderMapper.xml
+1
-1
No files found.
share-system/src/main/java/share/system/domain/SCleanRecords.java
View file @
31a83c3e
package
share
.
system
.
domain
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
lombok.Data
;
import
share.common.annotation.Excel
;
import
share.common.core.domain.BaseEntity
;
import
java.util.Date
;
/**
* 保洁记录对象 s_clean_records
*
* @author ruoyi
* @date 2023-09-28
*/
@Data
public
class
SCleanRecords
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -25,12 +25,40 @@ public class SCleanRecords extends BaseEntity
@TableId
(
type
=
IdType
.
AUTO
)
private
Long
id
;
/**
* 门店名称
*/
@Excel
(
name
=
"门店名称"
)
@TableField
(
exist
=
false
)
private
String
storeName
;
/** 门店ID */
private
Long
storeId
;
/**
* 房间名称
*/
@Excel
(
name
=
"房间名称"
)
@TableField
(
exist
=
false
)
private
String
roomName
;
/** 房间ID */
private
Long
roomId
;
/**
* 保洁员姓名
*/
@Excel
(
name
=
"保洁员姓名"
)
@TableField
(
exist
=
false
)
private
String
cleanName
;
/**
* 保洁员手机号
*/
@Excel
(
name
=
"保洁员手机号"
)
@TableField
(
exist
=
false
)
private
String
phone
;
/** 保洁人员ID */
private
Long
consumerId
;
...
...
@@ -40,7 +68,7 @@ public class SCleanRecords extends BaseEntity
private
Date
startDate
;
/** 保洁前照片 */
@Excel
(
name
=
"保洁前照片"
)
//
@Excel(name = "保洁前照片")
private
String
startImage
;
/** 结束时间 */
...
...
@@ -48,35 +76,29 @@ public class SCleanRecords extends BaseEntity
@Excel
(
name
=
"结束时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
endDate
;
/**
* 下单开始时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm"
)
@TableField
(
select
=
false
)
private
Date
startTime
;
/**
* 下单结束时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm"
)
@TableField
(
select
=
false
)
private
Date
endTime
;
/** 保洁后照片 */
@Excel
(
name
=
"保洁后照片"
)
//
@Excel(name = "保洁后照片")
private
String
endImage
;
/** 保洁状态:0:未保洁,1:保洁中,2:已保洁 */
@Excel
(
name
=
"保洁状态"
)
@Excel
(
name
=
"保洁状态"
,
dictType
=
"clean_records_status"
)
private
Integer
status
;
/**
* 门店名称
*/
@TableField
(
exist
=
false
)
private
String
storeName
;
/**
* 房间名称
*/
@TableField
(
exist
=
false
)
private
String
roomName
;
/**
* 保洁员姓名
*/
@TableField
(
exist
=
false
)
private
String
cleanName
;
/**
* 保洁员手机号
*/
@TableField
(
exist
=
false
)
private
String
phone
;
@TableField
(
exist
=
false
)
private
SRoom
sRoom
;
...
...
@@ -84,152 +106,4 @@ public class SCleanRecords extends BaseEntity
@TableField
(
exist
=
false
)
private
SStore
sStore
;
public
SRoom
getsRoom
()
{
return
sRoom
;
}
public
void
setsRoom
(
SRoom
sRoom
)
{
this
.
sRoom
=
sRoom
;
}
public
SStore
getsStore
()
{
return
sStore
;
}
public
void
setsStore
(
SStore
sStore
)
{
this
.
sStore
=
sStore
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setRoomId
(
Long
roomId
)
{
this
.
roomId
=
roomId
;
}
public
Long
getRoomId
()
{
return
roomId
;
}
public
void
setConsumerId
(
Long
consumerId
)
{
this
.
consumerId
=
consumerId
;
}
public
Long
getConsumerId
()
{
return
consumerId
;
}
public
void
setStartDate
(
Date
startDate
)
{
this
.
startDate
=
startDate
;
}
public
Date
getStartDate
()
{
return
startDate
;
}
public
void
setStartImage
(
String
startImage
)
{
this
.
startImage
=
startImage
;
}
public
String
getStartImage
()
{
return
startImage
;
}
public
void
setEndDate
(
Date
endDate
)
{
this
.
endDate
=
endDate
;
}
public
Date
getEndDate
()
{
return
endDate
;
}
public
void
setEndImage
(
String
endImage
)
{
this
.
endImage
=
endImage
;
}
public
String
getEndImage
()
{
return
endImage
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
Long
getStoreId
()
{
return
storeId
;
}
public
void
setStoreId
(
Long
storeId
)
{
this
.
storeId
=
storeId
;
}
public
String
getStoreName
()
{
return
storeName
;
}
public
void
setStoreName
(
String
storeName
)
{
this
.
storeName
=
storeName
;
}
public
String
getRoomName
()
{
return
roomName
;
}
public
void
setRoomName
(
String
roomName
)
{
this
.
roomName
=
roomName
;
}
public
String
getCleanName
()
{
return
cleanName
;
}
public
void
setCleanName
(
String
cleanName
)
{
this
.
cleanName
=
cleanName
;
}
public
String
getPhone
()
{
return
phone
;
}
public
void
setPhone
(
String
phone
)
{
this
.
phone
=
phone
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"storeId"
,
getStoreId
())
.
append
(
"roomId"
,
getRoomId
())
.
append
(
"consumerId"
,
getConsumerId
())
.
append
(
"startDate"
,
getStartDate
())
.
append
(
"startImage"
,
getStartImage
())
.
append
(
"endDate"
,
getEndDate
())
.
append
(
"endImage"
,
getEndImage
())
.
append
(
"status"
,
getStatus
())
.
append
(
"createBy"
,
getCreateBy
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"remark"
,
getRemark
())
.
toString
();
}
}
share-system/src/main/java/share/system/service/impl/SCleanRecordsServiceImpl.java
View file @
31a83c3e
...
...
@@ -70,8 +70,8 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
if
(
sCleanRecords
!=
null
)
{
SStore
store
=
sStoreMapper
.
selectSStoreById
(
sCleanRecords
.
getStoreId
());
SRoom
room
=
sRoomMapper
.
selectSRoomById
(
sCleanRecords
.
getRoomId
());
sCleanRecords
.
set
s
Store
(
store
);
sCleanRecords
.
set
s
Room
(
room
);
sCleanRecords
.
set
S
Store
(
store
);
sCleanRecords
.
set
S
Room
(
room
);
}
return
sCleanRecords
;
}
...
...
@@ -251,12 +251,12 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
cleanRecordsList
.
forEach
(
item
->
{
SStore
store
=
storeMap
.
get
(
item
.
getStoreId
());
if
(
store
!=
null
)
{
item
.
set
s
Store
(
store
);
item
.
set
S
Store
(
store
);
item
.
setStoreName
(
store
.
getName
());
}
SRoom
room
=
roomMap
.
get
(
item
.
getRoomId
());
if
(
room
!=
null
)
{
item
.
set
s
Room
(
room
);
item
.
set
S
Room
(
room
);
item
.
setRoomName
(
room
.
getName
());
}
});
...
...
@@ -302,8 +302,8 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
}
//取创建时间最远的
SCleanRecords
records
=
sCleanRecords
.
stream
().
min
(
Comparator
.
comparing
(
SCleanRecords:
:
getCreateTime
)).
get
();
records
.
set
s
Room
(
sRoomMapper
.
selectById
(
records
.
getRoomId
()));
records
.
set
s
Store
(
sStoreMapper
.
selectById
(
records
.
getStoreId
()));
records
.
set
S
Room
(
sRoomMapper
.
selectById
(
records
.
getRoomId
()));
records
.
set
S
Store
(
sStoreMapper
.
selectById
(
records
.
getStoreId
()));
return
records
;
}
...
...
share-system/src/main/resources/mapper/system/SCleanRecordsMapper.xml
View file @
31a83c3e
...
...
@@ -39,18 +39,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"selectSCleanRecordsList"
parameterType=
"SCleanRecords"
resultMap=
"SCleanRecordsResult"
>
<include
refid=
"selectSCleanRecordsVo"
/>
<where>
<if
test=
"startDate != null "
>
and t1.start_date = #{startDate}
</if>
<where>
<!-- <if test="startDate != null "> and t1.start_date = #{startDate}</if>-->
<!-- <if test="endDate != null "> and t1.end_date = #{endDate}</if>-->
<if
test=
"startImage != null and startImage != ''"
>
and t1.start_image = #{startImage}
</if>
<if
test=
"endDate != null "
>
and t1.end_date = #{endDate}
</if>
<if
test=
"endImage != null and endImage != ''"
>
and t1.end_image = #{endImage}
</if>
<if
test=
"status != null "
>
and t1.status = #{status}
</if>
<if
test=
"consumerId != null"
>
and t1.consumer_id = #{consumerId}
</if>
<if
test=
"roomId != null"
>
and t1.room_id = #{roomId}
</if>
<if
test=
"storeId != null"
>
and t1.store_id = #{storeId}
</if>
<if
test=
"createTime != null "
>
and DATE_FORMAT(t1.create_time, '%Y-%m-%d') = DATE_FORMAT(#{createTime}, '%Y-%m-%d')
</if>
<!-- <if test="createTime != null ">-->
<!-- and DATE_FORMAT(t1.create_time, '%Y-%m-%d') = DATE_FORMAT(#{createTime}, '%Y-%m-%d')-->
<!-- </if>-->
<if
test=
"startTime != null"
>
and DATE_FORMAT(t1.create_time, '%Y-%m-%d')
>
= DATE_FORMAT(#{startTime}, '%Y-%m-%d')
</if>
<if
test=
"endTime != null"
>
and DATE_FORMAT(t1.create_time, '%Y-%m-%d')
<
= DATE_FORMAT(#{endTime}, '%Y-%m-%d')
</if>
<if
test=
"startDate != null"
>
and DATE_FORMAT(t1.start_date, '%Y-%m-%d')
>
= DATE_FORMAT(#{startDate}, '%Y-%m-%d')
</if>
<if
test=
"endDate != null"
>
and DATE_FORMAT(t1.end_date, '%Y-%m-%d')
<
= DATE_FORMAT(#{endDate}, '%Y-%m-%d')
</if>
</where>
order by create_time desc
</select>
...
...
share-system/src/main/resources/mapper/system/SOrderMapper.xml
View file @
31a83c3e
...
...
@@ -141,7 +141,7 @@
s.update_time,
s.arrival_time,
s.remark
from s_order s join s_consumer_coupon c on s.coupon_id = c.id
from s_order s
left
join s_consumer_coupon c on s.coupon_id = c.id
where s.pay_status = 1
and s.is_delete = 0
<if
test=
"couponName !=null and couponName!= ''"
>
and c.name = #{couponName}
</if>
...
...
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