1修改财务接口
This commit is contained in:
parent
e5fb887b9a
commit
2656a69b3e
@ -290,7 +290,7 @@
|
|||||||
select charging_station_id as chargingStationId,
|
select charging_station_id as chargingStationId,
|
||||||
(select type
|
(select type
|
||||||
from xhpc_charging_pile
|
from xhpc_charging_pile
|
||||||
where charging_station_id = charging_station_id and del_flag = 0 and status = 0) as type,
|
where charging_station_id = charging_station_id and del_flag = 0 and status = 0 limit 1) as type,
|
||||||
name as name,
|
name as name,
|
||||||
reminder_instructions as reminderInstructions,
|
reminder_instructions as reminderInstructions,
|
||||||
detailed_address as detailedAddress,
|
detailed_address as detailedAddress,
|
||||||
|
|||||||
@ -93,6 +93,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
<version>2.4.0</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<goals>
|
<goals>
|
||||||
|
|||||||
@ -70,4 +70,16 @@ public class XhpcHistoryOrderReconciliationStatusController extends BaseControll
|
|||||||
List<Map<String, Object>> list = iXhpcHistoryOrderReconciliationStatusService.page(userId, serialNumber, createTimeStart, createTimeEnd, chargingStationName, status);
|
List<Map<String, Object>> list = iXhpcHistoryOrderReconciliationStatusService.page(userId, serialNumber, createTimeStart, createTimeEnd, chargingStationName, status);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 清分详情
|
||||||
|
*
|
||||||
|
* @param historyOrderId 历史订单id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping("/info")
|
||||||
|
@ApiOperation(value = "清分详情")
|
||||||
|
public AjaxResult info(@RequestParam Long historyOrderId) {
|
||||||
|
return iXhpcHistoryOrderReconciliationStatusService.info(historyOrderId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -72,4 +72,16 @@ public class XhpcHistoryOrderSortingStatusController extends BaseController {
|
|||||||
List<Map<String, Object>> list = iXhpcHistoryOrderSortingStatusService.page(userId, serialNumber, createTimeStart, createTimeEnd, chargingStationName, status);
|
List<Map<String, Object>> list = iXhpcHistoryOrderSortingStatusService.page(userId, serialNumber, createTimeStart, createTimeEnd, chargingStationName, status);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 对账详情
|
||||||
|
*
|
||||||
|
* @param historyOrderId 历史订单id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping("/info")
|
||||||
|
@ApiOperation(value = "对账详情")
|
||||||
|
public AjaxResult info(@RequestParam Long historyOrderId) {
|
||||||
|
return iXhpcHistoryOrderSortingStatusService.info(historyOrderId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -43,7 +43,7 @@ public interface XhpcHistoryOrderMapper {
|
|||||||
* @param xhpcHistoryOrderIds 历史订单信息
|
* @param xhpcHistoryOrderIds 历史订单信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateReconciliation(String[] xhpcHistoryOrderIds);
|
public int updateReconciliation(String[] xhpcHistoryOrderIds, @Param("status") String status);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新清分状态 历史订单信息
|
* 更新清分状态 历史订单信息
|
||||||
@ -51,20 +51,22 @@ public interface XhpcHistoryOrderMapper {
|
|||||||
* @param xhpcHistoryOrderIds 历史订单信息
|
* @param xhpcHistoryOrderIds 历史订单信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateSorting(String[] xhpcHistoryOrderIds);
|
public int updateSorting(@Param("xhpcHistoryOrderIds") String[] xhpcHistoryOrderIds, @Param("status") String status);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户历史订单表
|
* 用户历史订单表
|
||||||
|
*
|
||||||
* @param userId
|
* @param userId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<Map<String,Object>> list(@Param("userId") Long userId);
|
List<Map<String, Object>> list(@Param("userId") Long userId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 订单详情
|
* 订单详情
|
||||||
|
*
|
||||||
* @param userId
|
* @param userId
|
||||||
* @param historyOrderId
|
* @param historyOrderId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
Map<String,Object> gethistotyOrderMessage(@Param("userId")Long userId,@Param("historyOrderId")Long historyOrderId);
|
Map<String, Object> gethistotyOrderMessage(@Param("userId") Long userId, @Param("historyOrderId") Long historyOrderId);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -45,4 +45,13 @@ public interface XhpcHistoryOrderReconciliationStatusMapper {
|
|||||||
*/
|
*/
|
||||||
public List<Map<String, Object>> page(@Param("userId") Long userId, @Param("serialNumber") String serialNumber, @Param("createTimeStart") String createTimeStart, @Param("createTimeEnd") String createTimeEnd, @Param("chargingStationName") String chargingStationName, @Param("status") String status, @Param("operatorId") String operatorId, @Param("chargingStation") String chargingStation);
|
public List<Map<String, Object>> page(@Param("userId") Long userId, @Param("serialNumber") String serialNumber, @Param("createTimeStart") String createTimeStart, @Param("createTimeEnd") String createTimeEnd, @Param("chargingStationName") String chargingStationName, @Param("status") String status, @Param("operatorId") String operatorId, @Param("chargingStation") String chargingStation);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 清分详情
|
||||||
|
*
|
||||||
|
* @param historyOrderId 历史订单id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Map<String, Object> info(@Param("historyOrderId") Long historyOrderId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,4 +54,12 @@ public interface XhpcHistoryOrderSortingStatusMapper {
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public List<Map<String, Object>> page(@Param("userId") Long userId, @Param("serialNumber") String serialNumber, @Param("createTimeStart") String createTimeStart, @Param("createTimeEnd") String createTimeEnd, @Param("chargingStationName") String chargingStationName, @Param("status") String status, @Param("operatorId") String operatorId, @Param("chargingStation") String chargingStation);
|
public List<Map<String, Object>> page(@Param("userId") Long userId, @Param("serialNumber") String serialNumber, @Param("createTimeStart") String createTimeStart, @Param("createTimeEnd") String createTimeEnd, @Param("chargingStationName") String chargingStationName, @Param("status") String status, @Param("operatorId") String operatorId, @Param("chargingStation") String chargingStation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 对账详情
|
||||||
|
*
|
||||||
|
* @param historyOrderId 历史订单id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Map<String, Object> info(@Param("historyOrderId") Long historyOrderId);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,9 +22,10 @@ public interface IXhpcHistoryOrderReconciliationStatusService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改对账状态 历史订单对账状态
|
* 修改对账状态 历史订单对账状态
|
||||||
|
*
|
||||||
* @param historyOrderIds 历史订单id集合
|
* @param historyOrderIds 历史订单id集合
|
||||||
* @param status 状态
|
* @param status 状态
|
||||||
* @param remark 备注
|
* @param remark 备注
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public AjaxResult status(String historyOrderIds, Integer status, String remark);
|
public AjaxResult status(String historyOrderIds, Integer status, String remark);
|
||||||
@ -49,4 +50,12 @@ public interface IXhpcHistoryOrderReconciliationStatusService {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public List<Map<String, Object>> page(Long userId, String serialNumber, String createTimeStart, String createTimeEnd, String chargingStationName, String status);
|
public List<Map<String, Object>> page(Long userId, String serialNumber, String createTimeStart, String createTimeEnd, String chargingStationName, String status);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 清分详情
|
||||||
|
*
|
||||||
|
* @param historyOrderId 历史订单id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public AjaxResult info(Long historyOrderId);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -50,4 +50,12 @@ public interface IXhpcHistoryOrderSortingStatusService {
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public List<Map<String, Object>> page(Long userId, String serialNumber, String createTimeStart, String createTimeEnd, String chargingStationName, String status);
|
public List<Map<String, Object>> page(Long userId, String serialNumber, String createTimeStart, String createTimeEnd, String chargingStationName, String status);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 对账详情
|
||||||
|
*
|
||||||
|
* @param historyOrderId 历史订单id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public AjaxResult info(Long historyOrderId);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -81,7 +81,7 @@ public class XhpcHistoryOrderReconciliationStatusServiceImpl implements IXhpcHis
|
|||||||
xhpcHistoryOrderReconciliationStatus.setRemark(remark);
|
xhpcHistoryOrderReconciliationStatus.setRemark(remark);
|
||||||
xhpcHistoryOrderReconciliationStatusMapper.insert(xhpcHistoryOrderReconciliationStatus);
|
xhpcHistoryOrderReconciliationStatusMapper.insert(xhpcHistoryOrderReconciliationStatus);
|
||||||
}
|
}
|
||||||
xhpcHistoryOrderMapper.updateReconciliation(historyOrderIds.split(","));
|
xhpcHistoryOrderMapper.updateReconciliation(historyOrderIds.split(","), StringUtils.valueOf(status));
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -136,4 +136,16 @@ public class XhpcHistoryOrderReconciliationStatusServiceImpl implements IXhpcHis
|
|||||||
}
|
}
|
||||||
return xhpcHistoryOrderReconciliationStatusMapper.page(userId, serialNumber, createTimeStart, createTimeEnd, chargingStationName, status, null, null);
|
return xhpcHistoryOrderReconciliationStatusMapper.page(userId, serialNumber, createTimeStart, createTimeEnd, chargingStationName, status, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 清分详情
|
||||||
|
*
|
||||||
|
* @param historyOrderId 历史订单id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AjaxResult info(Long historyOrderId) {
|
||||||
|
return AjaxResult.success(xhpcHistoryOrderReconciliationStatusMapper.info(historyOrderId));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -81,7 +81,7 @@ public class XhpcHistoryOrderSortingStatusServiceImpl implements IXhpcHistoryOrd
|
|||||||
xhpcHistoryOrderSortingStatus.setRemark(remark);
|
xhpcHistoryOrderSortingStatus.setRemark(remark);
|
||||||
xhpcHistoryOrderSortingStatusMapper.insert(xhpcHistoryOrderSortingStatus);
|
xhpcHistoryOrderSortingStatusMapper.insert(xhpcHistoryOrderSortingStatus);
|
||||||
}
|
}
|
||||||
xhpcHistoryOrderMapper.updateSorting(historyOrderIds.split(","));
|
xhpcHistoryOrderMapper.updateSorting(historyOrderIds.split(","), StringUtils.valueOf(status));
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -137,4 +137,15 @@ public class XhpcHistoryOrderSortingStatusServiceImpl implements IXhpcHistoryOrd
|
|||||||
}
|
}
|
||||||
return xhpcHistoryOrderSortingStatusMapper.page(userId, serialNumber, createTimeStart, createTimeEnd, chargingStationName, status, null, null);
|
return xhpcHistoryOrderSortingStatusMapper.page(userId, serialNumber, createTimeStart, createTimeEnd, chargingStationName, status, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 对账详情
|
||||||
|
*
|
||||||
|
* @param historyOrderId 历史订单id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AjaxResult info(Long historyOrderId) {
|
||||||
|
return AjaxResult.success(xhpcHistoryOrderSortingStatusMapper.info(historyOrderId));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -281,17 +281,17 @@
|
|||||||
where xho.del_flag = 0 and xho.history_order_id = #{historyOrderId}
|
where xho.del_flag = 0 and xho.history_order_id = #{historyOrderId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<update id="updateReconciliation" parameterType="com.xhpc.order.domain.XhpcHistoryOrderReconciliationStatus">
|
<update id="updateReconciliation" parameterType="java.lang.String">
|
||||||
update xhpc_history_order set reconciliation_status = #{status} where history_order_id in
|
update xhpc_history_order set reconciliation_status = #{status} where history_order_id in
|
||||||
<foreach collection="array" item="xhpcHistoryOrderId" open="(" separator="," close=")">
|
<foreach collection="xhpcHistoryOrderIds" item="item" open="(" separator="," close=")">
|
||||||
#{xhpcHistoryOrderId}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<update id="updateSorting" parameterType="com.xhpc.order.domain.XhpcHistoryOrderReconciliationStatus">
|
<update id="updateSorting" parameterType="java.lang.String">
|
||||||
update xhpc_history_order set sorting_status = #{status} where history_order_id in
|
update xhpc_history_order set sorting_status = #{status} where history_order_id in
|
||||||
<foreach collection="array" item="xhpcHistoryOrderId" open="(" separator="," close=")">
|
<foreach collection="xhpcHistoryOrderIds" item="item" open="(" separator="," close=")">
|
||||||
#{xhpcHistoryOrderId}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|||||||
@ -118,8 +118,8 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="page" parameterType="java.lang.Long" resultType="java.util.Map">
|
<select id="page" parameterType="java.lang.Long" resultType="java.util.Map">
|
||||||
select sum(xho.act_price-xho.internet_commission-xho.internet_svc_commission)
|
select xho.act_price-xho.internet_commission-xho.internet_svc_commission
|
||||||
realIncome,
|
realIncome,xho.history_order_id historyOrderId,
|
||||||
xho.user_id userId,xho.serial_number serialNumber,xho.create_time createTime,
|
xho.user_id userId,xho.serial_number serialNumber,xho.create_time createTime,
|
||||||
xo.`name` operatorName,xcs.`name` chargingStationName,xho.`reconciliation_status`
|
xo.`name` operatorName,xcs.`name` chargingStationName,xho.`reconciliation_status`
|
||||||
reconciliationStatus,sdd.dict_label reconciliationStatusName
|
reconciliationStatus,sdd.dict_label reconciliationStatusName
|
||||||
@ -159,4 +159,20 @@
|
|||||||
</if>
|
</if>
|
||||||
ORDER BY xho.create_time DESC
|
ORDER BY xho.create_time DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="info" parameterType="java.lang.Long" resultType="java.util.Map">
|
||||||
|
select sum(xho.act_price-xho.internet_commission-xho.internet_svc_commission)
|
||||||
|
realIncome,xho.history_order_id historyOrderId,
|
||||||
|
xho.user_id userId,xho.serial_number serialNumber,xho.create_time createTime,
|
||||||
|
xo.`name` operatorName,xcs.`name` chargingStationName,xho.`reconciliation_status`
|
||||||
|
reconciliationStatus,sdd.dict_label reconciliationStatusName,
|
||||||
|
xho.end_soc endSoc
|
||||||
|
from xhpc_history_order xho
|
||||||
|
LEFT JOIN xhpc_charge_order xco on xco.charge_order_id = xho.charging_order_id
|
||||||
|
LEFT JOIN xhpc_charging_station xcs on xcs.charging_station_id = xho.charging_station_id
|
||||||
|
LEFT JOIN xhpc_operator xo on xo.operator_id = xcs.operator_id
|
||||||
|
LEFT JOIN sys_dict_data sdd on sdd.`dict_type` = 'reconciliation_status' and sdd.dict_value =
|
||||||
|
xho.`reconciliation_status`
|
||||||
|
where xho.del_flag = 0 and xho.history_order_id = #{historyOrderId}
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
<insert id="insert" parameterType="com.xhpc.order.domain.XhpcHistoryOrderSortingStatus" useGeneratedKeys="true"
|
<insert id="insert" parameterType="com.xhpc.order.domain.XhpcHistoryOrderSortingStatus" useGeneratedKeys="true"
|
||||||
keyProperty="historyOrderSortingStatusId">
|
keyProperty="historyOrderSortingStatusId">
|
||||||
INSERT INTO xhpc_recharge_order
|
INSERT INTO xhpc_history_order_reconciliation_status
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="null != historyOrderId and '' != historyOrderId">
|
<if test="null != historyOrderId and '' != historyOrderId">
|
||||||
history_order_id,
|
history_order_id,
|
||||||
@ -144,8 +144,8 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="page" parameterType="java.lang.Long" resultType="java.util.Map">
|
<select id="page" parameterType="java.lang.Long" resultType="java.util.Map">
|
||||||
select sum(xho.act_power_price+xho.act_service_price)
|
select xho.act_power_price+xho.act_service_price
|
||||||
expenditure,
|
expenditure,xho.history_order_id historyOrderId,
|
||||||
xho.user_id userId,xho.serial_number serialNumber,xco.create_time createTime,
|
xho.user_id userId,xho.serial_number serialNumber,xco.create_time createTime,
|
||||||
xcs.`name` chargingStationName,xho.`sorting_status` sortingStatus,sdd.dict_label sortingStatusName,
|
xcs.`name` chargingStationName,xho.`sorting_status` sortingStatus,sdd.dict_label sortingStatusName,
|
||||||
xco.source,
|
xco.source,
|
||||||
@ -185,5 +185,24 @@
|
|||||||
<if test="chargingStation != null and chargingStation != ''">
|
<if test="chargingStation != null and chargingStation != ''">
|
||||||
and xup.user_id = #{userId}
|
and xup.user_id = #{userId}
|
||||||
</if>
|
</if>
|
||||||
|
ORDER BY xho.create_time DESC
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="info" parameterType="java.lang.Long" resultType="java.util.Map">
|
||||||
|
select sum(xho.act_power_price+xho.act_service_price)
|
||||||
|
expenditure,xho.history_order_id historyOrderId,
|
||||||
|
xho.user_id userId,xho.serial_number serialNumber,xco.create_time createTime,
|
||||||
|
xcs.`name` chargingStationName,xho.`sorting_status` sortingStatus,sdd.dict_label sortingStatusName,
|
||||||
|
xco.source,
|
||||||
|
CASE WHEN xco.source = 0 THEN '平台' else xiu.`name` end sourceName,
|
||||||
|
xho.end_soc endSoc
|
||||||
|
from xhpc_history_order xho
|
||||||
|
LEFT JOIN xhpc_charge_order xco on xco.charge_order_id = xho.charging_order_id
|
||||||
|
LEFT JOIN xhpc_charging_station xcs on xcs.charging_station_id = xho.charging_station_id
|
||||||
|
LEFT JOIN xhpc_operator xo on xo.operator_id = xcs.operator_id
|
||||||
|
LEFT JOIN sys_user su on xo.operator_id = su.operator_id
|
||||||
|
LEFT JOIN sys_dict_data sdd on sdd.`dict_type` = 'sorting_status' and sdd.dict_value = xho.`sorting_status`
|
||||||
|
LEFT JOIN xhpc_internet_user xiu on xiu.internet_user_id = su.internet_user_id
|
||||||
|
where xho.del_flag = 0 and xho.history_order_id = #{historyOrderId}
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@ -286,7 +286,7 @@
|
|||||||
CASE WHEN xo.`status` = 0 THEN '正常' else '禁用' end statusName,su.user_id userId,
|
CASE WHEN xo.`status` = 0 THEN '正常' else '禁用' end statusName,su.user_id userId,
|
||||||
xdb.dict_value attributenName
|
xdb.dict_value attributenName
|
||||||
from xhpc_operator `xo`
|
from xhpc_operator `xo`
|
||||||
LEFT JOIN sys_user su on su.internet_user_id = `xo`.operator_id
|
LEFT JOIN sys_user su on su.operator_id = `xo`.operator_id
|
||||||
LEFT JOIN xhpc_dict_biz xdb on xdb.`code` = 'operator_attribute' and xdb.dict_key = xo.attribute
|
LEFT JOIN xhpc_dict_biz xdb on xdb.`code` = 'operator_attribute' and xdb.dict_key = xo.attribute
|
||||||
where xo.del_flag = 0
|
where xo.del_flag = 0
|
||||||
<if test="name != null and name != ''">
|
<if test="name != null and name != ''">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user