Commit d9565acf by 吕明尚

Merge branch 'dev' into test

parents 595b42c5 e63bea9b
...@@ -76,6 +76,7 @@ public class SRoomController extends BaseController ...@@ -76,6 +76,7 @@ public class SRoomController extends BaseController
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id)
{ {
return success(sRoomService.selectSRoomById(id)); return success(sRoomService.selectSRoomById(id));
} }
......
...@@ -129,4 +129,8 @@ public class SRoom extends BaseEntity ...@@ -129,4 +129,8 @@ public class SRoom extends BaseEntity
@TableField(exist = false) @TableField(exist = false)
private Integer queryNotRoomStat; private Integer queryNotRoomStat;
/** 房间类型文本录入 */
@Excel(name = "房间类型文本录入")
private String textInput;
} }
...@@ -164,6 +164,10 @@ public class SRoomVo extends BaseEntity ...@@ -164,6 +164,10 @@ public class SRoomVo extends BaseEntity
*/ */
private Integer orderType; private Integer orderType;
/** 房间类型文本录入 */
@Excel(name = "房间类型文本录入")
private String textInput;
@Override @Override
public String toString() { public String toString() {
......
...@@ -3493,6 +3493,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme ...@@ -3493,6 +3493,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
//门店交易-门店交易退款 //门店交易-门店交易退款
statisticsResponse.setActualFee(statisticsResponse.getStoreFee().subtract(statisticsResponse.getStoreRefundFee())); statisticsResponse.setActualFee(statisticsResponse.getStoreFee().subtract(statisticsResponse.getStoreRefundFee()));
//计算开始时间和结束时间相差多少天 //计算开始时间和结束时间相差多少天
/**
if (ObjectUtil.isNotEmpty(request.getStartTime()) && ObjectUtil.isNotEmpty(request.getEndTime())) { if (ObjectUtil.isNotEmpty(request.getStartTime()) && ObjectUtil.isNotEmpty(request.getEndTime())) {
long between = DateUtil.getTwoDateDays(request.getStartTime(), request.getEndTime()); long between = DateUtil.getTwoDateDays(request.getStartTime(), request.getEndTime());
// ChronoUnit.DAYS.between((Temporal) request.getStartTime(), (Temporal) request.getEndTime()); // ChronoUnit.DAYS.between((Temporal) request.getStartTime(), (Temporal) request.getEndTime());
...@@ -3504,6 +3505,8 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme ...@@ -3504,6 +3505,8 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
orderVoList = orderVoList.stream().filter(order -> order.getCreateTime().after(date)).collect(Collectors.toList()); orderVoList = orderVoList.stream().filter(order -> order.getCreateTime().after(date)).collect(Collectors.toList());
} }
} }
*/
orderVoList.sort(Comparator.comparing(OrderVo::getCreateTime).reversed());
if (orderVoList.size() > 5) { if (orderVoList.size() > 5) {
statisticsResponse.setOrderVoList(orderVoList.subList(0, 5)); statisticsResponse.setOrderVoList(orderVoList.subList(0, 5));
} else { } else {
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
<result property="updateTime" column="update_time" /> <result property="updateTime" column="update_time" />
<result property="remark" column="remark" /> <result property="remark" column="remark" />
<result property="roomStat" column="room_stat" /> <result property="roomStat" column="room_stat" />
<result property="textInput" column="text_input" />
</resultMap> </resultMap>
<sql id="selectSRoomVo"> <sql id="selectSRoomVo">
...@@ -49,7 +50,8 @@ ...@@ -49,7 +50,8 @@
update_by, update_by,
update_time, update_time,
remark, remark,
room_stat room_stat,
text_input
from s_room from s_room
</sql> </sql>
...@@ -71,8 +73,6 @@ ...@@ -71,8 +73,6 @@
<if test="params2 != null and params2 != ''"> and params2 = #{params2}</if> <if test="params2 != null and params2 != ''"> and params2 = #{params2}</if>
<if test="roomStat != null">and room_stat = #{roomStat}</if> <if test="roomStat != null">and room_stat = #{roomStat}</if>
<if test="queryNotRoomStat != null ">and room_stat != #{queryNotRoomStat}</if> <if test="queryNotRoomStat != null ">and room_stat != #{queryNotRoomStat}</if>
</where> </where>
order by sort desc order by sort desc
</select> </select>
...@@ -105,6 +105,7 @@ ...@@ -105,6 +105,7 @@
<if test="updateTime != null">update_time,</if> <if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if> <if test="remark != null">remark,</if>
<if test="roomStat != null">room_stat,</if> <if test="roomStat != null">room_stat,</if>
<if test="textInput != null">text_input</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="sort != null">#{sort},</if> <if test="sort != null">#{sort},</if>
...@@ -127,6 +128,7 @@ ...@@ -127,6 +128,7 @@
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if> <if test="remark != null">#{remark},</if>
<if test="roomStat != null">#{roomStat},</if> <if test="roomStat != null">#{roomStat},</if>
<if test="textInput != null">#{textInput}</if>
</trim> </trim>
</insert> </insert>
...@@ -153,6 +155,7 @@ ...@@ -153,6 +155,7 @@
<if test="updateTime != null">update_time = #{updateTime},</if> <if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if> <if test="remark != null">remark = #{remark},</if>
<if test="roomStat != null">room_stat = #{roomStat},</if> <if test="roomStat != null">room_stat = #{roomStat},</if>
<if test="textInput != null">text_input = #{textInput}</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment