mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-06 23:18:01 +08:00
站点日报按日期查询
This commit is contained in:
@@ -35,9 +35,9 @@ public class SettleOrderReportController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('order:report:list')")
|
@PreAuthorize("@ss.hasPermi('order:report:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(SettleOrderReport settleOrderReport) {
|
public TableDataInfo list(SettleOrderReportDTO dto) {
|
||||||
startPage();
|
startPage();
|
||||||
List<SettleOrderReport> list = settleOrderReportService.selectSettleOrderReportList(settleOrderReport);
|
List<SettleOrderReport> list = settleOrderReportService.selectSettleOrderReportList(dto);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,4 +30,14 @@ public class SettleOrderReportDTO {
|
|||||||
* 页面容量
|
* 页面容量
|
||||||
*/
|
*/
|
||||||
private Integer pageSize;
|
private Integer pageSize;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开始时间 yyyy-MM-dd
|
||||||
|
*/
|
||||||
|
private String startTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结束时间 yyyy-MM-dd
|
||||||
|
*/
|
||||||
|
private String endTime;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package com.jsowell.pile.mapper;
|
|||||||
|
|
||||||
import com.jsowell.pile.domain.SettleOrderReport;
|
import com.jsowell.pile.domain.SettleOrderReport;
|
||||||
import com.jsowell.pile.dto.MerchantOrderReportDTO;
|
import com.jsowell.pile.dto.MerchantOrderReportDTO;
|
||||||
|
import com.jsowell.pile.dto.SettleOrderReportDTO;
|
||||||
import com.jsowell.pile.vo.web.SettleOrderReportVO;
|
import com.jsowell.pile.vo.web.SettleOrderReportVO;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
@@ -84,6 +85,8 @@ public interface SettleOrderReportMapper {
|
|||||||
*/
|
*/
|
||||||
List<SettleOrderReport> selectSettleOrderReportList(SettleOrderReport settleOrderReport);
|
List<SettleOrderReport> selectSettleOrderReportList(SettleOrderReport settleOrderReport);
|
||||||
|
|
||||||
|
List<SettleOrderReport> selectListBySettleOrderReportDTO(@Param("dto") SettleOrderReportDTO dto);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增结算订单报
|
* 新增结算订单报
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ public interface SettleOrderReportService {
|
|||||||
*/
|
*/
|
||||||
public List<SettleOrderReport> selectSettleOrderReportList(SettleOrderReport settleOrderReport);
|
public List<SettleOrderReport> selectSettleOrderReportList(SettleOrderReport settleOrderReport);
|
||||||
|
|
||||||
|
List<SettleOrderReport> selectSettleOrderReportList(SettleOrderReportDTO dto);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增结算订单报
|
* 新增结算订单报
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -93,8 +93,6 @@ public class SettleOrderReportServiceImpl implements SettleOrderReportService {
|
|||||||
return settleOrderReportMapper.selectByStationIdAndDate(stationId, date);
|
return settleOrderReportMapper.selectByStationIdAndDate(stationId, date);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询站点订单日报明细
|
* 查询站点订单日报明细
|
||||||
* 分页查询
|
* 分页查询
|
||||||
@@ -221,6 +219,11 @@ public class SettleOrderReportServiceImpl implements SettleOrderReportService {
|
|||||||
return settleOrderReportMapper.selectSettleOrderReportList(settleOrderReport);
|
return settleOrderReportMapper.selectSettleOrderReportList(settleOrderReport);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<SettleOrderReport> selectSettleOrderReportList(SettleOrderReportDTO dto) {
|
||||||
|
return settleOrderReportMapper.selectListBySettleOrderReportDTO(dto);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增结算订单报
|
* 新增结算订单报
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -939,4 +939,23 @@
|
|||||||
</if>
|
</if>
|
||||||
and trade_date between #{startDate,jdbcType=VARCHAR} and #{endDate,jdbcType=VARCHAR}
|
and trade_date between #{startDate,jdbcType=VARCHAR} and #{endDate,jdbcType=VARCHAR}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="selectListBySettleOrderReportDTO" resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from settle_order_report
|
||||||
|
where del_flag = '0'
|
||||||
|
<if test="dto.merchantId != null and dto.merchantId != ''">
|
||||||
|
and merchant_id = #{dto.merchantId,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
<if test="dto.stationId != null and dto.stationId != ''">
|
||||||
|
and station_id = #{dto.stationId,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
<if test="dto.startTime != null and dto.startTime != ''">
|
||||||
|
and trade_date <![CDATA[ >= ]]> #{dto.startTime,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
<if test="dto.endTime != null and dto.endTime != ''">
|
||||||
|
and trade_date <![CDATA[ <= ]]> #{dto.endTime,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Reference in New Issue
Block a user